{
  "id" : "32085270207",
  "medicationCodeableConcept" : {
    "text" : "atorvastatin (atorvastatin 40 mg oral tablet)",
    "coding" : [
      {
        "code" : "617311",
        "system" : "http://www.nlm.nih.gov/research/umls/rxnorm",
        "display" : "atorvastatin 40 MG Oral Tablet",
        "userSelected" : false
      }
    ]
  },
  "encounter" : {
    "reference" : "Encounter/664068318"
  },
  "status" : "active",
  "substitution" : {
    "type" : {
      "text" : "Equivalent"
    }
  },
  "resourceType" : "MedicationOrder",
  "dateWritten" : "2022-05-16T12:44:43Z",
  "meta" : {
    "versionId" : "0",
    "lastUpdated" : "2022-05-16T12:44:50Z"
  },
  "text" : {
    "status" : "generated",
    "div" : "<div><p><b>Medication Order</b></p><p><b>Patient Name</b>: LOPEZ, JAMES JOEL</p><p><b>Medication Name</b>: atorvastatin (atorvastatin 40 mg oral tablet)</p><p><b>Dosage Instructions</b>: 40 mg, 1 tablet, ORAL, qHS (each night at bedtime), for 30 day(s), 90 tablet, 3 Refill(s)</p><p><b>Status</b>: Active</p><p><b>Substitution</b>: Equivalent</p></div>"
  },
  "dosageInstruction" : [
    {
      "_text" : {
        "extension" : [
          {
            "url" : "https://fhir-ehr.cerner.com/dstu2/StructureDefinition/patient-friendly-display",
            "valueString" : "1 tablet by mouth each night at bedtime for 30 Days. Refills: 3."
          }
        ]
      },
      "timing" : {
        "repeat" : {
          "boundsPeriod" : {
            "start" : "2022-05-16T12:44:00Z",
            "end" : "2022-09-13T12:44:00Z"
          },
          "when" : "HS"
        },
        "code" : {
          "_text" : {
            "extension" : [
              {
                "url" : "https://fhir-ehr.cerner.com/dstu2/StructureDefinition/patient-friendly-display",
                "valueString" : "each night at bedtime"
              }
            ]
          },
          "text" : "qHS (each night at bedtime)"
        }
      },
      "doseQuantity" : {
        "code" : "{tbl}",
        "value" : 1.0,
        "system" : "http://unitsofmeasure.org",
        "_unit" : {
          "extension" : [
            {
              "url" : "https://fhir-ehr.cerner.com/dstu2/StructureDefinition/patient-friendly-display",
              "valueString" : "tablet"
            }
          ]
        },
        "unit" : "tablet"
      },
      "route" : {
        "_text" : {
          "extension" : [
            {
              "url" : "https://fhir-ehr.cerner.com/dstu2/StructureDefinition/patient-friendly-display",
              "valueString" : "by mouth"
            }
          ]
        },
        "text" : "ORAL",
        "coding" : [
          {
            "code" : "26643006",
            "system" : "http://snomed.info/sct",
            "display" : "Oral route (qualifier value)",
            "userSelected" : false
          }
        ]
      },
      "text" : "40 mg, 1 tablet, ORAL, qHS (each night at bedtime), for 30 day(s), 90 tablet, 3 Refill(s)"
    }
  ],
  "dispenseRequest" : {
    "numberOfRepeatsAllowed" : 3,
    "quantity" : {
      "code" : "{tbl}",
      "value" : 90.0,
      "system" : "http://unitsofmeasure.org",
      "_unit" : {
        "extension" : [
          {
            "url" : "https://fhir-ehr.cerner.com/dstu2/StructureDefinition/patient-friendly-display",
            "valueString" : "tablet"
          }
        ]
      },
      "unit" : "tablet"
    },
    "validityPeriod" : {
      "start" : "2022-05-16T12:44:43Z"
    }
  },
  "priorPrescription" : {
    "reference" : "MedicationOrder/29460261547"
  },
  "dateEnded" : "2022-09-13T12:44:00Z",
  "prescriber" : {
    "display" : "HAM , JEFFREY CHARLES DO",
    "reference" : "Practitioner/68050530"
  },
  "patient" : {
    "display" : "LOPEZ, JAMES JOEL",
    "reference" : "Patient/85632757"
  }
}