This page is part of the FHIR Specification (v0.11: DSTU 1 Ballot 3). 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

Resource Roadmap - Examples 4.12.3

Example Index:

Example of medicationstatementXMLJSON

General 4.12.3.1

Example of medicationstatement

Example of medicationstatement (id = "example")

Raw XML

<MedicationStatement xmlns="http://hl7.org/fhir">
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>Penicillin VK 10ml suspension administered by oral route at 14:30 on 1 June 2012</p>
      <p>to patient ref: a23</p>
    </div>
  </text> 
  <!--      -->
  <patient>
    <type value="Patient"/>
    <reference value="patient/@example"/>
  </patient>
  <whenGiven>
    <start value="2012-06-01T14:30:00"/>
    <end value="2012-06-01T14:30:00"/>
  </whenGiven>
  <medication>
    <type value="Medication"/>
    <reference value="medication/@example"/> 
  </medication>
  <dosage>
    <route>
      <coding>
        <system value="http://snomed.info/sct"/>
        <code value="363743006"/>
        <display value="oral administration of treatment"/>
      </coding>  
    </route>
    <quantity>
      <value value="10"/>
      <units value="ml"/>
      <system value="http://unitsofmeasure.org"/>
      <code value="ml"/>
    </quantity>
  </dosage>
</MedicationStatement>

JSON Equivalent

Example of medicationstatement

{
  "MedicationStatement":{
    "text":{
      "status":{
        "value":"generated"
      },
      "div":"<div>\n      <p>Penicillin VK 10ml suspension administered by oral route at 14:30 on 1 June 2012<\/p>\n      <p>to patient ref: a23<\/p>\n    <\/div>"
    },
    "patient":{
      "type":{
        "value":"Patient"
      },
      "reference":{
        "value":"patient/@example"
      }
    },
    "whenGiven":{
      "start":{
        "value":"2012-06-01T14:30:00"
      },
      "end":{
        "value":"2012-06-01T14:30:00"
      }
    },
    "medication":{
      "type":{
        "value":"Medication"
      },
      "reference":{
        "value":"medication/@example"
      }
    },
    "dosage":[
      {
        "route":{
          "coding":[
            {
              "system":{
                "value":"http://snomed.info/sct"
              },
              "code":{
                "value":"363743006"
              },
              "display":{
                "value":"oral administration of treatment"
              }
            }
          ]
        },
        "quantity":{
          "value":{
            "value":"10"
          },
          "units":{
            "value":"ml"
          },
          "system":{
            "value":"http://unitsofmeasure.org"
          },
          "code":{
            "value":"ml"
          }
        }
      }
    ]
  }
}