MedicationDispense

The FHIR R4 MedicationDispense resource represents the actual dispensing of medication to a patient. It includes information about the medication, dosage, performer, and when and where the dispensing occurred. This resource is typically populated from pharmacy data sources.

Use Cases

  • Track which prescriptions have been dispensed and when
  • Verify if a patient filled a medication order before a follow-up
  • View dispensing location and instructions from pharmacies

Base URLs

Authentication

All requests require OAuth 2.0 authentication using a Bearer Token. Unauthorized requests return 401 Unauthorized responses.

Required Scopes

  • medicationdispense.read for GET
  • medicationdispense.write for POST, PUT, DELETE

For more information, go to: OAuth 2.0 Authentication.

Supported Methods

MethodOperationDescription
GETRead MedicationDispenseRetrieves a specific MedicationDispense record by its FHIR ID.
GETSearch MedicationDispenseSearches for MedicationDispense records for a specified patient.
POSTCreate MedicationDispenseSubmits a new MedicationDispense record to the Health Gorilla FHIR server.
PUTUpdate MedicationDispenseUpdates an existing MedicationDispense record by full resource replacement.
DELETEDelete MedicationDispenseRemoves an existing MedicationDispense record from the system by full deletion.

Frequently Used Search Parameters

ParameterDescriptionFHIR Value Set / Example ValuesFHIR Data TypeRequired
patientFilters by patient IDPatient/{id}ReferenceYes
statusFilters by dispense statuscompleted, in-progresstokenNo
whenHandedOverFilters by the date the medication was handed over to patientge2023-01-01dateNo
medicationFilters by medication codeRxNorm code (e.g., 1049630)tokenNo
performerFilters by who performed the dispensePractitioner/{id}ReferenceNo
authorizingPrescriptionFilters by associated prescriptionMedicationRequest/{id}ReferenceNo

Commonly Returned Resource Attributes

AttributeDescriptionExample ValuesFHIR Data TypeRequired
idUnique FHIR ID for the dispense recorddsp-123456idYes
statusDispense statuscompleted, cancelledcodeYes
medicationCodeableConceptMedication that was dispensedAtorvastatin 20 MG Oral TabletCodeableConceptYes
subjectPatient who received the medicationPatient/{id}Reference(Patient)Yes
whenHandedOverDate/time the medication was given to the patient2024-03-15T10:30:00-07:00dateTimeNo
quantityQuantity dispensed30 tabletsQuantityNo
daysSupplyNumber of days the dispensed supply should cover30QuantityNo
performer.actorPerson or entity that performed the dispensePractitioner/{id}ReferenceNo
authorizingPrescriptionOriginal prescription that authorized the dispenseMedicationRequest/{id}ReferenceNo
dosageInstructionPatient instructions for taking the medicationTake one tablet daily with food.Dosage[]No

Webhooks

Clients can subscribe to receive notifications when new MedicationDispense records are added to a patient’s chart. For more information, go to: Webhooks & Polling.

Error Handling

All MedicationDispense operations follow standard Health Gorilla error handling, including use of FHIR OperationOutcome for structured responses.
For more information, go to: Error Handling.

Additional Resources

HL7 FHIR MedicationDispense