IHE UK Patient Administration Management (Unofficial)
0.1.0 - ci-build United Kingdom flag

IHE UK Patient Administration Management (Unofficial) - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

HL7 v2 to FHIR Mapping

This page summarises how the HL7 v2.5.1 ADT model maps to HL7 FHIR R4. The approach follows the HL7 v2-to-FHIR Implementation Guide, adapted for HSCIC ITK content, HL7 Europe Base and UK Core. Each profile also has a Mappings tab that lists the v2 field for each element.

Base profile selection

v2 FHIR profile Parent Reason
PID, PD1, ZU1-10, ZU8 PAM Patient HL7 EU patient-eu patient-eu-core requires birthDate, but PID-7 is RE in HSCIC ITK
PV1, PV2, ZU1 PAM Encounter FHIR R4 Encounter HL7 Europe Base has no Encounter profile
PL PAM Location HL7 EU location-eu-core  
XCN PAM Practitioner HL7 EU practitioner-eu  
XON / HD PAM Organization HL7 EU organization-eu  
NK1 PAM Related Person FHIR R4 RelatedPerson No HL7 EU profile
AL1 PAM Allergy Intolerance HL7 EU allergyIntolerance-eu-core  
DG1 PAM Condition HL7 EU condition-eu-core  
PR1 PAM Procedure HL7 EU procedure-eu-core  
MSH PAM Message Header FHIR R4 MessageHeader  
EVN PAM Event FHIR R4 Provenance As in HL7 v2-to-FHIR
message PAM Message Bundle FHIR R4 Bundle  
CX PAM Identifier, NHS Number, Local Patient Identifier, Hospital Provider Spell Identifier, Alternate Visit Identifier Identifier  
Known issue: the HL7 Europe *-eu-core clinical profiles (AllergyIntolerance, Condition, Procedure) constrain their subject to patient-eu-core. Because PAM Patient is based on patient-eu, a PAM Patient without a birthDate will not meet those subject constraints. Feedback to HL7 Europe is proposed.

Message to Bundle

flowchart LR
    MSH -.-> MH[MessageHeader]
    EVN -.-> PROV[Provenance]
    PID -.-> PAT[Patient]
    PD1 -.-> PAT
    ZU8 -.-> PAT
    NK1 -.-> RP[RelatedPerson]
    PV1 -.-> ENC[Encounter]
    PV2 -.-> ENC
    ZU1 -.-> ENC
    AL1 -.-> AI[AllergyIntolerance]
    MH --> ENC
    PROV --> ENC
    ENC --> PAT
    RP --> PAT
    AI --> PAT
    PAT --> ORG[Organization GP]
    PAT --> PRAC[Practitioner GP]
    ENC --> LOC[Location]
    subgraph v2["ADT^A01^ADT_A01 segments"]
        MSH
        EVN
        PID
        PD1
        ZU8
        NK1
        PV1
        PV2
        ZU1
        AL1
    end
    subgraph fhir["Bundle (type = message)"]
        MH
        PROV
        ENC
        PAT
        RP
        AI
        ORG
        PRAC
        LOC
    end

Trigger event to FHIR

v2 FHIR
MSH-9.2 trigger event MessageHeader.eventCoding (HL7 Table 0003) and Provenance.activity
ITI-31 event Encounter.status and Encounter.location.status, as in the ITI-31 table
Cancel events The same Encounter resource, with the state reverted (or entered-in-error)
A40 MRG Patient.link (replaces / replaced-by) and active = false on the non-surviving Patient

Datatype mapping

v2.5.1 FHIR Notes
CX Identifier CX-1 → value; CX-4 → system (NHS → https://fhir.nhs.uk/Id/nhs-number; HD-2 Universal ID → urn:oid:<OID>; local HD-1 namespace only → system omitted, no URI is invented); CX-5 → type; CX-6 → assigner.identifier (ODS)
XPN HumanName XPN-1 → family; XPN-2, XPN-3 → given; XPN-4 → suffix; XPN-5 → prefix; XPN-7 → use (ConceptMap)
XAD Address XAD-1, XAD-2 → line; XAD-3 → city; XAD-4 → district; XAD-5 → postalCode; XAD-6 → country; XAD-7 → use/type (ConceptMap)
XTN ContactPoint XTN-1 / XTN-12 → value; XTN-2 → use (PRN → home, WPN → work, ORN + CP → mobile); XTN-3 → system (PH/CP → phone, FX → fax, Internet → email); XTN-4 → value (email)
XCN Reference(Practitioner) XCN-1 → identifier (gmp-number / gmc-number); XCN-2..6 → name
XON Reference(Organization) XON-10 (or XON-3) → identifier (ODS); XON-1 → name
PL Reference(Location) PL-2 ward, PL-3 bed, PL-4 facility (ODS site)
CE / CWE CodeableConcept CE-1 → code; CE-2 → display; CE-3 → system (see Terminology)
TS / DTM dateTime YYYYMMDDHHMMSS+ZZZZ → YYYY-MM-DDThh:mm:ss+zz:zz
ID/IS (Y/N, table 0136) boolean  

Terminology mapping

See Terminology and Reference Tables for the ConceptMaps (HL7 v2 tables → NHS Data Dictionary → FHIR).