Automate APQR data assembly without hiding unresolved quality events
For Product quality review owner and QA analytics · Plan implementation
TL;DR — what you’ll learn
- Agree the product, period and inclusion rules before extracting data for an annual product quality review.
- Reconcile source populations and explain missing or excluded records before calculating trends.
- Keep open investigations, changes and CAPA outcomes visible in the assembled evidence.
- Automate repeatable collection and calculations while retaining qualified review of meaning and required action.
Faster assembly is useful only when the population is right
The enterprise resource planning system lists 120 batches for the review period, while the quality extract contains 118. An automated report calculates percentages from the smaller population and produces a polished draft. The two missing batches are absent from both the tables and the discussion.
Pharma APQR automation should begin by reconciling what belongs in the review. An annual product quality review, or APQR, combines evidence from processes that use different identifiers, dates and status definitions. If those meanings are not aligned, automation can produce errors more consistently and at greater speed.
Define the applicable review requirements with the quality owner. For example, ICH Q7 includes regular API product-quality reviews covering relevant process and quality evidence. Its API scope should not be treated as the complete requirement set for every finished product. ICH Q7, product quality review.
Establish the review contract
The review contract is a practical data specification: product scope, site, market context where relevant, period, inclusion dates, source systems, required sections and responsible reviewers. It is an operating definition for this implementation, not a new regulatory document category.
Decide how the period is applied. Manufacturing start, completion, release and event-closure dates can place the same batch in different extracts. The approved review procedure determines the basis, and the data process should preserve it explicitly.
Address batches that cross the period boundary, rejected batches, reprocessed work where applicable and events opened before the period but still relevant. Do not assume that a closed-record filter captures everything the review needs. Define how linked evidence outside the main date window is included and explained.
Scroll horizontally to see all columns.
| Scope field | Decision it prevents from becoming implicit |
|---|---|
| Product identifiers | Which strengths, forms and presentations are included |
| Site and process route | Which manufacturing populations are comparable |
| Period basis | Which event date determines inclusion |
| Status handling | How incomplete, rejected or otherwise exceptional records appear |
| Source ownership | Who verifies each extract and definition |
| Cut-off and version | Which data snapshot supports the reviewed report |
Worked example of 120 versus 118 batches
Consider an illustrative review in which ERP shows 120 relevant batches and the quality-system extract shows 118. The team compares stable batch identifiers rather than names or row counts. Two identifiers appear only in ERP.
Investigation of the extract reveals that one batch has an open quality event and was excluded by a “closed records only” filter. The other batch uses a legacy product code not included in the mapping. Both belong in the defined population under the assumed review procedure, so the extraction and mapping need correction.
Suppose six batches have a specified event of interest. Using 118 as the denominator gives approximately 5.08 percent; using the reconciled 120 gives 5.00 percent. The numerical difference is small, but the missing open event may be much more important than the percentage change. Reconciliation protects meaning as well as arithmetic.
The corrected dataset should retain the explanation for both discrepancies and the revised extraction version. The reviewer can then see that all 120 batches are accounted for and that the open event remains unresolved at the report cut-off. It should not be presented as closed merely to make the review complete.
If one unmatched batch had been legitimately outside scope, the correct action would be to record the exclusion and its basis, not force the totals to match. Reconciliation means accounting for differences, not making every system produce the same count regardless of purpose.
Preserve relationships across quality evidence
Link batches to deviations, out-of-specification investigations, changes, complaints and other required evidence using controlled identifiers. A free-text product mention is a weak joining rule, especially when several products share a family name.
Many-to-many relationships need careful handling. One event may affect several batches, and one batch may have several events. Count batches with events separately from total event count. Joining the tables without controlling duplication can inflate batch totals and distort percentages.
Keep event status as of the review cut-off. If an investigation closes later, the approved report should not change silently when a dashboard refreshes. A later supplement or revision should follow the site's process and preserve the earlier conclusion and evidence basis.
Make calculations reproducible
Document each measure's numerator, denominator, units, exclusions and handling of missing data. Store the calculation version with the report dataset. A reviewer should be able to reproduce a selected table without reverse-engineering a spreadsheet formula or vendor dashboard.
For continuous measurements, preserve relevant process and analytical context. Pooling different routes or method versions can make a trend difficult to interpret. The continued process verification guide explains how to define comparable populations and distinguish descriptive patterns from justified conclusions.
Do not fill missing results with zero or the previous value merely to complete a chart. Identify missingness and resolve or assess it through the appropriate process. The report should distinguish unavailable data from a genuine measured value.
Keep the review focused on decisions
Automated assembly can create a large report that repeats source-system tables without interpretation. The quality reviewer needs to understand what the combined evidence suggests, what uncertainty remains and which action is warranted. More pages do not necessarily provide a better review.
Connect observations to the relevant underlying records. If a recurring issue is discussed, show the investigation and action history rather than only a count. The CAPA-effectiveness guide explains why completed actions and effective actions should remain distinct in that discussion.
A generated narrative can help organise draft observations, but qualified reviewers should verify every factual statement, source link and conclusion. Do not allow a summarisation tool to convert “investigation pending” into “no product impact” because the dataset lacks a final assessment.
Control extraction and report changes
Treat changes to mappings, filters and calculations as changes to the evidence process. Assess their impact and test them with known cases. A seemingly minor filter adjustment can remove an entire category of quality event.
Preserve extract timestamps, source versions where available, reconciliation outcomes and approval history. The audit-trail review guide provides a related approach to assessing meaningful changes in regulated records.
Access should reflect responsibilities. Data stewards may correct mappings through the approved process, while quality reviewers approve the interpretation and report. A report-generation service account should not acquire authority to close source investigations or modify approved results.
Pilot with a completed period and known discrepancies
Choose one product and a previously reviewed period. Rebuild the data population using the agreed definitions and compare it with the prior evidence. Investigate differences rather than assuming the historical report or the new extraction is automatically correct.
Seed test cases for a legacy code, an open event, a duplicate relationship and a batch crossing the date boundary. Confirm that the reconciliation detects each condition and that the report represents it appropriately. Validate selected calculations independently.
Measure assembly effort separately from review effort. Reduced copying is a plausible benefit to test; a shorter expert review is not always desirable if the new process reveals issues previously missed. NextEdge Labs can help automate the reconciled dataset and traceable report assembly around the quality team's approved review process.
Summary and next actions
APQR automation should make the evidence population complete, explainable and reproducible before it makes the report faster. Qualified review remains responsible for interpreting that evidence and determining the appropriate follow-up.
- Agree product, period and status rules with the review owner before building extracts.
- Reconcile identifiers across systems and document every inclusion or exclusion difference.
- Test calculations and joins with open events, legacy codes and multiple relationships.
- Pilot one completed review period and retain a versioned dataset behind every reported conclusion.
Scope this automation around your operation
Tell us your current systems, transaction volume and the exception you need to resolve. We can discuss a focused first release, its review controls and how to measure the result.
About this guide
NextEdge Labs develops software, integrations and AI-assisted workflows. This guide presents practical workflow analysis with linked source references. Worked examples are illustrative, not client results.
Apply the sources within their stated market and scope, together with your approved procedures and the decisions of the responsible specialists.
Browse all Pharma & life sciences guides or explore our engineering capabilities.