Skip to content

Domain specifications / D06-HIM / 14. Technical and Architectural Constraints

14. Technical and Architectural Constraints

14.1 Architectural Alignment

  • The domain is the "HIM & Compliance" bounded context of the Architecture (REF-003 section 5): coding, chart deficiency, document classification, retention, legal hold and release of information, with events ChartCompleted, DisclosureDelivered (named DocumentReleased in REF-003) and LegalHoldApplied. The Design Specification lists a document service, coding workbench, deficiency service and disclosure service for "HIM & Document Management" (REF-004); under the working boundary position the document service is provided by Domain 10 and the other three are HIM components.
  • HIM services own their state, expose versioned APIs and events and are independently deployable where justified (PRS 8.2). They do not share a database with other domains.
  • HIM stores references to authoritative records and to documents in the document or object store; it does not duplicate clinical content.
  • High-integrity HIM records (disclosure log, disposal records, hold history) are append-only, in line with the use of append-only ledgers for high-integrity events (PRS 7.2).
  • HIM is a secondary consumer of clinical events and is isolated so that its failure cannot cascade into clinical workflows (PRS 2.3 "Resilient degradation", INF-004).
  • No commercial HIS, proprietary engine or unmaintained component is a mandatory dependency (DEP-001, DEP-003). Redaction, scanning and any classification or coding assistance components are subject to the dependency policy (PRS 3.2).
  • Analytics on HIM data runs in Domain 8 on events and extracts, not on HIM transactional stores (ANA-003).
  • Jurisdiction-specific behaviour is held in a country profile as configuration (PRS 9.4).

14.2 Logical Components

Component ID Component Responsibility Interfaces
CMP-HIM-001 HIM Workbench UI Role-based workspaces UI-HIM-001 to UI-HIM-012 within the shared application shell HIM service APIs; Domain 10 identity
CMP-HIM-002 Work Item Service Work items, queues, assignment, ageing, escalation Internal API; Domain 10 notification and workflow; EVT-HIM-014
CMP-HIM-003 Coding Service (coding workbench) Coding records, candidates, validation, finalisation, status IF-HIM-001; EVT-HIM-005, 006; Domain 10 terminology; Domain 3 and 4 read APIs
CMP-HIM-004 Deficiency Service Completeness rules, deficiencies, owner resolution IF-HIM-002; EVT-HIM-001, 002
CMP-HIM-005 Record Assembly and Completion Service Health record, component list, chart status, lock, post-lock change IF-HIM-002; EVT-HIM-003, 004, 015; source domain events
CMP-HIM-006 Document Stewardship Service Document metadata, classification, index, lifecycle, provenance, capture workflow IF-HIM-003; EVT-HIM-007; Domain 10 document service
CMP-HIM-007 Retention and Disposition Service Retention rules, evaluation, batches, disposal records IF-HIM-003; EVT-HIM-010
CMP-HIM-008 Legal Hold Service Hold register, scope resolution, hold-status check IF-HIM-003; EVT-HIM-008, 009
CMP-HIM-009 Disclosure Service Requests, verification, packages, redaction, release, consent coordination IF-HIM-004; EVT-HIM-011, 012, 013; Domain 10 consent and document services
CMP-HIM-010 Disclosure Log and Access Review Service Disclosure log, accounting, access report and review IF-HIM-005; Domain 10 audit query
CMP-HIM-011 Identity Link Handler Consumes Domain 1 identity events and re-links HIM records Domain 1 events; internal APIs of CMP-HIM-003 to 010
CMP-HIM-012 Reconciliation Jobs Scheduled reconciliation across sources, holds, dispositions and disclosure entries Source domain read APIs; work items

The grouping of these components into deployable services is a design decision; fewer deployables are acceptable provided the responsibilities and interfaces above are kept (PRS 8.2 warns against excessive microservices).

14.3 Deployment Considerations

  • Deployment model. On-premises, private cloud or hybrid under hospital control, as for the whole platform (PRS 8.4). No HIM function requires internet connectivity except approved external delivery channels through Domain 2.
  • Runtime dependencies. Domain 10 identity, authorization, consent, document, terminology, audit, notification and workflow services; Domain 2 event backbone, API gateway, storage and observability; Domain 1 identity and encounter services.
  • Infrastructure requirements. Transactional stores for HIM records; append-only storage for the disclosure log and disposal records; scanner and workstation endpoints for the HIM department (supported at L1, PRS 18.1). Capacity to be modelled (NFR-017).
  • High availability. PRS Tier 2, 99.9% monthly (D02-ISE 10.1): resilient service with queue-based degradation, defined recovery and reconciliation (PRS 12.1). The hold-status check must be highly available or callers must fail closed.
  • Disaster recovery. HIM stores are included in backup and DR with the Tier 2 RTO and RPO of NFR-HIM-009. Post-restore reconciliation precedes any disposition run.
  • Environment separation. Production, DR, pre-production, development and training are isolated. Non-production uses masked or synthetic data; no real release packages or identity evidence outside production (PRS 8.4).
  • Upgrade and rollback. Controlled releases with database migration strategy and rollback or forward-fix (NFR-016, SDLC-006). Event schema changes are backward compatible. A release must not change the meaning of stored rule versions.

14.4 Technology and Dependency Policy

The sources name no HIM-specific technology. The table lists the kinds of dependency this domain is likely to need; each candidate must pass the PRS dependency acceptance policy (PRS 3.2) before adoption. None is mandated by this specification.

Dependency Purpose Mandatory / Optional Maintenance Status Licensing Exit Strategy
Document redaction library or component Produce derived redacted copies of documents Mandatory capability; default an open-source library under a permissive licence (for example Apache PDFBox) that removes the underlying text and burns in image areas Maintained (Apache Software Foundation) Apache 2.0 Redacted copies are stored as ordinary documents; the component is replaceable without data migration
Scanning and image capture software for HIM workstations Capture paper and downtime documents Mandatory capability where paper is scanned; default TWAIN or SANE scanner drivers with NAPS2 producing PDF/A with Tesseract OCR, or the scanner vendor's capture software Maintained NAPS2 GPL-2.0 and Tesseract Apache 2.0, used as standalone tools, not linked Output is standard document formats uploaded to the document service; scanner software is replaceable
Optical character recognition Assist indexing of scanned documents Optional To be assessed To be assessed Indexing works manually without it
Automated coding or document classification assistance (AI) Candidate suggestions Optional; separately governed under Domain 8 (PRS 13.2) To be assessed, including model governance To be assessed Core workflows do not depend on it; removal leaves manual and crosswalk-based coding
ICD and other classification code-set distributions Code validation and crosswalks Mandatory content, obtained through Domain 10 Maintained by the issuing bodies; versions governed by Domain 10 ICD-10 (2010, Indonesian Modification) through the Kemenkes national edition under its WHO arrangement, no separate hospital licence; ICD-9-CM public domain; SNOMED CT free in Indonesia as a SNOMED International member country since 2022 (DEC-HIM-005, DEC-CLI-004) Code-set versions are stored with records; a change of classification is handled by versioned mapping
Platform components (database, event broker, object store) Persistence and messaging Mandatory capability, selected at platform level by Domain 2 Per platform dependency register Per platform Per platform ADRs; HIM uses them only through documented contracts

← 13. Configuration and Administration Requirements | Contents | Identifier index | 15. Testing and Verification Requirements →