Skip to content

Architecture / Decision records / ADR-HIS-034

ADR-HIS-034 Facility scoping of data and policy

Status Accepted
Decided 2026-11-24 on behalf of the Enterprise Architecture Board, with the D01 and D05 product owners, under delegated authority
Record Drafted 2026-11-24; approved 2026-11-24 by the Enterprise Architecture Board
Where the rule lives Architecture, section 7.5

Context

The PRS requires one longitudinal patient record and one patient index across facilities, and support for a single hospital or a multi-facility enterprise (PAT-001, PRS 4.1). The specifications already fixed parts: identifiers qualified by assigning authority, a medical record number and an invoice sequence per facility, facility attributes in the policy decision service, and per-facility time zone, currency and calendar. Architecture section 18.1 item 8 asked for the model before RC-1.

Options considered

  • An instance, schema or database per facility
  • One enterprise instance, with facility as a scoping attribute of data and policy

Decision

One enterprise instance. Facility is a scoping attribute, not a partition: every facility-owned record carries an immutable facility identifier from its creation, and the policy decision service uses it in every decision. The full rule, by aspect, is in section 7.5.

Rationale

A partition per facility would break the single longitudinal record and the single patient index the PRS requires. A scoping attribute keeps one record and lets a facility be added by configuration.

Consequences

  • Facility-owned records carry the facility identifier from RC-1, so adding satellite facilities is configuration, not migration.
  • Contract tests include denial across facilities; the event envelope's facility field is mandatory for facility-owned aggregates.
  • Where facilities belong to different legal entities, data is not shown across them until legal advice sets the basis.
  • Not part of this decision: the initial facility scope of PRS 19.3, owned by the executive sponsor and product owner.