{
  "id" : "29460261547",
  "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/647586765"
  },
  "status" : "completed",
  "substitution" : {
    "type" : {
      "text" : "Equivalent"
    }
  },
  "resourceType" : "MedicationOrder",
  "dateWritten" : "2021-08-23T17:25:32Z",
  "meta" : {
    "versionId" : "2",
    "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>: Completed</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" : {
          "when" : "HS",
          "boundsQuantity" : {
            "code" : "d",
            "value" : 30,
            "system" : "http://unitsofmeasure.org",
            "_unit" : {
              "extension" : [
                {
                  "url" : "https://fhir-ehr.cerner.com/dstu2/StructureDefinition/patient-friendly-display",
                  "valueString" : "Days"
                }
              ]
            },
            "unit" : "day(s)"
          }
        },
        "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" : "2021-08-23T17:25:32Z"
    }
  },
  "priorPrescription" : {
    "reference" : "MedicationOrder/29337023827"
  },
  "dateEnded" : "2022-05-16T12:44:50Z",
  "prescriber" : {
    "display" : "HAM , JEFFREY CHARLES DO",
    "reference" : "Practitioner/68050530"
  },
  "patient" : {
    "display" : "LOPEZ, JAMES JOEL",
    "reference" : "Patient/85632757"
  }
}