States
To send an order, set
state: SUBMITTED. Photon checks first, and if anything is missing it rejects the send with a change in unappliedChanges:
- every prescription on the order is signed
- every prescription belongs to the order’s patient
- the patient has a phone number that can receive texts
Example
id, you get AmbiguousOrderMatch. Resend with the id of the one you mean.
Fields
Pharmacies
You don’t need to choose a pharmacy. With none set, the patient chooses one from the link Photon texts them. To choose for them, sendpharmacy: { pharmacy: … } with a PharmacyReferenceInput:
The fields combine to narrow the results. One match is applied directly. Several come back as an
AMBIGUOUS change with up to 20 options, each with pricing offers where available. Resend with the chosen pharmacy’s id. To unassign a pharmacy, send pharmacy: { none: true }.
Exceptions
Once an order is sent,exceptions lists problems that need attention, such as PHARMACY_UNREACHABLE, PHARMACY_NEEDS_INSURANCE_INFO or DOCTOR_NOT_LICENSED_IN_STATE. A draft never has exceptions. See Reference for every type.
Full selection set
Full selection set