MOD ESS 012 CFG
Domain specifications / D10-ESS / 5. Detailed Functional Requirements / 5.12 Module Specification: Configuration and Shared Reference-Data Lifecycle
5.12 Module Specification: Configuration and Shared Reference-Data Lifecycle¶
5.12.1 Module Overview¶
Module ID: MOD-ESS-012 (module code CFG)
Purpose: Provide the lifecycle through which configuration and shared reference data in every domain is versioned, effective-dated, validated, tested, approved, promoted across environments and rolled back, and maintain the extension-point register, the API catalogue and the architecture decision register.
Business Capabilities: - CAP-ESS-013 Configuration and reference-data lifecycle
Primary Actors: - Configuration administrator (ACT-ESS-008), change approver (ACT-ESS-009), enterprise architects, calling domain service (ACT-ESS-013)
Dependencies: - MOD-ESS-008 (approval tasks), MOD-ESS-006. - Domain 2 for environments, release pipelines, artifact signing and deployment (CFG-006, SDLC-005, SDLC-007).
5.12.2 Functional Area: Configuration Lifecycle¶
Functional Area ID: FA-ESS-030
Description: Versioning, effective dating, validation, approval, promotion and rollback of configuration items.
Scope: - Included: the lifecycle mechanism, item type registry, scope model (enterprise, facility, department). - Excluded: the content and validation logic of each item type (owning domain); software release (Domain 2).
5.12.3 Functional Area: Extension Points¶
Functional Area ID: FA-ESS-031
Description: Register and governance of extension contracts and feature flags.
Scope: - Included: extension-point register, feature-flag register with owner and audit. - Excluded: implementation of an extension, which belongs to the domain that hosts it.
5.12.4 Functional Area: API Catalogue and Decision Register¶
Functional Area ID: FA-ESS-032
Description: Catalogue of APIs and events with compatibility and deprecation status, and the architecture decision record register.
Scope: - Included: catalogue entries, lifecycle status, deprecation policy, ADR register. - Excluded: gateway routing and runtime enforcement (Domain 2); authorship of each contract (owning domain).
5.12.5 Detailed Requirements¶
Requirement FR-ESS-CFG-001: Governed Configuration Lifecycle¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ESS-CFG-001 |
| Requirement Name | Governed configuration lifecycle |
| Requirement Type | Functional |
| Module | Configuration and Shared Reference-Data Lifecycle |
| Functional Area | FA-ESS-030 Configuration lifecycle |
| Priority | Must |
| Criticality | High |
| Requirement Status | Draft |
| Source | CFG-001; CFG-002; PRS section 15.1 (emergency clinical fixes); Architecture 14.1; contributes to CFG-008 (primary Domain 9) |
| Related Business Rule | BR-ESS-028, BR-ESS-029, BR-ESS-030 |
| Related Workflow | WF-ESS-006 |
1. Requirement Statement
The system shall support governed configuration of workflows, forms, order sets, terminology, roles, queues, alerts, tariffs and facility structures without source-code forks where practical, such that every configuration item is versioned, effective-dated, testable and reversible, an approved change can be promoted across environments with audit, and rollback restores prior behaviour and preserves audit history.
2. Business Rationale
CFG-001 and CFG-002 define these properties and their acceptance. Uncontrolled customization is a named programme risk (PRS 19.1); a single lifecycle keeps every domain's configuration under the same control.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Configuration administrator (of the owning domain) | Create / Update drafts; submit | For item types the administrator is authorized for |
| Change approver | Approve promotion, activation and rollback | Not the author; clinical content requires the designated clinical authority |
| Calling domain service | Read active and as-of configuration; register item types | Registered service identity |
| Release pipeline (Domain 2) | Promote packages between environments | On recorded approval only |
4. Preconditions - The item type is registered with owning domain, schema, validation hook, test requirement, scope levels and approval authority.
5. Trigger - Configuration change request; scheduled effective time; rollback request.
6. Functional Behaviour
- The system registers configuration item types supplied by every domain; the types named in CFG-001 (workflows, forms, order sets, terminology, roles, queues, alerts, tariffs, facility structures) are the minimum set, each owned by its domain.
- The system stores each item as immutable versions with author, change reason, scope and effective period.
- The system validates a draft against the type's schema and invokes the owning domain's validation hook for semantic checks.
- The system requires attached test evidence for item types that declare a test requirement before the version can be approved.
- The system routes the version for approval to the authority registered for the item type and scope.
- The system packages approved versions with a content hash and records each promotion between environments; a package is accepted in a target environment only if its hash matches the approved version.
- The system activates a version at its effective time and supersedes the previous one for the same item and scope.
- The system resolves configuration by scope with defined precedence: department over facility over enterprise, where the item type permits overrides.
- The system returns the configuration effective at a stated past time, so that historical behaviour can be reconstructed.
- The system performs rollback by reactivating the prior approved version after approval, marks the withdrawn version Rolled Back and retains both histories.
- The system supports the expedited approval path for emergency clinical fixes and creates a retrospective review task. The request is made by a change approver who is the designated clinical authority for the item type, with a reason; a second person approves in place (CUX-64), and the sign step applies. The version is activated in production without a release and carries the flag "Emergency change · review due [date]" until the retrospective review task closes; the review is due within 5 working days. Emergency software fixes are approved on the release console of Domain 2 with the same flag and the same review task type (OV-114).
- The system emits a configuration-changed event (EVT-ESS-011) on activation and rollback.
- The system exports all configuration in a documented machine-readable format (PRS 15.2, ACC-008).
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Item type and item key | Codes | Yes | Registered type | What is configured |
| Scope | Reference | Yes | Level permitted for type; entity active | Enterprise, facility or department |
| Content | Structured | Yes | Type schema and validation hook | The configuration |
| Effective from / to | Date-time | From yes | Not before approval; no overlap for same item and scope | Validity |
| Change reason and impact | Text | Yes | Non-empty | Justification |
| Test evidence | Reference | Conditional | Required by type | Test result |
| Approval | Decision record | Yes | Approver authorized; not author | Approval |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-CFG-001-1 | Activation of a version for an item and scope | Previous active version Superseded |
| PR-CFG-001-2 | Package hash mismatch at promotion | Promotion refused |
| PR-CFG-001-3 | Referenced item missing in target environment | Promotion refused with dependency list |
| PR-CFG-001-4 | Direct edit attempted in production outside the emergency path | Refused |
| PR-CFG-001-5 | Rollback approved | Prior version reactivated; event emitted |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Active configuration | API response | Owning domain services | Resolved by scope and time |
| Configuration-changed event | Event (EVT-ESS-011) | Owning domain; MOD-ESS-002 for policy items | Activation or rollback |
| Change history | Report (REP-ESS-013) | Change approvers, auditors | Versions, approvals, promotions, rollbacks |
| Configuration export | Documented machine-readable file | Exit testing | Full configuration with history |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Schema or semantic validation fails | Schema and hook | Draft cannot be submitted | Field-level errors. |
| Approver is author | Separation of duties | Block | "A different approver is required." |
| Overlapping effective periods | Temporal check | Reject | "Another version is effective in this period." |
| Configuration service unavailable to a consumer | Consumer timeout | Consumer continues with its last retrieved active version and reports the condition | Operational alert. |
11. State and Lifecycle Behaviour
Draft, In Review, Approved, Active, Superseded, Rolled Back, Retired (section 4.3).
12. Audit Requirements
- Audited events: draft creation, change, submission, approval, rejection, promotion per environment, activation, rollback, emergency path use, export.
- Before-and-after content differences are retained with each version.
13. Security and Privacy Requirements
- Configuration may alter clinical behaviour and access; authoring and approval are separated and administration requires MFA.
- Secrets are never stored as configuration (SEC-009).
- Non-production environments receive configuration but not production patient data.
14. Acceptance Criteria
- AC-01: Given an approved configuration change, when it is promoted from test to production, then the promotion is recorded with approver, package hash and time (CFG-001 acceptance).
- AC-02: Given an active version, when rollback is approved, then the prior behaviour is restored and the audit history of both versions is intact (CFG-002 acceptance).
- AC-03: Given a facility-scoped override of an enterprise item, when resolved for that facility and for another, then each receives the correct version.
- AC-04: Given a past date, when configuration is resolved as of that date, then the version active then is returned.
- AC-05: Given a package whose content differs from the approved version, when promotion is attempted, then it is refused.
- AC-06: Given all configuration, when exported, then an independent consumer can parse it using the published format (ACC-008 support).
15. Dependencies and Integration
- Upstream dependencies: owning domains (item types, validation hooks); Domain 2 environments and pipelines.
- Downstream dependencies: all domains.
- Required events or APIs: IF-ESS-012; EVT-ESS-011.
16. Open Questions / Assumptions
- Whether each domain stores its configuration in this service or keeps it locally and uses this service as the lifecycle controller is a design decision (DEC-ESS-016). The requirement holds either way.
- Pathway and guideline configuration (CFG-008) is owned by Domain 9 and uses this lifecycle.
Requirement FR-ESS-CFG-002: Governed Extension Points and Feature Flags¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ESS-CFG-002 |
| Requirement Name | Governed extension points and feature flags |
| Requirement Type | Functional |
| Module | Configuration and Shared Reference-Data Lifecycle |
| Functional Area | FA-ESS-031 Extension points |
| Priority | Should |
| Criticality | Medium |
| Requirement Status | Draft |
| Source | CFG-003; Architecture 14.2; contributes to SPEC-004 (primary Domain 4) |
| Related Business Rule | BR-ESS-028, BR-ESS-031 |
| Related Workflow | WF-ESS-006 |
1. Requirement Statement
The system shall maintain a register of extension points for new specialties, facilities, devices, partners and reporting needs, each with a documented contract, owner and compatibility commitment, and shall manage feature flags as governed configuration with an owner and audit, such that an extension does not alter unrelated core domain behaviour.
2. Business Rationale
CFG-003 requires extension points whose use does not alter unrelated core behaviour. Architecture 14.2 forbids hidden production behaviour switches without owner and audit.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Enterprise architect | Create / Update extension-point entries | Approval by Enterprise Architecture Board |
| Domain technical lead | Register an extension using an extension point | Security review recorded for plug-in or module contracts |
| Configuration administrator | Create / Update feature flags | Through configuration lifecycle |
4. Preconditions - The hosting domain has published the extension contract in the API catalogue.
5. Trigger - New specialty, facility, device type, partner or reporting need; controlled rollout of a feature.
6. Functional Behaviour
- The system records each extension point with type (published API, event subscription, configurable form or template, conformance package, plug-in or module contract), hosting domain, contract reference, owner and compatibility commitment.
- The system records each registered extension with the extension point used, owner, support owner, scope and review evidence.
- The system refuses registration of a plug-in or module extension without recorded sandboxing, compatibility, security review and support ownership (Architecture 14.2).
- The system manages feature flags as configuration items with owner, scope, purpose, planned removal date and full audit of every change.
- The system reports feature flags past their planned removal date and extensions without an active support owner.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Extension point type and contract reference | Code, reference | Yes | Contract in API catalogue | What can be extended |
| Owner / support owner | Account references | Yes | Active | Accountable people |
| Review evidence | References | Conditional | Required for plug-in or module type | Security and compatibility review |
| Feature flag definition | Structured | For flags | Owner, purpose and removal date present | Controlled rollout switch |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-CFG-002-1 | Plug-in or module extension without review evidence | Registration refused |
| PR-CFG-002-2 | Feature flag changed | Audit event with actor, scope, before and after |
| PR-CFG-002-3 | Flag past planned removal date | Listed on exception report |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Extension-point register | API resource / report; view of the governance registers (UI-ESS-012) | Architects, domain teams | Available extension contracts, registered extensions and their owners |
| Feature-flag register | Report | Change approvers | Flags, owners, state |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Contract reference not in catalogue | Catalogue check | Reject | "Register the contract first." |
| Owner inactive | Reference check | Reject | "An active owner is required." |
11. State and Lifecycle Behaviour
Extension points and extensions are Proposed, Approved, Deprecated or Retired. Feature flags follow the configuration version lifecycle.
12. Audit Requirements
- Audited events: extension-point and extension registration, approval, deprecation; every feature-flag change.
13. Security and Privacy Requirements
- Extensions act under their own service identity with scoped permissions (FR-ESS-IAM-003).
14. Acceptance Criteria
- AC-01: Given a new specialty template deployed through a registered extension point, when regression tests of unrelated core behaviour run, then they pass (CFG-003 acceptance; SPEC-004 support).
- AC-02: Given a feature flag, when its state is changed in production, then an audit event records actor, scope and before-and-after state.
- AC-03: Given a plug-in extension without security review evidence, when registration is attempted, then it is refused.
15. Dependencies and Integration
- Upstream dependencies: FR-ESS-CFG-001, FR-ESS-CFG-003.
- Downstream dependencies: all domains; Domain 2 partner onboarding.
- Required events or APIs: IF-ESS-012, IF-ESS-014.
16. Open Questions / Assumptions
- Whether plug-in or module contracts are permitted at all is for the Enterprise Architecture Board (DEC-ESS-017).
Requirement FR-ESS-CFG-003: API Catalogue, Compatibility Policy and Architecture Decision Register¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ESS-CFG-003 |
| Requirement Name | API catalogue, compatibility policy and architecture decision register |
| Requirement Type | Functional |
| Module | Configuration and Shared Reference-Data Lifecycle |
| Functional Area | FA-ESS-032 API catalogue and decision register |
| Priority | Must |
| Criticality | Medium |
| Requirement Status | Draft |
| Source | CFG-004; CFG-005; NFR-009; PRS section 18 (Enterprise architecture board) |
| Related Business Rule | BR-ESS-028 |
| Related Workflow | WF-ESS-006 |
1. Requirement Statement
The system shall maintain a documented catalogue of APIs and event contracts in which consumers can discover schemas, scopes, versions and lifecycle status, shall record and apply a compatibility and deprecation policy, and shall maintain the enterprise's single architecture decision record register in which each material technology, data and integration decision has options, rationale, risks and a review date.
2. Business Rationale
CFG-004 and CFG-005 define these and their acceptance. The catalogue is also the reference used by authorization scopes, workflow step validation and lineage conformance checks in this domain.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Domain technical lead | Create / Update catalogue entries for own contracts | Owner of the contract |
| Any domain lead or architect | Create / Update decision records (draft), including Domain 2 technology and dependency decisions | Approval by the Enterprise Architecture Board |
| Enterprise Architecture Board | Approve compatibility policy, deprecations and ADRs | Not the author of the record |
| All engineering and integration users, registered partners where permitted | Read | Internal; partner view limited to contracts offered to that partner |
| Release pipeline (Domain 2) | Create / Update entries from contract artifacts | Service identity |
4. Preconditions - The contract has a named owner.
5. Trigger - New or changed API or event contract; deprecation proposal; material architecture decision.
6. Functional Behaviour
- The system stores for each API and event contract: owner, purpose, schema reference, version, authorization scopes, data classification, lifecycle status (proposed, active, deprecated, retired), consumers and deprecation date where set.
- The system records the compatibility and deprecation policy, including the minimum deprecation notice period approved by the Enterprise Architecture Board: 12 months for contracts used by external parties and 6 months for internal contracts, with the old version running in parallel through the notice (CFG-ESS-023). The system refuses a retirement date earlier than the deprecation date plus the notice period unless an approved security or patient-safety exception is recorded.
- The system notifies registered consumers when a contract they use is deprecated and tracks their migration.
- The system refuses retirement of a contract with registered active consumers unless an approved exception exists.
- The system accepts entries generated by the release pipeline so that the catalogue reflects deployed contracts.
- The system stores ADRs with identifier, title, context, options, decision, rationale, risks, status, decision date, approver and review date, and schedules a review task at the review date.
- The system links ADRs to the catalogue entries, extension points and dependencies they affect.
- The ADR register owned by Domain 10 is the only register of architecture decision records. Domain 2 writes its technology and dependency decisions into it and keeps the supported-version policy (CFG-007).
- The system holds ADRs and the governance decisions of FR-ESS-DGV-001 in one register layout, with a record type column (architecture decision, governance decision), so that both are searched, linked and reviewed the same way. Each record type keeps its own approver.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Contract identifier and version | String | Yes | Unique pair | Contract identity |
| Owner | Reference | Yes | Active | Accountable team or person |
| Schema reference | Reference | Yes | Resolvable | Machine-readable schema |
| Scopes and classification | Codes | Yes | Registered scopes; classification value set | Access and sensitivity |
| Lifecycle status and dates | Code, dates | Yes | Valid transitions | Lifecycle |
| ADR fields | Structured | For ADRs | Options, rationale, risks and review date present | Decision record |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-CFG-003-1 | Deprecation date earlier than the policy's minimum notice | Rejected unless exception approved |
| PR-CFG-003-2 | Retirement with active consumers | Refused |
| PR-CFG-003-3 | ADR review date reached | Review task created |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| API catalogue | Searchable catalogue / API | Engineers, integrators, partners | Schemas, scopes, versions, lifecycle |
| Deprecation notices | Notification | Registered consumers | Planned change |
| ADR register | Report; view of the governance registers (UI-ESS-012) | Enterprise Architecture Board, clinical governance, auditors | Decisions by record type, with state and review status |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Schema reference unresolvable | Reference check | Reject | "Schema could not be found." |
| ADR missing options or review date | Mandatory fields | Reject | "Options, rationale, risks and review date are required." |
11. State and Lifecycle Behaviour
Contracts: Proposed, Active, Deprecated, Retired. ADRs: Proposed, Accepted, Rejected, Superseded, Deprecated. A Superseded record names the record that replaces it; a Deprecated record is no longer followed and has no replacement.
12. Audit Requirements
- Audited events: catalogue entry changes, deprecation and retirement approvals, ADR creation, status change and review.
13. Security and Privacy Requirements
- The catalogue describes contracts and scopes but contains no credentials or endpoint secrets. The partner view shows only contracts offered to that partner.
14. Acceptance Criteria
- AC-01: Given a consumer, when the catalogue is searched for a contract, then schema, scopes, versions and lifecycle status are shown (CFG-004 acceptance).
- AC-02: Given an active contract with registered consumers, when it is deprecated, then each consumer is notified with the deprecation date.
- AC-03: Given the ADR register, when an entry is opened, then options, rationale, risks and review date are present (CFG-005 acceptance).
- AC-04: Given a contract with active consumers, when retirement is attempted, then it is refused.
15. Dependencies and Integration
- Upstream dependencies: all domains (contract owners); Domain 2 gateway and pipeline.
- Downstream dependencies: FR-ESS-AUZ-004 (scopes), FR-ESS-WFL-001 (step validation), FR-ESS-DGV-003 (conformance).
- Required events or APIs: IF-ESS-014.
16. Open Questions / Assumptions
- CFG-004 and CFG-005 are allocated here as governance registers; gateway enforcement of versions and the pipeline that publishes contracts are Domain 2 (DEC-ESS-011).
- Ruling 5 of 16 November 2026, ratified by the Enterprise Architecture Board on 17 November 2026, is applied above: Domain 10 owns the register, Domain 2 records its decisions here (FR-ISE-SUP-003), and the record has five states (first batch design readiness, ruling 5; DEC-ESS-011).
- Update 17 Nov 2026 (GAP-ESS-013, closed): the minimum deprecation notice is 12 months for external contracts and 6 months for internal ones (CFG-ESS-023, part 6.2).
← 5.11 Module Specification: Data Governance, Stewardship and Lineage Policy | Contents | Identifier index | 6. User Interface and Interaction Requirements →