<?xml version="1.0" encoding="UTF-8"?>

<Bundle xmlns="http://hl7.org/fhir">
  <id value="pmir-feed-create-a28"/>
  <meta>
    <profile value="https://profiles.ihe.net/ITI/PMIR/StructureDefinition/IHE.PMIR.Bundle"/>
  </meta>
  <language value="en"/>
  <identifier>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:uuid:2f6c1b7e-0d4a-4b9e-8e3f-5a1c7d2b0a28"/>
  </identifier>
  <type value="message"/>
  <timestamp value="2010-01-02T12:15:00+00:00"/>
  <entry>
    <fullUrl value="https://fhir.ihe-uk.org/ITI/PAM/MessageHeader/pmir-a28-header"/>
    <resource>
      <MessageHeader>
        <id value="pmir-a28-header"/>
        <language value="en"/>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="MessageHeader_pmir-a28-header"> </a><p class="res-header-id"><b>Generated Narrative: MessageHeader pmir-a28-header</b></p><a name="pmir-a28-header"> </a><a name="hcpmir-a28-header"> </a><p><b>event</b>: <a href="https://simplifier.net/resolve?scope=fhir.r4.ukcore.stu3.currentbuild@0.29.0-pre-release&amp;canonical=urn:ihe:iti:pmir:2019:patient-feed">urn:ihe:iti:pmir:2019:patient-feed</a></p><h3>Destinations</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>Patient Identity Registry</td><td><a href="https://simplifier.net/resolve?scope=fhir.r4.ukcore.stu3.currentbuild@0.29.0-pre-release&amp;canonical=http://example.org/fhir/Registry">http://example.org/fhir/Registry</a></td></tr></table><p><b>sender</b>: 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>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/fhir/PAS">http://example.org/fhir/PAS</a></td></tr></table><p><b>focus</b>: <a href="Bundle-pmir-feed-create-a28.html#Bundle_pmir-a28-history">Bundle: type = history</a></p><p><b>definition</b>: <a href="https://simplifier.net/resolve?scope=fhir.r4.ukcore.stu3.currentbuild@0.29.0-pre-release&amp;canonical=https://profiles.ihe.net/ITI/PMIR/MessageDefinition/IHE.PMIR.MessageDefinition">https://profiles.ihe.net/ITI/PMIR/MessageDefinition/IHE.PMIR.MessageDefinition</a></p></div>
        </text>
        <eventUri value="urn:ihe:iti:pmir:2019:patient-feed"/>
        <destination>
          <name value="Patient Identity Registry"/>
          <endpoint value="http://example.org/fhir/Registry"/>
        </destination>
        <sender>
          <identifier>
            <system value="https://fhir.nhs.uk/Id/ods-organization-code"/>
            <value value="RCB"/>
          </identifier>
        </sender>
        <source>
          <name value="PAS"/>
          <endpoint value="http://example.org/fhir/PAS"/>
        </source>
        <focus>
          <reference value="Bundle/pmir-a28-history"/>
        </focus>
        <definition value="https://profiles.ihe.net/ITI/PMIR/MessageDefinition/IHE.PMIR.MessageDefinition"/>
      </MessageHeader>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://fhir.ihe-uk.org/ITI/PAM/Bundle/pmir-a28-history"/>
    <resource>
      <Bundle>
        <id value="pmir-a28-history"/>
        <language value="en"/>
        <type value="history"/>
        <entry>
          <fullUrl value="https://fhir.ihe-uk.org/ITI/PAM/Patient/Patient-EDITESTPATIENT-TEN-9999999557"/>
          <resource>
            <Patient>
              <id value="Patient-EDITESTPATIENT-TEN-9999999557"/>
              <meta>
                <profile value="https://fhir.ihe-uk.org/ITI/PAM/StructureDefinition/PAMPatient"/>
              </meta>
              <language value="en"/>
              <extension url="http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName">
                <valueString value="SCHMIDT"/>
              </extension>
              <extension url="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-EthnicCategory">
                <valueCodeableConcept>
                  <coding>
                    <system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-EthnicCategoryEngland"/>
                    <code value="A"/>
                  </coding>
                </valueCodeableConcept>
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/patient-birthPlace">
                <valueAddress>
                  <city value="Berlin"/>
                </valueAddress>
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/patient-citizenship">
                <extension url="code">
                  <valueCodeableConcept>
                    <coding>
                      <system value="urn:iso:std:iso:3166"/>
                      <code value="GBR"/>
                    </coding>
                  </valueCodeableConcept>
                </extension>
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/patient-nationality">
                <extension url="code">
                  <valueCodeableConcept>
                    <coding>
                      <system value="urn:iso:std:iso:3166"/>
                      <code value="DEU"/>
                    </coding>
                  </valueCodeableConcept>
                </extension>
              </extension>
              <identifier>
                <type>
                  <coding>
                    <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
                    <code value="NH"/>
                  </coding>
                </type>
                <system value="https://fhir.nhs.uk/Id/nhs-number"/>
                <value value="9999999557"/>
              </identifier>
              <name>
                <use value="official"/>
                <family value="EDITESTPATIENT"/>
                <given value="TEN"/>
                <prefix value="MRS"/>
              </name>
              <telecom>
                <system value="phone"/>
                <value value="+441234567890"/>
                <use value="home"/>
              </telecom>
              <gender value="female"/>
              <birthDate value="1980-01-01">
                <extension url="http://hl7.org/fhir/StructureDefinition/patient-birthTime">
                  <valueDateTime value="1980-01-01T15:15:00+00:00"/>
                </extension>
              </birthDate>
              <address>
                <use value="home"/>
                <line value="1 TEST STREET"/>
                <city value="BRACKNELL"/>
                <district value="BERKSHIRE"/>
                <postalCode value="RG12 9AX"/>
                <country value="GBR"/>
              </address>
              <maritalStatus>
                <coding>
                  <system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-PersonMaritalStatusEngland"/>
                  <code value="M"/>
                </coding>
              </maritalStatus>
              <multipleBirthBoolean value="false"/>
              <communication>
                <language>
                  <coding>
                    <system value="urn:ietf:bcp:47"/>
                    <code value="en"/>
                  </coding>
                </language>
              </communication>
              <generalPractitioner>
                <identifier>
                  <system value="https://fhir.nhs.uk/Id/ods-organization-code"/>
                  <value value="Y06601"/>
                </identifier>
                <display value="MALTON GP PRACTICE"/>
              </generalPractitioner>
              <generalPractitioner>
                <identifier>
                  <system value="https://fhir.hl7.org.uk/Id/gmp-number"/>
                  <value value="G5612908"/>
                </identifier>
                <display value="Dr Gregory Townley"/>
              </generalPractitioner>
            </Patient>
          </resource>
          <request>
            <method value="POST"/>
            <url value="Patient"/>
          </request>
          <response>
            <status value="201"/>
          </response>
        </entry>
      </Bundle>
    </resource>
  </entry>
</Bundle>