PrescribeIT® Specification and Guide Version 5.0


v5.0 of this specification has been superseded by v5.3. v5.3 is compatible but adds additional features for Quebec.

The version (Bundle.meta.tag:version) that is sent in the message will remain PrescribeIT5.0

 
Raw XML


<Bundle xmlns="http://hl7.org/fhir">
  <id value="example-e1-201-p160"/>
<!--      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      -->
  <meta>
    <profile
             value="http://sharedhealth.exchange/fhir/StructureDefinition/profile-bundle-message"/>
    <profile
             value="http://prescribeit.ca/fhir/StructureDefinition/interaction-bundle-201"/>
    <tag>
      <system
              value="https://fhir.infoway-inforoute.ca/CodeSystem/sharedspecificationversion"/>
      <code value="PrescribeIT5.0"/>
    </tag>
  </meta>
  <type value="message"/>
  <entry>
    <fullUrl value="urn:uuid:94093a44-01a8-44a3-8875-f3bf56e9e761"/>
    <resource>
      <MessageHeader>
        <id value="94093a44-01a8-44a3-8875-f3bf56e9e761"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/interaction-messageheader-201"/>
        </meta>
        <timestamp value="2016-05-13T12:15:38.123-06:00"/>
        <event>
          <system
                  value="https://fhir.infoway-inforoute.ca/CodeSystem/sharedmessageevents"/>
          <code value="201"/>
        </event>
        <source>
          <extension
                     url="http://sharedhealth.exchange/fhir/StructureDefinition/ext-messageheader-application-id">
            <valueUri value="urn:oid:1.2.3.4.5.6.9999"/>
          </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/CPR1000992"/>
        </source>
        <destination>
          <endpoint
                    value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/CPR1000991"/>
        </destination>
        <data>
          <reference value="Task/38e5e519-3672-430a-a372-94efd93888a1"/>
        </data>
        <data>
          <reference value="Task/38e5e519-3672-430a-a372-94efd93888a2"/>
        </data>
        <data>
          <reference value="Task/38e5e519-3672-430a-a372-94efd93888a3"/>
        </data>
        <data>
          <reference value="Task/38e5e519-3672-430a-a372-94efd93888a4"/>
        </data>
      </MessageHeader>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
    <resource>
      <Patient>
        <id value="5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/v2/0203"/>
              <code value="JHN"/>
            </coding>
            <text value="OHIP"/>
          </type>
          <system value="urn:oid:2.16.840.1.113883.4.59"/>
        <!--           OHIP identification system           -->
          <value value="1234567890"/>
        </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.6.9999.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>
          <line value="123 North 102nd Street"/>
          <line value="Apt 4d"/>
          <city value="Harrisburg"/>
          <state value="ON"/>
          <postalCode value="M2N 7H6"/>
          <country value="Canada"/>
        </address>
      </Patient>
    </resource>
  </entry>
  <entry>
    <fullUrl
             value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/4388836452"/>
    <resource>
      <Practitioner>
        <id value="4388836452"/>
        <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.41"/>
        <!--          License ID may be part of 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"/>
        <!--          Provider ID may be part of the SAML token          -->
          <value value="4388836452"/>
        </identifier>
        <name>
          <use value="official"/>
          <family value="Martel"/>
        <!--          EMR Suffix will be included in the family tag          -->
          <given value="Dr"/>
          <given value="Benoit"/>
        </name>
        <telecom>
          <system value="phone"/>
          <value value="(123) 456-7890"/>
          <use value="work"/>
        </telecom>
        <practitionerRole>
          <organization>
            <reference
                       value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/CPR1000991"/>
          </organization>
        </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/CPR1000992"/>
    <resource>
      <Organization>
        <id value="CPR1000992"/>
        <identifier>
          <system
                  value="http://sharedhealth.exchange/fhir/NamingSystem/registry-id-organization"/>
          <value value="CPR1000992"/>
        </identifier>
        <name value="Simplicity #9999"/>
        <telecom>
          <system value="phone"/>
          <value value="(123) 123-4567"/>
          <use value="work"/>
        </telecom>
        <address>
          <type value="both"/>
          <line value="123 Some Street"/>
          <city value="Hamilton"/>
          <state value="ON"/>
          <postalCode value="A1B 2C3"/>
          <country value="Canada"/>
        </address>
      </Organization>
    </resource>
  </entry>
  <entry>
    <fullUrl
             value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/CPR1000991"/>
    <resource>
      <Organization>
        <id value="CPR1000991"/>
        <identifier>
          <system
                  value="http://sharedhealth.exchange/fhir/NamingSystem/registry-id-organization"/>
          <value value="CPR1000991"/>
        </identifier>
        <name value="PS Suite #8888"/>
        <telecom>
          <system value="phone"/>
          <value value="(123) 123-4567"/>
          <use value="work"/>
        </telecom>
        <address>
          <type value="both"/>
          <line value="456 Some Street"/>
          <city value="Hamilton"/>
          <state value="ON"/>
          <postalCode value="A1B 2C4"/>
          <country value="Canada"/>
        </address>
      </Organization>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:911dba8f-e2f3-425e-bfd8-311c1a5158c0"/>
    <resource>
      <Communication>
        <id value="911dba8f-e2f3-425e-bfd8-311c1a5158c0"/>
        <sender>
        <!--  Sender does not necessarily need to be in the Provider Registry if they are a locum  -->
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/CPR1000992"/>
        </sender>
        <recipient>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/4388836452"/>
        </recipient>
        <payload>
          <contentString
                         value="Patient would like medications asap due to upcomign vacation"/>
        </payload>
        <status value="in-progress"/>
        <subject>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </subject>
      </Communication>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:38e5e519-3672-430a-a372-94efd93888a1"/>
    <resource>
      <Task>
        <id value="38e5e519-3672-430a-a372-94efd93888a1"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/task-p160-m"/>
        </meta>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-Task.groupIdentifier">
        <!--      Define as standard extension      -->
          <valueIdentifier>
            <system value="urn:oid:1.2.3.4.5.6.3"/>
            <value value="ri-Group-Identifier"/>
          </valueIdentifier>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-message">
          <valueReference>
            <reference
                       value="Communication/911dba8f-e2f3-425e-bfd8-311c1a5158c0"/>
          </valueReference>
        </extension>
      <!--  PrescribeIT5.0 p160-1: IF splitPrescriptionFlag = TRUE, splitPrescriptionReason MUST also be specified  -->
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-split-prescription">
          <valueBoolean value="true"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-split-prescription-reason">
          <valueCodeableConcept>
            <coding>
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptionsplitreason"/>
              <code value="backOrder"/>
              <display value="Product prescribed is on back order"/>
            </coding>
          </valueCodeableConcept>
        </extension>
        <type>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontasktype"/>
            <code value="p160-m"/>
          </coding>
        </type>
        <status value="requested"/>
        <subject>
          <reference
                     value="MedicationOrder/9cee3f25-10f7-490d-863a-41e23c992e51"/>
        </subject>
        <for>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </for>
        <created value="2016-07-08T12:15:38.123-06:00"/>
        <lastModified value="2016-07-08T12:15:38.123-06:00"/>
        <creator>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/CPR1000992"/>
        </creator>
        <owner>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/4388836452"/>
        </owner>
        <input>
          <name value="daysSinceLastDispense"/>
          <valueInteger value="95"/>
        </input>
        <input>
          <name value="lastDispense"/>
          <valueReference>
            <reference
                       value="MedicationDispense/c6223d00-926e-4abc-95d0-a4045c31abb1"/>
          </valueReference>
        </input>
        <input>
          <name value="instruction"/>
          <valueString value="Used to provide the reason/explanation"/>
        </input>
      <!--  PrescribeIT5.0 p160-3: IF splitPrescriptionFlag = TRUE and there are at least 2 PMSrequestedRx inputs, then PMSinformationalRx inputs MUST not be specified  -->
        <input>
          <name value="pmsrequestedrx"/>
          <valueReference>
            <reference value="MedicationOrder/RequestedGUID1"/>
          </valueReference>
        </input>
        <input>
          <name value="pmsrequestedrx"/>
          <valueReference>
            <reference value="MedicationOrder/RequestedGUID2"/>
          </valueReference>
        </input>
        <input>
          <name value="pmsrequestedrx"/>
          <valueReference>
            <reference value="MedicationOrder/RequestedGUID3"/>
          </valueReference>
        </input>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:9cee3f25-10f7-490d-863a-41e23c992e51"/>
    <resource>
      <MedicationOrder>
        <id value="9cee3f25-10f7-490d-863a-41e23c992e51"/>
        <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.8888.2"/>
        <!--          OID Structure includes EMR application instance.branch assigned for MedOrder ID         -->
          <value value="mi-c1-PREDNISONE-20160303"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
        <!--      This must match the Medication resource ID      -->
          <reference value="#med"/>
        </medicationReference>
        <patient>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </patient>
        <dateWritten value="2016-07-08T12:15:38.123-06:00"/>
        <prescriber>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/4388836452"/>
        </prescriber>
        <reasonCode>
          <coding>
          <!--  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="64859006"/>
          </coding>
          <text value="Osteoporosis"/>
        </reasonCode>
        <note>
          <text value="The text of the annotation."/>
        </note>
        <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="2016-07-08T12: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>
      </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/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </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/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </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/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
          <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/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </patient>
      <!--  
					<text value="Plain text representation of the concept"/>  -->
        <category>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
            <code value="ALLDONE"/>
            <display value="already performed"/>
          </coding>
        </category>
        <implicated>
          <reference
                     value="MedicationOrder/9cee3f25-10f7-490d-863a-41e23c992e51"/>
        </implicated>
        <detail
                value="Aspirin contraindicated for patients intolerant of NSAIDs"/>
        <mitigation>
          <action>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/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:c6223d00-926e-4abc-95d0-a4045c31abb1"/>
    <resource>
      <MedicationDispense>
        <id value="c6223d00-926e-4abc-95d0-a4045c31abb1"/>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-dispense-quantity-remaining">
          <valueQuantity>
            <value value="0"/>
            <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-medication-rendered-dosage">
          <valueString value="Take 1 tab in the morning."/>
        </extension>
        <identifier>
          <system value="urn:oid:1.2.3.4.5.6.9999.4"/>
          <value value="A573890"/>
        </identifier>
        <status value="completed"/>
        <medicationCodeableConcept>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/canadianclinicaldrugdataset"/>
            <code value="00312770"/>
          </coding>
          <text
                value="APO PREDNISONE TAB 5MG (prednisone 5 mg oral tablet) APOTEX INC"/>
        </medicationCodeableConcept>
        <patient>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </patient>
        <dispenser>
          <extension
                     url="http://sharedhealth.exchange/fhir/StructureDefinition/ext-reference-practitioner-org">
            <valueReference>
              <reference
                         value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/CPR1000992"/>
            </valueReference>
          </extension>
        </dispenser>
        <authorizingPrescription>
          <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.8888.2"/>
              <value value="mi-c1-PREDNISONE-20160303"/>
            </valueIdentifier>
          </extension>
        <!--  Conformance Rule: When providing this reference it must be the same as the Task.subject reference value.   -->
          <reference
                     value="MedicationOrder/9cee3f25-10f7-490d-863a-41e23c992e51"/>
        </authorizingPrescription>
        <type>
          <coding>
            <system value="http://hl7.org/fhir/v3/ActCode"/>
            <code value="RFC"/>
          </coding>
        </type>
        <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>
        <daysSupply>
          <value value="15"/>
          <system value="http://unitsofmeasure.org"/>
          <code value="d"/>
        </daysSupply>
        <whenPrepared value="2016-07-08"/>
      </MedicationDispense>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:38e5e519-3672-430a-a372-94efd93888a2"/>
    <resource>
      <Task>
        <id value="38e5e519-3672-430a-a372-94efd93888a2"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/task-p160-m"/>
        </meta>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-Task.groupIdentifier">
        <!--      Define as standard extension      -->
          <valueIdentifier>
            <system value="urn:oid:1.2.3.4.5.6.3"/>
            <value value="ri-Group-Identifier"/>
          </valueIdentifier>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-message">
          <valueReference>
            <reference
                       value="Communication/911dba8f-e2f3-425e-bfd8-311c1a5158c0"/>
          </valueReference>
        </extension>
      <!--  PrescribeIT5.0 splitPrescription extensions  -->
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-split-prescription">
          <valueBoolean value="true"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-split-prescription-reason">
          <valueCodeableConcept>
            <coding>
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptionsplitreason"/>
              <code value="backOrder"/>
              <display value="Product prescribed is on back order"/>
            </coding>
          </valueCodeableConcept>
        </extension>
        <type>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontasktype"/>
            <code value="p160-m"/>
          </coding>
        </type>
        <status value="requested"/>
        <subject>
          <reference
                     value="MedicationOrder/9cee3f25-10f7-490d-863a-41e23c992e52"/>
        </subject>
        <for>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </for>
        <created value="2016-07-08T12:15:38.123-06:00"/>
        <lastModified value="2016-07-08T12:15:38.123-06:00"/>
        <creator>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/CPR1000992"/>
        </creator>
        <owner>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/4388836452"/>
        </owner>
        <input>
          <name value="daysSinceLastDispense"/>
          <valueInteger value="95"/>
        </input>
        <input>
          <name value="lastDispense"/>
          <valueReference>
            <reference
                       value="MedicationDispense/c6223d00-926e-4abc-95d0-a4045c31abb2"/>
          </valueReference>
        </input>
      <!--  PrescribeIT5.0 p160-2: PMSinformationalRx inputs MUST be omitted unless splitPrescriptionFlag = TRUE AND p160-4: IF splitPrescriptionFlag = TRUE, total number of PMSrequestedRx + PMSinformationalRx inputs MUST be at least 2  -->
        <input>
          <name value="pmsrequestedrx"/>
          <valueReference>
            <reference value="MedicationOrder/RequestedGUID4"/>
          </valueReference>
        </input>
        <input>
          <name value="pmsinformationalrx"/>
          <valueReference>
            <reference value="MedicationOrder/InformationalGUID1"/>
          </valueReference>
        </input>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:9cee3f25-10f7-490d-863a-41e23c992e52"/>
    <resource>
      <MedicationOrder>
        <id value="9cee3f25-10f7-490d-863a-41e23c992e52"/>
        <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"/>
        </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>
      <!--  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:2.16.840.1.113883.4.59.2"/>
        <!--          OID Structure includes EMR application instance.branch assigned for MedOrder ID         -->
          <value value="87634"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
        <!--      This must match the Medication resource ID      -->
          <reference value="#med"/>
        </medicationReference>
        <patient>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </patient>
        <dateWritten value="2016-07-08T12:15:38.123-06:00"/>
        <prescriber>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/4388836452"/>
        </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="2016-07-08T12: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>
    <fullUrl value="urn:uuid:c6223d00-926e-4abc-95d0-a4045c31abb2"/>
    <resource>
      <MedicationDispense>
        <id value="c6223d00-926e-4abc-95d0-a4045c31abb2"/>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-rendered-dosage">
          <valueString value="Apply 1 Patch 1 time per day for 28 days"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-dispense-quantity-remaining">
          <valueQuantity>
            <value value="0"/>
            <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>
        <identifier>
          <system value="urn:oid:1.2.3.4.5.6.9999.4"/>
          <value value="A573890"/>
        </identifier>
        <status value="completed"/>
        <medicationCodeableConcept>
          <coding>
            <system value="http://hl7.org/fhir/NamingSystem/ca-hc-din"/>
            <code value="02093146"/>
          </coding>
          <text value="NICODERM 21MG/24 HR PATCH"/>
        </medicationCodeableConcept>
        <patient>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </patient>
        <dispenser>
          <extension
                     url="http://sharedhealth.exchange/fhir/StructureDefinition/ext-reference-practitioner-org">
            <valueReference>
              <reference
                         value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/CPR1000992"/>
            </valueReference>
          </extension>
        </dispenser>
        <authorizingPrescription>
          <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.8888.2"/>
              <value value="mi-c1-NICODERM-20160303"/>
            </valueIdentifier>
          </extension>
        </authorizingPrescription>
        <type>
          <coding>
            <system value="http://hl7.org/fhir/v3/ActCode"/>
            <code value="RFC"/>
          </coding>
        </type>
        <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>
        <daysSupply>
          <value value="28"/>
          <system value="http://unitsofmeasure.org"/>
          <code value="d"/>
        </daysSupply>
        <whenPrepared value="2016-07-08"/>
      </MedicationDispense>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:38e5e519-3672-430a-a372-94efd93888a3"/>
    <resource>
      <Task>
        <id value="38e5e519-3672-430a-a372-94efd93888a3"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/task-p160-m"/>
        </meta>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-Task.groupIdentifier">
        <!--      Define as standard extension      -->
          <valueIdentifier>
            <system value="urn:oid:1.2.3.4.5.6.3"/>
            <value value="ri-Group-Identifier"/>
          </valueIdentifier>
        </extension>
      <!--  PrescribeIT5.0 splitPrescription extensions  -->
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-split-prescription">
          <valueBoolean value="true"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-split-prescription-reason">
          <valueCodeableConcept>
            <coding>
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptionsplitreason"/>
              <code value="backOrder"/>
              <display value="Product prescribed is on back order"/>
            </coding>
          </valueCodeableConcept>
        </extension>
        <type>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontasktype"/>
            <code value="p160-m"/>
          </coding>
        </type>
        <status value="requested"/>
        <subject>
          <reference
                     value="MedicationOrder/9cee3f25-10f7-490d-863a-41e23c992e53"/>
        </subject>
        <for>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </for>
        <created value="2016-07-08T12:15:38.123-06:00"/>
        <lastModified value="2016-07-08T12:15:38.123-06:00"/>
        <creator>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/CPR1000992"/>
        </creator>
        <owner>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/4388836452"/>
        </owner>
        <input>
          <name value="daysSinceLastDispense"/>
          <valueInteger value="95"/>
        </input>
        <input>
          <name value="lastDispense"/>
          <valueReference>
            <reference
                       value="MedicationDispense/c6223d00-926e-4abc-95d0-a4045c31abb3"/>
          </valueReference>
        </input>
      <!--  PrescribeIT5.0 p160-2: PMSinformationalRx inputs MUST be omitted unless splitPrescriptionFlag = TRUE AND p160-5: IF splitPrescriptionFlag = TRUE, total number of PMSrequestedRx + PMSinformationalRx inputs MUST be no more than 5  -->
        <input>
          <name value="pmsrequestedrx"/>
          <valueReference>
            <reference value="MedicationOrder/RequestedGUID5"/>
          </valueReference>
        </input>
        <input>
          <name value="pmsinformationalrx"/>
          <valueReference>
            <reference value="MedicationOrder/InformationalGUID2"/>
          </valueReference>
        </input>
        <input>
          <name value="pmsinformationalrx"/>
          <valueReference>
            <reference value="MedicationOrder/InformationalGUID3"/>
          </valueReference>
        </input>
        <input>
          <name value="pmsinformationalrx"/>
          <valueReference>
            <reference value="MedicationOrder/InformationalGUID4"/>
          </valueReference>
        </input>
        <input>
          <name value="pmsinformationalrx"/>
          <valueReference>
            <reference value="MedicationOrder/InformationalGUID5"/>
          </valueReference>
        </input>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:9cee3f25-10f7-490d-863a-41e23c992e53"/>
    <resource>
      <MedicationOrder>
        <id value="9cee3f25-10f7-490d-863a-41e23c992e53"/>
        <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>
        <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>
      <!--  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.8888.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/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </patient>
        <dateWritten value="2016-07-08T12:15:38.123-06:00"/>
        <prescriber>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/4388836452"/>
        </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>
          <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"/>
              <!-- <unit value="day"/> -->
                <system value="http://unitsofmeasure.org"/>
                <code value="d"/>
              </valueQuantity>
            </extension>
          </extension>
          <validityPeriod>
            <start value="2016-07-08T12: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:c6223d00-926e-4abc-95d0-a4045c31abb3"/>
    <resource>
      <MedicationDispense>
        <id value="c6223d00-926e-4abc-95d0-a4045c31abb3"/>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-dispense-quantity-remaining">
          <valueQuantity>
            <value value="0"/>
            <unit value="g"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="g"/>
          </valueQuantity>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-rendered-dosage">
          <valueString value="As needed"/>
        </extension>
        <identifier>
          <system value="urn:oid:1.2.3.4.5.6.9999.4"/>
          <value value="A573890"/>
        </identifier>
        <status value="completed"/>
        <medicationCodeableConcept>
          <text
                value="HYDROCORTISONE OINTMENT 0.5% WITH SALICYLIC ACID 1% and LCD 3%"/>
        </medicationCodeableConcept>
        <patient>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </patient>
        <dispenser>
          <extension
                     url="http://sharedhealth.exchange/fhir/StructureDefinition/ext-reference-practitioner-org">
            <valueReference>
              <reference
                         value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/CPR1000992"/>
            </valueReference>
          </extension>
        </dispenser>
        <authorizingPrescription>
          <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.8888.2"/>
              <value value="mi-c1-COMPOUND-20160303"/>
            </valueIdentifier>
          </extension>
        </authorizingPrescription>
        <type>
          <coding>
            <system value="http://hl7.org/fhir/v3/ActCode"/>
            <code value="RFC"/>
          </coding>
        </type>
        <quantity>
          <value value="50"/>
          <unit value="g"/>
          <system value="http://unitsofmeasure.org"/>
          <code value="g"/>
        </quantity>
        <daysSupply>
          <value value="30"/>
          <system value="http://unitsofmeasure.org"/>
          <code value="d"/>
        </daysSupply>
        <whenPrepared value="2016-07-08"/>
      </MedicationDispense>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:38e5e519-3672-430a-a372-94efd93888a4"/>
  <!--  PrescribeIT5.0 p160-2: PMSinformationalRx inputs MUST be omitted unless splitPrescriptionFlag = TRUE  -->
    <resource>
      <Task>
        <id value="38e5e519-3672-430a-a372-94efd93888a4"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/task-p160-m"/>
        </meta>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/extension-Task.groupIdentifier">
        <!--      Define as standard extension      -->
          <valueIdentifier>
            <system value="urn:oid:1.2.3.4.5.6.3"/>
            <value value="ri-Group-Identifier"/>
          </valueIdentifier>
        </extension>
      <!--  PrescribeIT5.0 splitPrescription extensions  -->
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-task-split-prescription">
          <valueBoolean value="false"/>
        </extension>
        <type>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontasktype"/>
            <code value="p160-m"/>
          </coding>
        </type>
        <status value="requested"/>
        <subject>
          <reference
                     value="MedicationOrder/9cee3f25-10f7-490d-863a-41e23c992e54"/>
        </subject>
        <for>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </for>
        <created value="2016-07-08T12:15:38.123-06:00"/>
        <lastModified value="2016-07-08T12:15:38.123-06:00"/>
        <creator>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/CPR1000992"/>
        </creator>
        <owner>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/4388836452"/>
        </owner>
        <input>
          <name value="daysSinceLastDispense"/>
          <valueInteger value="95"/>
        </input>
        <input>
          <name value="lastDispense"/>
          <valueReference>
            <reference
                       value="MedicationDispense/c6223d00-926e-4abc-95d0-a4045c31abb4"/>
          </valueReference>
        </input>
        <input>
          <name value="pmsrequestedrx"/>
          <valueReference>
            <reference value="MedicationOrder/RequestedGUID6"/>
          </valueReference>
        </input>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:9cee3f25-10f7-490d-863a-41e23c992e54"/>
    <resource>
      <MedicationOrder>
        <id value="9cee3f25-10f7-490d-863a-41e23c992e54"/>
        <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.8888.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/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </patient>
        <dateWritten value="2016-07-08T12:15:38.123-06:00"/>
        <prescriber>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/4388836452"/>
        </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="2016-07-08T12: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>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:c6223d00-926e-4abc-95d0-a4045c31abb4"/>
    <resource>
      <MedicationDispense>
        <id value="c6223d00-926e-4abc-95d0-a4045c31abb4"/>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-rendered-dosage">
          <valueString value="3 times per day before eating"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-dispense-quantity-remaining">
          <valueQuantity>
            <value value="0"/>
            <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>
        <identifier>
          <system value="urn:oid:1.2.3.4.5.6.9999.4"/>
          <value value="A573890"/>
        </identifier>
        <status value="completed"/>
        <medicationCodeableConcept>
          <text value="Strips"/>
        </medicationCodeableConcept>
        <patient>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </patient>
        <dispenser>
          <extension
                     url="http://sharedhealth.exchange/fhir/StructureDefinition/ext-reference-practitioner-org">
            <valueReference>
              <reference
                         value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/CPR1000992"/>
            </valueReference>
          </extension>
        </dispenser>
        <authorizingPrescription>
          <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.8888.2"/>
              <value value="mi-c1-STRIPS-20160303"/>
            </valueIdentifier>
          </extension>
        </authorizingPrescription>
        <type>
          <coding>
            <system value="http://hl7.org/fhir/v3/ActCode"/>
            <code value="RFC"/>
          </coding>
        </type>
        <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>
        <daysSupply>
          <value value="90"/>
          <system value="http://unitsofmeasure.org"/>
          <code value="d"/>
        </daysSupply>
        <whenPrepared value="2016-07-08"/>
      </MedicationDispense>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:RequestedGUID1"/>
    <resource>
      <MedicationOrder>
        <id value="RequestedGUID1"/>
        <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-date-last-dispense">
          <valueDate value="2021-02-18"/>
        </extension>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medicationorder-days-last-dispense">
          <valueQuantity>
            <value value="8"/>
            <unit value="day"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="d"/>
          </valueQuantity>
        </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.0.9.9.4.0994.2"/>
          <value value="Rx-RequestedGUID1"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
          <reference value="#f139e8c8-9274-431a-a74d-abead44850f7"/>
        </medicationReference>
        <patient>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </patient>
        <dateWritten value="2021-01-20T22:02:28.0217-08:00"/>
        <dispenseRequest>
          <quantity>
            <value value="6"/>
            <unit value="Capsule(s)"/>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="428641000"/>
          </quantity>
          <expectedSupplyDuration>
            <value value="99"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="d"/>
          </expectedSupplyDuration>
        </dispenseRequest>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:RequestedGUID2"/>
    <resource>
      <MedicationOrder>
        <id value="RequestedGUID2"/>
        <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-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.0.9.9.4.0994.2"/>
          <value value="Rx-RequestedGUID2"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
          <reference value="#195dbf25-38ff-4294-842b-a2c88e9fc4ec"/>
        </medicationReference>
        <patient>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </patient>
        <dateWritten value="2021-01-20T22:02:28.0252-08:00"/>
        <dispenseRequest>
          <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:RequestedGUID3"/>
    <resource>
      <MedicationOrder>
        <id value="RequestedGUID3"/>
        <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-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.0.9.9.4.0994.2"/>
          <value value="Rx-RequestedGUID3"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
          <reference value="#2be7cf27-d5a0-4269-805d-4fb546fe8ae2"/>
        </medicationReference>
        <patient>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </patient>
        <dateWritten value="2021-01-20T22:02:28.0291-08:00"/>
        <dispenseRequest>
          <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:InformationalGUID1"/>
    <resource>
      <MedicationOrder>
        <id value="InformationalGUID1"/>
        <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-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.0.9.9.4.0994.2"/>
          <value value="Rx-InformationalGUID1"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
          <reference value="#med"/>
        </medicationReference>
        <patient>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </patient>
        <dateWritten value="2021-01-20T22:02:28.0316-08:00"/>
        <dispenseRequest>
          <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:InformationalGUID2"/>
    <resource>
      <MedicationOrder>
        <id value="InformationalGUID2"/>
        <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-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.0.9.9.4.0994.2"/>
          <value value="Rx-InformationalGUID2"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
          <reference value="#med"/>
        </medicationReference>
        <patient>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </patient>
        <dateWritten value="2021-01-20T22:02:28.0370-08:00"/>
        <dispenseRequest>
          <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>
  <entry>
    <fullUrl value="urn:uuid:RequestedGUID4"/>
    <resource>
      <MedicationOrder>
        <id value="RequestedGUID4"/>
        <contained>
          <Medication>
            <id value="med"/>
            <code>
              <coding>
                <system value="http://hl7.org/fhir/NamingSystem/ca-hc-din"/>
                <code value="02435470"/>
                <display value="Forxiga blst 10 mg"/>
              </coding>
              <text value="Forxiga 10 mg"/>
            </code>
          </Medication>
        </contained>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-rendered-dosage">
          <valueString value="Take 1 Tablet once daily (same time every day)"/>
        </extension>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/identifier-type"/>
              <code value="PLAC"/>
            </coding>
          </type>
          <system value="urn:oid:1.2.0.9.9.4.0994.2"/>
          <value value="Rx-RequestedGUID4"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
          <reference value="#med"/>
        </medicationReference>
        <patient>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </patient>
        <dateWritten value="2021-01-28T01:42:13.0830-08:00"/>
        <dispenseRequest>
          <quantity>
            <value value="30"/>
            <unit value="Tablet(s)"/>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="428673006"/>
          </quantity>
          <expectedSupplyDuration>
            <value value="99"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="d"/>
          </expectedSupplyDuration>
        </dispenseRequest>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:InformationalGUID3"/>
    <resource>
      <MedicationOrder>
        <id value="InformationalGUID3"/>
        <contained>
          <Medication>
            <id value="med"/>
            <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="02486180"/>
                <display value="NRA RAMIPRIL 5 mg, CAPSULE"/>
              </coding>
              <text value="NRA RAMIPRIL 5 mg, CAPSULE"/>
            </code>
          </Medication>
        </contained>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-rendered-dosage">
          <valueString value="TAKE 1 CAPSULE 1 Times daily AT BEDTIME"/>
        </extension>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/identifier-type"/>
              <code value="PLAC"/>
            </coding>
          </type>
          <system value="urn:oid:1.2.0.9.9.4.0994.2"/>
          <value value="Rx-InformationalGUID3"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
          <reference value="#med"/>
        </medicationReference>
        <patient>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </patient>
        <dateWritten value="2021-01-28T01:42:13.0863-08:00"/>
        <dispenseRequest>
          <quantity>
            <value value="30"/>
            <unit value="Capsule(s)"/>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="428641000"/>
          </quantity>
          <expectedSupplyDuration>
            <value value="30"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="d"/>
          </expectedSupplyDuration>
        </dispenseRequest>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:RequestedGUID5"/>
    <resource>
      <MedicationOrder>
        <id value="RequestedGUID5"/>
        <contained>
          <Medication>
            <id value="med"/>
            <code>
              <coding>
                <system value="http://hl7.org/fhir/NamingSystem/ca-hc-din"/>
                <code value="02448602"/>
                <display value="4 un TRULICITY 1.5 MG/0.5 ML, INJ PEN"/>
              </coding>
              <text value="4 un TRULICITY 1.5 MG/0.5 ML, INJ PEN"/>
            </code>
          </Medication>
        </contained>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-rendered-dosage">
          <valueString
                       value="ADMINISTER 1.5MG (0.5ML) SUBCUTANEOUSLY 1 TIME PER WEEK (SAME DAY, EVERY DAY)"/>
        </extension>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/identifier-type"/>
              <code value="PLAC"/>
            </coding>
          </type>
          <system value="urn:oid:1.2.0.9.9.4.0994.2"/>
          <value value="Rx-RequestedGUID5"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
          <reference value="#med"/>
        </medicationReference>
        <patient>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </patient>
        <dateWritten value="2021-01-28T01:42:13.0891-08:00"/>
        <dispenseRequest>
          <quantity>
            <value value="1"/>
            <unit value="package(s)"/>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="1681000175101"/>
          </quantity>
          <expectedSupplyDuration>
            <value value="28"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="d"/>
          </expectedSupplyDuration>
        </dispenseRequest>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:InformationalGUID4"/>
    <resource>
      <MedicationOrder>
        <id value="InformationalGUID4"/>
        <contained>
          <Medication>
            <id value="med"/>
            <code>
              <coding>
                <system value="http://hl7.org/fhir/NamingSystem/ca-hc-din"/>
                <code value="02460653"/>
                <display value="APO METFORMIN ER 1000MG, TAB.EXT.RELE"/>
              </coding>
              <text value="APO METFORMIN ER 1000MG, TAB.EXT.RELE"/>
            </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-medication-rendered-dosage">
          <valueString value="TAKE 1 (One) Tablet(s), 1 times daily at dinner"/>
        </extension>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/identifier-type"/>
              <code value="PLAC"/>
            </coding>
          </type>
          <system value="urn:oid:1.2.0.9.9.4.0994.2"/>
          <value value="Rx-InformationalGUID4"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
          <reference value="#med"/>
        </medicationReference>
        <patient>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </patient>
        <dateWritten value="2021-01-28T01:42:13.0910-08:00"/>
        <dispenseRequest>
          <quantity>
            <value value="30"/>
            <unit value="Tablet(s)"/>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="428673006"/>
          </quantity>
          <expectedSupplyDuration>
            <value value="30"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="d"/>
          </expectedSupplyDuration>
        </dispenseRequest>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:RequestedGUID6"/>
    <resource>
      <MedicationOrder>
        <id value="RequestedGUID6"/>
        <contained>
          <Medication>
            <id value="med"/>
            <code>
              <coding>
                <system value="http://hl7.org/fhir/NamingSystem/ca-hc-din"/>
                <code value="02476525"/>
                <display value="ATORVASTATIN 20 mg TABLET"/>
              </coding>
              <text value="ATORVASTATIN 20 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-medication-rendered-dosage">
          <valueString value="1 (One) Tablet(s), 1 (One) times daily at bedtime"/>
        </extension>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/identifier-type"/>
              <code value="PLAC"/>
            </coding>
          </type>
          <system value="urn:oid:1.2.0.9.9.4.0994.2"/>
          <value value="Rx-RequestedGUID6"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
          <reference value="#med"/>
        </medicationReference>
        <patient>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </patient>
        <dateWritten value="2021-01-28T01:42:13.0931-08:00"/>
        <dispenseRequest>
          <quantity>
            <value value="30"/>
            <unit value="Tablet(s)"/>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="428673006"/>
          </quantity>
          <expectedSupplyDuration>
            <value value="30"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="d"/>
          </expectedSupplyDuration>
        </dispenseRequest>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:InformationalGUID5"/>
    <resource>
      <MedicationOrder>
        <id value="InformationalGUID5"/>
        <contained>
          <Medication>
            <id value="med"/>
            <code>
              <coding>
                <system
                        value="https://fhir.infoway-inforoute.ca/CodeSystem/canadianclinicaldrugdataset"/>
                <code value="00821772"/>
                <display value="D-TABS 10000UI TABLET"/>
              </coding>
              <text value="D-TABS 10000UI 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-medication-rendered-dosage">
          <valueString
                       value="TAKE 1 (One) Tablet(s), 1 times per week always on the same day of the week"/>
        </extension>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/identifier-type"/>
              <code value="PLAC"/>
            </coding>
          </type>
          <system value="urn:oid:1.2.0.9.9.4.0994.2"/>
          <value value="Rx-InformationalGUID5"/>
        </identifier>
        <status value="active"/>
        <medicationReference>
          <reference value="#med"/>
        </medicationReference>
        <patient>
          <reference value="Patient/5d9588d8-3cd6-4b32-8fb7-ad13694e069d"/>
        </patient>
        <dateWritten value="2021-01-28T01:42:13.0955-08:00"/>
        <dispenseRequest>
          <quantity>
            <value value="4"/>
            <unit value="Tablet(s)"/>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/snomedctcaextension"/>
            <code value="428673006"/>
          </quantity>
          <expectedSupplyDuration>
            <value value="99"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="d"/>
          </expectedSupplyDuration>
        </dispenseRequest>
      </MedicationOrder>
    </resource>
  </entry>
</Bundle>