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

4.16.7 Resource MedicationDispense - Examples

Example Index:

Example of medicationdispenseXMLJSON

4.16.7.1 General

XML

Example of medicationdispense (id = "example")

Raw XML

<MedicationDispense xmlns="http://hl7.org/fhir">
  <id value="example"/><!--    insert contents here    -->
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
  </text>
  <status value="completed"/>
  <patient>
    <reference value="Patient/example"/>
  </patient>
  <dispenser>
    <reference value="Practitioner/example"/>
  </dispenser>
  <authorizingPrescription>
    <reference value="MedicationPrescription/example"/>
  </authorizingPrescription>
  <quantity>
    <value value="10"/>
    <units value="ml"/>
    <system value="http://unitsofmeasure.org"/>
    <code value="ml"/>
  </quantity>
  <medication>
    <reference value="Medication/example"/>
  </medication>
  <whenPrepared value="2012-05-30T16:20:00+00:00"/>
  <whenHandedOver value="2012-05-31T10:20:00+00:00"/>
  <substitution>
    <type>
      <coding>
        <system value="./MedDispSubType"/>
        <code value="NoSub"/>
        <display value="No substitution made or expected"/>
      </coding>
    </type>
  </substitution>
</MedicationDispense>

JSON

Example of medicationdispense

Raw JSON (Canonical)

{
  "resourceType": "MedicationDispense",
  "id": "example",
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "status": "completed",
  "patient": {
    "reference": "Patient/example"
  },
  "dispenser": {
    "reference": "Practitioner/example"
  },
  "authorizingPrescription": [
    {
      "reference": "MedicationPrescription/example"
    }
  ],
  "quantity": {
    "value": 10,
    "units": "ml",
    "system": "http://unitsofmeasure.org",
    "code": "ml"
  },
  "medication": {
    "reference": "Medication/example"
  },
  "whenPrepared": "2012-05-30T16:20:00+00:00",
  "whenHandedOver": "2012-05-31T10:20:00+00:00",
  "substitution": {
    "type": {
      "coding": [
        {
          "system": "./MedDispSubType",
          "code": "NoSub",
          "display": "No substitution made or expected"
        }
      ]
    }
  }
}

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.