ePrescribing on FHIR R4: The Prescription Lifecycle as Resources and State Transitions
A prescription is a shared, long-lived record that a prescriber and several pharmacies act on without ever talking to each other. Modelled here as a MedicationRequest, a Task and a MedicationDispense, with the rules as one C# function and every transition as one FHIR transaction, tested against a FHIR server when two parties act at once.