{
  "resourceType": "MedicationDispense",
  "id": "medicationdispense-clin-example",
  "contained": [
    {
      "resourceType": "DetectedIssue",
      "id": "#detectedIssue2354",
      "status": "unknown",
      "detail": "The patient has an intolerance to iron oxide found in Almotriptan malate 6.25mg",
      "mitigation": [
        {
          "action": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
                "code": "5"
              }
            ]
          },
          "date": "2003-12-01T13:01:01+00:00",
          "author": {
            "reference": "Practitioner/555555",
            "display": "Tech Timmy"
          }
        }
      ]
    }
  ],
  "identifier": [
    {
      "value": "987654321"
    }
  ],
  "status": "completed",
  "medicationCodeableConcept": {
    "coding": [
      {
        "system": "http://hl7.org/fhir/NamingSystem/ca-hc-din",
        "code": "02466821",
        "display": "ALMOTRIPTAN (almotriptan (almotriptan malate) 12.5 mg oral tablet)"
      }
    ]
  },
  "subject": {
    "reference": "Patient/999999999"
  },
  "performer": [
    {
      "actor": {
        "reference": "Practitioner/888888"
      }
    }
  ],
  "location": {
    "reference": "Location/123445"
  },
  "authorizingPrescription": [
    {
      "reference": "MedicationRequest/222222"
    }
  ],
  "type": {
    "coding": [
      {
        "code": "FF",
        "display": "First Fill"
      }
    ]
  },
  "quantity": {
    "value": 250,
    "unit": "mg"
  },
  "daysSupply": {
    "value": 30,
    "unit": "d"
  },
  "dosageInstruction": [
    {
      "sequence": 1,
      "text": "Take 12.5 mg PO at onset; may repeat once after 2 hours. Not to exceed 25 mg/day. This medication is intended to address Migraines at onset. If you experience Migraines for more than 10 days/month, consult your doctor.",
      "timing": {
        "repeat": {
          "boundsPeriod": {
            "start": "2004-01-01",
            "end": "2004-01-31"
          }
        }
      },
      "route": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/v3-GCRT",
            "code": "3"
          }
        ]
      },
      "doseAndRate": [
        {
          "doseQuantity": {
            "value": 6.25,
            "unit": "mg"
          }
        }
      ],
      "maxDosePerPeriod": {
        "numerator": {
          "value": 25,
          "unit": "mg"
        },
        "denominator": {
          "value": 1,
          "unit": "day"
        }
      }
    }
  ],
  "substitution": {
    "wasSubstituted": false,
    "type": {
      "coding": [
        {
          "code": "N"
        }
      ]
    },
    "reason": [
      {
        "coding": [
          {
            "code": "OS",
            "display": "Out of Stock"
          }
        ]
      }
    ],
    "responsibleParty": [
      {
        "reference": "Practitioner/2356"
      }
    ]
  }
}