Domain specifications / D03-CLI / 14. Technical and Architectural Constraints
14. Technical and Architectural Constraints¶
14.1 Architectural Alignment¶
The domain realizes the Clinical Record, Orders & Results (ordering and result-presentation side), Medication, and Nursing & Care Coordination bounded contexts of Architecture 4.2, plus the CDS service of PRS 22.2. It follows the architecture's rules: domain-owned state exposed only through published APIs and events; synchronous calls for immediate validation and user-facing queries and asynchronous events for state propagation; transactional outbox and idempotent consumers; explicit workflow state machines instead of distributed ACID transactions; optimistic concurrency with no last-write-wins on clinical conflicts (Architecture 4.3, 5.2, 5.3). Clinical persistence uses a durable longitudinal repository with a versioned semantic model, provenance, signed-entry immutability and appended amendments; FHIR is the exchange facade and not automatically the persistence schema (Architecture 6.1, 6.4; PRS 7.4, 22.3). CDS is decoupled from the core record through a documented, secure service contract. No commercial HIS or EHR product, proprietary clinical database or proprietary runtime is required (PRS DEP-001), and no critical clinical workflow depends on internet connectivity or a third-party cloud control plane without an approved continuity design (PRS DEP-006).
Two differences between the sources are noted. The architecture's Orders & Results context includes result validation and the critical-result workflow, which REF-002 assigns to Domain 4; this document follows REF-002. The architecture names tiers 0 to 3 and places CPOE in its Tier 1, while the PRS names tiers 1 to 4 and lists CPOE in Tier 1 (life-critical); this document uses the PRS tiering (DEC-CLI-012).
14.2 Logical Components¶
| Component ID | Component | Responsibility | Interfaces |
|---|---|---|---|
| CMP-CLI-001 | Clinical record service | Longitudinal projection, record views, imported-item reconciliation | IF-CLI-001, IF-CLI-008 |
| CMP-CLI-002 | Clinical summary service | Problems, diagnoses, history, immunizations, allergies | IF-CLI-001; EVT-CLI-001, 003, 004 |
| CMP-CLI-003 | Documentation service | Templates, documents, signature, amendment, copy-forward | IF-CLI-001; EVT-CLI-001 to 003 |
| CMP-CLI-004 | Observation and assessment service | Observations, assessments, scores, escalation | IF-CLI-009; EVT-CLI-005, 006 |
| CMP-CLI-005 | Care coordination service | Care plans, referrals, tasks, handover | IF-CLI-010; EVT-CLI-007 to 011 |
| CMP-CLI-006 | Order service | Catalogue, order sets, order authoring, lifecycle, routing and tracking | IF-CLI-002, 003, 004; EVT-CLI-012 to 016 |
| CMP-CLI-007 | Medication management service | Medication list, reconciliation, medication orders, verification, dispensing, returns, medication catalogue | IF-CLI-002, 006, 007; EVT-CLI-017 to 019, 023, 024, 029 |
| CMP-CLI-008 | Medication administration service | eMAR schedule, bedside verification, exceptions, offline synchronization endpoint | IF-CLI-012; EVT-CLI-020 to 022 |
| CMP-CLI-009 | CDS service | Rule registry, runtime, simulation, decision log, review queue | IF-CLI-011; EVT-CLI-025, 026 |
| CMP-CLI-010 | Result presentation and review service | Result references, review, critical work items, release decision | IF-CLI-005, 013, 014; EVT-CLI-027, 028 |
| CMP-CLI-011 | Clinical workspaces | Physician, nursing and pharmacist workspaces; patient context zone; mobile bedside client | All domain APIs |
| CMP-CLI-012 | Clinical safety register | Hazard log and usability evidence | Export; links to test and incident identifiers |
The grouping into deployable units (for example a modular monolith for tightly coupled clinical record functions with separate order, medication administration and CDS services) is a design decision under Architecture 4.3 and is not fixed here.
14.3 Deployment Considerations¶
- Deployment model. On-premises, private cloud or hybrid under hospital control (PRS 8.4); no assumption of a specific cloud provider.
- Runtime dependencies. Domain 2 platform, event backbone, gateways and offline edge; Domain 10 identity, authorization, terminology, audit, notification, workflow and document services; Domain 1 patient and encounter services. Each dependency has a defined degraded mode (section 11.2).
- Infrastructure requirements. Capacity for high-volume observation, eMAR and event traffic and for longitudinal growth of clinical data, per the published capacity model (PRS NFR-017). Bedside scanners, mobile devices and label printers are endpoint dependencies supported at L1 (PRS 18.1).
- High availability. Tier 1 services run redundantly across independent failure domains (PRS BCP-002) and fail independently of Tier 2 to 4 services.
- Disaster recovery. Per NFR-CLI-011; application-level validation after restore covers order state, eMAR schedule consistency, signed-document integrity values and outbox position.
- Environment separation. Production, DR, pre-production, development and training are isolated; training uses synthetic data with a clear banner; no real PHI in development unless approved (PRS 8.4).
- Upgrade and rollback. Rolling or controlled releases; schema, event, template and rule changes carry compatibility and rollback or forward-fix plans; clinical content is promoted separately from code and is independently reversible (PRS SDLC-006, CFG-002).
14.4 Technology and Dependency Policy¶
No product is mandated. The items below are the categories of dependency this domain is likely to need; each candidate must pass the dependency acceptance policy of PRS 3.2 and be recorded in the SBOM (PRS DEP-004).
| Dependency | Purpose | Mandatory / Optional | Maintenance Status | Licensing | Exit Strategy |
|---|---|---|---|---|---|
| Clinical terminologies (SNOMED CT, LOINC, UCUM, WHO ATC with KFA, ICD-10, ICD-9-CM) | Coded clinical data | Mandatory: SNOMED CT for problems, findings and allergies; LOINC for observations and results; UCUM for units; WHO ATC with KFA for medicines; ICD-10 for diagnoses and ICD-9-CM for procedures in Indonesia (DEC-CLI-004, DEC-ESS-012) | Maintained standards: SNOMED CT International and LOINC release twice a year, ATC/DDD yearly, KFA as the Ministry publishes it; loaded into the Domain 10 terminology service (HAPI FHIR, Snowstorm) | SNOMED CT free of charge in Indonesia, a SNOMED International member since 2022 through the Ministry of Health; LOINC and UCUM free under their own licences; the WHO ATC/DDD index used under the terms of the WHO Collaborating Centre (Oslo); KFA national and free; ICD-10 through the WHO and Ministry of Health national edition; ICD-9-CM public domain. RxNorm (free with a UMLS licence) is not used by default; ATC with KFA is preferred (PRS 22.3) | Versioned mappings held by Domain 10 allow substitution |
| Medication knowledge content (interactions, allergy cross-reactivity, dose ranges) | Medication safety checks | Mandatory for FR-CLI-CDS-003. Default: hospital-curated knowledge base built from open Indonesian and international sources and mapped to KFA; optional licensed commercial source (CFG-CLI-035, GAP-CLI-005) | Maintained by the Pharmacy and Therapeutics Committee: quarterly release, urgent release within 5 working days of a BPOM safety notice | Open sources used under their terms; a commercial source under a hospital licence | Content loaded as governed rule data behind the rule registry so a source can be replaced |
| CDS logic representation and runtime (CQL/ELM, CDS Hooks or equivalent) | Executable rules and service contract | Mandatory: CDS Hooks with CQL/ELM, using the open CQL engine (DEC-CLI-005) | To be assessed | Open specifications; implementation to be assessed | Rules stored as versioned artefacts with regression packs; service contract isolates runtime |
| Clinical modelling artefacts (openEHR archetypes and templates or equivalent domain schemas) | Clinical persistence and templates | Not selected: clinical persistence is a governed relational domain model with FHIR-aligned resources (DEC-CLI-003) | To be assessed | Open specifications | Full export; explicit mappings to FHIR |
| FHIR and HL7 v2 libraries | Exchange representations | Mandatory capability; library choice open | To be assessed | To be assessed | Mappings owned by the organization; libraries replaceable |
| GS1 barcode parsing | Product identification | Mandatory capability | To be assessed | Open specification | Parser behind an internal interface |
| SMART on FHIR application launch | Launched applications from CDS | Optional | To be assessed | Open specification | Not required for core workflows |
| Bedside mobile client platform and scanner hardware | Barcode workflows | Mandatory capability; products open | To be assessed | To be assessed | Standard barcode symbologies; device-neutral client |
| Automated dispensing cabinets | Ward medication supply | Optional per facility | Supplier-dependent | Supplier-dependent | Documented interface via Domain 2; manual dispensing path remains |
← 13. Configuration and Administration Requirements | Contents | Identifier index | 15. Testing and Verification Requirements →