<Bundle xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ../../input-cache/schemas/R5/fhir-single.xsd">
  <id value="example-Bundle-patient-history" />
  <type value="history" />
  <total value="2" />
  <link>
    <relation value="self" />
    <url value="https://api.bpcs.exchange/rest/v1/dev/THP/BPCS_vs1/Patient/7382542665/_history" />
  </link>
  <entry>
    <fullUrl value="https://api.bpcs.exchange/rest/v1/dev/THP/BPCS_vs1/Patient/7382542665" />
    <resource>
      <Patient>
        <id value="7382542665" />
        <meta>
          <extension url="https://bpcs.exchange/fhir/StructureDefinition/ext-Meta-effectiveDate">
            <valueDate value="2021-08-01" />
          </extension>
          <versionId value="202205041442145265" />
          <lastUpdated value="2022-05-04T14:42:14.5265-04:00" />
        </meta>
        <contained>
          <Provenance>
            <id value="1" />
            <target>
              <reference value="#" />
            </target>
            <occurredDateTime value="2023-10-10T03:08:31.526504-04:00" />
            <activity>
              <coding>
                <system value="http://terminology.hl7.org/CodeSystem/v3-DataOperation" />
                <code value="CREATE" />
              </coding>
            </activity>
            <agent>
              <who>
                <identifier>
                  <system value="https://bpcs.exchange/fhir/NamingSystem/userids" />
                  <value value="M_MBPCS" />
                </identifier>
              </who>
            </agent>
          </Provenance>
        </contained>
        <contained>
          <Provenance>
            <id value="2" />
            <target>
              <reference value="#" />
            </target>
            <occurredDateTime value="2023-10-10T03:08:31.526504-04:00" />
            <activity>
              <coding>
                <system value="http://terminology.hl7.org/CodeSystem/v3-DataOperation" />
                <code value="UPDATE" />
              </coding>
            </activity>
            <agent>
              <who>
                <identifier>
                  <system value="https://bpcs.exchange/fhir/NamingSystem/userids" />
                  <value value="M_MBPCS" />
                </identifier>
              </who>
            </agent>
          </Provenance>
        </contained>
        <extension url="https://bpcs.exchange/fhir/StructureDefinition/ext-Patient-SeniorFlag">
          <valueBoolean value="false" />
        </extension>
        <extension url="https://bpcs.exchange/fhir/StructureDefinition/ext-Patient-ApplicationMemberFlag">
          <valueBoolean value="false" />
        </extension>
        <extension url="https://bpcs.exchange/fhir/StructureDefinition/ext-Patient-ContactApplicationMemberFlag">
          <valueBoolean value="false" />
        </extension>
        <identifier>
          <extension url="http://hl7canada.ca/ig/baseline/StructureDefinition/ext-identifierversion">
            <valueString value="02" />
          </extension>
          <use value="official" />
          <system value="https://fhir.infoway-inforroute.ca/namingsystem/ca-on-patient-hcn" />
          <value value="7382542665" />
        </identifier>
        <name>
          <family value="LILE" />
          <given value="GORD" />
        </name>
        <gender value="male" />
        <birthDate value="1958-05-30" />
        <address>
          <extension url="https://bpcs.exchange/fhir/StructureDefinition/ext-Address-MunicipalityCode">
            <valueCoding>
              <system value="https://bpcs.exchange/fhir/CodeSystem/cs-Municipality" />
              <code value="1811" />
            </valueCoding>
          </extension>
          <type value="postal" />
          <line value="RTS - FAKE TEST ADDRESS" />
          <city value="NORTH YORK" />
          <state value="ON" />
          <postalCode value="M2M 4K5" />
          <country value="CAN" />
        </address>
        <communication>
          <language>
            <coding>
              <system value="urn:ietf:bcp:47" />
              <code value="en-CA" />
            </coding>
          </language>
        </communication>
      </Patient>
    </resource>
    <request>
      <method value="PUT" />
      <url value="Patient/7382542665" />
    </request>
    <response>
      <status value="200" />
      <etag value="202205041442145265" />
      <lastModified value="2022-05-04T14:42:14.5265-04:00" />
    </response>
  </entry>
  <entry>
    <fullUrl value="https://api.bpcs.exchange/rest/v1/dev/THP/BPCS_vs1/Patient/7382542665" />
    <resource>
      <Patient>
        <id value="7382542665" />
        <meta>
          <extension url="https://bpcs.exchange/fhir/StructureDefinition/ext-Meta-effectiveDate">
            <valueDate value="2021-08-01" />
          </extension>
          <versionId value="202301181638438345" />
          <lastUpdated value="2023-01-18T16:38:43.8345-05:00" />
        </meta>
        <contained>
          <Provenance>
            <id value="1" />
            <target>
              <reference value="#" />
            </target>
            <occurredDateTime value="2023-10-09T23:12:31.834515-04:00" />
            <activity>
              <coding>
                <system value="http://terminology.hl7.org/CodeSystem/v3-DataOperation" />
                <code value="CREATE" />
              </coding>
            </activity>
            <agent>
              <who>
                <identifier>
                  <system value="https://bpcs.exchange/fhir/NamingSystem/userids" />
                  <value value="TH_RANBH" />
                </identifier>
              </who>
            </agent>
          </Provenance>
        </contained>
        <extension url="https://bpcs.exchange/fhir/StructureDefinition/ext-Patient-SeniorFlag">
          <valueBoolean value="false" />
        </extension>
        <extension url="https://bpcs.exchange/fhir/StructureDefinition/ext-Patient-ApplicationMemberFlag">
          <valueBoolean value="false" />
        </extension>
        <extension url="https://bpcs.exchange/fhir/StructureDefinition/ext-Patient-ContactApplicationMemberFlag">
          <valueBoolean value="false" />
        </extension>
        <identifier>
          <use value="official" />
          <system value="https://fhir.infoway-inforroute.ca/namingsystem/ca-on-patient-hcn" />
          <value value="7382542665" />
        </identifier>
        <name>
          <family value="LILE" />
          <given value="GORD" />
        </name>
        <gender value="male" />
        <birthDate value="1958-05-30" />
        <communication>
          <language>
            <coding>
              <system value="urn:ietf:bcp:47" />
              <code value="fr-CA" />
            </coding>
          </language>
        </communication>
      </Patient>
    </resource>
    <request>
      <method value="POST" />
      <url value="Patient" />
    </request>
    <response>
      <status value="201" />
      <etag value="202301181638438345" />
      <lastModified value="2023-01-18T16:38:43.8345-05:00" />
    </response>
  </entry>
  <!--
  Non-expressed elements:
  dirty - not in spreadsheet?
  exceptionCd - not mapped
  addressInfo metadata - we agreed we weren't going to surface this
  incomeAmt - for what year is this?


  <list>
  <ca.ontario.health.hns.web.dto.rm.RecipientDTO>
    <dirty>false</dirty>
    <exceptionCd>00000</exceptionCd>
    <addressInfo>
      <recCreateUserId>M_MBPCS</recCreateUserId>
      <recUpdateUserId>M_MBPCS</recUpdateUserId>
      <dirty>false</dirty>
      <recCreateCustomTimestamp>
        <time>1651689733000</time>
        <nanos>526504</nanos>
      </recCreateCustomTimestamp>
      <recUpdateCustomTimestamp>
        <time>1651689733000</time>
        <nanos>526504</nanos>
      </recUpdateCustomTimestamp>
    </addressInfo>
    <incomeAmt>0000000</incomeAmt>
  </ca.ontario.health.hns.web.dto.rm.RecipientDTO>
  <ca.ontario.health.hns.web.dto.rm.RecipientDTO>
    <dirty>false</dirty>
    <exceptionCd>00000</exceptionCd>
    <incomeAmt>0000000</incomeAmt>
  </ca.ontario.health.hns.web.dto.rm.RecipientDTO>
</list>
-->
</Bundle>