Prescription
Prescription Created Event
Connect
- Webhooks
HealthAI
- Assessment
- EkaScribe
General Tools
- Medical Document Parsing
Doctor Tool
- Actors
- Instructions
- Patient Registration API
- Doctor and clinic API
- Appointment API
- Payments API
- Prescription API
- Notify
- Webhooks
- Appointment
- Prescription
- Doctor
ABDM Connect
- Create and Login
- User Session
- Patient Requests
- Consents
- Care Contexts
- Providers
- Profile
- Scan & Share
- Errors
Medical Knowledge-bases
- Overview
- Protocols
- Medications
Medical Records
- Create
- Read
- Update
- Delete
- Webhooks
User App
- Notifications
- Vital
- Webhooks
- Privacy
Release Notes
- ABDM Connect
Prescription
Prescription Created Event
When a prescription is created or modified, a webhook event is sent to registered webhooks with details about the prescription, including the prescription ID, visit ID, doctor ID, patient ID, and event type.
The receiver can then use the prescription_id
from webhook events to retrieve the details of a specific prescription by calling the prescription API.
POST
/
registered_url_for_prescription_events
curl --request POST \
--url https:///%7B{partner_host}%7D/registered_url_for_prescription_events \
--header 'Content-Type: application/json' \
--data '{
"event": "prescription.created",
"event_time": 1730189586,
"timestamp": 1730189586,
"client_id": "{{client_id}}",
"business_id": "{{business_id}}",
"data": {
"prescription_id": "{{prescription_id}}",
"doctor_id": "{{doctor_id}}",
"partner_doctor_id": "{{partner_doctor_id}}",
"patient_id": "{{patient_id}}",
"current_version": "2",
"previous_version": "1",
"prescription_url": "https://prescription-store-s3.eka.care/P-DW-sam123ple.pdf",
"prescription_url_print": "https://prescription-store-s3.eka.care/P-DW-sam123ple-print.pdf",
"partner_patient_id": "{{partner_patient_id}}",
"clinic_id": "{{clinic_id}}",
"partner_clinic_id": "{{partner_clinic_id}}",
"partner_appointment_id": "{{partner_appointment_id}}",
"action": "created",
"created_at": 1730189586,
"modified_at": 1730189586,
"partner_meta": {
"key1": "{{value1}}"
}
}
}'
Body
application/json
The body is of type object
.
curl --request POST \
--url https:///%7B{partner_host}%7D/registered_url_for_prescription_events \
--header 'Content-Type: application/json' \
--data '{
"event": "prescription.created",
"event_time": 1730189586,
"timestamp": 1730189586,
"client_id": "{{client_id}}",
"business_id": "{{business_id}}",
"data": {
"prescription_id": "{{prescription_id}}",
"doctor_id": "{{doctor_id}}",
"partner_doctor_id": "{{partner_doctor_id}}",
"patient_id": "{{patient_id}}",
"current_version": "2",
"previous_version": "1",
"prescription_url": "https://prescription-store-s3.eka.care/P-DW-sam123ple.pdf",
"prescription_url_print": "https://prescription-store-s3.eka.care/P-DW-sam123ple-print.pdf",
"partner_patient_id": "{{partner_patient_id}}",
"clinic_id": "{{clinic_id}}",
"partner_clinic_id": "{{partner_clinic_id}}",
"partner_appointment_id": "{{partner_appointment_id}}",
"action": "created",
"created_at": 1730189586,
"modified_at": 1730189586,
"partner_meta": {
"key1": "{{value1}}"
}
}
}'