{
  "resourceType": "MedicationDispense",
  "id": "meddisp0305",
  "contained": [
    {
      "resourceType": "Medication",
      "id": "med0311",
      "code": {
        "coding": [
          {
            "system": "http://www.nlm.nih.gov/research/umls/rxnorm",
            "code": "763179",
            "display": "{48 (prednisone 5 MG Oral Tablet) } Pack"
          }
        ]
      }
    }
  ],
  "status": "entered-in-error",
  "medication": {
    "reference": {
      "reference": "#med0311",
      "display": "Prednisone"
    }
  },
  "subject": {
    "reference": "Patient/pat1",
    "display": "Donald Duck"
  },
  "performer": [
    {
      "actor": {
        "reference": "Practitioner/f006"
      }
    }
  ],
  "authorizingPrescription": [
    {
      "reference": "MedicationRequest/medrx0303"
    }
  ],
  "type": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code": "FF",
        "display": "First Fill"
      }
    ]
  },
  "quantity": {
    "value": 49,
    "unit": "TAB",
    "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
    "code": "TAB"
  },
  "daysSupply": {
    "value": 21,
    "unit": "Day",
    "system": "http://unitsofmeasure.org",
    "code": "d"
  },
  "whenPrepared": "2015-01-15T10:20:00Z",
  "whenHandedOver": "2015-01-15T16:20:00Z",
  "dosageInstruction": {
    "renderedInstruction": "Take 4 tablets daily for 7 days, then 2 tablets daily for 7 days, then 1 tablet daily for 7 days. Take with or after food.",
    "step": [
      {
        "component": [
          {
            "text": "Take 4 tablets daily for 7 days starting January 16, 2015",
            "additionalInstruction": [
              {
                "coding": [
                  {
                    "system": "http://snomed.info/sct",
                    "code": "311504000",
                    "display": "With or after Food"
                  }
                ]
              }
            ],
            "timing": {
              "repeat": {
                "boundsPeriod": {
                  "start": "2015-01-16",
                  "end": "2015-01-20"
                },
                "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": "calculated",
                      "display": "Calculated"
                    }
                  ]
                },
                "doseQuantity": {
                  "value": 4,
                  "unit": "TAB",
                  "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                  "code": "TAB"
                }
              }
            ]
          }
        ]
      },
      {
        "component": [
          {
            "text": "Take 2 tablets daily for 7 days starting January 23, 2015",
            "additionalInstruction": [
              {
                "coding": [
                  {
                    "system": "http://snomed.info/sct",
                    "code": "311504000",
                    "display": "With or after Food"
                  }
                ]
              }
            ],
            "timing": {
              "repeat": {
                "boundsPeriod": {
                  "start": "2015-01-23",
                  "end": "2015-01-30"
                },
                "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": "calculated",
                      "display": "Calculated"
                    }
                  ]
                },
                "doseQuantity": {
                  "value": 2,
                  "unit": "TAB",
                  "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                  "code": "TAB"
                }
              }
            ]
          }
        ]
      },
      {
        "component": [
          {
            "text": "Take 1 tablets daily for 7 days starting January 31, 2015",
            "additionalInstruction": [
              {
                "coding": [
                  {
                    "system": "http://snomed.info/sct",
                    "code": "311504000",
                    "display": "With or after Food"
                  }
                ]
              }
            ],
            "timing": {
              "repeat": {
                "boundsPeriod": {
                  "start": "2015-01-31",
                  "end": "2015-02-06"
                },
                "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": "calculated",
                      "display": "Calculated"
                    }
                  ]
                },
                "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"
      }
    ]
  }
}