{
  "resourceType" : "MedicationRequest",
  "id" : "medicationrequest-digoxin-cyclosporine-cyclosporine-prefetch",
  "language" : "en",
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: MedicationRequest medicationrequest-digoxin-cyclosporine-cyclosporine-prefetch</b></p><a name=\"medicationrequest-digoxin-cyclosporine-cyclosporine-prefetch\"> </a><a name=\"hcmedicationrequest-digoxin-cyclosporine-cyclosporine-prefetch\"> </a><p><b>status</b>: Active</p><p><b>intent</b>: Order</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/medication-statement-category outpatient}\">Outpatient</span></p><p><b>medication</b>: <span title=\"Codes:{http://www.nlm.nih.gov/research/umls/rxnorm 835894}\">cyclosporine, modified 25 MG Oral Capsule</span></p><p><b>subject</b>: <a href=\"Patient-patient-digoxin-cyclosporine-context.html\">Anonymous Patient Female, DoB: 1978-07-23</a></p><p><b>authoredOn</b>: <code>Value calculated by: </code><span title=\"text/cql\"><code>Today() - 10 days</code></span></p><blockquote><p><b>dosageInstruction</b></p><p><b>timing</b>: Once per 1.0 days</p><p><b>asNeeded</b>: false</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 calculated}\">Calculated</span></td><td>1.0 tablet</td></tr></table></blockquote><blockquote><p><b>dispenseRequest</b></p><p><b>validityPeriod</b>: ?? --&gt; (ongoing)</p><p><b>numberOfRepeatsAllowed</b>: 1</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>90</td><td>days</td><td><a href=\"http://tx.fhir.org/r4/ValueSet/x-ucum\">http://unitsofmeasure.org</a></td><td>d</td></tr></table></blockquote></div>"
  },
  "status" : "active",
  "intent" : "order",
  "category" : [{
    "coding" : [{
      "system" : "http://terminology.hl7.org/CodeSystem/medication-statement-category",
      "code" : "outpatient"
    }]
  }],
  "medicationCodeableConcept" : {
    "coding" : [{
      "system" : "http://www.nlm.nih.gov/research/umls/rxnorm",
      "code" : "835894",
      "display" : "cyclosporine, modified 25 MG Oral Capsule"
    }]
  },
  "subject" : {
    "reference" : "Patient/patient-digoxin-cyclosporine-context"
  },
  "_authoredOn" : {
    "extension" : [{
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-expression",
      "valueExpression" : {
        "language" : "text/cql",
        "expression" : "Today() - 10 days"
      }
    }]
  },
  "dosageInstruction" : [{
    "timing" : {
      "repeat" : {
        "frequency" : 1,
        "period" : 1.0,
        "periodUnit" : "d"
      }
    },
    "asNeededBoolean" : false,
    "doseAndRate" : [{
      "type" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/dose-rate-type",
          "code" : "calculated"
        }]
      },
      "doseQuantity" : {
        "value" : 1.0,
        "unit" : "tablet"
      }
    }]
  }],
  "dispenseRequest" : {
    "validityPeriod" : {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/cqf-expression",
        "valueExpression" : {
          "language" : "text/cql",
          "expression" : "FHIR.Period { start: FHIR.dateTime { value: Today() - 10 days }, end: FHIR.dateTime { value: Today() } }"
        }
      }]
    },
    "numberOfRepeatsAllowed" : 1,
    "expectedSupplyDuration" : {
      "value" : 90,
      "unit" : "days",
      "system" : "http://unitsofmeasure.org",
      "code" : "d"
    }
  }
}