{

"resourceType": "MedicationRequest",
"id": "medrx0311",
"text": {
  "status": "generated",
  "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: medrx0311</p><p><b>contained</b>: </p><p><b>identifier</b>: 12345689 (OFFICIAL)</p><p><b>status</b>: active</p><p><b>intent</b>: order</p><p><b>medication</b>: id: med0316; Chlorthalidone 50mg tablet (product) <span>(Details : {SNOMED CT code '317935006' = 'Chlortalidone 50mg tablet', given as 'Chlorthalidone 50mg tablet (product)'})</span>; Tablet dose form (qualifier value) <span>(Details : {SNOMED CT code '385055001' = 'Tablet', given as 'Tablet dose form (qualifier value)'})</span></p><p><b>subject</b>: <a>Donald Duck</a></p><p><b>context</b>: <a>encounter who leads to this prescription</a></p><p><b>authoredOn</b>: Jan 15, 2015</p><h3>Requesters</h3><table><tr><td>-</td><td><b>Agent</b></td><td><b>OnBehalfOf</b></td></tr><tr><td>*</td><td><a>Patrick Pump</a></td><td><a>Organization/f002</a></td></tr></table><p><b>reasonReference</b>: <a>condition for prescribing this medication</a></p><p><b>note</b>: Chlorthalidone increases urniation so take it in the morning</p><p><b>dosageInstruction</b>: </p><h3>DispenseRequests</h3><table><tr><td>-</td><td><b>ValidityPeriod</b></td><td><b>NumberOfRepeatsAllowed</b></td><td><b>Quantity</b></td><td><b>ExpectedSupplyDuration</b></td></tr><tr><td>*</td><td>Jan 15, 2015 --&gt; Jan 15, 2016</td><td>1</td><td>30 TAB<span> (Details: http://hl7.org/fhir/v3/orderableDrugForm code TAB = 'Tablet')</span></td><td>30 days<span> (Details: UCUM code d = 'd')</span></td></tr></table><h3>Substitutions</h3><table><tr><td>-</td><td><b>Allowed</b></td><td><b>Reason</b></td></tr><tr><td>*</td><td>true</td><td>continuing therapy <span>(Details : {http://hl7.org/fhir/v3/ActReason code 'CT' = 'continuing therapy', given as 'continuing therapy'})</span></td></tr></table></div>"
},
"contained": [
  {
    "resourceType": "Medication",
    "id": "med0316",
    "code": {
      "coding": [
        {
          "system": "http://snomed.info/sct",
          "code": "317935006",
          "display": "Chlorthalidone 50mg tablet (product)"
        }
      ]
    },
    "isBrand": false,
    "form": {
      "coding": [
        {
          "system": "http://snomed.info/sct",
          "code": "385055001",
          "display": "Tablet dose form (qualifier value)"
        }
      ]
    }
  }
],
"identifier": [
  {
    "use": "official",
    "system": "http://www.bmc.nl/portal/prescriptions",
    "value": "12345689"
  }
],
"status": "active",
"intent": "order",
"medicationReference": {
  "reference": "#med0316"
},
"subject": {
  "reference": "Patient/pat1",
  "display": "Donald Duck"
},
"context": {
  "reference": "Encounter/f001",
  "display": "encounter who leads to this prescription"
},
"authoredOn": "2015-01-15",
"requester": {
  "agent": {
    "reference": "Practitioner/f007",
    "display": "Patrick Pump"
  },
  "onBehalfOf": {
    "reference": "Organization/f002"
  }
},
"reasonReference": [
  {
    "reference": "Condition/f201",
    "display": "condition for prescribing this medication"
  }
],
"note": [
  {
    "text": "Chlorthalidone increases urniation so take it in the morning"
  }
],
"dosageInstruction": [
  {
    "sequence": 1,
    "text": "One tablet daily",
    "additionalInstruction": [
      {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "311504000",
            "display": "With or after food"
          }
        ]
      }
    ],
    "timing": {
      "code": {
        "coding": [
          {
            "system": "http://hl7.org/fhir/v3/GTSAbbreviation",
            "code": "QD",
            "display": "QD"
          }
        ]
      }
    },
    "route": {
      "coding": [
        {
          "system": "http://snomed.info/sct",
          "code": "26643006",
          "display": "Oral Route"
        }
      ]
    },
    "method": {
      "coding": [
        {
          "system": "http://snomed.info/sct",
          "code": "421521009",
          "display": "Swallow - dosing instruction imperative (qualifier value)"
        }
      ]
    },
    "doseQuantity": {
      "value": 1,
      "unit": "TAB",
      "system": "http://hl7.org/fhir/v3/orderableDrugForm",
      "code": "TAB"
    }
  }
],
"dispenseRequest": {
  "validityPeriod": {
    "start": "2015-01-15",
    "end": "2016-01-15"
  },
  "numberOfRepeatsAllowed": 1,
  "quantity": {
    "value": 30,
    "unit": "TAB",
    "system": "http://hl7.org/fhir/v3/orderableDrugForm",
    "code": "TAB"
  },
  "expectedSupplyDuration": {
    "value": 30,
    "unit": "days",
    "system": "http://unitsofmeasure.org",
    "code": "d"
  }
},
"substitution": {
  "allowed": true,
  "reason": {
    "coding": [
      {
        "system": "http://hl7.org/fhir/v3/ActReason",
        "code": "CT",
        "display": "continuing therapy"
      }
    ]
  }
}

}