{
  "resourceType": "MedicationDispense",
  "id": "meddisp0302",
  "contained": [
    {
      "resourceType": "Medication",
      "id": "med0360",
      "code": {
        "coding": [
          {
            "system": "http://hl7.org/fhir/sid/ndc",
            "code": "0169-7501-11",
            "display": "NOVOLOG, 1 VIAL, GLASS in 1 CARTON (0169-7501-11) \u003e 10 mL in 1 VIAL, GLASS (package)"
          }
        ],
        "text": "Novolog 100u/ml"
      },
      "doseForm": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "385219001",
            "display": "Solution for injection"
          }
        ]
      },
      "ingredient": [
        {
          "item": {
            "concept": {
              "coding": [
                {
                  "system": "http://snomed.info/sct",
                  "code": "325072002",
                  "display": "Insulin Aspart (substance)"
                }
              ]
            }
          },
          "strengthRatio": {
            "numerator": {
              "value": 100,
              "system": "http://unitsofmeasure.org",
              "code": "U"
            },
            "denominator": {
              "value": 1,
              "system": "http://unitsofmeasure.org",
              "code": "mL"
            }
          }
        }
      ]
    }
  ],
  "status": "in-progress",
  "medication": {
    "reference": {
      "reference": "#med0360",
      "display": "NOVOLOG, 1 VIAL, GLASS in 1 CARTON (0169-7501-11) \u003e 10 mL in 1 VIAL, GLASS (package)"
    }
  },
  "subject": {
    "reference": "Patient/pat1",
    "display": "Donald Duck"
  },
  "performer": [
    {
      "function": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/medicationdispense-performer-function",
            "code": "finalchecker",
            "display": "Final Checker"
          }
        ]
      },
      "actor": {
        "reference": "Practitioner/f006"
      }
    }
  ],
  "authorizingPrescription": [
    {
      "reference": "MedicationRequest/medrx0321"
    }
  ],
  "type": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code": "RFP",
        "display": "Refill - Part Fill"
      }
    ]
  },
  "quantity": {
    "value": 10,
    "system": "http://unitsofmeasure.org",
    "code": "ml"
  },
  "daysSupply": {
    "value": 30,
    "unit": "Day",
    "system": "http://unitsofmeasure.org",
    "code": "d"
  },
  "whenPrepared": "2015-01-15T10:20:00Z",
  "whenHandedOver": "2015-01-15T16:20:00Z",
  "dosageInstruction": {
    "renderedInstruction": "Inject 10 units subcut 10 minutes before breakfast, 15 units before lunch, 20 units before dinner. Check sugar level before taking Novolog.",
    "step": [
      {
        "component": [
          {
            "text": "Before Breakfast",
            "additionalInstruction": [
              {
                "text": "Check sugar level before taking Novolog"
              }
            ],
            "timing": {
              "repeat": {
                "frequency": 1,
                "period": 1,
                "periodUnit": "d"
              }
            },
            "doseAndRate": [
              {
                "type": {
                  "coding": [
                    {
                      "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                      "code": "ordered",
                      "display": "Ordered"
                    }
                  ]
                },
                "doseQuantity": {
                  "value": 10,
                  "unit": "U",
                  "system": "http://unitsofmeasure.org",
                  "code": "U"
                }
              }
            ]
          },
          {
            "text": "15 units before lunch",
            "additionalInstruction": [
              {
                "text": "Check sugar level before taking Novolog"
              }
            ],
            "timing": {
              "repeat": {
                "frequency": 1,
                "period": 1,
                "periodUnit": "d"
              }
            },
            "doseAndRate": [
              {
                "type": {
                  "coding": [
                    {
                      "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                      "code": "ordered",
                      "display": "Ordered"
                    }
                  ]
                },
                "doseQuantity": {
                  "value": 15,
                  "unit": "U",
                  "system": "http://unitsofmeasure.org",
                  "code": "U"
                }
              }
            ]
          },
          {
            "text": "20 units before dinner",
            "additionalInstruction": [
              {
                "text": "Check sugar level before taking Novolog"
              }
            ],
            "timing": {
              "repeat": {
                "frequency": 1,
                "period": 1,
                "periodUnit": "d"
              }
            },
            "doseAndRate": [
              {
                "type": {
                  "coding": [
                    {
                      "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                      "code": "ordered",
                      "display": "Ordered"
                    }
                  ]
                },
                "doseQuantity": {
                  "value": 20,
                  "unit": "U",
                  "system": "http://unitsofmeasure.org",
                  "code": "U"
                }
              }
            ]
          }
        ]
      }
    ]
  },
  "meta": {
    "tag": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
        "code": "HTEST",
        "display": "test health data"
      }
    ]
  }
}