Skip to content

MOD ANL 006 DQL

Domain specifications / D08-ANL / 5. Detailed Functional Requirements / 5.6 Module Specification: Data Quality, Reconciliation and Lineage Controls

5.6 Module Specification: Data Quality, Reconciliation and Lineage Controls

5.6.1 Module Overview

Module ID: MOD-ANL-006

Purpose:
Give every analytical value a traceable origin, a measured quality and a proven reconciliation to the transactions it summarises.

Business Capabilities: - CAP-ANL-006 Data quality, reconciliation and lineage assurance

Primary Actors: - ACT-ANL-006 Data Steward - ACT-ANL-007 Data Engineer - ACT-ANL-005 Metric Owner

Dependencies: - MOD-ANL-005 - Domain 10 (data governance, stewardship and lineage policy; workflow and notification services); source domains (control totals, corrections)

5.6.2 Functional Area: Lineage; Data Quality Rules and Quarantine; Reconciliation and Stewardship

Functional Area ID: FA-ANL-010

Description:
Capture of lineage across layers and the ability to trace a published metric to its source events.

Scope: - Included: lineage for analytical data within this domain. - Excluded: lineage policy (Domain 10); provenance inside source domain records (SEC-020, source domains); lineage of exchanged messages in the integration fabric (Domain 2).

Functional Area ID: FA-ANL-011

Description:
Execution of quality rules, scoring of data products and quarantine of failing records.

Scope: - Included: rule registry, thresholds, scores, data quality dashboard. - Excluded: validation at data entry in source domains.

Functional Area ID: FA-ANL-012

Description:
Reconciliation of analytical data to source transactions and stewardship queues for analytical exceptions.

Scope: - Included: count and total reconciliation; stewardship items for quarantined analytical records, unmapped codes encountered in ingestion and failed reconciliations. - Excluded: identity duplicate queues (Domain 1), terminology authoring queues (Domain 10), financial and interface reconciliation worklists (Domains 5 and 2); these are reported on, not operated, by this domain.

5.6.3 Detailed Requirements

Requirement FR-ANL-DQL-001: End-to-End Lineage from Source Event to Published Metric

Attribute Description
Requirement ID FR-ANL-DQL-001
Requirement Name End-to-End Lineage from Source Event to Published Metric
Requirement Type Functional
Module Data Quality, Reconciliation and Lineage Controls
Functional Area FA-ANL-010 Lineage
Priority Must
Criticality High
Requirement Status Draft
Source PRS ANA-004 (M); contributes to DAT-003 (M, primary Domain 10); PRS section 13.1; REF-003 section 6.5
Related Business Rule BR-ANL-005
Related Workflow WF-ANL-001

1. Requirement Statement

The system shall maintain data lineage from source event through each transformation to the published metric, recording source system, source event identifier, original payload reference, transformation and mapping versions, ingestion timestamp and correction lineage, and shall let an authorized user trace any published metric value back to its contributing source events.

2. Business Rationale

A number that cannot be traced cannot be verified, corrected or defended. Lineage also shows which reports are affected when a source, mapping or definition changes.

3. Actors and Permissions

Actor Permission Conditions
ACT-ANL-005, 006, 007 Read lineage, including record level Record-level trace of identifiable data requires a stewardship or audit purpose, chosen before the trace starts
Dashboard users Read summary lineage Sources, products, snapshot and definition versions, with no record-level content, in the summary panel of the lineage explorer (UI-ANL-008) opened from any figure or from the status banner
ACT-ANL-015 Pipeline Service Identity Create lineage records Automatic on every run

4. Preconditions - Pipelines emit lineage for every run; raw payload references are retained.

5. Trigger - Any pipeline run or replay; user requests a trace or an impact analysis.

6. Functional Behaviour

  1. The system records, for each transformation run, its inputs, outputs, code version, mapping version, definition version, time and service identity.
  2. The system links every curated value to the conformed records, and every conformed record to its raw record and source event identifier.
  3. The system provides a trace view from a metric value on a dashboard to the data product, snapshot, transformation runs and a sample or full list of source events, subject to authorization. Every dashboard user can open a lineage summary of a figure (its source feeds, data products and snapshot, and definition versions) in the summary panel of UI-ANL-008; users with lineage permission open the full trace from it. Before a record-level trace starts, the user chooses its purpose of use (data stewardship, or audit for auditors), which is recorded with the audit entry.
  4. The system provides impact analysis from a source feed, mapping set or metric definition to the dependent products, metrics, dashboards and extracts.
  5. The system records corrections and replays as lineage activities so that the history of a restated value is visible.
  6. The system refuses to certify a data product whose lineage is incomplete.

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Run metadata Structured record Yes All version fields present Inputs, outputs, versions
Metric value reference Identifier For trace Exists Starting point of trace

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-DQL-001-1 A run that does not emit lineage is treated as failed No untraceable output
PR-DQL-001-2 Lineage records are append-only History cannot be rewritten
PR-DQL-001-3 Record-level trace enforces the same access policy as the underlying data No privacy bypass through lineage

9. Output Requirements

Output Format Recipient Description
Lineage summary Panel All dashboard users Sources, products, snapshot and definition versions of a figure
Lineage trace Interactive view / API Owners, stewards, auditors Metric to source
Impact analysis Report Engineers, owners Dependents of a changed object

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Raw payload outside retention Retention check Trace stops at conformed layer and says so "Raw payload disposed on [date]."
User lacks record-level permission Policy decision Summary lineage only "Record-level trace not authorized."
Lineage gap detected Completeness check Product certification blocked Stewardship item

11. State and Lifecycle Behaviour

Lineage records are immutable and retained at least as long as the data product snapshots they describe.

12. Audit Requirements

Record-level lineage traces are audited as access to patient data. Lineage records themselves act as the audit trail of transformations.

13. Security and Privacy Requirements

Lineage metadata is Internal; record-level lineage inherits the classification of the data.

14. Acceptance Criteria

  • AC-01: Given a sample dashboard metric, when traced, then the trace reaches the source events and shows the transformation and mapping versions applied (ANA-004 and DAT-003 acceptance).
  • AC-02: Given a mapping set change, when impact analysis is run, then all dependent products, metrics and dashboards are listed.
  • AC-03: Given a restated value, when its lineage is viewed, then the replay or correction that produced it is shown.
  • AC-04: Given a pipeline run that emits no lineage, when it completes, then its output is not published.
  • AC-05: Given a dashboard user without lineage permission, when they open the lineage of a figure, then the summary panel shows its source feeds, data products, snapshot and definition versions and no record-level content.

15. Dependencies and Integration

  • Upstream dependencies: FR-ANL-DWH-002, 003, 004; Domain 10 lineage policy.
  • Downstream dependencies: all published metrics; FR-ANL-RDX-001 (extract lineage).
  • Required events or APIs: IF-ANL-004.

16. Open Questions / Assumptions

  • DEC-ANL-003: split of responsibility for DAT-003 between Domain 10 (policy), Domain 2 (exchanged data) and Domain 8 (analytical data).

Requirement FR-ANL-DQL-002: Data Quality Rules, Scoring and Quarantine

Attribute Description
Requirement ID FR-ANL-DQL-002
Requirement Name Data Quality Rules, Scoring and Quarantine
Requirement Type Functional
Module Data Quality, Reconciliation and Lineage Controls
Functional Area FA-ANL-011 Data quality rules and quarantine
Priority Must
Criticality High
Requirement Status Draft
Source PRS section 13.1 (data quality score; quality rules; quarantine); PRS Appendix B "Data quality" dashboard; contributes to DAT-002 (M, primary Domain 10); REF-003 section 6.5
Related Business Rule BR-ANL-008, BR-ANL-011, BR-ANL-013
Related Workflow WF-ANL-003

1. Requirement Statement

The system shall maintain a registry of versioned data quality rules with owner, threshold, remediation target and escalation path, shall execute them on ingestion and on every data product refresh, shall quarantine failing records with actionable error detail, shall compute and publish a data quality score for each data product, and shall provide the data quality dashboard of PRS Appendix B.

2. Business Rationale

Quality problems that are not measured are discovered by users in meetings. Publishing a score with each product, and quarantining rather than coercing bad data, keeps poor data out of decisions.

3. Actors and Permissions

Actor Permission Conditions
ACT-ANL-006 Data Steward Create / Update rules; resolve quarantine Approval by data owner; not self-approved
Data owner Approve rules and thresholds Per data domain
ACT-ANL-002, 001 Read data quality dashboard Aggregates

4. Preconditions - Data owner and steward are assigned for the data domain under Domain 10 policy.

5. Trigger - Ingestion run; product refresh; rule change; scheduled profiling.

6. Functional Behaviour

  1. The system stores each rule with identifier, version, quality dimension, target data, logic, severity, threshold, owner, remediation target and escalation path. Severity uses the Priority scale of glossary 5: Critical, High, Normal, Low.
  2. The system runs record-level rules during conformance and quarantines failing records with the rule identifier and reason.
  3. The system runs product-level rules (completeness, validity, uniqueness, consistency, timeliness) on each refresh and computes a score from weighted rule results.
  4. The system publishes the score and rule results with the product and on the data quality dashboard.
  5. The data quality dashboard shows at least: duplicate identity candidates, unresolved matches, missing identifiers, unmapped terminology, invalid units and quarantined records, using Domain 1 and Domain 10 feeds for the identity and terminology indicators.
  6. The system raises a stewardship item for each threshold breach and applies the suspension rule where configured.

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Rule definition Structured record Yes Owner, threshold, severity present Quality rule
Threshold Numeric Yes Within valid range for the measure Pass / warn / fail boundary
Remediation target Duration Yes Positive Time to resolve

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-DQL-002-1 Rule results are stored per run with rule version Trend and audit of quality
PR-DQL-002-2 Quarantined records are excluded from curated products until released No bad data in metrics
PR-DQL-002-3 Score calculation method is itself versioned Scores comparable over time

9. Output Requirements

Output Format Recipient Description
Data quality result and score Record; displayed with product All consumers Quality status
Quarantine entry Record Stewards Failing record and reason
Data quality dashboard Interactive view Stewards, governance Appendix B indicators
Threshold breach event Event Stewards, owners EVT-ANL-002

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Rule without owner Completeness Rule cannot be activated "Owner required."
Rule execution error Runtime check Result "not evaluated"; treated as warning, never as pass Alert to steward
Released record still fails Re-check Remains quarantined Reason shown

11. State and Lifecycle Behaviour

Rules move Draft, Approved, Active, Retired. Quarantine entries move Open, Resolved (released) or Rejected (permanently excluded with reason).

12. Audit Requirements

Rule changes, threshold changes, releases from quarantine and permanent exclusions are audited with actor, reason and before/after values.

13. Security and Privacy Requirements

Quarantine holds identifiable data and is Sensitive; access is limited to assigned stewards and engineers.

14. Acceptance Criteria

  • AC-01: Given records with invalid codes, units and identifiers, when ingested, then they are quarantined with actionable error detail (DAT-002 acceptance).
  • AC-02: Given a product refresh, when complete, then a data quality score and rule results are published with it.
  • AC-03: Given a score below the configured threshold, when the refresh completes, then a stewardship item is raised and the product shows a warning or is suspended according to configuration.
  • AC-04: Given the data quality dashboard, when opened, then the six Appendix B indicators are present.

15. Dependencies and Integration

16. Open Questions / Assumptions

  • Thresholds and remediation targets are set per data domain by data owners; none is given in the sources.

Requirement FR-ANL-DQL-003: Source Reconciliation and Stewardship Queues

Attribute Description
Requirement ID FR-ANL-DQL-003
Requirement Name Source Reconciliation and Stewardship Queues
Requirement Type Functional
Module Data Quality, Reconciliation and Lineage Controls
Functional Area FA-ANL-012 Reconciliation and stewardship
Priority Must
Criticality High
Requirement Status Draft
Source PRS ANA-001 (M) acceptance; PRS section 13.1 (reconciliation counts, steward queues); contributes to DAT-005 (M, primary Domain 10)
Related Business Rule BR-ANL-007, BR-ANL-012, BR-ANL-013
Related Workflow WF-ANL-003

1. Requirement Statement

The system shall reconcile curated analytical data to source transactions using counts and control totals for the same cutoff, shall record the variance for each reconciled data product, and shall provide stewardship queues in which analytical exceptions (quarantined records, unmapped codes found during ingestion, missing attributes, conflicting values and failed reconciliations) are assigned, resolved and measured.

2. Business Rationale

Reconciliation is the test the PRS sets for dashboards. Stewardship queues turn detected exceptions into accountable work rather than silent defects.

3. Actors and Permissions

Actor Permission Conditions
ACT-ANL-006 Data Steward Read / Update stewardship items Assigned data domain
ACT-ANL-005 Metric Owner Accept a known limitation With reason and expiry
Source domain owner Supply control totals; receive referrals Own domain
Any dashboard or report user Report a suspect value From the figure; creates a stewardship item

4. Preconditions - Source domains supply control totals or reconcilable counts for agreed cutoffs through their feeds or a reconciliation interface.

5. Trigger - Product refresh; scheduled reconciliation; arrival of source control totals.

6. Functional Behaviour

  1. The system compares, per data product and period, analytical counts and totals with the source control totals for the same cutoff.
  2. The system records the variance, the tolerance in force and the result (pass, warning, fail).
  3. The system creates a stewardship item for each failed reconciliation and each exception class, with affected products and metrics.
  4. The system assigns items by data domain, tracks ageing and escalates items beyond their target.
  5. The system refers exceptions caused by source data to the source domain's own stewardship or reconciliation process and records the referral.
  6. The system reports stewardship measures: open items, ageing, time to resolve, resolution reasons and recurrence.
  7. Every figure on a dashboard, report or scorecard offers the action "Report a problem with this figure". The user describes the problem in a short text; the system creates a stewardship item of the type User report on the stewardship workbench (UI-ANL-009) with the figure, its scope and period, the snapshot, the definition version and the reporter, assigns it to the steward of the data domain, and tells the reporter when it is resolved or accepted (WF-ANL-003).

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Source control total Count / amount with cutoff Yes Cutoff matches product cutoff Source truth for comparison
Tolerance Numeric Yes Approved by owner Acceptable variance
Resolution reason Coded value + text On resolve From configured list Why resolved

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-DQL-003-1 Comparison uses identical cutoff and scope on both sides Like-for-like
PR-DQL-003-2 Variance above tolerance fails reconciliation Triggers BR-ANL-013 where configured
PR-DQL-003-3 An item cannot be closed without a resolution reason and a passing re-check or a formal acceptance No silent closure

9. Output Requirements

Output Format Recipient Description
Reconciliation result Record; shown with product Consumers, owners Variance and status
Stewardship queue Worklist Stewards Assigned exceptions
Stewardship measures Report Data Governance Council Volumes, ageing, resolution
Variance event Event Owners, source domain EVT-ANL-004

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Control total not received Completeness Status "not reconciled" Shown on product; reminder to source owner
Cutoff mismatch Cutoff check Comparison not performed "Cutoffs differ."
Item past target Ageing Escalated Notification to data owner

11. State and Lifecycle Behaviour

Implements the Stewardship Item states of section 4.3 (Open, Assigned, Resolved, Accepted, Escalated).

12. Audit Requirements

Assignment, resolution, acceptance, referral and escalation are audited with actor, time and reason.

13. Security and Privacy Requirements

Stewardship items may contain identifiable data and are Sensitive; access is by assigned data domain.

14. Acceptance Criteria

  • AC-01: Given source control totals and a refreshed product, when reconciliation runs, then variance and status are recorded and displayed.
  • AC-02: Given a deliberately dropped set of records, when reconciliation runs, then it fails, a stewardship item is created and the suspension rule applies.
  • AC-03: Given stewardship items, when reported, then they are assigned, resolved and measured (DAT-005 acceptance).
  • AC-04: Given an exception traced to a source error, when resolved, then a referral to the source domain exists and no analytical value was edited in place.

15. Dependencies and Integration

16. Open Questions / Assumptions

  • ASM-ANL-005: each source domain can supply control totals for agreed cutoffs. If not, reconciliation falls back to sampled record comparison against records requested from the source domain through its governed API; no scheduled extract of a HIS domain is set up for it (DEC-ANL-004).

← 5.5 Module Specification: Data Warehouse / Lakehouse and Ingestion Pipelines | Contents | Identifier index | 5.7 Module Specification: Semantic Layer, Metric Definitions and Governed Datasets →