eVitalRx
  • API - powered by eVitalRx
  • Getting Started with eVitalRx
  • API FOR Product Catalogue
    • Introduction
    • Medicines
      • Search Product
      • Product Details
      • Search Content
      • Request Product
      • Get Categories
      • Get Category Products
  • API FOR Patient App
    • Introduction
    • Login/Signup
      • Signup send OTP
      • Signup
      • Login
      • Forgot password send OTP
      • Reset password
      • Change password
    • Patients
      • Add Patient
      • Update Patient
      • Get Patient
      • Add Patient family member
    • Addresses
      • List Addresses
      • Add-Update Address
      • Set Default Address
      • Delete Address
    • Medicines
      • Search Products
      • Search Manufacturer
      • Product Details
      • Get Stock details
      • Get Product Batch
      • Search Content
      • Branded to Generic
      • Get Categories
      • Get Category Products
      • Get Entity Categories
      • Get Entity Category Products
    • Orders
      • Place Order
      • Cancel Order
      • Save
      • Order Details
      • Order List
      • Mark as Accept
      • Mark as Reject
      • Get Reject Reasons
      • Get Chemist Order Settings
      • â›”Mark as Shipped
      • Mark as Delivered
      • Order Return
      • Order Return Details
  • API FOR EMR/HMIS SOFTWARE
    • Introduction
    • Medicines
      • Search Products
      • Product Details
      • Get Inventory Status
      • Get Inventory Items
      • Get Alternatives
      • Get Product Batch
      • Get Expired Batches
      • Request Product
      • Branded to Generic
      • Search Content
      • Add Favorite Medicine
    • Patients
      • Add Patient
      • Get Patient
      • Update Patient
      • Add Patient family member
    • Orders
      • Push Prescription
      • Order Details
      • Order List
      • â›”Update Order
      • Save
  • API FOR Custom Fields
    • Introduction
    • Add Custom Fields
    • Update Custom Field
    • Delete Custom Fields
    • List Custom Fields
  • API FOR MASTER
    • Reports
      • Margin Report
      • Stock Summary
  • API FOR FULFILLMENT
    • Introduction
    • Medicines
      • Search Products
      • Product Details
    • Orders
      • â›”Check Serviceability
      • Check Serviceability V3
      • â›”Checkout V2
      • Checkout V3
      • â›”Place Order V2
      • Place Order V3
      • â›”Order Details
      • Order Details V2
      • â›”Cancel Order
      • Cancel Order V2
      • Get Reject Reasons
    • Patients
      • Add Patient
      • Get Patient
  • API FOR B2B
    • Introduction
    • Orders
      • Order Save
      • Order Save as Draft
      • Order List
      • Order Details
      • Order Return Save
      • Order Return List
      • Order Return Details
    • Customers
      • Add / Update Customer
      • Customer List
  • Webhook Responses
    • Introduction
    • Medicine Webhook
    • Transaction Webhook
    • Draft Save
    • Draft Edit
    • Order Save
    • Order Edit
    • Order Accepted
    • Order Rejected
    • Order Shipped
    • Order Delivered
    • Order Split
  • Others
    • Terms & Conditions
Powered by GitBook
On this page

Was this helpful?

  1. API FOR EMR/HMIS SOFTWARE
  2. Orders

Push Prescription

To push prescription with items and its quantity.

PreviousOrdersNextOrder Details

Last updated 5 months ago

Was this helpful?

Push Prescription

POST

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"
    }
}
{
    "status_code": "0",
    "status_message": "Invalid Patient Key",
    "datetime": "2022-12-07 14:18:44",
    "data": null
}
{{apiUrl}}doctor/orders/push_prescription