Skip to content

MOD ANL 007 SEM

Domain specifications / D08-ANL / 5. Detailed Functional Requirements / 5.7 Module Specification: Semantic Layer, Metric Definitions and Governed Datasets

5.7 Module Specification: Semantic Layer, Metric Definitions and Governed Datasets

5.7.1 Module Overview

Module ID: MOD-ANL-007

Purpose:
Hold the hospital's metric definitions as effective-dated, owned, versioned objects, and expose curated data to consumers through governed semantic models with purpose-based access.

Business Capabilities: - CAP-ANL-007 Governed metric definitions and semantic access

Primary Actors: - ACT-ANL-005 Metric Owner - ACT-ANL-008 BI Developer / Report Author - Data Governance Council reviewers

Dependencies: - MOD-ANL-005, MOD-ANL-006 - Domain 10 (authorization policy decision, terminology, master data, audit)

5.7.2 Functional Area: Metric Definition Registry; Semantic Models and Governed Dataset Access

Functional Area ID: FA-ANL-013

Description:
The registry of metric definitions and their versions, approvals and effective periods.

Scope: - Included: definition authoring, review, approval, effective dating, supersession, retirement, reproducibility of historical values. - Excluded: clinical or financial policy decisions that a definition encodes; these belong to the accountable governance body.

Functional Area ID: FA-ANL-014

Description:
Semantic models over curated products and controlled access for dashboards, reports, ad hoc analysis and approved programmatic consumers.

Scope: - Included: semantic models, certified datasets, row- and column-level policy enforcement, export control. - Excluded: the policy decision service itself (Domain 10).

5.7.3 Detailed Requirements

Requirement FR-ANL-SEM-001: Effective-Dated Metric Definition Registry and Reproducibility

Attribute Description
Requirement ID FR-ANL-SEM-001
Requirement Name Effective-Dated Metric Definition Registry and Reproducibility
Requirement Type Functional
Module Semantic Layer, Metric Definitions and Governed Datasets
Functional Area FA-ANL-013 Metric definition registry
Priority Must
Criticality Critical
Requirement Status Draft
Source PRS ANA-002 (M); PRS section 13.1 ("versioned definitions"; Gold controls: metric owner, fixed grain, cutoff time, terminology version); contributes to CFG-002 (primary Domain 10); REF-003 section 13.2
Related Business Rule BR-ANL-004, BR-ANL-005, BR-ANL-009, BR-ANL-010
Related Workflow WF-ANL-002

1. Requirement Statement

The system shall maintain a metric definition registry in which each metric has an accountable owner and one or more versions, each version stating purpose, grain, numerator, denominator, exclusions, time basis, facility scope, source data products, terminology versions, refresh target and effective-from and effective-to dates, and shall compute and label every published value with the version in force, so that any historical value can be reproduced.

2. Business Rationale

Without governed definitions the same indicator is reported differently by different teams and past figures cannot be explained. Effective dating lets definitions evolve without rewriting history.

3. Actors and Permissions

Actor Permission Conditions
ACT-ANL-005 Metric Owner Create / Update drafts; submit; retire Own metrics
Data Governance Council reviewer Approve Not the author; by the route set for the measure type (CFG-ANL-019): clinical quality indicators also need clinical governance approval (ACT-CLI-009), financial measures finance approval
ACT-ANL-003 Clinical Quality and Safety Analyst; Domain 9 Quality / Outcomes Analyst (ACT-EBP-012) Create / Update drafts of the measure type Pathway measure and of cohort definitions; submit For a pathway; the record is held by Domain 9
Data steward (ACT-ANL-006; ACT-EBP-006) and clinical content owner of the pathway (ACT-EBP-002) Approve (steward) and give clinical sign-off (content owner) for pathway measures and cohort definitions Neither is the author (FR-EBP-OUT-001 part 5); no Data Governance Council approval is added to this route
All users Read definitions Definitions are visible to every consumer of the metric

4. Preconditions - Owner assigned. Referenced data products exist.

5. Trigger - New metric; change request; error correction; retirement.

6. Functional Behaviour

  1. The system stores definitions as structured, versioned records and rejects a version that lacks any mandatory attribute.
  2. The system enforces the lifecycle Draft, In Review, Approved, Active, Superseded, Retired and the separation of author and approver.
  3. The system prevents overlapping effective periods and guarantees one Active version per metric for any date.
  4. The system evaluates a metric for a period using the version effective for that period, unless an approved restatement applies.
  5. The system stores, with every published value and snapshot, the definition version identifier.
  6. The system supports comparison of two versions on the same test period before approval.
  7. The system publishes a definition change notice to owners of dependent dashboards, reports and extracts, using lineage impact analysis.
  8. Every definition has a measure type from the configured list (CFG-ANL-019), and the measure type sets the approval route (DEC-ANL-006): Clinical quality indicator (council reviewer and clinical governance approver), Financial (council reviewer and finance), Operational and Management (council reviewer), Pathway measure (data steward approval and clinical sign-off by the clinical content owner, never the author).
  9. The measure type Pathway measure adds the fields of DE-ANL-014: pathway, pathway measure type, cohort, unit counted (Per pathway instance or Per patient), measurement period and observation window, mapping version and linked expected outcomes. Cohort definitions are a second record type of the registry, with population, inclusion and exclusion logic, mapping version, care setting and facility scope. Pathway measure and cohort definitions are mastered in Domain 9 (DEC-EBP-004): the registry writes each draft and state change to the Domain 9 record (IF-EBP-011) and keeps the version for computation and lineage. A pathway definition that Domain 9 publishes is Active here. Clinical quality indicator definitions are mastered in this domain.

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Metric identifier and name Identifier, text Yes Unique Stable key
Owner Role reference Yes Exists Accountable owner
Numerator, denominator, exclusions Structured logic Yes (denominator where a ratio) References valid products and value sets Calculation
Grain, time basis, facility scope Enumerations Yes Valid values Semantics
Terminology versions References Where codes used Published by Domain 10 Code sets
Effective-from / effective-to Dates Yes (from) No overlap Validity period
Change reason Text Yes for version > 1 Not empty Why changed

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-SEM-001-1 Version selection by period effective date Correct historical definition
PR-SEM-001-2 Retroactive effective-from requires explicit restatement approval No silent rewriting of history
PR-SEM-001-3 Approved versions are immutable Any change is a new version

9. Output Requirements

Output Format Recipient Description
Metric definition (versioned) Registry record / API All consumers Full definition
Change notice Notification Dependent owners What changes and when
Publication event Event Dashboards, pipelines EVT-ANL-003

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Overlapping effective period Date check Rejected "Effective period overlaps version N."
Author approves own version Separation of duties Rejected "Approval by a different user required."
Referenced product not certified Reference check Approval blocked "Source product not certified."
Pathway measure without cohort, unit counted, observation window or mapping version Mandatory field Submission blocked Name the missing element
Write to the Domain 9 record fails Integration check Draft kept; state not changed "Not saved to Domain 9. Try again."

11. State and Lifecycle Behaviour

Implements the Metric Definition Version states and diagram of section 4.3: Draft, In Review, Approved, Active, Superseded, Retired, for every measure type and for cohort definitions. The Domain 9 states of a pathway measure or cohort definition map to these; Published is shown as Active.

12. Audit Requirements

Creation, edit, submission, approval, activation, supersession and retirement are audited with actor, time, reason and full before/after definition.

13. Security and Privacy Requirements

Definitions are Internal. Edit and approve permissions are restricted to named owners and reviewers.

14. Acceptance Criteria

  • AC-01: Given a metric with versions 1 and 2, when a historical report for a period under version 1 is reproduced, then it uses version 1 and matches the originally published values (ANA-002 acceptance).
  • AC-02: Given a draft version, when its author attempts approval, then the approval is rejected.
  • AC-03: Given any published value, when inspected, then its definition version identifier is available.
  • AC-04: Given a new version with an effective period overlapping an existing one, when submitted, then it is rejected.
  • AC-05: Given a draft of the measure type Pathway measure, when it is saved, then the Domain 9 record holds the same draft, and it becomes Approved only when the data steward has approved and the clinical content owner has signed off, neither being the author.

15. Dependencies and Integration

16. Open Questions / Assumptions

  • Approval routing by measure type is decided (DEC-ANL-006) and set in CFG-ANL-019; the pathway measure route follows Domain 9 (OV-12).

Requirement FR-ANL-SEM-002: Semantic Models and Governed Dataset Access

Attribute Description
Requirement ID FR-ANL-SEM-002
Requirement Name Semantic Models and Governed Dataset Access
Requirement Type Functional
Module Semantic Layer, Metric Definitions and Governed Datasets
Functional Area FA-ANL-014 Semantic models and governed dataset access
Priority Must (PRS sections 8.1 and 13.1 carry no requirement ID; priority follows ANA-002 and SEC-003, both M)
Criticality High
Requirement Status Draft
Source PRS section 8.1 (Analytics plane: semantic layer, dashboards, governed AI access); PRS section 13.1 (access controls; access policy; separation of duties); contributes to SEC-003, SEC-004, SEC-006, SEC-013, SEC-016, SEC-019 (primary Domain 10), CFG-003 (primary Domain 10)
Related Business Rule BR-ANL-001, BR-ANL-002, BR-ANL-011
Related Workflow WF-ANL-002

1. Requirement Statement

The system shall expose curated data products to dashboards, reports, ad hoc analysis and approved programmatic consumers only through governed semantic models that apply certified metric definitions, and shall enforce access by role, facility, purpose and data sensitivity at the data-access boundary, including row-level and column-level restrictions and control of exports.

2. Business Rationale

A semantic layer makes every consumer use the same definitions. Enforcing access at the data boundary, rather than in each report, prevents leakage through new or ad hoc reports.

3. Actors and Permissions

Actor Permission Conditions
ACT-ANL-008 BI Developer Create / Update semantic models and reports Certified products and Active metrics only; publication approved
ACT-ANL-003, 004 analysts Read; ad hoc query on governed datasets Within policy scope; resource quotas apply
Programmatic consumers (for example Domain 9) Read via API Scoped service identity and purpose
ACT-ANL-014 Platform Administrator Assign access per approved policy Cannot approve own access

4. Preconditions - Access policies exist in Domain 10. Products are Certified.

5. Trigger - Query from a dashboard, report, analyst or API consumer; export request.

6. Functional Behaviour

  1. The system resolves every query against the semantic model, so that metric logic is taken from the registry and not re-implemented by the consumer.
  2. The system requests a policy decision using user or service identity, role, facility, purpose and data sensitivity, and applies row-level and column-level restrictions accordingly.
  3. The system carries sensitivity labels from source data and withholds or masks labelled categories unless the policy decision allows them.
  4. The system applies resource quotas to ad hoc queries so that one user cannot exhaust analytical capacity.
  5. The system records exports of patient-level data with requester, purpose, scope and row count, and applies the configured export limits.
  6. The system exposes a catalogue of available semantic models and datasets with definitions, owners, quality status and extension points for new reporting needs. This is the same catalogue as the data product catalogue (UI-ANL-007), with two record types, data products and semantic models, chosen at the top; there is no separate semantic model catalogue.

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Query Semantic query Yes References published model objects Request
Identity and purpose Token / claims Yes Authenticated; purpose valid For policy decision
Export format Enumeration For export Open documented format Output type

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-SEM-002-1 No query bypasses the semantic model to reach curated storage in production reporting Consistent definitions and policy
PR-SEM-002-2 Policy is enforced server-side for every query and export No reliance on front-end hiding
PR-SEM-002-3 Small-cell suppression is applied to aggregate outputs where the product policy requires it Reduced re-identification risk

9. Output Requirements

Output Format Recipient Description
Query result Tabular / chart data Authorized consumer Policy-filtered result with status metadata
Export file Open documented format Authorized user With status header and classification marking
Access log entry Audit event Domain 10 audit service Who accessed what, for what purpose

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Policy denies Policy decision No data returned "Not authorized for this data or purpose."
Policy service unavailable Dependency check Fail closed; no patient-level data "Authorization unavailable; try later."
Query exceeds quota Resource check Query cancelled "Query exceeded resource limit."
Export above limit Export rule Blocked or routed for approval "Export requires approval."

11. State and Lifecycle Behaviour

Semantic model versions move Draft, Published, Deprecated, Retired with a deprecation window for consumers (CFG-004 compatibility principle).

12. Audit Requirements

Queries and exports that return patient-level data are audited (viewing, exporting, printing per SEC-006 and SEC-019). Access assignments and policy changes are audited. Privileged access to the analytical stores is audited.

13. Security and Privacy Requirements

Least privilege with periodic access recertification (SEC-004). Purpose-of-use is required for patient-level access. Break-the-Glass does not apply to analytical access; emergency clinical access is served by the source clinical systems.

14. Acceptance Criteria

  • AC-01: Given two users with different facility scopes, when they run the same report, then each receives only their authorized rows.
  • AC-02: Given a column labelled as a restricted sensitive category, when a user without the required permission queries it, then it is withheld or masked.
  • AC-03: Given a patient-level export, when completed, then an audit event with requester, purpose, scope and row count exists.
  • AC-04: Given the policy decision service is unavailable, when a patient-level query is made, then no data is returned.

15. Dependencies and Integration

16. Open Questions / Assumptions

  • ASM-ANL-006: Domain 10 policy decision service supports analytical purposes of use and attribute sets (facility, sensitivity label).

← 5.6 Module Specification: Data Quality, Reconciliation and Lineage Controls | Contents | Identifier index | 5.8 Module Specification: Research and Quality-Improvement Extracts and De-identification →