# MedicationDispense

Canonical page: https://docs.ovok.com/api/fhir/r4/medication-dispense

Indicates that a medication product is to be or has been dispensed for a named person/patient. This includes a description of the medication product (supply) provided and the instructions for administering the medication. The medication dispense is the result of a pharmacy system responding to a medication order.

These interaction paths describe standard FHIR R4 patterns. Availability can depend on the API capabilities enabled for your Ovok project.

| **Interaction** | **Method** | **Path** |
| --- | --- | --- |
| Read | `GET` | `/fhir/R4/MedicationDispense/[id]` |
| Vread | `GET` | `/fhir/R4/MedicationDispense/[id]/_history/[vid]` |
| Update | `PUT` | `/fhir/R4/MedicationDispense/[id]` |
| Patch | `PATCH` | `/fhir/R4/MedicationDispense/[id]` |
| Delete | `DELETE` | `/fhir/R4/MedicationDispense/[id]` |
| Create | `POST` | `/fhir/R4/MedicationDispense` |
| Search | `GET` | `/fhir/R4/MedicationDispense` |
| History | `GET` | `/fhir/R4/MedicationDispense/[id]/_history` |

## Top-level elements [#top-level-elements]

| **Element** | **Type** | **Cardinality** | **Description** |
| --- | --- | --- | --- |
| <span id="element-id"></span>`id` | [string](/fhir-elements/primitive/string) | `0..1` | Logical id of this artifact |
| <span id="element-meta"></span>`meta` | [Meta](/fhir-elements/complex/meta) | `0..1` | Metadata about the resource |
| <span id="element-implicit-rules"></span>`implicitRules` | [uri](/fhir-elements/primitive/uri) | `0..1` | A set of rules under which this content was created |
| <span id="element-language"></span>`language` | [code](/fhir-elements/primitive/code) | `0..1` | Language of the resource content |
| <span id="element-text"></span>`text` | [Narrative](/fhir-elements/complex/narrative) | `0..1` | Text summary of the resource, for human interpretation |
| <span id="element-contained"></span>`contained` | [Resource](/fhir-elements/foundation/resource) | `0..*` | Contained, inline Resources |
| <span id="element-extension"></span>`extension` | [Extension](/fhir-elements/complex/extension) | `0..*` | Additional content defined by implementations |
| <span id="element-modifier-extension"></span>`modifierExtension` | [Extension](/fhir-elements/complex/extension) | `0..*` | Extensions that cannot be ignored |
| <span id="element-identifier"></span>`identifier` | [Identifier](/fhir-elements/complex/identifier) | `0..*` | External identifier |
| <span id="element-part-of"></span>`partOf` | [Reference](/fhir-elements/complex/reference) | `0..*` | Event that dispense is part of |
| <span id="element-status"></span>`status` | [code](/fhir-elements/primitive/code) | `1..1` | preparation \| in-progress \| cancelled \| on-hold \| completed \| entered-in-error \| stopped \| declined \| unknown |
| <span id="element-status-reason-x"></span>`statusReason[x]` | [CodeableConcept](/fhir-elements/complex/codeable-concept), [Reference](/fhir-elements/complex/reference) | `0..1` | Why a dispense was not performed |
| <span id="element-category"></span>`category` | [CodeableConcept](/fhir-elements/complex/codeable-concept) | `0..1` | Type of medication dispense |
| <span id="element-medication-x"></span>`medication[x]` | [CodeableConcept](/fhir-elements/complex/codeable-concept), [Reference](/fhir-elements/complex/reference) | `1..1` | What medication was supplied |
| <span id="element-subject"></span>`subject` | [Reference](/fhir-elements/complex/reference) | `0..1` | Who the dispense is for |
| <span id="element-context"></span>`context` | [Reference](/fhir-elements/complex/reference) | `0..1` | Encounter / Episode associated with event |
| <span id="element-supporting-information"></span>`supportingInformation` | [Reference](/fhir-elements/complex/reference) | `0..*` | Information that supports the dispensing of the medication |
| <span id="element-performer"></span>`performer` | [BackboneElement](/fhir-elements/complex/backbone-element) | `0..*` | Who performed event |
| <span id="element-location"></span>`location` | [Reference](/fhir-elements/complex/reference) | `0..1` | Where the dispense occurred |
| <span id="element-authorizing-prescription"></span>`authorizingPrescription` | [Reference](/fhir-elements/complex/reference) | `0..*` | Medication order that authorizes the dispense |
| <span id="element-type"></span>`type` | [CodeableConcept](/fhir-elements/complex/codeable-concept) | `0..1` | Trial fill, partial fill, emergency fill, etc. |
| <span id="element-quantity"></span>`quantity` | [Quantity](/fhir-elements/complex/quantity) | `0..1` | Amount dispensed |
| <span id="element-days-supply"></span>`daysSupply` | [Quantity](/fhir-elements/complex/quantity) | `0..1` | Amount of medication expressed as a timing amount |
| <span id="element-when-prepared"></span>`whenPrepared` | [dateTime](/fhir-elements/primitive/date-time) | `0..1` | When product was packaged and reviewed |
| <span id="element-when-handed-over"></span>`whenHandedOver` | [dateTime](/fhir-elements/primitive/date-time) | `0..1` | When product was given out |
| <span id="element-destination"></span>`destination` | [Reference](/fhir-elements/complex/reference) | `0..1` | Where the medication was sent |
| <span id="element-receiver"></span>`receiver` | [Reference](/fhir-elements/complex/reference) | `0..*` | Who collected the medication |
| <span id="element-note"></span>`note` | [Annotation](/fhir-elements/complex/annotation) | `0..*` | Information about the dispense |
| <span id="element-dosage-instruction"></span>`dosageInstruction` | [Dosage](/fhir-elements/complex/dosage) | `0..*` | How the medication is to be used by the patient or administered by the caregiver |
| <span id="element-substitution"></span>`substitution` | [BackboneElement](/fhir-elements/complex/backbone-element) | `0..1` | Whether a substitution was performed on the dispense |
| <span id="element-detected-issue"></span>`detectedIssue` | [Reference](/fhir-elements/complex/reference) | `0..*` | Clinical issue with action |
| <span id="element-event-history"></span>`eventHistory` | [Reference](/fhir-elements/complex/reference) | `0..*` | A list of relevant lifecycle events |

## Resource-specific search parameters [#resource-specific-search-parameters]

| **Parameter** | **Type** | **Description** |
| --- | --- | --- |
| `code` | token | Multiple Resources: AllergyIntolerance: Code that identifies the allergy or intolerance ; Condition: Code for the condition ; DeviceRequest: Code for what is being requested/ordered ; DiagnosticReport: The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result ; FamilyMemberHistory: A search by a condition code ; List: What the purpose of this list is ; Medication: Returns medications for a specific code ; MedicationAdministration: Return administrations of this medication code ; MedicationDispense: Returns dispenses of this medicine code ; MedicationRequest: Return prescriptions of this medication code ; MedicationStatement: Return statements of this medication code ; Observation: The code of the observation type ; Procedure: A code to identify a  procedure ; ServiceRequest: What is being requested/ordered  |
| `context` | reference | Returns dispenses with a specific context (episode or episode of care) |
| `destination` | reference | Returns dispenses that should be sent to a specific destination |
| `identifier` | token | Multiple Resources: AllergyIntolerance: External ids for this item ; CarePlan: External Ids for this plan ; CareTeam: External Ids for this team ; Composition: Version-independent identifier for the Composition ; Condition: A unique identifier of the condition record ; Consent: Identifier for this record (external references) ; DetectedIssue: Unique id for the detected issue ; DeviceRequest: Business identifier for request/order ; DiagnosticReport: An identifier for the report ; DocumentManifest: Unique Identifier for the set of documents ; DocumentReference: Master Version Specific Identifier ; Encounter: Identifier(s) by which this encounter is known ; EpisodeOfCare: Business Identifier(s) relevant for this EpisodeOfCare ; FamilyMemberHistory: A search by a record identifier ; Goal: External Ids for this goal ; ImagingStudy: Identifiers for the Study, such as DICOM Study Instance UID and Accession number ; Immunization: Business identifier ; List: Business identifier ; MedicationAdministration: Return administrations with this external identifier ; MedicationDispense: Returns dispenses with this external identifier ; MedicationRequest: Return prescriptions with this external identifier ; MedicationStatement: Return statements with this external identifier ; NutritionOrder: Return nutrition orders with this external identifier ; Observation: The unique id for a particular observation ; Procedure: A unique identifier for a procedure ; RiskAssessment: Unique identifier for the assessment ; ServiceRequest: Identifiers assigned to this order ; SupplyDelivery: External identifier ; SupplyRequest: Business Identifier for SupplyRequest ; VisionPrescription: Return prescriptions with this external identifier  |
| `medication` | reference | Multiple Resources: MedicationAdministration: Return administrations of this medication resource ; MedicationDispense: Returns dispenses of this medicine resource ; MedicationRequest: Return prescriptions for this medication reference ; MedicationStatement: Return statements of this medication reference  |
| `patient` | reference | Multiple Resources: AllergyIntolerance: Who the sensitivity is for ; CarePlan: Who the care plan is for ; CareTeam: Who care team is for ; ClinicalImpression: Patient or group assessed ; Composition: Who and/or what the composition is about ; Condition: Who has the condition? ; Consent: Who the consent applies to ; DetectedIssue: Associated patient ; DeviceRequest: Individual the service is ordered for ; DeviceUseStatement: Search by subject - a patient ; DiagnosticReport: The subject of the report if a patient ; DocumentManifest: The subject of the set of documents ; DocumentReference: Who/what is the subject of the document ; Encounter: The patient or group present at the encounter ; EpisodeOfCare: The patient who is the focus of this episode of care ; FamilyMemberHistory: The identity of a subject to list family member history items for ; Flag: The identity of a subject to list flags for ; Goal: Who this goal is intended for ; ImagingStudy: Who the study is about ; Immunization: The patient for the vaccination record ; List: If all resources have the same subject ; MedicationAdministration: The identity of a patient to list administrations  for ; MedicationDispense: The identity of a patient to list dispenses  for ; MedicationRequest: Returns prescriptions for a specific patient ; MedicationStatement: Returns statements for a specific patient. ; NutritionOrder: The identity of the person who requires the diet, formula or nutritional supplement ; Observation: The subject that the observation is about (if patient) ; Procedure: Search by subject - a patient ; RiskAssessment: Who/what does assessment apply to? ; ServiceRequest: Search by subject - a patient ; SupplyDelivery: Patient for whom the item is supplied ; VisionPrescription: The identity of a patient to list dispenses for  |
| `performer` | reference | Returns dispenses performed by a specific individual |
| `prescription` | reference | Multiple Resources: MedicationDispense: The identity of a prescription to list dispenses from  |
| `receiver` | reference | The identity of a receiver to list dispenses for |
| `responsibleparty` | reference | Returns dispenses with the specified responsible party |
| `status` | token | Multiple Resources: MedicationAdministration: MedicationAdministration event status (for example one of active/paused/completed/nullified) ; MedicationDispense: Returns dispenses with a specified dispense status ; MedicationRequest: Status of the prescription ; MedicationStatement: Return statements that match the given status  |
| `subject` | reference | The identity of a patient for whom to list dispenses |
| `type` | token | Returns dispenses of a specific type |
| `whenhandedover` | date | Returns dispenses handed over on this date |
| `whenprepared` | date | Returns dispenses prepared on this date |

## Reference [#reference]

Official FHIR R4 spec: [MedicationDispense](https://hl7.org/fhir/R4/medicationdispense.html).  
Maturity: Trial Use 2 (FMM 2).
