2nd DSTU Draft For Comment

This page is part of the FHIR Specification (v0.4.0: DSTU 2 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2

6.12.6 Resource MessageHeader - Examples

In addition to the examples below, see also:

  • Example Request Message: XML or JSON
  • Example Response Message: XML or JSON

Example Index:

Example of messageheaderXMLJSON

6.12.6.1 General

XML

Example of messageheader (id = "example")

Raw XML

<MessageHeader xmlns="http://hl7.org/fhir">
  <id value="example"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
  </text>
  <identifier value="1cbdfb97-5859-48a4-8301-d54eab818d68"/>
  <timestamp value="2012-01-04T09:10:14Z"/>
  <event>
    <system value="http://hl7.org/fhir/message-type"/>
    <code value="admin-update"/>
  </event>
  <response>
    <identifier value="5015fe84-8e76-4526-89d8-44b322e8d4fb"/>
    <code value="ok"/>
  </response>
  <source>
    <name value="Acme Central Patient Registry"/>
    <software value="FooBar Patient Manager"/>
    <version value="3.1.45.AABB"/>
    <contact>
      <system value="phone"/>
      <value value="+1 (555) 123 4567"/>
    </contact>
    <endpoint value="llp:10.11.12.13:5432"/>
  </source>
  <destination>
    <name value="Acme Message Gateway"/><!--    this is to indicate to the Acme Message Gateway that this particular message 
       is intended for Practitioner &quot;xcda&quot;    -->
    <target>
      <reference value="Device/example"/>
    </target>
    <endpoint value="llp:10.11.12.14:5432"/>
  </destination>
  <author>
    <reference value="Practitioner/example"/>
  </author><!--    Here's the payload, the resource that this admin-update concerns    -->
  <data>
    <reference value="Patient/example"/>
  </data>
</MessageHeader>

JSON

Example of messageheader

Raw JSON (Canonical)

{
  "resourceType": "MessageHeader",
  "id": "example",
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "identifier": "1cbdfb97-5859-48a4-8301-d54eab818d68",
  "timestamp": "2012-01-04T09:10:14Z",
  "event": {
    "system": "http://hl7.org/fhir/message-type",
    "code": "admin-update"
  },
  "response": {
    "identifier": "5015fe84-8e76-4526-89d8-44b322e8d4fb",
    "code": "ok"
  },
  "source": {
    "name": "Acme Central Patient Registry",
    "software": "FooBar Patient Manager",
    "version": "3.1.45.AABB",
    "contact": {
      "system": "phone",
      "value": "+1 (555) 123 4567"
    },
    "endpoint": "llp:10.11.12.13:5432"
  },
  "destination": [
    {
      "name": "Acme Message Gateway",
      "target": {
        "reference": "Device/example"
      },
      "endpoint": "llp:10.11.12.14:5432"
    }
  ],
  "author": {
    "reference": "Practitioner/example"
  },
  "data": [
    {
      "reference": "Patient/example"
    }
  ]
}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.