A medication
query { # Use this type in your queries someQuery { creator cumulativeSiblingQuantity dateFilled daysSupply deaNumber }}creatorProviderProvider who created the medication
cumulativeSiblingQuantityDecimalSum of quantities across all non-deleted medications in this refill chain, excluding this one
dateFilledDateDate the medication was filled/dispensed
daysSupplyIntNumber of days the medication is expected to last
deaNumberStringdeclinedBooleandispenseCapDecimalMax total quantity allowed across all fills (pharmacy_snapshot.quantity × (pharmacy_snapshot.refills + 1))
dispensedDecimaldoseStringencounterEncounter(optional) Encounter the medication was prescribed during if applicable
frequencyStringfulfillmentSourceFulfillmentSourcehistoricalBooleaninsertedAtNaiveDateTimeisExternalBooleanisIssuedViaCubexBooleanlabelPdfStringlabelPdfModernStringlocationLocationlocationIdIDlotNumberStringThe prescription's lot number
medicationManufacturers[MedicationManufacturer]methodProductApplicationTypenameStringDetailed name of the medication prescribed
noteStringAdditional information about the prescription
orderItemOrderItemorderSuggestionOrderSuggestionpackageItemProductPackageItempatientPatientPatient whom is taking the medication
pdfStringpharmacyApprovedAtDateTimeTimestamp when the prescription was approved
pharmacyApprovedByProviderProvider who approved the prescription in the pharmacy
pharmacyCollectedByProviderProvider who collected/picked up the prescription
pharmacyFillInProgressAtDateTimeTimestamp when the prescription entered the Fill In Progress pharmacy status
pharmacyFillInProgressByProviderProvider who moved the prescription into the Fill In Progress pharmacy status
pharmacyFillVerificationAtDateTimeTimestamp when the prescription entered the Final Rx Check pharmacy status
pharmacyFillVerificationByProviderProvider who moved the prescription into the Final Rx Check pharmacy status
pharmacyFilledByProviderProvider who filled the prescription in the pharmacy
pharmacyOnHoldByProviderProvider who placed the prescription on hold
pharmacyPrescriptionApprovedAtDateTimeTimestamp when the prescription entered the Rx Approved pharmacy status
pharmacyPrescriptionApprovedByProviderProvider who moved the prescription into the Rx Approved pharmacy status
pharmacyRejectedByProviderProvider who rejected the prescription
pharmacyRejectionReasonPharmacyRejectionReasonReason for rejecting the prescription
pharmacySnapshotPharmacySnapshotImmutable snapshot of the medication's original state when first sent to pharmacy
pharmacyStatusPharmacyStatuspharmacyVerifiedAtDateTimeTimestamp when the prescription was verified
pharmacyVerifiedByProviderProvider who verified the prescription
prescriberProviderProvider who prescribed the medication
productProductproductIdIDquantityDecimalThe amount of the medication
quantityUnitStringrefillByDateDateDate the medication's refills are valid by
refillParentMedicationrefillSequenceIntPosition in the refill chain (0 = original, 1 = first refill, etc.)
refillsIntNumber of refills originally prescribed
refillsUsedIntnumber of refills used
requestedByProviderProvider who originally requested this medication or requested approval for this medication order
rootMedicationMedicationrootMedicationIdIDID of the original medication in a refill chain
sigStringLabel/instructions for the administration of the medication
sourceDocumentPatientDocumentstartDateDate the medication's administration started
statusMedicationStatusstopDateDate the medication's administration should cease
toGoHomeBooleanIndicates whether this medication is intended for the client to take home
updatedAtNaiveDateTimeusesLegacyRefillsBooleanWhether this medication uses legacy per-fill RX numbering
vetsourcedBooleanvialNumberStringThe prescription's vial number
visitVisitwasteQuantityDecimalThe amount wasted from Cubex