The integration layer is built around a message broker and interface engine that normalises inbound HL7 v2 and FHIR UK Core traffic into a common internal model before any patient matching, terminology translation or business logic runs, so downstream modules do not need to know which wire format a given source system used.
Patient matching runs as a dedicated service consulted before any clinical data is filed, verifying NHS number against the Personal Demographics Service where a live trace is available and falling back to a documented demographic matching algorithm with a confidence threshold, below which the record is queued for manual review rather than filed automatically.
Terminology translation is maintained as versioned mapping tables rather than embedded logic, because SNOMED CT and dm+d releases change over time and a mapping that was correct at build time can silently become wrong months later if it is not reviewed against each new release.
Every message, whether successfully processed or not, is written to an audit store keyed on the patient identifier and the source and destination system, which is what makes it possible to answer a safety investigation's question about who saw or wrote what, and when, without cross-referencing several separate systems' logs by hand.