Prescription Data Reference
The Prescription event contains data relevant to a patient’s prescribed medication. The payload will include the drug information, notes about the prescription, and the patient's details.
Prescription Event Payload
The payload below is a representation of a Prescription trigger event.
It is based on a prescription.fulfilled event, but it is relevant for all prescription-based events. See the Workflow Events/Triggers article for a full list of available events.
{
"_id": "order_id",
"drugs": [
{
"din": "ABCD1234EFGH5678IJKL9012MNOP3456",
"mitte": 1,
"mitteType": "box",
"refills": 3,
"notes": "Take 2 tablets by mouth once daily with food.",
"drugName": "Metformin"
}
],
"fulfillments": [
{
"drugs": [
{
"din": "ABCD1234EFGH5678IJKL9012MNOP3456",
"qty": 60,
"name": "Metformin",
"mitte": 1,
"refills": 3,
"txNumber": "TXN123456"
}
],
"orderId": 9876,
"status": "processing",
"notes": "Patient requested a 90-day supply.",
"createdAt": "2024-07-20T08:15:22.110Z"
}
],
"printCounter": 1,
"isVerbal": false,
"customer": {
"_id": "customer_id",
"email": "janedoe@example.com",
"phone": "+14155550123",
"firstName": "Jane",
"lastName": "Doe",
"gender": "female",
"referrer": "Dr. Anderson"
},
"notes": "Patient sensitive to brand-name medications. Dispense generic.",
"createdBy": {
"_id": "doctor_id",
"firstName": "Dr. Jhon",
"lastName": "doe",
"email": "jdoe@example.com"
},
"createdAt": "2024-07-20T08:10:05.450Z",
"organization": "medical_group",
"updatedAt": "2024-07-20T08:16:30.987Z",
"__v": 1
}Properties Descriptions
The table below describes the parameters of the payload.
Was this helpful?
More in Trigger Events Payloads
Subscription Data ReferenceQuestionnaire Data ReferenceOrder Data ReferenceCustomer Data ReferenceStill need help? Ask the team