{
  "resourceType" : "MedicationRequest",
  "id" : "example",
  "language" : "en",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\"><p class=\"res-header-id\"><b>Generated Narrative: MedicationRequest example</b></p><a name=\"example\"> </a><a name=\"hcexample\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Language: en</p></div><p><b>identifier</b>: <code>http://example.org/portal/prescriptions</code>/12345689\u00a0(use:\u00a0official,\u00a0)</p><p><b>status</b>: Draft</p><p><b>intent</b>: Order</p><p><b>medication</b>: <a href=\"#hcexample/med0320\">Medication Azithromycin 250 mg oral tablet</a></p><p><b>subject</b>: <a href=\"Patient-example.html\">Amy V. Shaw  Female, DoB: 1987-02-20 ( Medical Record Number:\u00a01032702\u00a0(use:\u00a0usual,\u00a0))</a></p><p><b>encounter</b>: <a href=\"Encounter-example.html\">Encounter: identifier = http://example.org/zorgportal/identifiers/visits#v1451\u00a0(use:\u00a0official,\u00a0); status = in-progress; class = ambulatory (ActCode#AMB); type = Patient-initiated encounter; priority = Non-urgent cardiological admission; reasonCode = Heart valve replacement</a></p><p><b>authoredOn</b>: 2015-01-15</p><p><b>requester</b>: <a href=\"Practitioner-full.html\">Practitioner Bone </a></p><p><b>reasonCode</b>: <span title=\"Codes:{http://snomed.info/sct 11840006}\">Traveler's Diarrhea (disorder)</span></p><p><b>insurance</b>: <a href=\"Coverage-example.html\">Coverage: identifier = Member Number; status = active; type = extended healthcare; dependent = 0; relationship = Self; period = 2011-05-23 --&gt; 2012-05-23</a></p><p><b>note</b>: </p><blockquote><div><p>Patient told to take with food</p>\n</div></blockquote><blockquote><p><b>dosageInstruction</b></p><p><b>sequence</b>: 1</p><p><b>text</b>: Two tablets at once</p><p><b>additionalInstruction</b>: <span title=\"Codes:{http://snomed.info/sct 311504000}\">With or after food</span></p><p><b>timing</b>: Once per 1 day</p><p><b>route</b>: <span title=\"Codes:{http://snomed.info/sct 26643006}\">Oral Route</span></p><p><b>method</b>: <span title=\"Codes:{http://snomed.info/sct 421521009}\">Swallow - dosing instruction imperative (qualifier value)</span></p><h3>DoseAndRates</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Dose[x]</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/dose-rate-type ordered}\">Ordered</span></td><td>2 TAB<span style=\"background: LightGoldenRodYellow\"> (Details: Orderable Drug Form  codeTAB = 'Tablet')</span></td></tr></table></blockquote><blockquote><p><b>dosageInstruction</b></p><p><b>sequence</b>: 2</p><p><b>text</b>: One tablet daily for 4 days</p><p><b>additionalInstruction</b>: <span title=\"Codes:{http://snomed.info/sct 311504000}\">With or after food</span></p><p><b>timing</b>: 4 per 1 day</p><p><b>route</b>: <span title=\"Codes:{http://snomed.info/sct 26643006}\">Oral Route</span></p><h3>DoseAndRates</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Dose[x]</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/dose-rate-type ordered}\">Ordered</span></td><td>1 TAB<span style=\"background: LightGoldenRodYellow\"> (Details: Orderable Drug Form  codeTAB = 'Tablet')</span></td></tr></table></blockquote><blockquote><p><b>dispenseRequest</b></p><p><b>validityPeriod</b>: 2015-01-15 --&gt; 2016-01-15</p><p><b>numberOfRepeatsAllowed</b>: 1</p><p><b>quantity</b>: 6 TAB<span style=\"background: LightGoldenRodYellow\"> (Details: Orderable Drug Form  codeTAB = 'Tablet')</span></p><h3>ExpectedSupplyDurations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value</b></td><td><b>Unit</b></td><td><b>System</b></td><td><b>Code</b></td></tr><tr><td style=\"display: none\">*</td><td>5</td><td>days</td><td><a href=\"http://hl7.org/fhir/uv/xver-r5.r4/0.1.0/CodeSystem-v3-ucum.html\">http://unitsofmeasure.org</a></td><td>d</td></tr></table><p><b>performer</b>: <a href=\"http://example.org/fhir/Organization/somePharmacy\">http://example.org/fhir/Organization/somePharmacy</a></p></blockquote><h3>Substitutions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Allowed[x]</b></td><td><b>Reason</b></td></tr><tr><td style=\"display: none\">*</td><td>true</td><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActReason FP}\">formulary policy</span></td></tr></table><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: Medication #med0320</b></p><a name=\"example/med0320\"> </a><a name=\"hcexample/med0320\"> </a><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 1145423002}\">Azithromycin 250 mg oral tablet</span></p></blockquote></div>"
  },
  "contained" : [{
    "resourceType" : "Medication",
    "id" : "med0320",
    "code" : {
      "coding" : [{
        "system" : "http://snomed.info/sct",
        "code" : "1145423002",
        "display" : "Azithromycin 250 mg oral tablet"
      }]
    }
  }],
  "identifier" : [{
    "use" : "official",
    "system" : "http://example.org/portal/prescriptions",
    "value" : "12345689"
  }],
  "status" : "draft",
  "intent" : "order",
  "medicationReference" : {
    "reference" : "#med0320"
  },
  "subject" : {
    "reference" : "Patient/example"
  },
  "encounter" : {
    "reference" : "Encounter/example"
  },
  "authoredOn" : "2015-01-15",
  "requester" : {
    "reference" : "Practitioner/full"
  },
  "reasonCode" : [{
    "coding" : [{
      "system" : "http://snomed.info/sct",
      "code" : "11840006",
      "display" : "Traveler's Diarrhea (disorder)"
    }]
  }],
  "insurance" : [{
    "reference" : "Coverage/example"
  }],
  "note" : [{
    "text" : "Patient told to take with food"
  }],
  "dosageInstruction" : [{
    "sequence" : 1,
    "text" : "Two tablets at once",
    "additionalInstruction" : [{
      "coding" : [{
        "system" : "http://snomed.info/sct",
        "code" : "311504000",
        "display" : "With or after food"
      }]
    }],
    "timing" : {
      "repeat" : {
        "frequency" : 1,
        "period" : 1,
        "periodUnit" : "d"
      }
    },
    "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)"
      }]
    },
    "doseAndRate" : [{
      "type" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/dose-rate-type",
          "code" : "ordered",
          "display" : "Ordered"
        }]
      },
      "doseQuantity" : {
        "value" : 2,
        "unit" : "TAB",
        "system" : "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
        "code" : "TAB"
      }
    }]
  },
  {
    "sequence" : 2,
    "text" : "One tablet daily for 4 days",
    "additionalInstruction" : [{
      "coding" : [{
        "system" : "http://snomed.info/sct",
        "code" : "311504000",
        "display" : "With or after food"
      }]
    }],
    "timing" : {
      "repeat" : {
        "frequency" : 4,
        "period" : 1,
        "periodUnit" : "d"
      }
    },
    "route" : {
      "coding" : [{
        "system" : "http://snomed.info/sct",
        "code" : "26643006",
        "display" : "Oral Route"
      }]
    },
    "doseAndRate" : [{
      "type" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/dose-rate-type",
          "code" : "ordered",
          "display" : "Ordered"
        }]
      },
      "doseQuantity" : {
        "value" : 1,
        "unit" : "TAB",
        "system" : "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
        "code" : "TAB"
      }
    }]
  }],
  "dispenseRequest" : {
    "validityPeriod" : {
      "start" : "2015-01-15",
      "end" : "2016-01-15"
    },
    "numberOfRepeatsAllowed" : 1,
    "quantity" : {
      "value" : 6,
      "unit" : "TAB",
      "system" : "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
      "code" : "TAB"
    },
    "expectedSupplyDuration" : {
      "value" : 5,
      "unit" : "days",
      "system" : "http://unitsofmeasure.org",
      "code" : "d"
    },
    "performer" : {
      "reference" : "http://example.org/fhir/Organization/somePharmacy"
    }
  },
  "substitution" : {
    "allowedBoolean" : true,
    "reason" : {
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason",
        "code" : "FP",
        "display" : "formulary policy"
      }]
    }
  }
}