This page is part of the FHIR Specification (v0.06: DSTU 1 Ballot 2). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Resource Message - Examples 2.2.9

General 2.2.9.1

Example of message

Example of message (id = "example")

<Message xmlns="http://hl7.org/fhir">
  <id>1cbdfb97-5859-48a4-8301-d54eab818d68</id>
  <instant>2012-01-04T09:10:14Z</instant>
  <event>admin-update</event>
  <response>
    <id>5015fe84-8e76-4526-89d8-44b322e8d4fb</id>
    <code>ok</code>
  </response>
  <source>
    <name>Acme Central Patient Registry</name>
    <software>FooBar Patient Manager</software>
    <version>3.1.45.AABB</version>
    <contact>
      <system>phone</system>
      <value>+1 (555) 123 4567</value>
    </contact>
    <endpoint>llp:10.11.12.13:5432</endpoint>
  </source>
  <destination>
    <name>Acme Message Gateway</name>
    
    <!--   this is to indicate to the Acme Message Gateway that this particular message 
       is intended for Person 34 - usually it would make sense for the resource for 
       Person 34 to be included in the bundle of the message as well, in case 
       the Acme Message Gateway doesn't know who person 34 is. 

       Of course, it doesn't make sense to send a person update message to a particular 
       person, but it might very well make sense to do this with targeted clinical content   -->
    <target>
      <type>Person</type>
      <id>101</id>
    </target>
    <endpoint>llp:10.11.12.14:5432</endpoint>
  </destination>
  <author>
    <type>Person</type>
    <id>xcda-author</id>
  </author>
  
  <!--   Here's the payload, the resource that this admin-update concerns   -->
  <data>
    <type>Person</type>
    <id>101</id>
  </data>
  
  <text>
    <status>generated</status>
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>Update Person resource for Peter James CHALMERS (Jim), MRN: 12345 (Acme Healthcare)</p>
    </div>
  </text>
</Message>

JSON Equivalent

Example of message

{"Message": {
  "response": {
    "id": {"value": "5015fe84-8e76-4526-89d8-44b322e8d4fb"},
    "code": "ok"
  },
  "id": {"value": "1cbdfb97-5859-48a4-8301-d54eab818d68"},
  "author": {
    "id": {"value": "xcda-author"},
    "type": {"value": "Person"}
  },
  "text": {
    "status": "generated",
    "div": "<div>\n      <p>Update Person resource for Peter James CHALMERS (Jim), MRN: 12345 (Acme Healthcare)<\/p>\n    <\/div>"
  },
  "source": {
    "software": {"value": "FooBar Patient Manager"},
    "name": {"value": "Acme Central Patient Registry"},
    "contact": {
      "system": "phone",
      "value": {"value": "+1 (555) 123 4567"}
    },
    "endpoint": {"value": "llp:10.11.12.13:5432"},
    "version": {"value": "3.1.45.AABB"}
  },
  "event": {"value": "admin-update"},
  "data": [{
    "id": {"value": "101"},
    "type": {"value": "Person"}
  }],
  "instant": {"value": "2012-01-04T09:10:14Z"},
  "destination": {
    "name": {"value": "Acme Message Gateway"},
    "target": {
      "id": {"value": "101"},
      "type": {"value": "Person"}
    },
    "endpoint": {"value": "llp:10.11.12.14:5432"}
  }
}}

This is an old version of FHIR retained for archive purposes. Do not use for anything else
Implementers are welcome to experiment with the content defined here, but should note that the contents are subject to change without prior notice.
© HL7.org 2011 - 2012. FHIR v0.06 generated on Tue, Dec 4, 2012 00:04+1100. License