{
  "resourceType" : "Bundle",
  "id" : "hscic-a31-identity-master",
  "meta" : {
    "profile" : ["https://fhir.ihe-uk.org/ITI/PAM/StructureDefinition/PAMBundleMessage"]
  },
  "language" : "en",
  "identifier" : {
    "value" : "13403891320453338076"
  },
  "type" : "message",
  "timestamp" : "2010-08-14T11:06:00+01:00",
  "entry" : [{
    "fullUrl" : "https://fhir.ihe-uk.org/ITI/PAM/MessageHeader/hscic-a31-identity-master-header",
    "resource" : {
      "resourceType" : "MessageHeader",
      "id" : "hscic-a31-identity-master-header",
      "language" : "en",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"MessageHeader_hscic-a31-identity-master-header\"> </a><p class=\"res-header-id\"><b>Generated Narrative: MessageHeader hscic-a31-identity-master-header</b></p><a name=\"hscic-a31-identity-master-header\"> </a><a name=\"hchscic-a31-identity-master-header\"> </a><p><b>event</b>: <a href=\"http://terminology.hl7.org/7.5.0/CodeSystem-v2-0003.html#v2-0003-A31\">event: A31</a> (ADT/ACK -  Update person information)</p><h3>Destinations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Name</b></td><td><b>Endpoint</b></td><td><b>Receiver</b></td></tr><tr><td style=\"display: none\">*</td><td>PAS</td><td><a href=\"https://simplifier.net/resolve?scope=fhir.r4.ukcore.stu3.currentbuild@0.29.0-pre-release&amp;canonical=http://example.org/hl7v2/PAS\">http://example.org/hl7v2/PAS</a></td><td>Identifier: <a href=\"NamingSystem-ods-organization-code.html\" title=\"NHS Organisation Data Service (ODS) organisation code. HL7 v2 MSH-4, MSH-6, CX-6, PD1-3.\">ODSOrganisationCode</a>/RCB</td></tr></table><p><b>sender</b>: YORK AND SCARBOROUGH TEACHING HOSPITALS NHS FOUNDATION TRUST (Identifier: <a href=\"NamingSystem-ods-organization-code.html\" title=\"NHS Organisation Data Service (ODS) organisation code. HL7 v2 MSH-4, MSH-6, CX-6, PD1-3.\">ODSOrganisationCode</a>/RCB)</p><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Name</b></td><td><b>Endpoint</b></td></tr><tr><td style=\"display: none\">*</td><td>KIOSK</td><td><a href=\"https://simplifier.net/resolve?scope=fhir.r4.ukcore.stu3.currentbuild@0.29.0-pre-release&amp;canonical=http://example.org/hl7v2/KIOSK\">http://example.org/hl7v2/KIOSK</a></td></tr></table><p><b>focus</b>: <a href=\"Patient-Patient-EDITESTPATIENT-TEN-9999999557.html\">TEN EDITESTPATIENT (official) Female, DoB: 1980-01-01 ( National Health Plan Identifier: NHSNumber#9999999557)</a></p></div>"
      },
      "eventCoding" : {
        "system" : "http://terminology.hl7.org/CodeSystem/v2-0003",
        "code" : "A31"
      },
      "destination" : [{
        "name" : "PAS",
        "endpoint" : "http://example.org/hl7v2/PAS",
        "receiver" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "RCB"
          }
        }
      }],
      "sender" : {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "RCB"
        },
        "display" : "YORK AND SCARBOROUGH TEACHING HOSPITALS NHS FOUNDATION TRUST"
      },
      "source" : {
        "name" : "KIOSK",
        "endpoint" : "http://example.org/hl7v2/KIOSK"
      },
      "focus" : [{
        "reference" : "Patient/Patient-EDITESTPATIENT-TEN-9999999557"
      }]
    }
  },
  {
    "fullUrl" : "https://fhir.ihe-uk.org/ITI/PAM/Provenance/hscic-a31-identity-master-event",
    "resource" : {
      "resourceType" : "Provenance",
      "id" : "hscic-a31-identity-master-event",
      "language" : "en",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Provenance_hscic-a31-identity-master-event\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Provenance hscic-a31-identity-master-event</b></p><a name=\"hscic-a31-identity-master-event\"> </a><a name=\"hchscic-a31-identity-master-event\"> </a><p>Provenance for <a href=\"Patient-Patient-EDITESTPATIENT-TEN-9999999557.html\">TEN EDITESTPATIENT (official) Female, DoB: 1980-01-01 ( National Health Plan Identifier: NHSNumber#9999999557)</a></p><p>Summary</p><table class=\"grid\"><tr><td>Occurrence</td><td>2010-08-14 11:00:00+0100</td></tr><tr><td>Recorded</td><td>2010-08-14 10:59:00+0100</td></tr><tr><td>Activity</td><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v2-0003 A31}\">ADT/ACK -  Update person information</span></td></tr></table><p><b>Agents</b></p><table class=\"grid\"><tr><td><b>who</b></td></tr><tr><td>Emily Cortana (Identifier: OP000123)</td></tr></table></div>"
      },
      "target" : [{
        "reference" : "Patient/Patient-EDITESTPATIENT-TEN-9999999557"
      }],
      "occurredDateTime" : "2010-08-14T11:00:00+01:00",
      "recorded" : "2010-08-14T10:59:00+01:00",
      "activity" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v2-0003",
          "code" : "A31"
        }]
      },
      "agent" : [{
        "who" : {
          "identifier" : {
            "value" : "OP000123"
          },
          "display" : "Emily Cortana"
        }
      }]
    }
  },
  {
    "fullUrl" : "https://fhir.ihe-uk.org/ITI/PAM/Patient/Patient-EDITESTPATIENT-TEN-9999999557",
    "resource" : {
      "resourceType" : "Patient",
      "id" : "Patient-EDITESTPATIENT-TEN-9999999557",
      "meta" : {
        "profile" : ["https://fhir.ihe-uk.org/ITI/PAM/StructureDefinition/PAMPatient"]
      },
      "language" : "en",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Patient_Patient-EDITESTPATIENT-TEN-9999999557\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Patient Patient-EDITESTPATIENT-TEN-9999999557</b></p><a name=\"Patient-EDITESTPATIENT-TEN-9999999557\"> </a><a name=\"hcPatient-EDITESTPATIENT-TEN-9999999557\"> </a><div style=\"display: inline-block; background-color: #fbffeb; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-PAMPatient.html\">PAM Patient</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">TEN EDITESTPATIENT (official) Female, DoB: 1980-01-01 ( National Health Plan Identifier: NHSNumber#9999999557)</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Known Marital status of Patient\">Marital Status:</td><td><span title=\"Codes:{https://fhir.hl7.org.uk/CodeSystem/UKCore-PersonMaritalStatusEngland M}\">Married/Civil Partner</span></td><td style=\"background-color: #f3f5da\" title=\"Known multipleBirth status of Patient\">Multiple Birth:</td><td colspan=\"3\">false</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Patient\">Contact Detail</td><td colspan=\"3\"><ul><li><a href=\"tel:+441234567890\">+441234567890</a></li><li>1 TEST STREET BRACKNELL RG12 9AX GBR (home)</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Language spoken\">Language:</td><td colspan=\"3\"><span title=\"Codes:{urn:ietf:bcp:47 en}\">English</span></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Patient Links\">Links:</td><td colspan=\"3\"><ul><li>General Practitioner: MALTON GP PRACTICE (Identifier: <a href=\"NamingSystem-ods-organization-code.html\" title=\"NHS Organisation Data Service (ODS) organisation code. HL7 v2 MSH-4, MSH-6, CX-6, PD1-3.\">ODSOrganisationCode</a>/Y06601)</li><li>General Practitioner: Dr Gregory Townley (Identifier: <a href=\"NamingSystem-gmp-number.html\" title=\"National GP code (G + 6 digits + check digit). HL7 v2 PD1-4 XCN-1.\">GMPNumber</a>/G5612908)</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Information that describes the patient's ethnic category.\"><a href=\"https://simplifier.net/resolve?scope=fhir.r4.ukcore.stu3.currentbuild@0.29.0-pre-release&amp;canonical=https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-EthnicCategory\">Extension UK Core Ethnic Category</a></td><td colspan=\"3\"><span title=\"Codes:{https://fhir.hl7.org.uk/CodeSystem/UKCore-EthnicCategoryEngland A}\">White - British</span></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"The nationality of the patient.\">Patient Nationality:</td><td colspan=\"3\"><ul><li>code: <span title=\"Codes:{urn:iso:std:iso:3166 DEU}\">Germany</span></li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Mother's maiden (unmarried) name, commonly collected to help verify patient identity.\"><a href=\"http://hl7.org/fhir/extensions/5.4.0/StructureDefinition-patient-mothersMaidenName.html\">Patient Mother's Maiden Name</a></td><td colspan=\"3\">SCHMIDT</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"The registered place of birth of the patient. A sytem may use the address.text if they don't store the birthPlace address in discrete elements.\"><a href=\"http://hl7.org/fhir/extensions/5.4.0/StructureDefinition-patient-birthPlace.html\">Patient Birth Place</a></td><td colspan=\"3\">Berlin </td></tr><tr><td style=\"background-color: #f3f5da\" title=\"The patient's legal status as citizen of a country.\">Patient Citizenship:</td><td colspan=\"3\"><ul><li>code: <span title=\"Codes:{urn:iso:std:iso:3166 GBR}\">United Kingdom</span></li></ul></td></tr></table></div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName",
        "valueString" : "SCHMIDT"
      },
      {
        "url" : "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-EthnicCategory",
        "valueCodeableConcept" : {
          "coding" : [{
            "system" : "https://fhir.hl7.org.uk/CodeSystem/UKCore-EthnicCategoryEngland",
            "code" : "A"
          }]
        }
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/patient-birthPlace",
        "valueAddress" : {
          "city" : "Berlin"
        }
      },
      {
        "extension" : [{
          "url" : "code",
          "valueCodeableConcept" : {
            "coding" : [{
              "system" : "urn:iso:std:iso:3166",
              "code" : "GBR"
            }]
          }
        }],
        "url" : "http://hl7.org/fhir/StructureDefinition/patient-citizenship"
      },
      {
        "extension" : [{
          "url" : "code",
          "valueCodeableConcept" : {
            "coding" : [{
              "system" : "urn:iso:std:iso:3166",
              "code" : "DEU"
            }]
          }
        }],
        "url" : "http://hl7.org/fhir/StructureDefinition/patient-nationality"
      }],
      "identifier" : [{
        "type" : {
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
            "code" : "NH"
          }]
        },
        "system" : "https://fhir.nhs.uk/Id/nhs-number",
        "value" : "9999999557"
      }],
      "name" : [{
        "use" : "official",
        "family" : "EDITESTPATIENT",
        "given" : ["TEN"],
        "prefix" : ["MRS"]
      }],
      "telecom" : [{
        "system" : "phone",
        "value" : "+441234567890",
        "use" : "home"
      }],
      "gender" : "female",
      "birthDate" : "1980-01-01",
      "_birthDate" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/patient-birthTime",
          "valueDateTime" : "1980-01-01T15:15:00+00:00"
        }]
      },
      "address" : [{
        "use" : "home",
        "line" : ["1 TEST STREET"],
        "city" : "BRACKNELL",
        "district" : "BERKSHIRE",
        "postalCode" : "RG12 9AX",
        "country" : "GBR"
      }],
      "maritalStatus" : {
        "coding" : [{
          "system" : "https://fhir.hl7.org.uk/CodeSystem/UKCore-PersonMaritalStatusEngland",
          "code" : "M"
        }]
      },
      "multipleBirthBoolean" : false,
      "communication" : [{
        "language" : {
          "coding" : [{
            "system" : "urn:ietf:bcp:47",
            "code" : "en"
          }]
        }
      }],
      "generalPractitioner" : [{
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "Y06601"
        },
        "display" : "MALTON GP PRACTICE"
      },
      {
        "identifier" : {
          "system" : "https://fhir.hl7.org.uk/Id/gmp-number",
          "value" : "G5612908"
        },
        "display" : "Dr Gregory Townley"
      }]
    }
  },
  {
    "fullUrl" : "https://fhir.ihe-uk.org/ITI/PAM/RelatedPerson/RelatedPerson-EDITESTPATIENT-FRANCESCA",
    "resource" : {
      "resourceType" : "RelatedPerson",
      "id" : "RelatedPerson-EDITESTPATIENT-FRANCESCA",
      "meta" : {
        "profile" : ["https://fhir.ihe-uk.org/ITI/PAM/StructureDefinition/PAMRelatedPerson"]
      },
      "language" : "en",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"RelatedPerson_RelatedPerson-EDITESTPATIENT-FRANCESCA\"> </a><p class=\"res-header-id\"><b>Generated Narrative: RelatedPerson RelatedPerson-EDITESTPATIENT-FRANCESCA</b></p><a name=\"RelatedPerson-EDITESTPATIENT-FRANCESCA\"> </a><a name=\"hcRelatedPerson-EDITESTPATIENT-FRANCESCA\"> </a><div style=\"display: inline-block; background-color: #fbffeb; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-PAMRelatedPerson.html\">PAM Related Person (Next of Kin)</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">FRANCESCA EDITESTPATIENT - Relative</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Administrative gender\">Gender:</td><td>Male</td><td style=\"background-color: #f3f5da\" title=\"Date of birth\">Date of Birth:</td><td>1963-11-11</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"The patient this person is related to\">Patient:</td><td colspan=\"3\"><a href=\"Patient-Patient-EDITESTPATIENT-TEN-9999999557.html\">TEN EDITESTPATIENT (official) Female, DoB: 1980-01-01 ( National Health Plan Identifier: NHSNumber#9999999557)</a></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"The nature of the relationship between the patient and the related person\">Relationship:</td><td colspan=\"3\"><span title=\"Codes:{https://fhir.ihe-uk.org/ITI/PAM/CodeSystem/hscic-relationship 16}\">Relative</span></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Related Person\">Contact Detail</td><td colspan=\"3\"><ul><li><a href=\"tel:+441234567890\">+441234567890</a></li><li>1 TEST STREET BRACKNELL RG12 9AX GBR (home)</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Language spoken\">Language:</td><td colspan=\"3\"><span title=\"Codes:{urn:ietf:bcp:47 en}\">English</span></td></tr></table></div>"
      },
      "patient" : {
        "reference" : "Patient/Patient-EDITESTPATIENT-TEN-9999999557"
      },
      "relationship" : [{
        "coding" : [{
          "system" : "https://fhir.ihe-uk.org/ITI/PAM/CodeSystem/hscic-relationship",
          "code" : "16"
        }]
      }],
      "name" : [{
        "family" : "EDITESTPATIENT",
        "given" : ["FRANCESCA"],
        "prefix" : ["MRS"]
      }],
      "telecom" : [{
        "system" : "phone",
        "value" : "+441234567890"
      }],
      "gender" : "male",
      "birthDate" : "1963-11-11",
      "address" : [{
        "use" : "home",
        "line" : ["1 TEST STREET"],
        "city" : "BRACKNELL",
        "district" : "BERKSHIRE",
        "postalCode" : "RG12 9AX",
        "country" : "GBR"
      }],
      "communication" : [{
        "language" : {
          "coding" : [{
            "system" : "urn:ietf:bcp:47",
            "code" : "en"
          }]
        }
      }]
    }
  },
  {
    "fullUrl" : "https://fhir.ihe-uk.org/ITI/PAM/AllergyIntolerance/hscic-a31-identity-master-allergy-1",
    "resource" : {
      "resourceType" : "AllergyIntolerance",
      "id" : "hscic-a31-identity-master-allergy-1",
      "language" : "en",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"AllergyIntolerance_hscic-a31-identity-master-allergy-1\"> </a><p class=\"res-header-id\"><b>Generated Narrative: AllergyIntolerance hscic-a31-identity-master-allergy-1</b></p><a name=\"hscic-a31-identity-master-allergy-1\"> </a><a name=\"hchscic-a31-identity-master-allergy-1\"> </a><p><b>clinicalStatus</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical active}\">Active</span></p><p><b>type</b>: Allergy</p><p><b>category</b>: Medication</p><p><b>code</b>: <span title=\"Codes:{http://hl7.org/fhir/sid/icd-10 Z88.5}\">Personal history of allergy to narcotic agent</span></p><p><b>patient</b>: <a href=\"Patient-Patient-EDITESTPATIENT-TEN-9999999557.html\">TEN EDITESTPATIENT (official) Female, DoB: 1980-01-01 ( National Health Plan Identifier: NHSNumber#9999999557)</a></p><p><b>recordedDate</b>: 1998-07-01 17:55:00+0100</p></div>"
      },
      "clinicalStatus" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
          "code" : "active"
        }]
      },
      "type" : "allergy",
      "category" : ["medication"],
      "code" : {
        "coding" : [{
          "system" : "http://hl7.org/fhir/sid/icd-10",
          "code" : "Z88.5"
        }]
      },
      "patient" : {
        "reference" : "Patient/Patient-EDITESTPATIENT-TEN-9999999557"
      },
      "recordedDate" : "1998-07-01T17:55:00+01:00"
    }
  }]
}