Shared Health Specification and Guide Version 5.0

 
Raw XML


<!--  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-d2-901"/>
<!--  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-901"/>
    <tag>
      <system
              value="https://fhir.infoway-inforoute.ca/CodeSystem/sharedspecificationversion"/>
      <code value="Shared5.0"/>
    </tag>
  </meta>
  <type value="message"/>
  <entry>
    <fullUrl value="urn:uuid:somemessageguid901"/>
    <resource>
      <MessageHeader>
        <id value="somemessageguid901"/>
        <meta>
          <profile
                   value="http://sharedhealth.exchange/fhir/StructureDefinition/interaction-messageheader-901"/>
        </meta>
        <timestamp value="2016-05-13T12:15:38.123-06:00"/>
        <event>
          <system
                  value="https://fhir.infoway-inforoute.ca/CodeSystem/sharedmessageevents"/>
          <code value="901"/>
        </event>
        <response>
          <identifier value="54fc3e09-e279-4b74-a8ff-2649ec968641"/>
          <code value="ok"/>
          <details>
            <reference value="OperationOutcome/someopoutcomeguid"/>
          </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/CPR1000991"/>
        </source>
        <destination>
          <endpoint
                    value="https://api.sharedhealth.exchange/rest/v1/preconf/THP/TPR_vs1/Organization/CPR1000992"/>
        </destination>
        <data>
          <reference value="urn:uuid:somemediaguid"/>
        </data>
      </MessageHeader>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:someopoutcomeguid"/>
    <resource>
      <OperationOutcome>
        <id value="someopoutcomeguid"/>
        <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="An error has occurred.  Please revert to manual processing for this message. (Detail Code: 1SS121 Reference Number: 83034433)"/>
          </extension>
          <severity value="error"/>
          <code value="invalid"/>
          <details>
            <coding>
              <system
                      value="https://fhir.infoway-inforoute.ca/CodeSystem/sharedissuedetails"/>
              <code value="ISS121"/>
            </coding>
            <text
                  value="FHIR Message Validation failed. Message is not properly formatted."/>
          </details>
          <diagnostics
                       value="Error at line 125.  This text comes from the Central Switch validator or contains key diagnostic information."/>
        </issue>
      </OperationOutcome>
    </resource>
  </entry>
  <entry>
    <fullUrl value="urn:uuid:somemediaguid"/>
    <resource>
      <Media>
        <id value="somemediaguid"/>
        <type value="photo"/>
        <subtype>
          <coding>
            <system value="http://hl7.org/fhir/media-subtype"/>
            <code value="fax"/>
          </coding>
        </subtype>
        <content>
          <contentType value="application/pdf"/>
          <url
               value="https://api.preprd.teluslabs.net/rest/v1/THP/eFax/v1/faxData/$trackingNumber"/>
        </content>
      </Media>
    </resource>
  </entry>
</Bundle>