Push Prescription

To push prescription with items and its quantity.

Push Prescription

POST {{apiUrl}}doctor/orders/push_prescription

Request Body

Name
Type
Description

patient_id*

String

Id to uniquely identify the patient for whom the order is placed.

Pass blank ('') if mobile and patient_name is passed in the request body. it will automatically create the patient.

items*

Array

List of items with quantity (in pills) and medicine_id and discount_percentage. Max 99% discount is allowed.

dosage details can be passed through directions in 1-1-1-1 (morning-noon-evening-night) format.

Not required, if Prescription is Passed in the image param.

i.e. [{ "medicine_id":"haaLvntZX7KmadCtJa314w==", "quantity":10, "discount_percentage": 5, "directions": "0-1-0.5-2" }]

image

File

Image of the prescription, if provided items will not be required.

apikey*

String

Authentication token

patient_name

String

Name of the Patient.

Only required if patient_id is passed blank.

doctor_name

String

Name of the Prescribing doctor

batch_with

String

Must be yes or no yes will Auto feed the batches based on the shortest expiry & stock availability no will keep the batch details empty

delivery_type

String

Must be one of pickup or delivery.

remark

String

Note for the Prescription.

parent_patient_id

String

If billing for family member, then pass parent patient's ID here.

shipping

Number

Delivery or Extra charges to be added in the order. default: 0

mobile

String

Mobile of the Patient.

Only required if patient_id is passed blank.

custom_fields

Object

Key value pairs of custom attribute key and it's value. For ex: {"prescription_id": "879", "appointment_id": "123"}

order_action

string

possible value : merge,update,""

order_id

string

1.When you want to merge a prescription, you need to pass the order_id to which you want to merge. And order_action should be "merge". 2.When you want to update a prescription, you need to pass the order_id to which you want to update.

{
    "status_code": "1",
    "status_message": "Order placed successfully",
    "datetime": "2022-12-07 14:18:11",
    "data": {
        "order_id": "jcdPUtlOBIBZY6xfDXJ6Gw==",
        "order_number": "ODLBDER3UQ"
    }
}

Last updated