{
  "id" : "TABjHvkpdq9AinHJn87KDkf-TP8BMBGL1FKfn6vFw810B",
  "medicationReference" : {
    "display" : "azithromycin 500mg Tab",
    "reference" : "https://apiservices.sutterhealth.org/ifs/api/FHIR/DSTU2/Medication/Tr3Tiziqe5eBRwrETikL1YwB"
  },
  "resourceType" : "MedicationOrder",
  "contained" : [
    {
      "code" : {
        "text" : "AZITHROMYCIN 500 MG PO TABS",
        "coding" : [
          {
            "system" : "http://www.nlm.nih.gov/research/umls/rxnorm",
            "display" : "AZITHROMYCIN 500 MG PO TABS",
            "code" : "1148107"
          }
        ]
      },
      "id" : "Tr3Tiziqe5eBRwrETikL1YwB",
      "resourceType" : "Medication",
      "product" : {
        "form" : {
          "text" : "Tab",
          "coding" : [
            {
              "system" : "urn:oid:1.2.840.114350.1.13.76.2.7.4.698288.310",
              "display" : "Tab",
              "code" : "55"
            }
          ]
        }
      }
    }
  ],
  "dateWritten" : "2015-10-19",
  "identifier" : [
    {
      "use" : "usual",
      "system" : "urn:oid:1.2.840.114350.1.13.76.2.7.2.798268",
      "value" : "546122834"
    },
    {
      "use" : "usual",
      "system" : "urn:oid:1.2.840.114350.1.13.76.2.7.3.798268.801",
      "value" : "546122834OID76"
    }
  ],
  "extension" : [
    {
      "url" : "https://open.epic.com/FHIR/Category-Extension",
      "valueCodeableConcept" : {
        "text" : "Community",
        "coding" : [
          {
            "system" : "http://hl7.org/fhir/medication-request-category",
            "display" : "Community",
            "code" : "community"
          }
        ]
      }
    }
  ],
  "dispenseRequest" : {
    "quantity" : {
      "value" : 3,
      "unit" : "Tab"
    },
    "expectedSupplyDuration" : {
      "code" : "d",
      "value" : 3,
      "system" : "http://unitsofmeasure.org",
      "unit" : "days"
    },
    "validityPeriod" : {
      "start" : "2015-10-19"
    },
    "numberOfRepeatsAllowed" : 0
  },
  "dosageInstruction" : [
    {
      "asNeededBoolean" : false,
      "timing" : {
        "repeat" : {
          "frequency" : 1,
          "period" : 1,
          "periodUnits" : "d",
          "boundsPeriod" : {
            "start" : "2015-10-19"
          }
        },
        "code" : {
          "text" : "daily"
        }
      },
      "doseQuantity" : {
        "code" : "mg",
        "value" : 500,
        "system" : "http://unitsofmeasure.org",
        "unit" : "mg"
      },
      "route" : {
        "text" : "Oral",
        "coding" : [
          {
            "system" : "urn:oid:1.2.840.114350.1.13.76.2.7.4.698288.330",
            "display" : "Oral",
            "code" : "15"
          }
        ]
      },
      "extension" : [
        {
          "url" : "https://open.epic.com/fhir/extensions/ordered-dose",
          "valueQuantity" : {
            "code" : "mg",
            "value" : 500,
            "system" : "http://unitsofmeasure.org",
            "unit" : "mg"
          }
        },
        {
          "url" : "https://open.epic.com/fhir/extensions/admin-amount",
          "valueQuantity" : {
            "value" : 1,
            "unit" : "Tab"
          }
        }
      ],
      "text" : "Take 1 Tab by mouth daily. Take for 3 days for the treatment of severe traveler's diarrhea"
    }
  ],
  "prescriber" : {
    "display" : "Myhanh T Nguyen, MD",
    "reference" : "https://apiservices.sutterhealth.org/ifs/api/FHIR/DSTU2/Practitioner/TR26f7.8sFxdpevKh4g-ypgB"
  },
  "status" : "active",
  "patient" : {
    "display" : "James Lopez",
    "reference" : "https://apiservices.sutterhealth.org/ifs/api/FHIR/DSTU2/Patient/Tbjbfj8w94HFwJ-ekeTNN.e1WrM6guoKJdhNrHG7dSfUB"
  }
}