Shared Health Specification and Guide Version 5.0

 
Raw XML


<!--  This is an example of a PMS transmitting a 999 asynchronous error in response to a 903 that cannot be processed due to business/technical error to the originating EMR clinic.  -->
<!--  root bundle = query response to aggregator saying "what messages do you have for me"
form:
https://api.sharedhealth.exchange/rest/v1/preconf/THP/mailbox_vs1/Bundle?message.receiver=http://sharedhealth.exchange/organizations|someaggregatorid
 -->
<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-999-async-response-903"/>
<!--  The profile declaration isn't required, but will help with automated validation using existing tools for examples  -->
  <meta>
    <profile
             value="http://sharedhealth.exchange/fhir/StructureDefinition/profile-bundle-message"/>
    <profile
             value="http://sharedhealth.exchange/fhir/StructureDefinition/interaction-bundle-999"/>
    <tag>
      <system
              value="https://fhir.infoway-inforoute.ca/CodeSystem/sharedspecificationversion"/>
      <code value="Shared5.0"/>
    </tag>
  </meta>
  <type value="message"/>
  <entry>
    <fullUrl value="urn:uuid:bd191f9a-8042-4881-b6f2-0f200cd47c48"/>
    <resource>
      <MessageHeader>
        <id value="bd191f9a-8042-4881-b6f2-0f200cd47c48"/>
        <meta>
          <profile
                   value="http://sharedhealth.exchange/fhir/StructureDefinition/interaction-messageheader-999"/>
        </meta>
        <timestamp value="2021-08-30T12:15:38.123-06:00"/>
        <event>
          <system
                  value="https://fhir.infoway-inforoute.ca/CodeSystem/sharedmessageevents"/>
          <code value="999"/>
        </event>
        <response>
        <!--  In the context of PrescribeIT Quebec Bundle Available for Retrieval Notification PMS (i.e. not Central Switch) error handling, this value is derived from the 903 MessageHeader.response.identifier that contains the MessageHeader.id assigned by the EMR clinic in the originating Bundle 401 message.  -->
          <identifier value="MessageHeaderID401GUID"/>
          <code value="transient-error"/>
          <details>
            <reference
                       value="OperationOutcome/7e65ae1f-cfb1-4d45-8977-97333d20900b"/>
          </details>
        </response>
      <!--  Note - source and destination will be reversed from the original message  -->
        <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/QCPMSCPRID"/>
        </source>
        <destination>
          <endpoint
                    value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/QCEMRClinic1CPRID"/>
        </destination>
      </MessageHeader>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:7e65ae1f-cfb1-4d45-8977-97333d20900b"/>
    <resource>
      <OperationOutcome>
        <id value="7e65ae1f-cfb1-4d45-8977-97333d20900b"/>
        <issue>
          <extension
                     url="http://sharedhealth.exchange/fhir/StructureDefinition/ext-operationoutcome-referencenum">
            <valueString value="238476"/>
          </extension>
          <extension
                     url="http://sharedhealth.exchange/fhir/StructureDefinition/ext-operationoutcome-usertext">
            <valueString
                         value="The PMS is not able to process the electronic notification after retrieving it from the inbox and acknowledging it. Or the PMS is not able to process the 401 bundle after retrieving it from the notification and acknowledging it."/>
          </extension>
          <severity value="error"/>
          <code value="invalid"/>
          <details>
            <coding>
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/sharedissuedetails"/>
              <code value="PMSdetailscode"/>
            </coding>
            <text value="Parsing/Business error."/>
          </details>
          <diagnostics
                       value="Error at line 125.  This text comes from the PMS and contains key diagnostic information."/>
        </issue>
      </OperationOutcome>
    </resource>
  </entry>
</Bundle>