Overview
The CreatePrescriptionCommand initiates the e-prescribing workflow with full safety checks, formulary verification, and compliance validation.
Command Schema
{ "commandId": "uuid", "commandType": "CreatePrescriptionCommand", "timestamp": "ISO 8601", "data": { "prescriptionId": "string", "patientId": "string", "prescriberId": "string", "pharmacyNCPDPID": "string", "medication": { "drugName": "string", "ndc": "string", "rxNorm": "string", "strength": "string" }, "quantity": "number", "daysSupply": "number", "refills": "number", "directions": "string", "isControlledSubstance": "boolean", "deaSchedule": "string", "diagnoses": ["ICD-10 codes"] }}Safety Checks
- Drug-drug interactions
- Drug-allergy checking
- Dose range validation
- PDMP query (controlled substances)
- Pregnancy/lactation checking