{
  "resourceType": "MedicationDispense",
  "id": "meddisp0319",
  "contained": [
    {
      "resourceType": "Medication",
      "id": "med0320",
      "code": {
        "coding": [
          {
            "system": "http://hl7.org/fhir/sid/ndc",
            "code": "33261-141-20",
            "display": "PROCHLORPERAZINE MALEATE, 20 TABLET in 1 BOTTLE, PLASTIC (33261-141-20) (package)"
          }
        ],
        "text": "Azithromycin 250mg tablet, film coated (Aidarex Pharmaceuticals LLC)"
      }
    }
  ],
  "status": "completed",
  "medication": {
    "reference": {
      "reference": "#med0320",
      "display": "Azithromycin (as azithromycin dihydrate) 250 mg oral capsule"
    }
  },
  "subject": {
    "reference": "Patient/pat1",
    "display": "Donald Duck"
  },
  "performer": [
    {
      "actor": {
        "reference": "Practitioner/f006"
      }
    }
  ],
  "authorizingPrescription": [
    {
      "reference": "MedicationRequest/medrx0302"
    }
  ],
  "type": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code": "FFC",
        "display": "First Fill - Complete"
      }
    ]
  },
  "quantity": {
    "value": 6,
    "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
    "code": "TAB"
  },
  "daysSupply": {
    "value": 5,
    "unit": "Day",
    "system": "http://unitsofmeasure.org",
    "code": "d"
  },
  "whenPrepared": "2015-03-16T17:13:00+05:00",
  "whenHandedOver": "2015-03-17T17:13:00+05:00",
  "note": [
    {
      "text": "Patient told to take with food"
    }
  ],
  "dosageInstruction": {
    "renderedInstruction": "Two tablets at once, then one tablet daily for 4 days. Take with or after food.",
    "step": [
      {
        "component": [
          {
            "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"
                }
              }
            ]
          }
        ]
      },
      {
        "component": [
          {
            "text": "One tablet daily for 4 days",
            "additionalInstruction": [
              {
                "coding": [
                  {
                    "system": "http://snomed.info/sct",
                    "code": "311504000",
                    "display": "With or after food"
                  }
                ]
              }
            ],
            "timing": {
              "repeat": {
                "boundsDuration": {
                  "value": 4,
                  "unit": "days",
                  "system": "http://unitsofmeasure.org",
                  "code": "d"
                },
                "frequency": 1,
                "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"
                }
              }
            ]
          }
        ]
      }
    ]
  },
  "meta": {
    "tag": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
        "code": "HTEST",
        "display": "test health data"
      }
    ]
  }
}