patientId | string | Yes | Patient reference |
prescriberId | string | Yes | Prescribing practitioner |
encounterId | string | No | Encounter reference |
medication | string | { system?, code, display? } | Yes | RxNorm code or name |
intent | string | No | proposal, plan, order (default), original-order |
status | string | No | active (default), on-hold, cancelled, completed, draft |
priority | string | No | routine, urgent, asap, stat |
dosageText | string | No | Human-readable dosage |
dosage | object | No | Structured dosage (dose, frequency, period, route) |
refills | number | No | Number of refills (0-99) |
quantity | { value, unit } | No | Quantity to dispense |
supplyDays | number | No | Expected supply duration |
substitutionAllowed | boolean | No | Allow generic substitution |
reason | string | No | Clinical reason |
note | string | No | Pharmacist notes |
statusReason | string | No | Reason for current status (e.g. why on-hold) |
category | string | No | Category (inpatient, outpatient, community, discharge) |
doNotPerform | boolean | No | True if prohibiting the medication |
authoredOn | string | No | When authored (defaults to now) |
performerId | string | No | Intended performer of administration |
courseOfTherapy | string | No | Course type (continuous, acute, seasonal) |
priorPrescriptionId | string | No | Reference to replaced prescription |