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

5.23.6 Resource OrderResponse - Examples

Example Index:

Example of orderresponseXMLJSON

5.23.6.1 General

XML

Example of orderresponse (id = "example")

Raw XML

<OrderResponse 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><!--    
    this should be a response to the example request, 
  but we don't yet have all the resource types in 
  place to make this happen
  
  So for now, although the Order message referred to 
  here contains a prescription resource, this example
  response contains lab reports
     -->
  <request>
    <reference value="Order/example"/>
  </request>
  <date value="2012-12-28T13:10:56+11:00"/><!--    made by the lab    -->
  <who>
    <reference value="Organization/1832473e-2fe0-452d-abe9-3cdb9879522f"/>
  </who><!--    
    there's a loose relationship between the status of 
    the order, and status information on the fulfillment
    resources. For instance, in the case of a lab, it probably
    wouldn't make sense to claim that the response is anything
    but completed when the report is marked as &quot;final&quot; (as it is 
    in this case). However due to the diversity of business 
    practices in the order/fulfillment cycle, there's no formal
    rules about what is allowed
     -->
  <code value="complete"/><!--    
    the lab report that the lab provides as a token of its 
    fulfillment for this order 

    In the case of a lab order, the report is usually the real/only
    outcome. However in a case such as a medication administration,
    the actual administration is the fulfillment - the MedicationAdministration
    resource is only a token of the fulfillment of the order
     -->
  <fulfillment>
    <reference value="DiagnosticReport/101"/>
  </fulfillment>
</OrderResponse>

JSON

Example of orderresponse

Raw JSON (Canonical)

{
  "resourceType": "OrderResponse",
  "id": "example",
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "request": {
    "reference": "Order/example"
  },
  "date": "2012-12-28T13:10:56+11:00",
  "who": {
    "reference": "Organization/1832473e-2fe0-452d-abe9-3cdb9879522f"
  },
  "code": "complete",
  "fulfillment": [
    {
      "reference": "DiagnosticReport/101"
    }
  ]
}

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.