PrescribeIT® Specification and Guide Version 5.0

 
Raw XML


<!--  This is an example of a SAML Practitioner creator transmitting a 401 message to a pharmacy (i.e. PrescribeIT Switch)   -->
<!--  Real GUIDs should be used when composing messages. These (e.g. MessageHeaderGUID) have been put to allow readers to easily cross-reference FHIR resources within this example  -->
<Bundle xmlns="http://hl7.org/fhir">
<!--       Note: This id will not be present when the message is submitted to the inbox.  It will be assigned by the inbox as part of processing       -->
  <id value="example-q1-401-e110-e120-e161-e162-e163-e164"/>
  <meta>
    <profile
             value="http://sharedhealth.exchange/fhir/StructureDefinition/profile-bundle-message"/>
    <profile
             value="http://prescribeit.ca/fhir/StructureDefinition/interaction-bundle-401"/>
    <tag>
      <system
              value="https://fhir.infoway-inforoute.ca/CodeSystem/sharedspecificationversion"/>
      <code value="PrescribeIT5.0"/>
    </tag>
  <!--  Note: The following tags will NOT be included when submitting a 401 message to PrescribeIT.  They will be populated by PrescribeIT as part of its internal processing  -->
    <tag>
      <system value="http://prescribeit.ca/fhir/CodeSystem/message-key"/>
      <code value="A888GAGP"/>
    </tag>
    <tag>
      <system value="http://prescribeit.ca/fhir/CodeSystem/birth-date"/>
      <code value="2012-06-07"/>
    </tag>
    <tag>
      <system value="http://prescribeit.ca/fhir/CodeSystem/last-name"/>
      <code value="Lerr Jr"/>
    </tag>
  </meta>
  <type value="message"/>
  <entry>
    <fullUrl value="urn:uuid:MessageHeaderID401GUID"/>
    <resource>
      <MessageHeader>
        <id value="MessageHeaderID401GUID"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/interaction-messageheader-401"/>
        </meta>
        <timestamp value="2021-08-30T12:15:38.123-06:00"/>
        <event>
          <system
                  value="https://fhir.infoway-inforoute.ca/CodeSystem/sharedmessageevents"/>
          <code value="401"/>
        </event>
        <source>
          <extension
                     url="http://sharedhealth.exchange/fhir/StructureDefinition/ext-messageheader-application-id">
            <valueUri value="urn:oid:1.2.3.4.5.9.3333"/>
          </extension>
          <extension
                     url="http://sharedhealth.exchange/fhir/StructureDefinition/ext-messageheader-conformance-version">
            <valueString
                         value="Sending software version number that passed conformance"/>
          </extension>
          <name value="Sending application internal identifier"/>
          <software value="Sending application software name"/>
          <version value="Sending software version number"/>
        <!--       Note that the endpoint has to be a URI.  Could be urn:oid:1.2.3.4       -->
          <endpoint
                    value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCEMRClinicCPRID"/>
        </source>
        <destination>
          <endpoint
                    value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCPMSCPRID"/>
        </destination>
        <data>
          <reference value="Task/Taske110GUID"/>
        </data>
        <data>
          <reference value="Task/Taske120GUID"/>
        </data>
        <data>
          <reference value="Task/Taske161GUID"/>
        </data>
        <data>
          <reference value="Task/Taske162GUID"/>
        </data>
        <data>
          <reference value="Task/Taske163GUID"/>
        </data>
        <data>
          <reference value="Task/Taske164GUID"/>
        </data>
      </MessageHeader>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:PatientGUID"/>
    <resource>
      <Patient>
        <id value="PatientGUID"/>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/v2/0203"/>
              <code value="JHN"/>
            </coding>
            <text value="Jurisdictional Health Number"/>
          </type>
        <!--           Quebec, Canada Personal Health Number identification system           -->
          <system value="urn:oid:2.16.840.1.113883.4.56"/>
          <value value="QuebecPHN123"/>
        </identifier>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/v2/0203"/>
              <code value="MR"/>
            </coding>
            <text value="Local Patient ID"/>
          </type>
          <system value="urn:oid:1.2.3.4.5.9.3333.1"/>
        <!--           Sending Application identification system Patient ID           -->
          <value value="134IDY41W988"/>
        </identifier>
        <name>
          <use value="official"/>
          <family value="Lerr Jr"/>
          <given value="Todd"/>
          <given value="G."/>
          <prefix value="Mr"/>
          <suffix value="DDS"/>
        </name>
        <telecom>
          <system value="phone"/>
          <value value="(555) 555-1212"/>
          <use value="mobile"/>
        </telecom>
        <telecom>
          <extension
                     url="http://sharedhealth.exchange/fhir/StructureDefinition/ext-contactpoint-confidential">
            <valueBoolean value="true"/>
          </extension>
          <system value="phone"/>
          <value value="(858) 429-5190"/>
          <use value="home"/>
        </telecom>
        <gender value="male"/>
        <birthDate value="2012-06-07"/>
        <address>
          <type value="both"/>
          <line value="263 Rue Saint- Viateur O"/>
          <city value="Montreal"/>
          <state value="QC"/>
          <postalCode value="H2V 1Y1"/>
          <country value="Canada"/>
        </address>
      </Patient>
    </resource>
  </entry>
  <entry>
    <fullUrl
             value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
    <resource>
      <Practitioner>
        <id value="2263396629"/>
        <extension
                   url="http://sharedhealth.exchange/fhir/StructureDefinition/ext-practitioner-saml">
          <valueAttachment>
            <contentType value="application/xml"/>
            <data
                  value="PHNhbWwyOkFzc2VydGlvbiB4bWxuczpzYW1sMj0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOmFzc2VydGlvbiIgSUQ9Ijk3ODlkZjhmLTc1OWQtNDU2OC04Nzk3LWRiZjlmN2ZlYzJmYyIgSXNzdWVJbnN0YW50PSIyMDE2LTA1LTMxVDE5OjE2OjMwLjEwNVoiIFZlcnNpb249IjIuMCIgeG1sbnM6eHM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hIj48c2FtbDI6SXNzdWVyPmh0dHA6Ly9kZXZyaG0xOjU1NTUvPC9zYW1sMjpJc3N1ZXI+PGRzOlNpZ25hdHVyZSB4bWxuczpkcz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+PGRzOlNpZ25lZEluZm8+PGRzOkNhbm9uaWNhbGl6YXRpb25NZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzEwL3htbC1leGMtYzE0biMiLz48ZHM6U2lnbmF0dXJlTWV0aG9kIEFsZ29yaXRobT0iaHR0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V0ZT48L3NhbWwyOkF0dHJpYnV0ZVN0YXRlbWVudD48L3NhbWwyOkFzc2VydGlvbj4="/>
          </valueAttachment>
        </extension>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/v2/0203"/>
              <code value="LN"/>
            </coding>
            <text value="License number"/>
          </type>
          <system value="urn:oid:2.16.840.1.113883.4.347"/>
        <!--           License ID is part of the SAML token.  If this is present it should have the same value as the SAML Token       -->
          <value value="134IDY41W988"/>
        </identifier>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/v2/0203"/>
              <code value="PRN"/>
            </coding>
          </type>
          <system
                  value="http://sharedhealth.exchange/fhir/NamingSystem/registry-id-practitioner"/>
          <value value="2263396629"/>
        </identifier>
        <name>
          <use value="official"/>
          <family value="Mouse"/>
          <given value="Mickey"/>
          <prefix value="Dr"/>
          <suffix value="PhD"/>
        </name>
        <telecom>
          <system value="phone"/>
          <value value="(123) 456-7890"/>
          <use value="work"/>
        </telecom>
        <telecom>
          <extension
                     url="http://sharedhealth.exchange/fhir/StructureDefinition/ext-contactpoint-confidential">
            <valueBoolean value="true"/>
          </extension>
          <system value="phone"/>
          <value value="(456) 789-0123"/>
          <use value="mobile"/>
        </telecom>
        <practitionerRole>
          <organization>
            <reference
                       value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCEMRClinicCPRID"/>
          </organization>
        </practitionerRole>
        <practitionerRole>
          <role>
            <coding>
              <system value="http://hl7.org/fhir/practitioner-role"/>
              <code value="doctor"/>
              <display value="Doctor"/>
            </coding>
          </role>
          <specialty>
            <text value="Geriatrics">
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/iso21090-ST-translation">
                <valueString value="Gériatrie">
                  <extension
                             url="http://hl7.org/fhir/StructureDefinition/iso21090-ST-language">
                    <valueCode value="fr"/>
                  </extension>
                </valueString>
              </extension>
            </text>
          </specialty>
          <specialty>
            <text value="Palliative Care">
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/iso21090-ST-translation">
                <valueString value="Soins palliatifs">
                  <extension
                             url="http://hl7.org/fhir/StructureDefinition/iso21090-ST-language">
                    <valueCode value="fr"/>
                  </extension>
                </valueString>
              </extension>
            </text>
          </specialty>
        </practitionerRole>
        <communication>
          <coding>
            <system value="urn:ietf:bcp:47"/>
            <code value="en-CA"/>
          </coding>
        </communication>
      </Practitioner>
    </resource>
  </entry>
  <entry>
    <fullUrl
             value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCEMRClinicCPRID"/>
    <resource>
      <Organization>
        <id value="QCEMRClinicCPRID"/>
        <identifier>
          <system
                  value="http://sharedhealth.exchange/fhir/NamingSystem/registry-id-organization"/>
          <value value="QCEMRClinicCPRID"/>
        </identifier>
        <name value="Quebec EMR Clinic"/>
        <telecom>
          <system value="phone"/>
          <value value="(123) 123-4567"/>
          <use value="work"/>
        </telecom>
        <address>
          <type value="both"/>
          <line value="263 Rue Saint- Viateur O"/>
          <city value="Montreal"/>
          <state value="QC"/>
          <postalCode value="H2V 1Y1"/>
          <country value="Canada"/>
        </address>
      </Organization>
    </resource>
  </entry>
  <entry>
    <fullUrl
             value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCPMSCPRID"/>
    <resource>
      <Organization>
        <id value="QCPMSCPRID"/>
        <identifier>
          <system
                  value="http://sharedhealth.exchange/fhir/NamingSystem/registry-id-organization"/>
          <value value="QCPMSCPRID"/>
        </identifier>
        <name value="Quebec PMS"/>
        <telecom>
          <system value="phone"/>
          <value value="(123) 123-4567"/>
          <use value="work"/>
        </telecom>
        <address>
          <type value="both"/>
          <line value="977 Saint-Catherine St W"/>
          <city value="Montreal"/>
          <state value="QC"/>
          <postalCode value="H3B 4W3"/>
          <country value="Canada"/>
        </address>
      </Organization>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske110GUID"/>
    <resource>
      <Task>
        <id value="Taske110GUID"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/task-e110-m"/>
        </meta>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-Task.groupIdentifier">
          <valueIdentifier>
            <system value="urn:oid:1.2.3.4.5.9.3333.3"/>
            <value value="ri-Group-Identifier"/>
          </valueIdentifier>
        </extension>
        <modifierExtension
                           url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-do-not-autofill">
          <valueBoolean value="true"/>
        </modifierExtension>
        <type>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontasktype"/>
            <code value="e110-m"/>
            <display value="New RX Fill Request"/>
          </coding>
        </type>
        <priority value="high"/>
        <status value="requested"/>
        <subject>
          <reference value="MedicationOrder/Taske110MedicationOrderGUID"/>
        </subject>
        <for>
          <reference value="Patient/PatientGUID"/>
        </for>
        <created value="2021-08-30T12:15:38.123-06:00"/>
        <lastModified value="2021-08-30T12:15:38.123-06:00"/>
        <creator>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </creator>
        <owner>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCPMSCPRID"/>
        </owner>
        <input>
          <name value="previouslyUsed"/>
          <valueDate value="1980-01-15"/>
        </input>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske120GUID"/>
    <resource>
      <Task>
        <id value="Taske120GUID"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/task-e120-m"/>
        </meta>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-Task.groupIdentifier">
          <valueIdentifier>
            <system value="urn:oid:1.2.3.4.5.9.3333.3"/>
            <value value="ri-Group-Identifier"/>
          </valueIdentifier>
        </extension>
        <type>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontasktype"/>
            <code value="e120-m"/>
            <display value="Renewal RX Fill Request"/>
          </coding>
        </type>
        <status value="requested"/>
        <subject>
          <reference value="MedicationOrder/Taske120MedicationOrderGUID"/>
        </subject>
        <for>
          <reference value="Patient/PatientGUID"/>
        </for>
        <created value="2021-08-10T12:15:38.123-06:00"/>
        <lastModified value="2021-08-10T12:15:38.123-06:00"/>
        <creator>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </creator>
        <owner>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCPMSCPRID"/>
        </owner>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske161GUID"/>
    <resource>
      <Task>
        <id value="Taske161GUID"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/task-e161-m"/>
        </meta>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-Task.groupIdentifier">
          <valueIdentifier>
            <system value="urn:oid:1.2.3.4.5.9.3333.3"/>
            <value value="ri-Group-Identifier"/>
          </valueIdentifier>
        </extension>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-Task.basedOn">
          <valueReference>
          <!--  PrescribeIT5.0 element  -->
            <extension
                       url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-multiple-response">
              <valueBoolean value="true"/>
            </extension>
          <!--          Contains the task.id for the task being responded to         -->
            <reference value="urn:uuid:38e5e519-3672-430a-a372-94efd93888a1"/>
          </valueReference>
        </extension>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-Task.reason">
          <valueCodeableConcept>
            <coding>
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/canadianactreason"/>
              <code value="CONTACTPRES"/>
              <display value="Patient should contact prescriber"/>
            </coding>
          </valueCodeableConcept>
        </extension>
        <type>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontasktype"/>
            <code value="e161-m"/>
            <display value="RX Renewal Response - Denied"/>
          </coding>
        </type>
        <status value="rejected"/>
        <subject>
          <reference value="MedicationOrder/Taske161MedicationOrderGUID"/>
        </subject>
        <for>
          <reference value="Patient/PatientGUID"/>
        </for>
        <created value="2021-08-10T12:15:38.123-06:00"/>
        <lastModified value="2021-08-10T12:15:38.123-06:00"/>
        <creator>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </creator>
        <owner>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCPMSCPRID"/>
        </owner>
        <output>
        <!--  PrescribeIT 5.0 elements  -->
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-drug-name">
            <valueString value="Tylenol 325 mg"/>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-newrx-reference">
            <valueReference>
              <reference value="Task/OutputTaskGUID1"/>
            </valueReference>
          </extension>
          <name value="newRx"/>
          <valueIdentifier>
            <type>
              <coding>
                <system value="http://hl7.org/fhir/identifier-type"/>
                <code value="PLAC"/>
              </coding>
            </type>
            <system value="urn:oid:1.2.3.4.5.9.3333.2"/>
          <!--          OID Structure includes EMR application instance.branch assigned for MedOrder ID         -->
            <value value="Rx-OutputMedicationOrderGUID1"/>
          </valueIdentifier>
        </output>
        <output>
        <!--  PrescribeIT 5.0 elements  -->
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-drug-name">
            <valueString value="Reclipsen (21) 0.15-0.03 mg"/>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-newrx-reference">
            <valueReference>
              <reference value="Task/OutputTaskGUID2"/>
            </valueReference>
          </extension>
          <name value="newRx"/>
          <valueIdentifier>
            <type>
              <coding>
                <system value="http://hl7.org/fhir/identifier-type"/>
                <code value="PLAC"/>
              </coding>
            </type>
            <system value="urn:oid:1.2.3.4.5.9.3333.2"/>
          <!--          OID Structure includes EMR application instance.branch assigned for MedOrder ID         -->
            <value value="Rx-OutputMedicationOrderGUID2"/>
          </valueIdentifier>
        </output>
        <output>
        <!--  PrescribeIT 5.0 elements  -->
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-drug-name">
            <valueString value="terazosin 1 mg"/>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-newrx-reference">
            <valueReference>
              <reference value="Task/OutputTaskGUID3"/>
            </valueReference>
          </extension>
          <name value="newRx"/>
          <valueIdentifier>
            <type>
              <coding>
                <system value="http://hl7.org/fhir/identifier-type"/>
                <code value="PLAC"/>
              </coding>
            </type>
            <system value="urn:oid:1.2.3.4.5.9.3333.2"/>
          <!--          OID Structure includes EMR application instance.branch assigned for MedOrder ID         -->
            <value value="Rx-OutputMedicationOrderGUID3"/>
          </valueIdentifier>
        </output>
        <output>
        <!--  PrescribeIT 5.0 elements  -->
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-drug-name">
            <valueString value="YASMIN 21 TABLET (0.03MG-3MG)"/>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-newrx-reference">
            <valueReference>
              <reference value="Task/OutputTaskGUID4"/>
            </valueReference>
          </extension>
          <name value="newRx"/>
          <valueIdentifier>
            <type>
              <coding>
                <system value="http://hl7.org/fhir/identifier-type"/>
                <code value="PLAC"/>
              </coding>
            </type>
            <system value="urn:oid:1.2.3.4.5.9.3333.2"/>
          <!--          OID Structure includes EMR application instance.branch assigned for MedOrder ID         -->
            <value value="Rx-OutputMedicationOrderGUID4"/>
          </valueIdentifier>
        </output>
        <output>
        <!--  PrescribeIT 5.0 elements  -->
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-drug-name">
            <valueString value="ACEBUTOLOL HCL 200 mg TABLET"/>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-newrx-reference">
            <valueReference>
              <reference value="Task/OutputTaskGUID5"/>
            </valueReference>
          </extension>
          <name value="newRx"/>
          <valueIdentifier>
            <type>
              <coding>
                <system value="http://hl7.org/fhir/identifier-type"/>
                <code value="PLAC"/>
              </coding>
            </type>
            <system value="urn:oid:1.2.3.4.5.9.3333.2"/>
          <!--          OID Structure includes EMR application instance.branch assigned for MedOrder ID         -->
            <value value="Rx-OutputMedicationOrderGUID5"/>
          </valueIdentifier>
        </output>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske162GUID"/>
    <resource>
      <Task>
        <id value="Taske162GUID"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/task-e162-m"/>
        </meta>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-Task.groupIdentifier">
          <valueIdentifier>
            <system value="urn:oid:1.2.3.4.5.9.3333.3"/>
            <value value="ri-Group-Identifier"/>
          </valueIdentifier>
        </extension>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-Task.basedOn">
          <valueReference>
          <!--  PrescribeIT5.0 element  -->
            <extension
                       url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-multiple-response">
              <valueBoolean value="true"/>
            </extension>
            <reference value="urn:uuid:38e5e519-3672-430a-a372-94efd93888a4"/>
          </valueReference>
        </extension>
        <type>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontasktype"/>
            <code value="e162-m"/>
            <display value="RX Renewal Response - Approval"/>
          </coding>
        </type>
        <status value="requested"/>
        <subject>
          <reference value="MedicationOrder/Taske162MedicationOrderGUID"/>
        </subject>
        <for>
          <reference value="Patient/PatientGUID"/>
        </for>
        <created value="2021-08-10T12:15:38.123-06:00"/>
        <lastModified value="2021-08-10T12:15:38.123-06:00"/>
        <creator>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </creator>
        <owner>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCPMSCPRID"/>
        </owner>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske163GUID"/>
    <resource>
      <Task>
        <id value="Taske163GUID"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/task-e163-m"/>
        </meta>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-Task.groupIdentifier">
          <valueIdentifier>
            <system value="urn:oid:1.2.3.4.5.9.3333.3"/>
            <value value="ri-Group-Identifier"/>
          </valueIdentifier>
        </extension>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-Task.basedOn">
          <valueReference>
          <!--  PrescribeIT5.0 element  -->
            <extension
                       url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-multiple-response">
              <valueBoolean value="true"/>
            </extension>
            <reference value="urn:uuid:38e5e519-3672-430a-a372-94efd93888a2"/>
          </valueReference>
        </extension>
        <type>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontasktype"/>
            <code value="e163-m"/>
            <display value="RX Renewal Response - Approval with Changes"/>
          </coding>
        </type>
        <status value="requested"/>
        <subject>
          <reference value="MedicationOrder/Taske163MedicationOrderGUID"/>
        </subject>
        <for>
          <reference value="Patient/PatientGUID"/>
        </for>
        <created value="2021-08-10T12:15:38.123-06:00"/>
        <lastModified value="2021-08-10T12:15:38.123-06:00"/>
        <creator>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </creator>
        <owner>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCPMSCPRID"/>
        </owner>
        <input>
          <name value="change"/>
          <valueString value="Increased dose"/>
        </input>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske164GUID"/>
    <resource>
      <Task>
        <id value="Taske164GUID"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/task-e164-m"/>
        </meta>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-Task.groupIdentifier">
          <valueIdentifier>
            <system value="urn:oid:1.2.3.4.5.9.3333.3"/>
            <value value="ri-Group-Identifier"/>
          </valueIdentifier>
        </extension>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-Task.basedOn">
          <valueReference>
          <!--  PrescribeIT5.0 element  -->
            <extension
                       url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-multiple-response">
              <valueBoolean value="true"/>
            </extension>
            <reference value="urn:uuid:38e5e519-3672-430a-a372-94efd93888a3"/>
          </valueReference>
        </extension>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-Task.reason">
          <valueCodeableConcept>
            <coding>
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/canadianactreason"/>
              <code value="LABREV"/>
              <display value="Will respond once lab work is reviewed"/>
            </coding>
          </valueCodeableConcept>
        </extension>
        <type>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontasktype"/>
            <code value="e164-m"/>
            <display value="RX Renewal Response - Under Review"/>
          </coding>
        </type>
        <status value="in-progress"/>
        <subject>
          <reference value="MedicationOrder/Taske164MedicationOrderGUID"/>
        </subject>
        <for>
          <reference value="Patient/PatientGUID"/>
        </for>
        <created value="2021-08-10T12:15:38.123-06:00"/>
        <lastModified value="2021-08-10T12:15:38.123-06:00"/>
        <creator>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </creator>
        <owner>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCPMSCPRID"/>
        </owner>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske110MedicationOrderGUID"/>
    <resource>
      <MedicationOrder>
        <id value="Taske110MedicationOrderGUID"/>
        <contained>
          <Medication>
            <id value="med"/>
            <code>
              <coding>
                <system
                        value="https://fhir.infoway-inforoute.ca/CodeSystem/canadianclinicaldrugdataset"/>
                <code value="02241377"/>
                <display
                         value="METADOL (methadone hydrochloride 10 mg per mL oral solution) PALADIN LABS INC"/>
              </coding>
            <!--  TEXT element is mandatory on the prescription  -->
              <text value="METADOL 10 MG/ML LIQUID"/>
            </code>
          </Medication>
        </contained>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-MedicationRequest.category">
          <valueCodeableConcept>
            <coding>
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontype"/>
              <code value="medication"/>
            </coding>
          </valueCodeableConcept>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-treatment-type">
          <valueCode value="CHRON"/>
        </extension>
      <!--  The rendered dosage instruction MUST contain ALL dosage instructions. This includes ALL child elements of dosage instruction, such as dosage quantity, dosage unit, frequency, etc) in human readable form and must be able to stand on its own. This field will include all of the information contained in the structured dosage as well as patient instructions (eg take with food, starting one day before dental appointment), assembled into one field and formatted as human-readable. Coded values codes should not be used (e.g. 'days' should be used instead of 'd', the code of PO as 'oral' )  -->
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-rendered-dosage">
          <valueString value="Take 1 drop 1 time per day for 7 days Route: Oral"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-protocol">
          <valueString
                       value="Identifies the Protocol, Order set, Guideline or other definition that guided the creation of this prescription"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-request-dispenser-instructions">
          <valueString
                       value="To convey explicit instructions to the Pharmacist related to this medication order"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-over-25-dur">
          <valueBoolean value="false"/>
        </extension>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/identifier-type"/>
              <code value="PLAC"/>
            </coding>
          </type>
          <system value="urn:oid:1.2.3.4.5.9.3333.2"/>
        <!--           OID Structure includes EMR application instance.branch assigned for MedOrder ID          -->
          <value value="mi-b1-METADOL-20210210"/>
        </identifier>
      <!--  Note: The DIS-assigned identifier will not be present from EMR to PrescribeIT, but may be present from PrescribeIT to PMS  -->
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/v2/0203"/>
              <code value="RRI"/>
            </coding>
          </type>
          <system value="urn:oid:1.2.3.4.5.53.111.2"/>
        <!--           OID Structure includes EMR application instance.branch assigned for MedOrder ID          -->
          <value value="dis-b1-METADOL-20210210"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
        <!--       This must match the Medication resource ID       -->
          <reference value="#med"/>
        </medicationReference>
        <patient>
          <reference value="Patient/PatientGUID"/>
        </patient>
      <!--  The date (and perhaps time) when the prescription was written.  -->
        <dateWritten value="2021-08-30T12:15:38.123-06:00"/>
        <prescriber>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </prescriber>
      <!--       dose[x] can be expressed as a 'doseQuantity' tag (e.g., 10 ml) or 'doseRange' tag as shown here      
						<low>
							<value value="1"/>
              See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)
									<system value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
              <code value="404218003"/>
						</low>
						<high>
							<value value="2"/>
              See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)
									<system value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
              <code value="404218003"/>
						</high>
					</doseRange>   -->
        <dosageInstruction>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/extension-Dosage.sequence">
            <valueInteger value="1"/>
          </extension>
          <text value="Take 1 drop 1 time per day for 7 days Route: Oral"/>
          <timing>
          <!--        Dose Timing data element must also be part of the ext-medication-rendered-dosage        -->
            <repeat>
              <boundsPeriod>
                <start value="2021-08-30"/>
              </boundsPeriod>
              <frequency value="1"/>
              <period value="1"/>
              <periodUnit value="d"/>
            </repeat>
          </timing>
          <route>
            <coding>
              <system value="http://hl7.org/fhir/v3/RouteOfAdministration"/>
              <code value="PO"/>
            </coding>
            <text value="Oral"/>
          </route>
          <doseQuantity>
            <value value="1"/>
            <unit value="Drop"/>
          <!--  See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)  -->
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="404218003"/>
          </doseQuantity>
        </dosageInstruction>
        <dispenseRequest>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-dispense-for-life">
            <valueBoolean value="false"/>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-dispense-interval">
            <valueQuantity>
              <value value="1"/>
              <unit value="day"/>
              <system value="http://unitsofmeasure.org"/>
              <code value="d"/>
            </valueQuantity>
          </extension>
        <!--  As per constraint forLife-endOfValidity: IF forLifeFlag = TRUE, then endOfValidity MUST not be specified  -->
        <!--  value[x] can be expressed either as a 'valueQuantity' tag or as 'valuePeriod' tag
						<valuePeriod>
							<start value="2021-12-23"/>
							<end value="2022-12-23"/>
						</valuePeriod>  -->
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-end-of-validity">
            <valueQuantity>
              <value value="12"/>
              <system value="http://unitsofmeasure.org"/>
              <code value="m"/>
            </valueQuantity>
          </extension>
        <!--  The Total Prescribed Quantity is not mandatory but must be supplied if the value is entered by the user or can be calculated by the system.  -->
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-total-quantity">
            <valueQuantity>
              <value value="5"/>
              <unit value="mL"/>
              <system value="http://unitsofmeasure.org"/>
              <code value="mL"/>
            </valueQuantity>
          </extension>
        <!--  As per constraint forLife-totalDaysSupply: if forLifeFlag = TRUE, then totalDaysSupply MUST not be specified  -->
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-total-days-supply">
            <valueQuantity>
              <value value="49"/>
              <unit value="day"/>
              <system value="http://unitsofmeasure.org"/>
              <code value="d"/>
            </valueQuantity>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-dispense-first-fill">
            <extension url="expiry">
              <valueDate value="2021-02-15"/>
            </extension>
            <extension url="quantity">
              <valueQuantity>
                <value value="5"/>
                <unit value="mL"/>
                <system value="http://unitsofmeasure.org"/>
                <code value="mL"/>
              </valueQuantity>
            </extension>
            <extension url="expectedSupplyDuration">
              <valueQuantity>
                <value value="7"/>
                <unit value="day"/>
                <system value="http://unitsofmeasure.org"/>
                <code value="d"/>
              </valueQuantity>
            </extension>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-dispense-max">
            <valueQuantity>
              <value value="15"/>
              <unit value="mL"/>
              <system value="http://unitsofmeasure.org"/>
              <code value="mL"/>
            </valueQuantity>
          </extension>
        <!--  Only the lower-bound (e.g. Prescription Effective Date or RX Written Date) is mandatory. An expiry date may OPTIONALLY be specified if other than the stale date based on regulations.  -->
          <validityPeriod>
            <start value="2021-08-30T12:15:38.123-06:00"/>
          <!-- As per constraint forLife-validityPeriodEnd: if forLifeFlag = TRUE, then validityPeriod.end MUST not be specified  -->
            <end value="2021-08-30T12:15:38.123-06:00"/>
          </validityPeriod>
        <!--  As per constraint forLife-numberOfRepeatsAllowed: if forLifeFlag = TRUE, then numberOfRepeatsAllowed MUST not be specified  -->
          <numberOfRepeatsAllowed value="6"/>
          <quantity>
            <value value="5"/>
            <unit value="mL"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="mL"/>
          </quantity>
          <expectedSupplyDuration>
            <value value="7"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="d"/>
          </expectedSupplyDuration>
        </dispenseRequest>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske120MedicationOrderGUID"/>
    <resource>
      <MedicationOrder>
        <id value="Taske120MedicationOrderGUID"/>
        <contained>
          <Medication>
            <id value="med"/>
            <code>
            <!--          This is the name of the drug          -->
              <coding>
              <!--  If DIN is found on PrescriptionMedicinalProduct Concept Code, then system value="https://fhir.infoway-inforoute.ca/CodeSystem/canadianclinicaldrugdataset"  -->
                <system value="http://hl7.org/fhir/NamingSystem/ca-hc-din"/>
                <code value="2214997"/>
                <display value="VENTOLIN HFA 100 MCG"/>
              </coding>
            <!--  TEXT element is mandatory on the prescription  -->
              <text value="VENTOLIN HFA 100 MCG"/>
            </code>
          </Medication>
        </contained>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-MedicationRequest.category">
          <valueCodeableConcept>
            <coding>
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontype"/>
              <code value="medication"/>
            </coding>
          </valueCodeableConcept>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-treatment-type">
          <valueCode value="CHRON"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-rendered-dosage">
          <valueString
                       value="Inhale 2 puffs 4 time per day for 40 days Route: Oral and Inhale 2 puffs 10 minutes before physical exertion As needed Route: Oral"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-request-dispenser-instructions">
          <valueString
                       value="To convey explicit instructions to the Pharmacist related to this medication order"/>
        </extension>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-MedicationRequest.supportingInfo">
          <valueReference>
            <reference value="Observation/4fb26823-5296-4291-8bc4-82440fc0b343"/>
          </valueReference>
        </extension>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-MedicationRequest.supportingInfo">
          <valueReference>
            <reference value="Observation/f2a711d7-3476-40f4-93a9-118e7ca8ccc7"/>
          </valueReference>
        </extension>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-MedicationRequest.supportingInfo">
          <valueReference>
            <reference value="List/da9514da-c9fe-418b-9a3d-091f3cf708b7"/>
          </valueReference>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-over-25-dur">
          <valueBoolean value="false"/>
        </extension>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/identifier-type"/>
              <code value="PLAC"/>
            </coding>
          </type>
          <system value="urn:oid:1.2.3.4.5.9.3333.2"/>
        <!--          OID Structure includes EMR application instance.branch assigned for MedOrder ID         -->
          <value value="mi-a1-VENTOLIN-20160201"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
        <!--      This must match the Medication resource ID      -->
          <reference value="#med"/>
        </medicationReference>
        <patient>
          <reference value="Patient/PatientGUID"/>
        </patient>
        <dateWritten value="2021-08-10T12:15:38.123-06:00"/>
        <prescriber>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </prescriber>
        <dosageInstruction>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/extension-Dosage.sequence">
            <valueInteger value="1"/>
          </extension>
          <text value="Inhale 2 puffs 4 time per day for 40 days Route: Oral"/>
          <timing>
          <!--       Dose Timing data element must also be part of the ext-medication-rendered-dosage       -->
            <repeat>
              <boundsPeriod>
                <start value="2021-08-30"/>
              </boundsPeriod>
              <frequency value="4"/>
              <period value="1"/>
              <periodUnit value="d"/>
            </repeat>
          </timing>
          <route>
            <coding>
              <system value="http://hl7.org/fhir/v3/RouteOfAdministration"/>
              <code value="PO"/>
            </coding>
            <text value="Oral"/>
          </route>
          <doseRange>
            <low>
              <value value="1"/>
              <unit value="Puff"/>
            <!--  See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)  -->
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
              <code value="415215001"/>
            </low>
            <high>
              <value value="2"/>
              <unit value="Puff"/>
            <!--  See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)  -->
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
              <code value="415215001"/>
            </high>
          </doseRange>
          <maxDosePerPeriod>
            <numerator>
              <value value="10"/>
              <unit value="Puff"/>
            <!--  See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)  -->
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
              <code value="415215001"/>
            </numerator>
            <denominator>
              <value value="1"/>
              <system value="http://unitsofmeasure.org"/>
              <code value="d"/>
            </denominator>
          </maxDosePerPeriod>
        </dosageInstruction>
        <dosageInstruction>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/extension-Dosage.sequence">
            <valueInteger value="2"/>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-dosageinstruction-relationship">
            <valueCode value="and"/>
          </extension>
          <text value="Inhale 2 puffs 10 minutes before physical exertion"/>
          <additionalInstructions>
            <text value="As needed"/>
          </additionalInstructions>
          <route>
            <coding>
              <system value="http://hl7.org/fhir/v3/RouteOfAdministration"/>
              <code value="PO"/>
            </coding>
            <text value="Oral"/>
          </route>
          <doseQuantity>
            <value value="2"/>
            <unit value="Puff"/>
          <!--  See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)  -->
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="415215001"/>
          </doseQuantity>
          <maxDosePerPeriod>
            <numerator>
              <value value="10"/>
              <unit value="Puff"/>
            <!--  See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)  -->
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
              <code value="415215001"/>
            </numerator>
            <denominator>
              <value value="1"/>
              <system value="http://unitsofmeasure.org"/>
              <code value="d"/>
            </denominator>
          </maxDosePerPeriod>
        </dosageInstruction>
        <dispenseRequest>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-total-quantity">
            <valueQuantity>
              <value value="1"/>
              <unit value="Inhaler"/>
            <!--  See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)  -->
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
              <code value="334980009"/>
            </valueQuantity>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-total-days-supply">
            <valueQuantity>
              <value value="40"/>
              <unit value="day"/>
              <system value="http://unitsofmeasure.org"/>
              <code value="d"/>
            </valueQuantity>
          </extension>
          <validityPeriod>
            <start value="2021-08-10T12:15:38.123-06:00"/>
          </validityPeriod>
          <quantity>
            <value value="1"/>
            <unit value="Inhaler"/>
          <!--  See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)  -->
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="334980009"/>
          </quantity>
          <expectedSupplyDuration>
            <value value="40"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="d"/>
          </expectedSupplyDuration>
        </dispenseRequest>
        <priorPrescription>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/extension-Reference.identifier">
            <valueIdentifier>
              <type>
                <coding>
                  <system value="http://hl7.org/fhir/identifier-type"/>
                  <code value="PLAC"/>
                </coding>
              </type>
              <system value="urn:oid:1.2.3.4.5.9.3333.2"/>
              <value value="mi-a1-VENTOLIN-20160201"/>
            </valueIdentifier>
          </extension>
        </priorPrescription>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske161MedicationOrderGUID"/>
    <resource>
      <MedicationOrder>
        <id value="Taske161MedicationOrderGUID"/>
        <contained>
          <Medication>
            <id value="med"/>
            <code>
              <coding>
              <!--  If DIN is found on PrescriptionMedicinalProduct Concept Code, then system value="https://fhir.infoway-inforoute.ca/CodeSystem/canadianclinicaldrugdataset"  -->
                <system value="http://hl7.org/fhir/NamingSystem/ca-hc-din"/>
                <code value="02093146"/>
                <display value="NICODERM 21MG/24 HR PATCH"/>
              </coding>
            <!--  TEXT element is mandatory on the prescription  -->
              <text value="NICODERM 21MG/24 HR PATCH"/>
            </code>
          </Medication>
        </contained>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-MedicationRequest.category">
          <valueCodeableConcept>
            <coding>
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontype"/>
              <code value="medication"/>
            </coding>
          </valueCodeableConcept>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-protocol">
          <valueString
                       value="Identifies the Protocol, Order set, Guideline or other definition that guided the creation of this prescription"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-treatment-type">
          <valueCode value="CHRON"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-rendered-dosage">
          <valueString
                       value="Apply 1 Patch 1 time per day for 28 days Site: Left arm"/>
        </extension>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-MedicationRequest.supportingInfo">
          <valueReference>
            <reference value="Observation/4fb26823-5296-4291-8bc4-82440fc0b343"/>
          </valueReference>
        </extension>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-MedicationRequest.supportingInfo">
          <valueReference>
            <reference value="Observation/f2a711d7-3476-40f4-93a9-118e7ca8ccc7"/>
          </valueReference>
        </extension>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-MedicationRequest.supportingInfo">
          <valueReference>
            <reference value="List/da9514da-c9fe-418b-9a3d-091f3cf708b7"/>
          </valueReference>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-request-detectedissue">
          <valueReference>
            <reference
                       value="DetectedIssue/4899f3f8-7592-42f4-a325-cd11b4c42121"/>
          </valueReference>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-request-dispenser-instructions">
          <valueString
                       value="To convey explicit instructions to the Pharmacist related to this medication order"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-over-25-dur">
          <valueBoolean value="false"/>
        </extension>
      <!--  Setting the flag to false is equivalent to omitting this extension  -->
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-no-renewals">
          <valueBoolean value="false"/>
        </extension>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/identifier-type"/>
              <code value="PLAC"/>
            </coding>
          </type>
          <system value="urn:oid:1.2.3.4.5.9.3333.2"/>
        <!--           OID Structure includes EMR application instance.branch assigned for MedOrder ID          -->
          <value value="mi-c1-NICODERM-20160303"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
        <!--       This must match the Medication resource ID       -->
          <reference value="#med"/>
        </medicationReference>
        <patient>
          <reference value="Patient/PatientGUID"/>
        </patient>
        <dateWritten value="2021-08-10T12:15:38.123-06:00"/>
        <prescriber>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </prescriber>
        <dosageInstruction>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/extension-Dosage.sequence">
            <valueInteger value="1"/>
          </extension>
          <text value="Apply 1 Patch 1 time per day for 28 days Site: Left arm"/>
          <timing>
          <!--        Dose Timing data element must also be part of the ext-medication-rendered-dosage        -->
            <repeat>
              <frequency value="1"/>
              <period value="1"/>
              <periodUnit value="d"/>
            </repeat>
          </timing>
          <asNeededBoolean value="true"/>
          <siteCodeableConcept>
            <coding>
              <system value="http://hl7.org/fhir/v3/ActSite"/>
              <code value="LA"/>
            </coding>
            <text value="Left arm"/>
          </siteCodeableConcept>
          <doseQuantity>
            <value value="1"/>
            <unit value="Patch"/>
          <!--  See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)  -->
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="419702001"/>
          </doseQuantity>
        </dosageInstruction>
        <dispenseRequest>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-total-quantity">
            <valueQuantity>
              <value value="28"/>
              <unit value="Patch"/>
            <!--  See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)  -->
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
              <code value="419702001"/>
            </valueQuantity>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-total-days-supply">
            <valueQuantity>
              <value value="28"/>
              <system value="http://unitsofmeasure.org"/>
              <code value="d"/>
            </valueQuantity>
          </extension>
        <!--           Usage Notes: This integer does NOT include the original order dispense.          -->
          <validityPeriod>
            <start value="2021-08-10T12:15:38.123-06:00"/>
          </validityPeriod>
          <quantity>
            <value value="28"/>
            <unit value="Patch"/>
          <!--  See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)  -->
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="419702001"/>
          </quantity>
          <expectedSupplyDuration>
            <value value="28"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="d"/>
          </expectedSupplyDuration>
        </dispenseRequest>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
  <!--      This is the MedicationOrder for the Task e162-m     -->
    <fullUrl value="urn:uuid:Taske162MedicationOrderGUID"/>
    <resource>
      <MedicationOrder>
        <id value="Taske162MedicationOrderGUID"/>
        <contained>
          <Medication>
            <id value="med"/>
            <code>
              <text value="Strips"/>
            </code>
          </Medication>
        </contained>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-MedicationRequest.category">
          <valueCodeableConcept>
            <coding>
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontype"/>
              <code value="device"/>
            </coding>
          </valueCodeableConcept>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-treatment-type">
          <valueCode value="ACU"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-rendered-dosage">
          <valueString value="3 times per day before eating"/>
        </extension>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/identifier-type"/>
              <code value="PLAC"/>
            </coding>
          </type>
          <system value="urn:oid:1.2.3.4.5.9.3333.2"/>
        <!--           OID Structure includes EMR application instance.branch assigned for MedOrder ID          -->
          <value value="mi-c1-STRIPS-20160303"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
        <!--       This must match the Medication resource ID       -->
          <reference value="#med"/>
        </medicationReference>
        <patient>
          <reference value="Patient/PatientGUID"/>
        </patient>
        <dateWritten value="2021-08-10T12:15:38.123-06:00"/>
        <prescriber>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </prescriber>
        <dispenseRequest>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-total-quantity">
            <valueQuantity>
              <value value="25"/>
              <unit value="Strip"/>
            <!--  See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)  -->
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
              <code value="1671000175104"/>
            </valueQuantity>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-total-days-supply">
            <valueQuantity>
              <value value="90"/>
              <unit value="day"/>
              <system value="http://unitsofmeasure.org"/>
              <code value="d"/>
            </valueQuantity>
          </extension>
          <validityPeriod>
            <start value="2021-08-10T12:15:38.123-06:00"/>
          </validityPeriod>
          <quantity>
            <value value="25"/>
            <unit value="Strip"/>
          <!--  See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)  -->
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="1671000175104"/>
          </quantity>
          <expectedSupplyDuration>
            <value value="90"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="d"/>
          </expectedSupplyDuration>
        </dispenseRequest>
        <priorPrescription>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/extension-Reference.identifier">
            <valueIdentifier>
              <type>
                <coding>
                  <system value="http://hl7.org/fhir/identifier-type"/>
                  <code value="PLAC"/>
                </coding>
              </type>
              <system value="urn:oid:1.2.3.4.5.9.3333.2"/>
              <value value="mi-c1-STRIPS-20160303"/>
            </valueIdentifier>
          </extension>
        </priorPrescription>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske163MedicationOrderGUID"/>
  <!--  MedicationOrder for Task e163-m  -->
    <resource>
      <MedicationOrder>
        <id value="Taske163MedicationOrderGUID"/>
        <contained>
          <Medication>
            <id value="med"/>
            <code>
            <!--          This is the name of the drug          -->
              <coding>
                <system
                        value="https://fhir.infoway-inforoute.ca/CodeSystem/canadianclinicaldrugdataset"/>
                <code value="00312770"/>
                <display
                         value="APO PREDNISONE TAB 5MG (prednisone 5 mg oral tablet) APOTEX INC"/>
              </coding>
              <text value="APO-PREDNISONE TAB 5MG"/>
            </code>
          </Medication>
        </contained>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-MedicationRequest.category">
          <valueCodeableConcept>
            <coding>
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontype"/>
              <code value="medication"/>
            </coding>
          </valueCodeableConcept>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-treatment-type">
          <valueCode value="CHRON"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-rendered-dosage">
          <valueString
                       value="Take 8 Tablet(s) 1 time per day for 3 days Route: Oral THEN Take 6 Tablet(s) 1 time per day for 3 days Route: Oral THEN Take 4 Tablet(s) 1 time per day for 3 days Route: Oral THEN Take 2 Tablet(s) 1 time per day for 3 days Route: Oral THEN Take 1 Tablet(s) 1 time per day for 3 days Route: Oral"/>
        </extension>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-MedicationRequest.supportingInfo">
          <valueReference>
            <reference value="Observation/4fb26823-5296-4291-8bc4-82440fc0b343"/>
          </valueReference>
        </extension>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-MedicationRequest.supportingInfo">
          <valueReference>
            <reference value="Observation/f2a711d7-3476-40f4-93a9-118e7ca8ccc7"/>
          </valueReference>
        </extension>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-MedicationRequest.supportingInfo">
          <valueReference>
            <reference value="List/da9514da-c9fe-418b-9a3d-091f3cf708b7"/>
          </valueReference>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-request-detectedissue">
          <valueReference>
            <reference
                       value="DetectedIssue/4899f3f8-7592-42f4-a325-cd11b4c42121"/>
          </valueReference>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-over-25-dur">
          <valueBoolean value="false"/>
        </extension>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/identifier-type"/>
              <code value="PLAC"/>
            </coding>
          </type>
          <system value="urn:oid:1.2.3.4.5.9.3333.2"/>
        <!--          OID Structure includes EMR application instance.branch assigned for MedOrder ID         -->
          <value value="12345"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
        <!--      This must match the Medication resource ID      -->
          <reference value="#med"/>
        </medicationReference>
        <patient>
          <reference value="Patient/PatientGUID"/>
        </patient>
        <dateWritten value="2021-08-10T12:15:38.123-06:00"/>
        <prescriber>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </prescriber>
        <dosageInstruction>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/extension-Dosage.sequence">
            <valueInteger value="1"/>
          </extension>
          <text value="Take 8 Tablet(s) 1 time per day for 3 days Route: Oral"/>
          <timing>
          <!--       Dose Timing data element must also be part of the ext-medication-rendered-dosage       -->
            <repeat>
              <frequency value="1"/>
              <period value="1"/>
              <periodUnit value="d"/>
            </repeat>
          </timing>
          <route>
            <coding>
              <system value="http://hl7.org/fhir/v3/RouteOfAdministration"/>
              <code value="PO"/>
            </coding>
            <text value="Oral"/>
          </route>
          <doseQuantity>
            <value value="8"/>
            <unit value="Tablet(s)"/>
          <!--  See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)  -->
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="428673006"/>
          </doseQuantity>
        </dosageInstruction>
        <dosageInstruction>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/extension-Dosage.sequence">
            <valueInteger value="2"/>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-dosageinstruction-relationship">
            <valueCode value="then"/>
          </extension>
          <text value="Take 6 Tablet(s) 1 time per day for 3 days Route: Oral"/>
          <timing>
          <!--       Dose Timing data element must also be part of the ext-medication-rendered-dosage       -->
            <repeat>
              <frequency value="1"/>
              <period value="1"/>
              <periodUnit value="d"/>
            </repeat>
          </timing>
          <route>
            <coding>
              <system value="http://hl7.org/fhir/v3/RouteOfAdministration"/>
              <code value="PO"/>
            </coding>
            <text value="Oral"/>
          </route>
          <doseQuantity>
            <value value="6"/>
            <unit value="Tablet(s)"/>
          <!--  See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)  -->
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="428673006"/>
          </doseQuantity>
        </dosageInstruction>
        <dosageInstruction>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/extension-Dosage.sequence">
            <valueInteger value="3"/>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-dosageinstruction-relationship">
            <valueCode value="then"/>
          </extension>
          <text value="Take 4 Tablet(s) 1 time per day for 3 days Route: Oral"/>
          <timing>
          <!--       Dose Timing data element must also be part of the ext-medication-rendered-dosage       -->
            <repeat>
              <frequency value="1"/>
              <period value="1"/>
              <periodUnit value="d"/>
            </repeat>
          </timing>
          <route>
            <coding>
              <system value="http://hl7.org/fhir/v3/RouteOfAdministration"/>
              <code value="PO"/>
            </coding>
            <text value="Oral"/>
          </route>
          <doseQuantity>
            <value value="4"/>
            <unit value="Tablet(s)"/>
          <!--  See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)  -->
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="428673006"/>
          </doseQuantity>
        </dosageInstruction>
        <dosageInstruction>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/extension-Dosage.sequence">
            <valueInteger value="4"/>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-dosageinstruction-relationship">
            <valueCode value="then"/>
          </extension>
          <text value="Take 2 Tablet(s) 1 time per day for 3 days Route: Oral"/>
          <timing>
          <!--       Dose Timing data element must also be part of the ext-medication-rendered-dosage       -->
            <repeat>
              <frequency value="1"/>
              <period value="1"/>
              <periodUnit value="d"/>
            </repeat>
          </timing>
          <route>
            <coding>
              <system value="http://hl7.org/fhir/v3/RouteOfAdministration"/>
              <code value="PO"/>
            </coding>
            <text value="Oral"/>
          </route>
          <doseQuantity>
            <value value="2"/>
            <unit value="Tablet(s)"/>
          <!--  See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)  -->
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="428673006"/>
          </doseQuantity>
        </dosageInstruction>
        <dosageInstruction>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/extension-Dosage.sequence">
            <valueInteger value="5"/>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-dosageinstruction-relationship">
            <valueCode value="then"/>
          </extension>
          <text value="Take 1 Tablet(s) 1 time per day for 3 days Route: Oral"/>
          <timing>
          <!--       Dose Timing data element must also be part of the ext-medication-rendered-dosage       -->
            <repeat>
              <frequency value="1"/>
              <period value="1"/>
              <periodUnit value="d"/>
            </repeat>
          </timing>
          <route>
            <coding>
              <system value="http://hl7.org/fhir/v3/RouteOfAdministration"/>
              <code value="PO"/>
            </coding>
            <text value="Oral"/>
          </route>
          <doseQuantity>
            <value value="1"/>
            <unit value="Tablet(s)"/>
          <!--  See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)  -->
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="428673006"/>
          </doseQuantity>
        </dosageInstruction>
        <dispenseRequest>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-total-quantity">
            <valueQuantity>
              <value value="63"/>
              <unit value="Tablet(s)"/>
            <!--  See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)  -->
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
              <code value="428673006"/>
            </valueQuantity>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-total-days-supply">
            <valueQuantity>
              <value value="15"/>
              <system value="http://unitsofmeasure.org"/>
              <code value="d"/>
            </valueQuantity>
          </extension>
          <validityPeriod>
            <start value="2021-08-10T12:15:38.123-06:00"/>
          </validityPeriod>
          <quantity>
            <value value="63"/>
            <unit value="Tablet(s)"/>
          <!--  See Terminology Gateway for the SNOMED CT CA Edition system (i.e. not http://snomed.info/sct)  -->
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="428673006"/>
          </quantity>
          <expectedSupplyDuration>
            <value value="15"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="d"/>
          </expectedSupplyDuration>
        </dispenseRequest>
        <priorPrescription>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/extension-Reference.identifier">
            <valueIdentifier>
              <type>
                <coding>
                  <system value="http://hl7.org/fhir/identifier-type"/>
                  <code value="PLAC"/>
                </coding>
              </type>
              <system value="urn:oid:1.2.3.4.5.9.3333.2"/>
              <value value="mi-c1-PREDNISONE-20160303"/>
            </valueIdentifier>
          </extension>
        </priorPrescription>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske164MedicationOrderGUID"/>
    <resource>
      <MedicationOrder>
        <id value="Taske164MedicationOrderGUID"/>
        <contained>
          <Medication>
            <id value="med"/>
            <code>
              <text
                    value="HYDROCORTISONE OINTMENT 0.5% WITH SALICYLIC ACID 1% and LCD 3%"/>
            </code>
            <product>
              <form>
                <coding>
                  <system value="http://hl7.org/fhir/v3/orderableDrugForm"/>
                  <code value="OINT"/>
                </coding>
                <text value="Ointment"/>
              </form>
            </product>
          </Medication>
        </contained>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-MedicationRequest.category">
          <valueCodeableConcept>
            <coding>
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontype"/>
              <code value="compound"/>
            </coding>
          </valueCodeableConcept>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-treatment-type">
          <valueCode value="ACU"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-rendered-dosage">
          <valueString
                       value="Apply a thin layer 1 time per day for 30 days until rash clears. If the rash persists, continue applying for up to 40 days. Route: Topical"/>
        </extension>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-MedicationRequest.supportingInfo">
          <valueReference>
            <reference value="Observation/4fb26823-5296-4291-8bc4-82440fc0b343"/>
          </valueReference>
        </extension>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-MedicationRequest.supportingInfo">
          <valueReference>
            <reference value="Observation/f2a711d7-3476-40f4-93a9-118e7ca8ccc7"/>
          </valueReference>
        </extension>
      <!--  Future        <extension url="http://hl7.org/fhir/StructureDefinition/extension-MedicationRequest.supportingInfo">          <valueReference>            <reference value="List/da9514da-c9fe-418b-9a3d-091f3cf708b7"/>          </valueReference>        </extension>  -->
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-request-detectedissue">
          <valueReference>
            <reference
                       value="DetectedIssue/4899f3f8-7592-42f4-a325-cd11b4c42121"/>
          </valueReference>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-over-25-dur">
          <valueBoolean value="false"/>
        </extension>
      <!--  setting this flag to false is equivalent to excluding this extension  -->
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-monitored-drug">
          <valueBoolean value="false"/>
        </extension>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/identifier-type"/>
              <code value="PLAC"/>
            </coding>
          </type>
          <system value="urn:oid:1.2.3.4.5.9.3333.2"/>
        <!--           OID Structure includes EMR application instance.branch assigned for MedOrder ID          -->
          <value value="mi-c1-COMPOUND-20160303"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
        <!--       This must match the Medication resource ID       -->
          <reference value="#med"/>
        </medicationReference>
        <patient>
          <reference value="Patient/PatientGUID"/>
        </patient>
        <dateWritten value="2021-08-10T12:15:38.123-06:00"/>
        <prescriber>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </prescriber>
        <dosageInstruction>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/extension-Dosage.sequence">
            <valueInteger value="1"/>
          </extension>
          <text
                value="Apply a thin layer 1 time per day for 30 days until rash clears. If the rash persists, continue applying for up to 40 days. Route: Topical"/>
          <additionalInstructions>
            <text
                  value="If the rash persists, continue applying for up to 40 days."/>
          </additionalInstructions>
          <timing>
          <!--        Dose Timing data element must also be part of the ext-medication-rendered-dosage        -->
            <repeat>
              <boundsRange>
                <low>
                  <value value="30"/>
                  <unit value="day"/>
                  <system value="http://unitsofmeasure.org"/>
                  <code value="d"/>
                </low>
                <high>
                  <value value="40"/>
                  <unit value="day"/>
                  <system value="http://unitsofmeasure.org"/>
                  <code value="d"/>
                </high>
              </boundsRange>
              <frequency value="1"/>
              <period value="1"/>
              <periodUnit value="d"/>
            </repeat>
          </timing>
          <route>
            <coding>
              <system value="http://hl7.org/fhir/v3/RouteOfAdministration"/>
              <code value="TOPICAL"/>
            </coding>
            <text value="Topical"/>
          </route>
        </dosageInstruction>
        <dispenseRequest>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-total-quantity">
            <valueQuantity>
              <value value="50"/>
              <unit value="g"/>
              <system value="http://unitsofmeasure.org"/>
              <code value="g"/>
            </valueQuantity>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-total-days-supply">
            <valueQuantity>
              <value value="30"/>
              <system value="http://unitsofmeasure.org"/>
              <code value="d"/>
            </valueQuantity>
          </extension>
        <!--  This is ONLY populated if it is for trial, else it is assumed not to be eligble.  -->
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-dispense-trial">
            <valueBoolean value="false"/>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-dispense-first-fill">
            <extension url="quantity">
              <valueQuantity>
                <value value="50"/>
                <unit value="g"/>
                <system value="http://unitsofmeasure.org"/>
                <code value="g"/>
              </valueQuantity>
            </extension>
            <extension url="expectedSupplyDuration">
              <valueQuantity>
                <value value="30"/>
                <system value="http://unitsofmeasure.org"/>
                <code value="d"/>
              </valueQuantity>
            </extension>
          </extension>
          <validityPeriod>
            <start value="2021-08-10T12:15:38.123-06:00"/>
          </validityPeriod>
          <quantity>
            <value value="50"/>
            <unit value="g"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="g"/>
          </quantity>
          <expectedSupplyDuration>
            <value value="30"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="d"/>
          </expectedSupplyDuration>
        </dispenseRequest>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:4fb26823-5296-4291-8bc4-82440fc0b343"/>
    <resource>
      <Observation>
        <id value="4fb26823-5296-4291-8bc4-82440fc0b343"/>
        <status value="final"/>
        <category>
        <!--      This is mandatory in FHIR and must be included as shown      -->
          <coding>
            <system value="http://hl7.org/fhir/observation-category"/>
            <code value="vital-signs"/>
          </coding>
        </category>
        <code>
          <coding>
            <system value="https://fhir.infoway-inforoute.ca/CodeSystem/pCLOCD"/>
            <code value="8302-2"/>
          </coding>
        </code>
        <subject>
          <reference value="Patient/PatientGUID"/>
        </subject>
        <effectiveDateTime value="2016-03-16"/>
        <valueQuantity>
          <value value="180"/>
          <system value="http://unitsofmeasure.org"/>
          <code value="cm"/>
        </valueQuantity>
      </Observation>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:f2a711d7-3476-40f4-93a9-118e7ca8ccc7"/>
    <resource>
      <Observation>
        <id value="f2a711d7-3476-40f4-93a9-118e7ca8ccc7"/>
        <status value="final"/>
        <category>
        <!--      This is mandatory in FHIR and must be included as shown      -->
          <coding>
            <system value="http://hl7.org/fhir/observation-category"/>
            <code value="vital-signs"/>
          </coding>
        </category>
        <code>
          <coding>
            <system value="https://fhir.infoway-inforoute.ca/CodeSystem/pCLOCD"/>
            <code value="29463-7"/>
          </coding>
        </code>
        <subject>
          <reference value="Patient/PatientGUID"/>
        </subject>
        <effectiveDateTime value="2016-03-16"/>
        <valueQuantity>
          <value value="80"/>
          <system value="http://unitsofmeasure.org"/>
          <code value="kg"/>
        </valueQuantity>
      </Observation>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:da9514da-c9fe-418b-9a3d-091f3cf708b7"/>
    <resource>
      <List>
        <id value="da9514da-c9fe-418b-9a3d-091f3cf708b7"/>
        <text>
          <status value="additional"/>
          <div xmlns="http://www.w3.org/1999/xhtml">NSAID Intolerance|Severe Latex allergy|Penicillin allergy</div>
        </text>
        <status value="current"/>
        <mode value="snapshot"/>
        <code>
          <coding>
            <system value="http://hl7.org/fhir/list-example-use-codes"/>
            <code value="allergies"/>
          </coding>
        </code>
        <subject>
          <reference value="Patient/PatientGUID"/>
          <display value="Todd G. Lerr Jr"/>
        </subject>
      </List>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:4899f3f8-7592-42f4-a325-cd11b4c42121"/>
    <resource>
      <DetectedIssue>
        <id value="4899f3f8-7592-42f4-a325-cd11b4c42121"/>
        <patient>
          <reference value="Patient/PatientGUID"/>
        </patient>
      <!--  
					<text value="Plain text representation of the concept"/>  -->
        <category>
          <coding>
            <system value="http://hl7.org/fhir/v3/ActCode"/>
            <code value="ALLDONE"/>
            <display value="already performed"/>
          </coding>
        </category>
        <implicated>
          <reference value="MedicationOrder/Taske163MedicationOrderGUID"/>
        </implicated>
        <detail
                value="Aspirin contraindicated for patients intolerant of NSAIDs"/>
        <mitigation>
          <action>
            <coding>
              <system value="http://hl7.org/fhir/v3/ActCode"/>
              <code value="1"/>
              <display value="Therapy Appropriate"/>
            </coding>
            <text value="Plain text representation of the concept"/>
          </action>
        </mitigation>
      </DetectedIssue>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:OutputTaskGUID1"/>
    <resource>
      <Task>
        <id value="OutputTaskGUID1"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/task-e110-m"/>
        </meta>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-Task.groupIdentifier">
          <valueIdentifier>
            <system value="urn:oid:1.2.3.4.5.9.3333.3"/>
            <value value="ri-Group-Identifier"/>
          </valueIdentifier>
        </extension>
        <type>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontasktype"/>
            <code value="e110-m"/>
          </coding>
        </type>
        <status value="requested"/>
        <subject>
          <reference value="MedicationOrder/OutputMedicationOrderGUID1"/>
        </subject>
        <for>
          <reference value="Patient/PatientGUID"/>
        </for>
        <created value="2021-08-10T12:15:38.123-06:00"/>
        <lastModified value="2021-08-10T12:15:38.123-06:00"/>
        <creator>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </creator>
        <owner>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCPMSCPRID"/>
        </owner>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:OutputMedicationOrderGUID1"/>
    <resource>
      <MedicationOrder>
        <id value="OutputMedicationOrderGUID1"/>
        <text>
          <status value="empty"/>
          <div xmlns="http://www.w3.org/1999/xhtml">No narrative provided</div>
        </text>
        <contained>
          <Medication>
            <id value="f139e8c8-9274-431a-a74d-abead44850f7"/>
            <extension
                       url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-strength-description">
              <valueString value="325 mg"/>
            </extension>
            <code>
              <coding>
                <extension
                           url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-code-representative">
                  <valueBoolean value="true"/>
                </extension>
                <system value="http://hl7.org/fhir/NamingSystem/ca-hc-din"/>
                <code value="00559393"/>
                <display value="Tylenol 325 mg"/>
              </coding>
              <text value="Tylenol 325 mg"/>
            </code>
          </Medication>
        </contained>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-treatment-type">
          <valueCode value="CHRON"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-over-25-dur">
          <valueBoolean value="false"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-no-renewals">
          <valueBoolean value="false"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-monitored-drug">
          <valueBoolean value="false"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-rendered-dosage">
          <valueString value="325 mg every 4 hours"/>
        </extension>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/identifier-type"/>
              <code value="PLAC"/>
            </coding>
          </type>
          <system value="urn:oid:1.2.3.4.5.9.3333.2"/>
          <value value="Rx-OutputMedicationOrderGUID1"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
          <reference value="#f139e8c8-9274-431a-a74d-abead44850f7"/>
        </medicationReference>
        <patient>
          <reference value="Patient/PatientGUID"/>
        </patient>
        <dateWritten value="2021-01-20T22:02:28.0217-08:00"/>
        <prescriber>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </prescriber>
        <dosageInstruction>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/extension-Dosage.sequence">
            <valueInteger value="1"/>
          </extension>
          <text value="325 mg every 4 hours"/>
          <timing>
            <repeat>
              <boundsPeriod>
                <start value="2021-01-20"/>
              </boundsPeriod>
              <frequency value="1"/>
              <period value="4"/>
              <periodUnit value="h"/>
            </repeat>
          </timing>
          <route>
            <coding>
              <system value="http://hl7.org/fhir/v3/RouteOfAdministration"/>
              <code value="PO"/>
              <display value="Swallow, oral"/>
            </coding>
            <text value="Oral"/>
          </route>
          <doseQuantity>
            <value value="325"/>
            <unit value="mg"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="mg"/>
          </doseQuantity>
        </dosageInstruction>
        <dispenseRequest>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-total-quantity">
            <valueQuantity>
              <value value="6"/>
              <unit value="Capsule(s)"/>
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
              <code value="428641000"/>
            </valueQuantity>
          </extension>
          <validityPeriod>
            <start value="2021-01-20"/>
          </validityPeriod>
          <quantity>
            <value value="6"/>
            <unit value="Capsule(s)"/>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="428641000"/>
          </quantity>
        </dispenseRequest>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:OutputTaskGUID2"/>
    <resource>
      <Task>
        <id value="OutputTaskGUID2"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/task-e110-m"/>
        </meta>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-Task.groupIdentifier">
          <valueIdentifier>
            <system value="urn:oid:1.2.3.4.5.9.3333.3"/>
            <value value="ri-Group-Identifier"/>
          </valueIdentifier>
        </extension>
        <type>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontasktype"/>
            <code value="e110-m"/>
          </coding>
        </type>
        <status value="requested"/>
        <subject>
          <reference value="MedicationOrder/OutputMedicationOrderGUID2"/>
        </subject>
        <for>
          <reference value="Patient/PatientGUID"/>
        </for>
        <created value="2021-08-10T12:15:38.123-06:00"/>
        <lastModified value="2021-08-10T12:15:38.123-06:00"/>
        <creator>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </creator>
        <owner>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCPMSCPRID"/>
        </owner>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:OutputMedicationOrderGUID2"/>
    <resource>
      <MedicationOrder>
        <id value="OutputMedicationOrderGUID2"/>
        <text>
          <status value="empty"/>
          <div xmlns="http://www.w3.org/1999/xhtml">No narrative provided</div>
        </text>
        <contained>
          <Medication>
            <id value="195dbf25-38ff-4294-842b-a2c88e9fc4ec"/>
            <code>
              <coding>
                <extension
                           url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-code-representative">
                  <valueBoolean value="false"/>
                </extension>
                <system value="http://hl7.org/fhir/NamingSystem/ca-hc-din"/>
                <code value="02420813"/>
                <display value="Reclipsen (21) 0.15-0.03 mg"/>
              </coding>
              <text value="Reclipsen (21) 0.15-0.03 mg"/>
            </code>
            <product>
              <form>
                <coding>
                  <system value="http://hl7.org/fhir/v3/orderableDrugForm"/>
                  <code value="TAB"/>
                  <display value="Tablet"/>
                </coding>
                <text value="Tablet"/>
              </form>
            </product>
          </Medication>
        </contained>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-treatment-type">
          <valueCode value="ACU"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-over-25-dur">
          <valueBoolean value="false"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-no-renewals">
          <valueBoolean value="false"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-monitored-drug">
          <valueBoolean value="false"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-rendered-dosage">
          <valueString value="1 tablet 4 times daily for 4 days"/>
        </extension>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/identifier-type"/>
              <code value="PLAC"/>
            </coding>
          </type>
          <system value="urn:oid:1.2.3.4.5.9.3333.2"/>
          <value value="Rx-OutputMedicationOrderGUID2"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
          <reference value="#195dbf25-38ff-4294-842b-a2c88e9fc4ec"/>
        </medicationReference>
        <patient>
          <reference value="Patient/PatientGUID"/>
        </patient>
        <dateWritten value="2021-01-20T22:02:28.0252-08:00"/>
        <prescriber>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </prescriber>
        <dosageInstruction>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/extension-Dosage.sequence">
            <valueInteger value="1"/>
          </extension>
          <text value="1 tablet 4 times daily for 4 days"/>
          <timing>
            <repeat>
              <boundsPeriod>
                <start value="2021-01-20"/>
              </boundsPeriod>
              <duration value="4"/>
              <durationUnit value="d"/>
              <frequency value="4"/>
              <period value="1"/>
              <periodUnit value="d"/>
            </repeat>
          </timing>
          <route>
            <coding>
              <system value="http://hl7.org/fhir/v3/RouteOfAdministration"/>
              <code value="PO"/>
              <display value="Swallow, oral"/>
            </coding>
            <text value="Oral"/>
          </route>
          <doseQuantity>
            <value value="1"/>
            <unit value="Tablet(s)"/>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="428673006"/>
          </doseQuantity>
        </dosageInstruction>
        <dispenseRequest>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-total-days-supply">
            <valueQuantity>
              <value value="4"/>
              <system value="http://unitsofmeasure.org"/>
              <code value="d"/>
            </valueQuantity>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-total-quantity">
            <valueQuantity>
              <value value="16"/>
              <unit value="Tablet(s)"/>
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
              <code value="428673006"/>
            </valueQuantity>
          </extension>
          <validityPeriod>
            <start value="2021-01-20"/>
          </validityPeriod>
          <quantity>
            <value value="16"/>
            <unit value="Tablet(s)"/>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="428673006"/>
          </quantity>
          <expectedSupplyDuration>
            <value value="4"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="d"/>
          </expectedSupplyDuration>
        </dispenseRequest>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:OutputTaskGUID3"/>
    <resource>
      <Task>
        <id value="OutputTaskGUID3"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/task-e110-m"/>
        </meta>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-Task.groupIdentifier">
          <valueIdentifier>
            <system value="urn:oid:1.2.3.4.5.9.3333.3"/>
            <value value="ri-Group-Identifier"/>
          </valueIdentifier>
        </extension>
        <type>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontasktype"/>
            <code value="e110-m"/>
          </coding>
        </type>
        <status value="requested"/>
        <subject>
          <reference value="MedicationOrder/OutputMedicationOrderGUID3"/>
        </subject>
        <for>
          <reference value="Patient/PatientGUID"/>
        </for>
        <created value="2021-08-10T12:15:38.123-06:00"/>
        <lastModified value="2021-08-10T12:15:38.123-06:00"/>
        <creator>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </creator>
        <owner>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCPMSCPRID"/>
        </owner>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:OutputMedicationOrderGUID3"/>
    <resource>
      <MedicationOrder>
        <id value="OutputMedicationOrderGUID3"/>
        <text>
          <status value="empty"/>
          <div xmlns="http://www.w3.org/1999/xhtml">No narrative provided</div>
        </text>
        <contained>
          <Medication>
            <id value="2be7cf27-d5a0-4269-805d-4fb546fe8ae2"/>
            <extension
                       url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-strength-description">
              <valueString value="1 mg"/>
            </extension>
            <code>
              <coding>
                <extension
                           url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-code-representative">
                  <valueBoolean value="true"/>
                </extension>
                <system value="http://hl7.org/fhir/NamingSystem/ca-hc-din"/>
                <code value="02350475"/>
                <display value="terazosin 1 mg"/>
              </coding>
              <text value="terazosin 1 mg"/>
            </code>
            <product>
              <form>
                <coding>
                  <system value="http://hl7.org/fhir/v3/orderableDrugForm"/>
                  <code value="TAB"/>
                  <display value="Tablet"/>
                </coding>
                <text value="Tablet"/>
              </form>
            </product>
          </Medication>
        </contained>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-treatment-type">
          <valueCode value="ACU"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-over-25-dur">
          <valueBoolean value="false"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-no-renewals">
          <valueBoolean value="false"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-monitored-drug">
          <valueBoolean value="false"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-rendered-dosage">
          <valueString value="3 tablets 1 time daily for 6 days"/>
        </extension>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/identifier-type"/>
              <code value="PLAC"/>
            </coding>
          </type>
          <system value="urn:oid:1.2.3.4.5.9.3333.2"/>
          <value value="Rx-OutputMedicationOrderGUID3"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
          <reference value="#2be7cf27-d5a0-4269-805d-4fb546fe8ae2"/>
        </medicationReference>
        <patient>
          <reference value="Patient/PatientGUID"/>
        </patient>
        <dateWritten value="2021-01-20T22:02:28.0291-08:00"/>
        <prescriber>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </prescriber>
        <dosageInstruction>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/extension-Dosage.sequence">
            <valueInteger value="1"/>
          </extension>
          <text value="3 tablets 1 time daily for 6 days"/>
          <timing>
            <repeat>
              <boundsPeriod>
                <start value="2021-01-20"/>
              </boundsPeriod>
              <duration value="6"/>
              <durationUnit value="d"/>
              <frequency value="1"/>
              <period value="1"/>
              <periodUnit value="d"/>
            </repeat>
          </timing>
          <route>
            <coding>
              <system value="http://hl7.org/fhir/v3/RouteOfAdministration"/>
              <code value="PO"/>
              <display value="Swallow, oral"/>
            </coding>
            <text value="Oral"/>
          </route>
          <doseQuantity>
            <value value="3"/>
            <unit value="Tablet(s)"/>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="428673006"/>
          </doseQuantity>
        </dosageInstruction>
        <dispenseRequest>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-total-days-supply">
            <valueQuantity>
              <value value="6"/>
              <system value="http://unitsofmeasure.org"/>
              <code value="d"/>
            </valueQuantity>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-total-quantity">
            <valueQuantity>
              <value value="18"/>
              <unit value="Tablet(s)"/>
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
              <code value="428673006"/>
            </valueQuantity>
          </extension>
          <validityPeriod>
            <start value="2021-01-20"/>
          </validityPeriod>
          <quantity>
            <value value="18"/>
            <unit value="Tablet(s)"/>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="428673006"/>
          </quantity>
          <expectedSupplyDuration>
            <value value="6"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="d"/>
          </expectedSupplyDuration>
        </dispenseRequest>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:OutputTaskGUID4"/>
    <resource>
      <Task>
        <id value="OutputTaskGUID4"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/task-e110-m"/>
        </meta>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-Task.groupIdentifier">
          <valueIdentifier>
            <system value="urn:oid:1.2.3.4.5.9.3333.3"/>
            <value value="ri-Group-Identifier"/>
          </valueIdentifier>
        </extension>
        <type>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontasktype"/>
            <code value="e110-m"/>
          </coding>
        </type>
        <status value="requested"/>
        <subject>
          <reference value="MedicationOrder/OutputMedicationOrderGUID4"/>
        </subject>
        <for>
          <reference value="Patient/PatientGUID"/>
        </for>
        <created value="2021-08-10T12:15:38.123-06:00"/>
        <lastModified value="2021-08-10T12:15:38.123-06:00"/>
        <creator>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </creator>
        <owner>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCPMSCPRID"/>
        </owner>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:OutputMedicationOrderGUID4"/>
    <resource>
      <MedicationOrder>
        <id value="OutputMedicationOrderGUID4"/>
        <text>
          <status value="empty"/>
          <div xmlns="http://www.w3.org/1999/xhtml">No narrative provided</div>
        </text>
        <contained>
          <Medication>
            <id value="med"/>
            <code>
              <coding>
                <system value="http://hl7.org/fhir/NamingSystem/ca-hc-din"/>
                <code value="02261723"/>
                <display value="YASMIN 21 TABLET (0.03MG-3MG)"/>
              </coding>
              <text value="YASMIN 21 TABLET (0.03MG-3MG)"/>
            </code>
          </Medication>
        </contained>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-MedicationRequest.category">
          <valueCodeableConcept>
            <coding>
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontype"/>
              <code value="medication"/>
            </coding>
          </valueCodeableConcept>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-treatment-type">
          <valueCode value="CHRON"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-rendered-dosage">
          <valueString
                       value="1 (One) Tablet(s), Three times daily for 60 days. Route: Oral"/>
        </extension>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/identifier-type"/>
              <code value="PLAC"/>
            </coding>
          </type>
          <system value="urn:oid:1.2.3.4.5.9.3333.2"/>
          <value value="Rx-OutputMedicationOrderGUID4"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
          <reference value="#med"/>
        </medicationReference>
        <patient>
          <reference value="Patient/PatientGUID"/>
        </patient>
        <dateWritten value="2021-01-20T22:02:28.0316-08:00"/>
        <prescriber>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </prescriber>
        <dosageInstruction>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/extension-Dosage.sequence">
            <valueInteger value="1"/>
          </extension>
          <text value="1 (One) Tablet(s), Three times daily for 60 days"/>
          <timing>
            <repeat>
              <boundsPeriod>
                <start value="2021-01-20"/>
                <end value="2021-03-20"/>
              </boundsPeriod>
              <duration value="2"/>
              <durationUnit value="mo"/>
              <frequency value="3"/>
              <period value="1"/>
              <periodUnit value="d"/>
            </repeat>
          </timing>
          <route>
            <coding>
              <system value="http://hl7.org/fhir/v3/RouteOfAdministration"/>
              <code value="PO"/>
            </coding>
            <text value="Oral"/>
          </route>
          <doseQuantity>
            <value value="1"/>
            <unit value="Tablet(s)"/>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="428673006"/>
          </doseQuantity>
        </dosageInstruction>
        <dispenseRequest>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-total-quantity">
            <valueQuantity>
              <value value="180"/>
              <unit value="Tablet(s)"/>
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
              <code value="428673006"/>
            </valueQuantity>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-total-days-supply">
            <valueQuantity>
              <value value="60"/>
              <unit value="day"/>
              <system value="http://unitsofmeasure.org"/>
              <code value="d"/>
            </valueQuantity>
          </extension>
          <validityPeriod>
            <start value="2021-01-20"/>
            <end value="2022-01-19"/>
          </validityPeriod>
          <quantity>
            <value value="180"/>
            <unit value="Tablet(s)"/>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="428673006"/>
          </quantity>
          <expectedSupplyDuration>
            <value value="60"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="d"/>
          </expectedSupplyDuration>
        </dispenseRequest>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:OutputTaskGUID5"/>
    <resource>
      <Task>
        <id value="OutputTaskGUID5"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/task-e110-m"/>
        </meta>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-Task.groupIdentifier">
          <valueIdentifier>
            <system value="urn:oid:1.2.3.4.5.9.3333.3"/>
            <value value="ri-Group-Identifier"/>
          </valueIdentifier>
        </extension>
        <type>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontasktype"/>
            <code value="e110-m"/>
          </coding>
        </type>
        <status value="requested"/>
        <subject>
          <reference value="MedicationOrder/OutputMedicationOrderGUID5"/>
        </subject>
        <for>
          <reference value="Patient/PatientGUID"/>
        </for>
        <created value="2021-08-10T12:15:38.123-06:00"/>
        <lastModified value="2021-08-10T12:15:38.123-06:00"/>
        <creator>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </creator>
        <owner>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCPMSCPRID"/>
        </owner>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:OutputMedicationOrderGUID5"/>
    <resource>
      <MedicationOrder>
        <id value="OutputMedicationOrderGUID5"/>
        <text>
          <status value="empty"/>
          <div xmlns="http://www.w3.org/1999/xhtml">No narrative provided</div>
        </text>
        <contained>
          <Medication>
            <id value="med"/>
            <extension
                       url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-strength-description">
              <valueString value="200 MG"/>
            </extension>
            <code>
              <coding>
                <extension
                           url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-code-representative">
                  <valueBoolean value="true"/>
                </extension>
                <system value="http://hl7.org/fhir/NamingSystem/ca-hc-din"/>
                <code value="02147610"/>
                <display value="ACEBUTOLOL HCL 200 mg TABLET"/>
              </coding>
              <text value="ACEBUTOLOL HCL 200 mg TABLET"/>
            </code>
          </Medication>
        </contained>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-MedicationRequest.category">
          <valueCodeableConcept>
            <coding>
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontype"/>
              <code value="medication"/>
            </coding>
          </valueCodeableConcept>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-treatment-type">
          <valueCode value="CHRON"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-rendered-dosage">
          <valueString
                       value="1 (One) Tablet(s), Two times daily for 90 days. Route: Oral"/>
        </extension>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/identifier-type"/>
              <code value="PLAC"/>
            </coding>
          </type>
          <system value="urn:oid:1.2.3.4.5.9.3333.2"/>
          <value value="Rx-OutputMedicationOrderGUID5"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
          <reference value="#med"/>
        </medicationReference>
        <patient>
          <reference value="Patient/PatientGUID"/>
        </patient>
        <dateWritten value="2021-01-20T22:02:28.0370-08:00"/>
        <prescriber>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </prescriber>
        <dosageInstruction>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/extension-Dosage.sequence">
            <valueInteger value="1"/>
          </extension>
          <text value="1 (One) Tablet(s), Two times daily for 90 days"/>
          <timing>
            <repeat>
              <boundsPeriod>
                <start value="2021-01-20"/>
                <end value="2021-04-19"/>
              </boundsPeriod>
              <duration value="90"/>
              <durationUnit value="d"/>
              <frequency value="2"/>
              <period value="1"/>
              <periodUnit value="d"/>
            </repeat>
          </timing>
          <route>
            <coding>
              <system value="http://hl7.org/fhir/v3/RouteOfAdministration"/>
              <code value="PO"/>
            </coding>
            <text value="Oral"/>
          </route>
          <doseQuantity>
            <value value="1"/>
            <unit value="Tablet(s)"/>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="428673006"/>
          </doseQuantity>
        </dosageInstruction>
        <dispenseRequest>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-total-quantity">
            <valueQuantity>
              <value value="720"/>
              <unit value="Tablet(s)"/>
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
              <code value="428673006"/>
            </valueQuantity>
          </extension>
          <extension
                     url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-total-days-supply">
            <valueQuantity>
              <value value="360"/>
              <unit value="day"/>
              <system value="http://unitsofmeasure.org"/>
              <code value="d"/>
            </valueQuantity>
          </extension>
          <validityPeriod>
            <start value="2021-01-20"/>
            <end value="2022-01-19"/>
          </validityPeriod>
        <!--  numberOfRepeatsAllowed must not be included (i.e. commented out here) as per constraint forLife-numberOfRepeatsAllowed: if forLifeFlag = TRUE, then numberOfRepeatsAllowed MUST not be specified
					<numberOfRepeatsAllowed value="3"/>  -->
          <quantity>
            <value value="180"/>
            <unit value="Tablet(s)"/>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="428673006"/>
          </quantity>
          <expectedSupplyDuration>
            <value value="90"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="d"/>
          </expectedSupplyDuration>
        </dispenseRequest>
      </MedicationOrder>
    </resource>
  </entry>
</Bundle>