How AMCDR exchanges data
AMCDR uses openEHR to store clinical records and FHIR and other formats to exchange them. Incoming data must be mapped and validated before it is stored. Outgoing data comes from those records or approved projections.
Recommended option: Open Integration Engine and openEHR
Open Integration Engine (OIE) 4.6.0 handles protocols, transformations and routing in the AMCDR development environment. It is one recommended integration option. Sites can also use another compatible engine or connect directly to AMCDR FHIR, openEHR or domain APIs. Clinical records remain in openEHR.
The development service is available at https://dev-oie.sandbox.hygeoniq.com from the private development LAN/VPN only. This hostname belongs to the development OIE deployment and must not be substituted for an AMCDR VPS endpoint.
Every route must retain source provenance, validation outcomes and audit evidence. Delivery failures are retried or replayed outside the clinical commit transaction and do not create a second source of clinical truth.
Example: receiving a bedside observation through OIE
- An OIE channel receives oxygen saturation
91 %from a bedside monitor or site gateway with device identity, patient identifier, encounter, observation time and a stable source-message identifier. - The engine resolves the baby and EHR, verifies the active device-patient association, maps the source code to LOINC
59408-5, and validates%as the UCUM unit. - The normalized value is mapped to an approved neonatal observation template path, validated, and committed as a versioned openEHR composition with feeder-audit provenance.
- The ward-round dashboard reads that governed fact and shows its composition source. An authorized partner may receive a derived FHIR Observation or event notification without creating another clinical source of truth.
- If identity, association, code, unit, template or value validation fails, the message is quarantined for correction and controlled replay; it is not silently inserted into the baby's record.
Current status: OIE is commissioned in development and AMCDR device-family adapters and projection envelopes exist. This neonatal flow is a channel blueprint, not yet a proven live device connection. Production use requires the real device conformance statement, approved terminology mapping, dedicated service credentials, an active openEHR template/path mapping and end-to-end acceptance evidence.
AMCDR preserves coded text metadata, supports built-in operational code sets, validates UCUM quantity units, supports ConceptMap-based translation, and can use configured external terminology services for lookup, expansion, validation and translation.
The REST API supports FLAT JSON and STRUCTURED JSON on POST /openehr/v1/ehr/{ehr_id}/composition. External systems select the representation with the standard media type and retrieve it from the same resource with Accept.
Set up FHIR mapping
FHIR StructureDefinitions, FHIR mapping rules, profile-based ingest, Bundle ingest, direct FHIR resource APIs, and FHIR output are defined in FHIR Mapping and SDs. That page describes FHIR-to-openEHR field mapping, validation behavior, and the ingest/output API boundary.
Main flows
- Source clinical ingestion: source payload -> mapping -> template-compliant composition.
- Client identity: source identifier -> match/link -> patient/EHR context.
- Terminology normalization: lookup, validate, expand, translate.
- Medication operations: AMCDR clinical order -> safety sidecar -> MediServe product/stock authority -> audited clinical event.
- Laboratory operations: AMCDR clinical lab order -> laboratory operational workflow -> validated openEHR/FHIR result output.
- SHR query: consumer -> policy check -> AQL/projection -> summary, timeline, FHIR, or XML response.
- Outbound delivery: lifecycle event -> subscription match -> queued delivery -> retry/audit.
- Replay: operator reprocesses failed or historical exchange attempts.
Medication product and stock integration is defined in Medication Products and Clinical Safety. That page describes medication existence checks, stock decrement behavior, allergy and interaction evaluation, and the rationale for keeping medication product master data outside AMCDR.
Laboratory integration is documented in Laboratory Lifecycle. Use that page for FHIR ServiceRequest, Specimen, Observation, and DiagnosticReport mapping, specimen transport boundaries, result correction, critical alert acknowledgement, and why operational logistics are not forced into openEHR unless clinically relevant.
Subscriptions and outbound delivery
Partner systems subscribe to AMCDR events through backend subscription APIs. The safest production pattern is notification plus pull: AMCDR sends a signed webhook or broker message with identifiers, and the partner then calls the governed FHIR, SHR, or saved-query API it is authorized to use.
Use Subscriptions and Outbound Delivery for exact routes, subscription JSON examples, delivery retries, replay, saved-query extracts, and the external openEHR CDR configuration boundary.
Shared health record and IPS
The shared health record brings together the records a user is allowed to see for a patient. It is assembled from patient identity, EHRs, encounters, openEHR compositions, documents, relationship links, terminology, and access policy. It draws on multiple templates and preserves the source compositions.
For current summaries, encounter summaries, annual snapshots, longitudinal timeline queries, population SHR/IPS retrieval, multiple-template joins, IPS-style outputs, and FHIR/XML exports, use Shared Health Record and IPS.
GET /records/patients/summary?profile=ips&include=index&date_from=2026-01-01&date_to=2026-06-30&location=Emergency&format=fhir
MPI, FHIR, and external CDRs
AMCDR supports internal MPI, external MPI, PDQ, PIX, FHIR-facing APIs, generic external FHIR connectors, and external openEHR CDR adapters. The frontend calls AMCDR; AMCDR calls external systems through configured backend connectors so credentials and audit stay controlled.
Use Demographics, MPI, PIX/PDQ for the patient, person, party, internal MPI, external PDQ/PIX, FHIR Patient, coverage, and protected-search model. Use MPI, FHIR, and External CDRs for connector configuration, FHIR server integration, and the form runtime path for creating compositions in other CDRs.