Skip to content

Latest commit

 

History

History
93 lines (77 loc) · 3.99 KB

File metadata and controls

93 lines (77 loc) · 3.99 KB

Patient Mapping

XML HL7 > JSON FHIR

A Patient resource is mapped from a HL7 Patient.

Mapped to (JSON FHIR Immunization field) Mapped from (XML HL7 / other source)
id set value = Generated GUID
meta.profile[0] fixed value = "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1".
meta.versionId fixed value = 1521806400000
indentifier[0].system fixed value = https://fhir.nhs.uk/Id/nhs-number
indentifier[0].value Patient / id [@extension]
managingOrganization referenced to mapped AgentOrganization: Organization
Example JSON
{
    "resource": {
        "resourceType": "Patient",
        "id": "82c11ce2-7d9f-49a7-930b-0a195e1e9775",
        "meta": {
            "versionId": "1521806400000",
            "profile": [
                "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1"
            ]
        },
        "identifier": [
            {
                "system": "https://fhir.nhs.uk/Id/nhs-number",
                "value": "5538824210"
            }
        ],
    }
}

Unmapped fields

  • implicitRules
  • language
  • text
  • contained
  • extension
  • modifierExtension
  • identifier.use
  • identifier.type
  • identifier.type.coding
  • active
  • name
  • gender
  • birthDate
  • deceasedDateTime
  • address
  • maritalStatus
  • multipleBirthBoolean
  • generalPractitioner
  • link

JSON FHIR > XML HL7

A Patient record is translated into the recordTarget element.

Mapped to (XML HL7) Mapped from (JSON FHIR / other source )
RCMR_IN030000UK06 / recordTarget / patient / id [@extension] NHS number is taken from the initial EHR Request message (RCMR_IN010000UK05)
RCMR_IN030000UK06 / recordTarget / patient / id [@root] fixed value = 2.16.840.1.113883.2.1.4.1
Example XML
<RCMR_IN030000UK06 xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hl7-org:v3 ..\Schemas\RCMR_IN030000UK06.xsd">
...
    <recordTarget typeCode="RCT">
        <patient classCode="PAT">
            <id root="2.16.840.1.113883.2.1.4.1" extension="9729734194" />
        </patient>
    </recordTarget>
...
</RCMR_IN030000UK06>

Further documentation