PrescribeIT® Specification and Guide Version 5.0

 
Raw XML


<!--  This is an example of PrescribeIT Switch transmitting a 903 message to a pharmacy   -->
<!--  Real GUIDs should be used when composing messages. These (e.g. MessageHeaderGUID) have been put to allow readers to easily cross-reference FHIR resources within this example  -->
<Bundle xmlns="http://hl7.org/fhir">
<!--        Note: This id will not be present when the message is submitted to the inbox.  It will be assigned by the inbox as part of processing        -->
  <id value="example-q2-903-e110-e120-e161-e162-e163-e164"/>
  <meta>
    <profile
             value="http://prescribeit.ca/fhir/StructureDefinition/interaction-bundle-903"/>
    <profile
             value="http://sharedhealth.exchange/fhir/StructureDefinition/profile-bundle-message"/>
    <tag>
      <system
              value="https://fhir.infoway-inforoute.ca/CodeSystem/sharedspecificationversion"/>
      <code value="PrescribeIT5.0"/>
    </tag>
    <tag>
      <system value="http://prescribeit.ca/fhir/CodeSystem/message-key"/>
      <code value="A888GAGP"/>
    </tag>
  </meta>
  <type value="message"/>
  <entry>
    <fullUrl value="urn:uuid:MessageHeaderID903GUID"/>
    <resource>
      <MessageHeader>
        <id value="MessageHeaderID903GUID"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/interaction-messageheader-903"/>
        </meta>
        <extension
                   url="http://prescribeit.ca/fhir/StructureDefinition/ext-messageheader-original-clinic-reference">
          <valueReference>
            <reference
                       value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCEMRClinicCPRID"/>
          </valueReference>
        </extension>
        <timestamp value="2021-08-30T12:15:38.123-06:00"/>
        <event>
          <system
                  value="https://fhir.infoway-inforoute.ca/CodeSystem/sharedmessageevents"/>
          <code value="903"/>
        </event>
        <response>
          <identifier value="MessageHeaderID401GUID"/>
          <code value="ok"/>
        </response>
        <source>
          <extension
                     url="http://sharedhealth.exchange/fhir/StructureDefinition/ext-messageheader-application-id">
            <valueUri value="urn:oid:1.2.3.4.5.9.8888"/>
          </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"/>
          <endpoint
                    value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/111111111"/>
        </source>
        <destination>
          <endpoint
                    value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCPMSCPRID"/>
        </destination>
        <data>
          <reference value="Task/Taske110GUID"/>
        </data>
        <data>
          <reference value="Task/Taske120GUID"/>
        </data>
        <data>
          <reference value="Task/Taske161GUID"/>
        </data>
        <data>
          <reference value="Task/Taske162GUID"/>
        </data>
        <data>
          <reference value="Task/Taske163GUID"/>
        </data>
        <data>
          <reference value="Task/Taske164GUID"/>
        </data>
      </MessageHeader>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:PatientGUID"/>
    <resource>
      <Patient>
        <id value="PatientGUID"/>
        <identifier>
          <type>
            <coding>
              <system value="http://hl7.org/fhir/v2/0203"/>
              <code value="JHN"/>
            </coding>
            <text value="Jurisdictional Health Number"/>
          </type>
          <system value="urn:oid:2.16.840.1.113883.4.56"/>
          <value value="QuebecPHN123"/>
        </identifier>
        <name>
          <use value="official"/>
          <family value="Lerr Jr"/>
          <given value="Todd"/>
          <given value="G."/>
          <prefix value="Mr"/>
          <suffix value="DDS"/>
        </name>
        <birthDate value="2012-06-07"/>
      </Patient>
    </resource>
  </entry>
  <entry>
    <fullUrl
             value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCEMRClinicCPRID"/>
    <resource>
      <Organization>
        <id value="QCEMRClinicCPRID"/>
        <identifier>
          <system
                  value="http://sharedhealth.exchange/fhir/NamingSystem/registry-id-organization"/>
          <value value="QCEMRClinicCPRID"/>
        </identifier>
        <name value="Quebec EMR Clinic"/>
        <telecom>
          <system value="phone"/>
          <value value="(123) 123-4567"/>
          <use value="work"/>
        </telecom>
        <address>
          <type value="both"/>
          <line value="263 Rue Saint- Viateur O"/>
          <city value="Montreal"/>
          <state value="QC"/>
          <postalCode value="H2V 1Y1"/>
          <country value="Canada"/>
        </address>
      </Organization>
    </resource>
  </entry>
  <entry>
    <fullUrl
             value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCPMSCPRID"/>
    <resource>
      <Organization>
        <id value="QCPMSCPRID"/>
        <identifier>
          <system
                  value="http://sharedhealth.exchange/fhir/NamingSystem/registry-id-organization"/>
          <value value="QCPMSCPRID"/>
        </identifier>
        <name value="Quebec PMS"/>
        <telecom>
          <system value="phone"/>
          <value value="(123) 123-4567"/>
          <use value="work"/>
        </telecom>
        <address>
          <type value="both"/>
          <line value="977 Saint-Catherine St W"/>
          <city value="Montreal"/>
          <state value="QC"/>
          <postalCode value="H3B 4W3"/>
          <country value="Canada"/>
        </address>
      </Organization>
    </resource>
  </entry>
  <entry>
    <fullUrl
             value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
    <resource>
      <Practitioner>
        <id value="2263396629"/>
        <name>
          <use value="official"/>
          <family value="Mouse"/>
          <given value="Mickey"/>
          <prefix value="Dr"/>
          <suffix value="PhD"/>
        </name>
        <practitionerRole>
          <organization>
            <reference
                       value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCEMRClinicCPRID"/>
          </organization>
        </practitionerRole>
        <practitionerRole>
          <role>
            <coding>
              <system value="http://hl7.org/fhir/practitioner-role"/>
              <code value="doctor"/>
              <display value="Doctor">
                <extension
                           url="http://hl7.org/fhir/StructureDefinition/iso21090-ST-translation">
                  <valueString value="Médecin">
                    <extension
                               url="http://hl7.org/fhir/StructureDefinition/iso21090-ST-language">
                      <valueCode value="fr"/>
                    </extension>
                  </valueString>
                </extension>
              </display>
            </coding>
          </role>
        </practitionerRole>
      </Practitioner>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske110GUID"/>
    <resource>
      <Task>
        <id value="Taske110GUID"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/task-903"/>
        </meta>
        <type>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontasktype"/>
            <code value="e110-m"/>
            <display value="New RX Fill Request"/>
          </coding>
        </type>
        <status value="requested"/>
        <subject>
          <reference value="MedicationOrder/Taske110MedicationOrderGUID"/>
        </subject>
        <for>
          <reference value="Patient/PatientGUID"/>
        </for>
        <created value="2021-08-30T12:15:38.123-06:00"/>
        <lastModified value="2021-08-30T12:15:38.123-06:00"/>
        <creator>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </creator>
        <owner>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCPMSCPRID"/>
        </owner>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske120GUID"/>
    <resource>
      <Task>
        <id value="Taske120GUID"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/task-903"/>
        </meta>
        <type>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontasktype"/>
            <code value="e120-m"/>
            <display value="Renewal RX Fill Request"/>
          </coding>
        </type>
        <status value="requested"/>
        <subject>
          <reference value="MedicationOrder/Taske120MedicationOrderGUID"/>
        </subject>
        <for>
          <reference value="Patient/PatientGUID"/>
        </for>
        <created value="2021-08-10T12:15:38.123-06:00"/>
        <lastModified value="2021-08-10T12:15:38.123-06:00"/>
        <creator>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </creator>
        <owner>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCPMSCPRID"/>
        </owner>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske161GUID"/>
    <resource>
      <Task>
        <id value="Taske161GUID"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/task-903"/>
        </meta>
        <type>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontasktype"/>
            <code value="e161-m"/>
            <display value="RX Renewal Response - Denied"/>
          </coding>
        </type>
        <status value="rejected"/>
        <subject>
          <reference value="MedicationOrder/Taske161MedicationOrderGUID"/>
        </subject>
        <for>
          <reference value="Patient/PatientGUID"/>
        </for>
        <created value="2021-08-10T12:15:38.123-06:00"/>
        <lastModified value="2021-08-10T12:15:38.123-06:00"/>
        <creator>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </creator>
        <owner>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCPMSCPRID"/>
        </owner>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske162GUID"/>
    <resource>
      <Task>
        <id value="Taske162GUID"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/task-903"/>
        </meta>
        <type>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontasktype"/>
            <code value="e162-m"/>
            <display value="RX Renewal Response - Approval"/>
          </coding>
        </type>
        <status value="requested"/>
        <subject>
          <reference value="MedicationOrder/Taske162MedicationOrderGUID"/>
        </subject>
        <for>
          <reference value="Patient/PatientGUID"/>
        </for>
        <created value="2021-08-10T12:15:38.123-06:00"/>
        <lastModified value="2021-08-10T12:15:38.123-06:00"/>
        <creator>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </creator>
        <owner>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCPMSCPRID"/>
        </owner>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske163GUID"/>
    <resource>
      <Task>
        <id value="Taske163GUID"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/task-903"/>
        </meta>
        <type>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontasktype"/>
            <code value="e163-m"/>
            <display value="RX Renewal Response - Approval with Changes"/>
          </coding>
        </type>
        <status value="requested"/>
        <subject>
          <reference value="MedicationOrder/Taske163MedicationOrderGUID"/>
        </subject>
        <for>
          <reference value="Patient/PatientGUID"/>
        </for>
        <created value="2021-08-10T12:15:38.123-06:00"/>
        <lastModified value="2021-08-10T12:15:38.123-06:00"/>
        <creator>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </creator>
        <owner>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCPMSCPRID"/>
        </owner>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske164GUID"/>
    <resource>
      <Task>
        <id value="Taske164GUID"/>
        <meta>
          <profile
                   value="http://prescribeit.ca/fhir/StructureDefinition/task-903"/>
        </meta>
        <type>
          <coding>
            <system
                    value="https://fhir.infoway-inforoute.ca/CodeSystem/prescriptiontasktype"/>
            <code value="e164-m"/>
            <display value="RX Renewal Response - Under Review"/>
          </coding>
        </type>
        <status value="in-progress"/>
        <subject>
          <reference value="MedicationOrder/Taske164MedicationOrderGUID"/>
        </subject>
        <for>
          <reference value="Patient/PatientGUID"/>
        </for>
        <created value="2021-08-10T12:15:38.123-06:00"/>
        <lastModified value="2021-08-10T12:15:38.123-06:00"/>
        <creator>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Practitioner/2263396629"/>
        </creator>
        <owner>
          <reference
                     value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCPMSCPRID"/>
        </owner>
      </Task>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske110MedicationOrderGUID"/>
    <resource>
      <MedicationOrder>
        <id value="Taske110MedicationOrderGUID"/>
        <contained>
          <Medication>
            <id value="med"/>
            <code>
              <coding>
                <system
                        value="https://fhir.infoway-inforoute.ca/CodeSystem/canadianclinicaldrugdataset"/>
                <code value="02241377"/>
                <display
                         value="METADOL (methadone hydrochloride 10 mg per mL oral solution) PALADIN LABS INC"/>
              </coding>
              <text value="METADOL 10 MG/ML LIQUID"/>
            </code>
          </Medication>
        </contained>
        <medicationReference>
          <display value="medication"/>
        </medicationReference>
        <patient>
          <reference value="Patient/PatientGUID"/>
        </patient>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske120MedicationOrderGUID"/>
    <resource>
      <MedicationOrder>
        <id value="Taske120MedicationOrderGUID"/>
        <contained>
          <Medication>
            <id value="med"/>
            <code>
              <coding>
                <system value="http://hl7.org/fhir/NamingSystem/ca-hc-din"/>
                <code value="2214997"/>
                <display value="VENTOLIN HFA 100 MCG"/>
              </coding>
              <text value="VENTOLIN HFA 100 MCG"/>
            </code>
          </Medication>
        </contained>
        <medicationReference>
          <display value="medication"/>
        </medicationReference>
        <patient>
          <reference value="Patient/PatientGUID"/>
        </patient>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske161MedicationOrderGUID"/>
    <resource>
      <MedicationOrder>
        <id value="Taske161MedicationOrderGUID"/>
        <contained>
          <Medication>
            <id value="med"/>
            <code>
              <coding>
                <system value="http://hl7.org/fhir/NamingSystem/ca-hc-din"/>
                <code value="02093146"/>
                <display value="NICODERM 21MG/24 HR PATCH"/>
              </coding>
              <text value="NICODERM 21MG/24 HR PATCH"/>
            </code>
          </Medication>
        </contained>
        <medicationReference>
          <display value="medication"/>
        </medicationReference>
        <patient>
          <reference value="Patient/PatientGUID"/>
        </patient>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske162MedicationOrderGUID"/>
    <resource>
      <MedicationOrder>
        <id value="Taske162MedicationOrderGUID"/>
        <contained>
          <Medication>
            <id value="med"/>
            <code>
              <text value="Strips"/>
            </code>
          </Medication>
        </contained>
        <medicationReference>
          <display value="medication"/>
        </medicationReference>
        <patient>
          <reference value="Patient/PatientGUID"/>
        </patient>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske163MedicationOrderGUID"/>
    <resource>
      <MedicationOrder>
        <id value="Taske163MedicationOrderGUID"/>
        <contained>
          <Medication>
            <id value="med"/>
            <code>
              <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>
        <medicationReference>
          <display value="medication"/>
        </medicationReference>
        <patient>
          <reference value="Patient/PatientGUID"/>
        </patient>
      </MedicationOrder>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:Taske164MedicationOrderGUID"/>
    <resource>
      <MedicationOrder>
        <id value="Taske164MedicationOrderGUID"/>
        <contained>
          <Medication>
            <id value="med"/>
            <code>
              <text
                    value="HYDROCORTISONE OINTMENT 0.5% WITH SALICYLIC ACID 1% and LCD 3%"/>
            </code>
            <product>
              <form>
                <coding>
                  <system value="http://hl7.org/fhir/v3/orderableDrugForm"/>
                  <code value="OINT"/>
                </coding>
                <text value="Ointment"/>
              </form>
            </product>
          </Medication>
        </contained>
        <medicationReference>
          <display value="medication"/>
        </medicationReference>
        <patient>
          <reference value="Patient/PatientGUID"/>
        </patient>
      </MedicationOrder>
    </resource>
  </entry>
</Bundle>