clinik.medicationDispenses
Medication Dispenses (FHIRMedicationDispense) track the supply of medications to patients — typically by a pharmacy. Use clinik.prescriptions for medication orders and clinik.medications for drug definitions.
create
| Field | Type | Required | Description |
|---|---|---|---|
status | string | Yes | preparation, in-progress, cancelled, on-hold, completed, stopped, declined |
medication | string | { system?, code, display? } | Yes | Medication code or name |
patientId | string | Yes | Patient ID |
encounterId | string | No | Encounter ID |
statusReasonCodeableConcept | string | No | Reason for current status |
category | string | No | Category of dispense |
performer | Array | No | Who performed the dispense |
locationId | string | No | Location ID |
authorizingPrescriptionIds | string[] | No | MedicationRequest IDs |
type | string | No | trial fill, partial fill, emergency fill |
quantity | { value, unit? } | No | Quantity dispensed |
daysSupply | number | No | Number of days supply |
whenPrepared | string | No | When prepared |
whenHandedOver | string | No | When handed over |
dosageText | string | No | Dosage instructions |
substitution | object | No | Substitution details |
note | string | No | Additional notes |
Example
read / update / delete / search
Same pattern as other resources. Update supportsstatus, statusReasonCodeableConcept, note. Search supports patientId, status, medication filters.