MocDoc API Documentation


MocDoc API is designed to make the platform extensible by providing access for resources to the external systems through REST API. Our API has standard resource-oriented URLs, accepts form-encoded request params, returns JSON-encoded responses and uses standard HTTP response/error codes.

HMAC authentication

You can authenticate HTTP requests by using the HMAC-SHA1 authentication scheme. (HMAC refers to hash-based message authentication code.) These requests must be transmitted over TLS.

Prerequisites

  • Credential - Access Key ID
  • Secret - base64 decoded Access Key Value
Provide each request with all HTTP headers required for authentication. The minimum required are:

Request header Description
Date Date and time at which the request was originated. It can't be more than 15 minutes off from the current Coordinated Universal Time (Greenwich Mean Time)
Content-Type The Content-Type representation header is used to indicate the original media type of the resource
Authorization Authentication information required by the HMAC-SHA1 scheme. Format and details are explained later in this article

Authorization header syntax

Authorization: MD ${accesskey}:${signature}

Argument Description
Accesskey Accesskey key has given by mocdoc
Signature base64 encoded HMACSHA256 of String-To-Sign. (required)

Credential

ID of the access key used to compute the signature.


Signed headers

HTTP request header names, separated by semicolons, required to sign the request. These HTTP headers must be correctly provided with the request as well. Don't use white spaces.


Required HTTP request headers

x-ms-date [or Date]; host;x-ms-content-sha256
Any other HTTP request headers can also be added to the signing. Just append them to the SignedHeaders argument.

Example

Date: Wed, 09 Aug 2023 12:57:34 GMT; Authorization: MD your_accesskey:signature; 
Content-Type:application/x-www-form-urlencoded.

Signature

Base64 encoded HMACSHA256 hash of the String-To-Sign. It uses the access key identified by Credential.
base64_encode(HMACSHA256(String-To-Sign, Secret))

String-To-Sign

It is a canonical representation of the request:
String-To-Sign =

HTTP_METHOD + '\n' + path_and_query + '\n' + signed_headers_values


Argument Description
HTTP_METHOD Uppercase HTTP method name used with the request.
path_and_query Concatenation of request absolute URI path and query string.
signed_headers_values Semicolon-separated values of all HTTP request headers listed in SignedHeaders. The format follows SignedHeaders semantics.

Example

string-To-Sign= "POST" + '\n\n' + "application/x-www-form-urlencoded" + '\n'                                            // VERB

                "Fri, 11 May 2018 18:48:36 GMT"+'\n\n'+"/api/locationlist/entitykey"                         //signed_headers_values


Example Request
Status Code
  • 200 - Authentication Successful
  • 401 - Authentication Failed

Example Javascript code to generate signature

Errors

MocDoc uses conventional HTTP response codes to indicate the success or failure of an API request.


Status Code Description
200 - Ok Everything worked as expected.
400 - Bad Request The request was unacceptable, often due to missing a required parameter.
401 - Unauthorized No valid API key provided.
402 - Request Failed The parameters were valid but the request failed.
403 - Forbidden The API key doesn't have permissions to perform the request.
404 - Not Found The requested resource doesn't exist.
409 - Conflict The request conflicts with another request (perhaps due to using the same idempotent key).
429 - Too Many Requests Too many requests hit the API too quickly. We recommend an exponential backoff of your requests.
500, 502, 503, 504 - Server Errors Something went wrong on MocDoc's end. (These are rare.)

Locations


GET https://mocdoc.com/api/locationlist/{EntityKey}

This API provides information about a list of locations associated with the entity.


Request Parameters

No parameters.



Response

Parameter Type Value Description
entitylocation string location1 Unique Key for location
landmark string near temple Nearby landmark place
.... .... ....



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl https://mocdoc.com/api/locationlist/sathish-kumar-demo

Example Response

          
  {
    "status":"200",
    "message":"success",
    "entitylocations":[
       {
        ....
       }
    ]
  }
          
          

Users


POST  https://mocdoc.com/api/get/userlist/{EntityKey}

This API provides information about the List of User associated with the entity.


Request Parameters

Parameter Type Description Required
entitylocation string Entity location Optional


Content Type : application/x-www-form-urlencoded


Response

Parameter Type Value Description
name string Lavanya Doctor's name
created_at string 2019030718:57:27 Created At
Format: YYYYMMDDHH:mm:ss
.... .... ....



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Invalid entitylocation
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/get/userlist/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "users":[
       {
        ....
       }
    ]
  }
          
          
          

Provider


POST https://mocdoc.com/api/get/provider/{EntityKey}

This API provides information about the List of Provider associated with the entity.


Request Parameters

Parameter Type Description Required
entitylocation string Entity location Optional


Content Type : application/x-www-form-urlencoded


Response

Parameter Type Value Description
type string test Provider type
subtype string test Provider subtype
.... .... ....



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Invalid entitylocation
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl https://mocdoc.com/api/get/provider/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "Provider":[
       {
        ....
       }
    ]
  }
          
          
          

Doctors


POST  https://mocdoc.com/api/get/dr/{EntityKey}

This API provides information about the doctor associated with the entity.


Request Parameters

Parameter Type Description Required
entitylocation string Entity location Optional


Content Type : application/x-www-form-urlencoded


Response

Parameter Type Value Description
name string Arthi B Doctor's name
drkey string Unique key of the doctor
.... .... ....



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Invalid entitylocation
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl https://mocdoc.com/api/get/dr/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "dr":[
       {
        ....
       }
    ]
  }
          
          
          

Referrals


POST  https://mocdoc.com/api/masters/referrals/{EntityKey}

This API is to get referrals list associated with the entity.


Request Parameters

No parameters.


Response

Parameter Type Value Description
referral_name string SenthilNathan Referral Name
referral_mobile integer 9003245123 Referral Mobile Number
referral_key string Referral Key



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Validation Error
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/masters/referrals/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "data":[
       {
        ....
       }
    ]
  }
          
          
          

Investigations


POST  https://mocdoc.com/api/masters/testprofiles/{EntityKey}

This API is to get test & profile list associated with the entity.


Request Parameters

No parameters.


Response

Parameter Type Value Description
labResources array Lab Resources
labProfiles array Lab Profiles
.... .... ....



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Validation Error
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/masters/testprofiles/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "data":[
       {
        ....
       }
    ]
  }
          
          
          

Packages


GET https://mocdoc.com/api/get/packages/{EntityKey}

This API is to get the packages list associated with the entity.


Request Parameters

No parameters.


Response

Parameter Type Value Description
entitykey string itooth EntityKey
expirydate string 20401222 Date of Expiry
Format: YYYYMMDD
.... .... ....



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Validation Error
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl https://mocdoc.com/api/get/packages/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "data":[
       {
        ....
       }
    ]
  }
          
          
          

Rateplan List


GET https://mocdoc.com/api/get/rateplan/{EntityKey}

This API is to get the Rateplan list associated with the entity.


Request Parameters

No parameters.


Response

Parameter Type Value Description
name string itooth Default Rate Plan Name of the Rate Plan
rateplankey string RateplanKey



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Validation Error
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/get/rateplan/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "data":[
       {
        ....
       }
    ]
  }
          
          
          

Rateplan Details


GET https://mocdoc.com/api/get/rateplan/{RatePlanKey}/{EntityKey}

This API is to get the Rateplan Details associated with the entity.


Request Parameters

No parameters.


Response

Parameter Type Value Description
name string itooth Default Rate Plan Name of the Rate Plan
entitykey string itooth EntityKey
Treatments string



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Validation Error
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl https://mocdoc.com/api/get/rateplan/sathish-kumar-demo_new/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "data":[
       {
        ....
       }
    ]
  }
          
          
          

Products


GET https://mocdoc.com/api/list/products/{EntityKey}

This API provides information about a list of products associated with the entity.


Request Parameters

No parameters.


Response

Parameter Type Value Description
name string Dolo 650 Product name
purprice integer 10.00 Purchase price of the product
.... .... ....



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl https://mocdoc.com/api/list/products/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "products":[
       {
        ....
       }
    ]
  }
          
          

Stores


GET https://mocdoc.com/api/list/stores/{EntityKey}

This API provides information about a list of Stores associated with the entity.


Request Parameters

No parameters.



Response

Parameter Type Value Description
name string Vadapalani Name of the Store
entitylocation string location1 Unique key for location



Status Code

  • 200 - Success
  • 403 - Unauthorized Entry
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/list/stores/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "stores":[
       {
        ....
       }
    ]
  }
          
          
        

Patient Creation


POST  https://mocdoc.com/api/register/patient/{EntityKey}

This API register the patient associated with the entity.


Request Parameters

Parameter Type Description Required
entitykey string Entity key Yes
entitylocation string Unique key for location Yes
.... .... ....


Content Type : Either application/x-www-form-urlencoded or application/json


Response

Parameter Type Value Description
phid string 20211209_001 Patient Id



Status Code

  • 200 - Success
  • 400 - Missed Fields
  • 401 - Unauthorized access
  • 402 - Validation Error
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/register/patient/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "data":{
           "phid":"BH44837"
           }
  }
          
          

Update Patient


POST  https://mocdoc.com/api/update/patient/{EntityKey}

This API update the patient list associated with the entity.


Request Parameters

Parameter Type Description Required
entitykey string Entity key Optional
phid string Patient ID Yes
.... .... ....


Content Type : Either application/x-www-form-urlencoded or application/json


Response

No parameters.



Status Code

  • 200 - Success
  • 400 - Missed Fields
  • 401 - Unauthorized access
  • 402 - Validation Error
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl https://mocdoc.com/api/update/patient/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"Patient detail updated successfully",
  }
          
          

OP Bill Creation


POST  https://mocdoc.com/api/lims/laborder/create/{EntityKey}

This API to create a bill for the patient associated with the entity.


Request Parameters

Parameter Type Description Required
entitykey string Entity key Yes
entitylocation string Unique key for location Yes
.... .... ....


Content Type : Either application/x-www-form-urlencoded or application/json


Response

Parameter Type Value Description
patientkey string Patient Key
patientid string Patient ID
doctorkey string Doctor Key
billkey string Bill Key



Status Code

  • 200 - Success
  • 400 - Missed Fields
  • 401 - Authentication Failed
  • 402 - Validation Error
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl https://mocdoc.com/api/lims/laborder/create/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "data":[
       {
        ....
       }
    ]
  }
          
          
          

Pharmacy Bill Creation


POST  https://mocdoc.com/api/pharmacy/bill/save/{EntityKey}

This API provides information to create a pharmacy bill associated with the entity.


Request Parameters

Parameter Type Description Required
patientname string Name of the patient Yes
patientmobile string Patient Mobile number Yes
.... .... ....


Content Type : Either application/x-www-form-urlencoded or application/json


Response

Parameter Type Value Description
billkey string Bill Key



Status Code

  • 200 - Success
  • 400 - Quantity exceeds current stock quantity
  • 403 - Unauthorized Entry
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/pharmacy/bill/save/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "info":[
       {
        ....
       }
    ]
  }
          
          
          

Patient Info

POST  https://mocdoc.com/api/patientinfo/{EntityKey}

This API is to get the demographic and geographic info of a registered patient.


Request Parameters

Parameter Type Description Required
phid string Patient Id Yes
mobile integer Patient Mobile Number Yes


Content Type : application/x-www-form-urlencoded


Response

Parameter Type Value Description
name string Razmul Patient Name
phid string 201707_001 Patient Id
.... .... ....



Status Code

  • 200 - Success
  • 400 - Missed Fields
  • 401 - Unauthorized access
  • 402 - Validation Error
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl https://mocdoc.com/api/patientinfo/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "data":[
       {
        ....
       }
    ]
  }
          
      
          

Book Appointment

POST  https://mocdoc.com/api/bookappt/{EntityKey}

This API creates appointment associated with the entity,location and doctor.


Request Parameters

Parameter Type Description Required
fname string First name of the patient Yes
phone string Phone number of the patient Yes
.... .... ....


Content Type : application/json


Response

No parameters.



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Validation Error
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/bookappt/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "apptkey":"itooth-nathankps2023020304:00",
  }
          
          

Update Appointment Status

POST  https://mocdoc.com/api/appt/updatestatus/{EntityKey}

This API creates appointment associated with the entity,location and doctor.


Request Parameters

Parameter Type Description Required
apptkey string Appointment Key Yes
status string Status of appointment Yes
totalamt integer Total Amount Optional
amount_paid integer Amount Paid Optional


Content Type : application/json


Response

No parameters.



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Validation Error
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl https://mocdoc.com/api/appt/updatestatus/sathish-kumar-demo


Example Response

                    
  {
    "status":"200",
    "Message":"Success",
  }
                    
                    

Current Stock


GET https://mocdoc.com/api/currentstock/{EntityKey}/{StoreKey}

This API provides information about a Current Stock of Stores associated with the entity.


Request Parameters

No parameters.


Response

Parameter Type Value Description
prodkey string Unique key of the product
qty integer 1 Quantity of the product
storesection object Store section of the product
reorderlevel integer 1 Recorder level of the product



Status Code

  • 200 - Success
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl https://mocdoc.com/api/currentstock/sathish-kumar-demo/sathish-kumar-demolocation1_store-one


Example Response

          
  {
    "status":"200",
    "message":"success",
    "currentstock":[
       {
        ....
       }
    ]
  }
          
          
          

Current Stock - Batchwise


GET  https://mocdoc.com/api/stocks/listbatch/{EntityKey}/{EntityLocation}/{StoreKey}/{ProdKey}

This API provides information about a batches of product in particular store associated with the entity and location.


Request Parameters

No parameters.



Response

Parameter Type Value Description
purprice integer 200.00 Purchase price of the product
purpriceafterded integer 200.00 Purchase price after deduction
.... .... ....



Status Code

  • 200 - Success
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/stocks/listbatch/sathish-kumar-demo/location1/sathish-kumar-demolocation1_store-one/sathish-kumar-demo_1


Example Response

          
  {
    "status":"200",
    "message":"success",
    "products":[
       {
        ....
       }
    ]
  }
          
          
          

Patient Registration


POST  https://mocdoc.com/api/get/ptlist/{EntityKey}

This API provides information about the list of patients registered for the given date associated with the entity.


Request Parameters

Parameter Type Description Required
registrationdate string Registration Date Yes
entitylocation string Entity location for the patient Optional


Content Type : application/x-www-form-urlencoded


Response

Parameter Type Value Description
name string Raj Patient Name
phid string 20211209_001 Patient Id
.... .... ....



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Invalid date
  • 402 - Invalid entitylocation
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl https://mocdoc.com/api/get/ptlist/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "visits":[
       {
        ....
       }
    ]
  }
          
          
          

O/P Visits


POST  https://mocdoc.com/api/get/visitdata/{EntityKey}

This API provides information about the list of patient visits for the given date associated with the entity.


Request Parameters

Parameter Type Description Required
date string Date of Visit Yes
entitylocation string Unique key for location of Visit Optional


Content Type : application/x-www-form-urlencoded


Response

Parameter Type Value Description
location string location2 Unique key for location of Visit
date string 20211209 Date of Visit
Format: YYYYMMDD
.... .... ....



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Invalid date
  • 402 - Invalid entitylocation
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/get/visitdata/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "visits":[
       {
        ....
       }
    ]
  }
          
          
          

Checked In


POST  https://mocdoc.com/api/checkedin/{EntityKey}

This API is to get checked-in patient list associated with the entity.


Request Parameters

Parameter Type Description Required
entitykey string Entity key Yes
entitylocation string Unique key for location Yes
startdate string Start Date
Format: YYYYMMDD
Ex: 20120611
Yes
enddate string End Date
Format: YYYYMMDD
Ex: 20120612
Yes
speciality string Cardiac surgeon Optional
drdept string Inpatient service Optional


Content Type : application/x-www-form-urlencoded


Response

Parameter Type Value Description
checkinkey string itooth20211230_002_2022080511:02:20 Checkin Key
speciality string 'Orthopaedic Surgeon' Speciality
.... .... ....



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Invalid date or Invalid location
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl https://mocdoc.com/api/checkedin/sathish-kumar-demo


Example Response

    
  {
    "status":"200",
    "message":"success",
    "checkedin":[
       {
        ....
       }
    ]
  }
    
    
    

Calendar API


POST  https://mocdoc.com/api/calendar/{EntityKey}

This API is to get doctor's calendar associated with the entity & doctor.


Request Parameters

Parameter Type Description Required
entitykey string Entity key Yes
drkey string Dr key Yes
startdate string Start Date
Format: YYYYMMDD
Ex: 20120712
Yes
enddate string End Date
Format: YYYYMMDD
Ex: 20120713
Yes


Content Type : application/x-www-form-urlencoded


Response

Parameter Type Value Description
drkey string Unique key of the dr
drname string Senthilnathan DrName
slots array TimeSlots



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Invalid date or Invalid location
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl https://mocdoc.com/api/calendar/sathish-kumar-demo


Example Response

    
  {
    "status":"200",
    "message":"success",
    {
    [
    "drKey":"itooth-nathankps",
    "drName":"Senthilnathan Periasamy",
    "slots":[
       {
        ....>
       }
    ]
    ]
  }
    
    
    

I/P Admissions


POST  https://mocdoc.com/api/get/ipadmission/{EntityKey}

This API is to get IP Admission list associated with the entity.


Request Parameters

Parameter Type Description Required
entitykey string Entity key Yes
entitylocation string Unique key for location Yes
date string Date of admission
Format: YYYYMMDD
Ex: 20221109
Yes
drdept string Inpatient service Optional


Content Type : application/x-www-form-urlencoded


Response

Parameter Type Value Description
firstvisit_time string 18:44 First Visit Time
Format: HH:MM
firstvisit_date string 20211222 First Visit Data
Format: YYYYMMDD
.... .... ....



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Invalid date or Invalid location
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/get/ipadmission/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "ipadmission": [
       {
        ...
       }
    ]
  }
          
          
          

I/P Discharges

POST  https://mocdoc.com/api/get/ipdischarge/{EntityKey}

This API is to get IP Discharge list associated with the entity.


Request Parameters

Parameter Type Description Required
entitykey string Entity key Yes
entitylocation string Unique key for location Yes
date string Date of discharge
Format: YYYYMMDD
Ex: 20110218
Yes


Content Type : application/x-www-form-urlencoded


Response

Parameter Type Value Description
ipno integer 317 IP number
phid string 20211222_001 Patient ID
.... .... ....



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Invalid date or Invalid location
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl https://mocdoc.com/api/get/ipdischarge/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "ipdischarge": [
       {
        ...
       }
    ]
  }
          
          
          

I/P Room Transfers

POST  https://mocdoc.com/api/get/transferroom/{EntityKey}

This API is to get Transfer Room list associated with the entity.


Request Parameters

Parameter Type Description Required
entitykey string Entity key Yes
entitylocation string Unique key for location Yes
date string Date of discharge
Format: YYYYMMDD
Ex: 20110918
Yes


Content Type : application/x-www-form-urlencoded


Response

Parameter Type Value Description
roomallocationkey string itoothlocation1_9_907_962772021122319:04:50 Room Allocation Key
created_at string 2021122319:04:50 Created at
Format: YYYYMMDDHH:MM
.... .... ....



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Invalid date or Invalid location
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/get/transferroom/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "transferroomlist": [
       {
        ...
       }
    ]
  }
          
          
          

Bills

POST  https://mocdoc.com/api/get/billlist/{EntityKey}

This API is to get Bill list associated with the entity.


Request Parameters

Parameter Type Description Required
entitykey string Entity key Yes
date string Bill date
Format: YYYYMMDD
Ex: 20221108
Yes


Content Type : application/x-www-form-urlencoded


Response

Parameter Type Value Description
billtype string O/P Bill Type
consultant string Dr. S.Rekha B.D.S Consultant
.... .... ....



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Invalid date or Invalid location
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/get/billlist/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "billinglist": [
       {
        ...
       }
    ]
  }
          
          
          

Bills-Detailed

POST  https://mocdoc.com/api/get/billlist/detailed/{EntityKey}

This API is to get Bill list detailed associated with the entity.


Request Parameters

Parameter Type Description Required
entitykey string Entity key Yes
entitylocation string Unique key for location Yes
date string Bill date
Format: YYYYMMDD
Ex:20220304
Yes


Content Type : application/x-www-form-urlencoded


Response

Parameter Type Value Description
entitylocation string location1 Unique key for location
receivedby string Receivedby
.... .... ....



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Invalid date or Invalid location
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl   https://mocdoc.com/api/get/billlist/detailed/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "billinglist_detailed": [
       {
        ...
       }
    ]
  }
          
          
          

Edited-Bills

POST  https://mocdoc.com/api/get/editedbills/{EntityKey}

This API is to get Edited Bill list associated with the entity.


Request Parameters

Parameter Type Description Required
entitykey string Entity key Yes
entitylocation string Unique key for location Yes
date string Bill date
Format: YYYYMMDD
Ex: 20220908
Yes


Content Type : application/x-www-form-urlencoded


Response

Parameter Type Value Description
edited_at string 2019080514:27:14 Edited at
Format: YYYYMMDDHH:MM:SS
bill_no string OP2122-111 Bill no
.... .... ....



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Invalid date or Invalid location
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/get/editedbills/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "editedbills": [
       {
        ...
       }
    ]
  }
          
          
          

Pharmacy Bills

POST  https://mocdoc.com/api/get/pharmacybill/{EntityKey}

This API is to get Pharmacy Bill list associated with the entity.


Request Parameters

Parameter Type Description Required
entitylocation string Unique key for location Yes
date string Bill date
Format: YYYYMMDD
Ex: 20220809
Yes


Content Type : application/x-www-form-urlencoded


Response

Parameter Type Value Description
name string Raj Patient name
patientkey string Patient Key
.... .... ....



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Invalid date or Invalid location
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/get/pharmacybill/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "pharmbilllist": [
       {
        ...
       }
    ]
  }
          
          
          

Lab Orders

POST  https://mocdoc.com/api/orderlist/{EntityKey}

This API is to get lab orders list associated with the entity.


Request Parameters

Parameter Type Description Required
entitykey string Entity key Yes
date string Date of Order
Format: YYYYMMDD
Ex: 20220908
Yes
starttime string Start Time of Order
Format: HH:MM
Ex: 22:00
Yes
endtime string End Time of Order
Format: HH:MM
Ex: Ex: 22:30
Yes


Content Type : application/x-www-form-urlencoded


Response

Parameter Type Value Description
status string Bill Paid Order Status(Bill Paid, Sample Taken, Completed, Verified, Approved, Printed)
orderdate string 2022071315:34:31 Bill date
Format: YYYYMMDDHH:MM
.... .... ....



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Invalid date or Invalid location
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/orderlist/sathish-kumar-demo


Example Response

    
  {
    "status":"200",
    "message":"success",
    "orders": [
       {
        ...
       }
    ]
  }
    
    
    

Test Result

POST  https://mocdoc.com/api/orderresult/{EntityKey}

This API is to get order result associated with the entity.


Request Parameters

Parameter Type Description Required
date string Date of Test result
Format: YYYYMMDD
Ex: 20220908
Yes
orderkey string Order Key Optional
starttime string Start Time of Test result
Format: HH:MM
Ex: 22:00
Yes
endtime string End Time of Test result
Format: HH:MM
Ex: 22:30
Yes


Content Type : application/x-www-form-urlencoded


Response

Parameter Type Value Description
orderkey string Order Key
results array
entitykey string itooth Entity Key
entitylocation string location1 Unique key of the location
patientkey string Patient Key



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Invalid date or Invalid location
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/orderresult/sathish-kumar-demo


Example Response

    
  {
    "status":"200",
    "message":"success",
    "orderresult": [
       {
        ...
       }
    ]
  }
    
    
    

Order Create

POST  https://mocdoc.com/api/hl7/laborder/create/{EntityKey}/{EntityLocation}

This API is to create the order associated with the entity and location.


HL7 Message

    MSH|^~\&|EHOSPITAL|600^BU10|IP||20220823101146||OML^O21|BC-2308220191|P|2.4|||AL|AL||84302
    PID|||2201007||Ms. LEELA||1967-02-16|Female|||^^^^^AE||1234567890||E|M|OPD|sivakumar
    ORC|NW|202200000000099762||1||1||NM-HIGH DOSE THERAPY WARD||261||Grnd Floor Collection Centre|R||2022-07-29 16:34:54.456439|General Ward Male|Clinical Heamotology Division|Surgical Oncology
    OBR|BC-2308220191||18_104_TSH_0.34-5.06_mIU/mL_525021_2022_0_0_nill||20220823092808|||||A||||Serum|5000000167^Dr. RAHUL  A S^CB-GEN/86692/202223, Dt:2022-08-23 09:34:06>058898+05:30, Amt: Rs. 230^
    OBR|BC-2308220191||18_107_TG (Thyro globulin)_1.59-50.03_ng/mL_525021_2022_0_0_nill||20220823092808|||||A||||Serum|5000000167^Dr. RAHUL A S^CB-GEN/86692/202223, Dt:2022-08-23 09:34:06.058898+05:30, Amt: Rs. 450^
    OBR|BC-2308220191||18_26_CALCIUM_8.40-10.20_mg/dL_525021_2022_0_0_nill||20220823092808|||||A||||Serum|5000000167^Dr. RAHUL A S^CB-GEN/86692/202223, Dt:2022-08-23 09:34:06.058898+05:30, Amt: Rs. 120^
    OBR|BC-2308220191||18_16_ALBUMIN_3.50-5.00_g/dL_525021_2022_0_0_nill||20220823092808|||||A||||Serum|5000000167^Dr. RAHUL A S^CB-GEN/86692/202223, Dt:2022-08-23 09:34:06.058898+05:30, Amt: Rs. 60^









Response

Parameter Type Value Description
patientkey string Patient Key
patientid string 20211209_001 Patient ID
doctorkey string Doctor Key
billkey string Bill Key



Status Code

  • 200 - Success
  • 401 - Unauthorized access
  • 402 - Invalid date or Invalid location
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl https://mocdoc.com/api/hl7/laborder/create/sathish-kumar-demo/location1


Example Response

    
  {
    "data": {
      "patientkey": "sathish-kumar-demo2201007",
      "patientid": "2201007",
      "doctorkey": "sathish-kumar-demo-dr-rahul--a-s",
      "billkey": "sathish-kumar-demo2201007_2022082310:08:33_64980"
    },
    "status": "200",
    "message": "success"
  }

    
    

Tele Consultation Doctor

POST  https://mocdoc.com/api/telecon/get/drs/{EntityKey}

This API list Tele consultation doctor associated with the entity.


Request Parameters

Parameter Type Description Required
entitykey string Entity key Yes


Response

Parameter Type Value Description
title string Dr Docter title
name string Tazeen Fathima Docter name
.... .... ....



Status Code

  • 200 - Success
  • 400 - Missed Fields
  • 401 - Unauthorized access
  • 402 - Validation Error
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/telecon/get/drs/sathish-kumar-demo


Example Response

           
  {
    "status":"200",
    "message":"success",
    [
      {
       ...
      }
    ]
  }
            
            
          

Tele Consultation Doctor slot

POST  https://mocdoc.com/api/telecon/dr/slots/{DrKey}

This API list Tele consultation doctor slot associated with the entity and doctor key.


Request Parameters

Parameter Type Description Required
entitykey string Entity key Yes
startdate string Start Date
Format: YYYYMMDD
Ex: 20221109
Yes
enddate string End Date
Format: YYYYMMDD
Ex: 20221110
Yes
drkey string Unique key of the doctor Yes


Content Type : application/x-www-form-urlencoded


Response

Parameter Type Value Description
drslots array
drkey string Dr key
entitykey string itooth Entity key



Status Code

  • 200 - Success
  • 400 - Missed Fields
  • 401 - Unauthorized access
  • 402 - Validation Error
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/telecon/dr/slots/itooth-nathankps


Example Response

           
  {
    "status":"200",
    "message":"success",
    [
       {
        ...
       }
    ]
  }
            
            
          

Tele consultation Patient List

POST  https://mocdoc.com/api/telecon/patientlist/{Mobile}/{EntityKey}

This API list Tele consultation patient list associated with the entity.


Request Parameters

Parameter Type Description Required
entitykey string Entity key Yes
mobile integer Patient mobile number
Ex: 1234123412
Yes


Response

Parameter Type Value Description
Title string Mr Patient Title
credit_provider string sampoorna-suraksha-insurance Credit Provider
.... .... ....



Status Code

  • 200 - Success
  • 400 - Missed Fields
  • 401 - Unauthorized access
  • 402 - Validation Error
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl https://mocdoc.com/api/telecon/patientlist/****8713/sathish-kumar-demo


Example Response

           
  {
    "status":"200",
    "message":"success",
    [
       {
        ...
       }
    ]
  }
            
            
          

Tele consultation Book Appointment

POST  https://mocdoc.com/api/telecon/book/appt/{Doctorkey}/{EntityKey}

This API Tele consultation book appointment associated with the entitykey.


Request Parameters

Parameter Type Description Required
drkey string Doctor key Yes
entitykey string Entity key Yes
.... .... ....


Response

Parameter Type Value Description
dr string Senthilnathan Dr name
date string 20221013 Date of appointment
Format: YYYYMMDD
slot string 21:00 start slot time
Format: HH:MM



Status Code

  • 200 - Success
  • 400 - Missed Fields
  • 401 - Unauthorized access
  • 402 - Validation Error
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/telecon/book/appt/itooth-nathankps/sathish-kumar-demo


Example Response

           
  {
    "status":"200",
    "message":"success",
    [
       {
        ...
       }
    ]
  }
            
            
          

Tele consultation Block slot

POST  https://mocdoc.com/api/telecon/block/slot/{Doctorkey}/{EntityKey}

This API block tele consultation slot associated with the entity.


Request Parameters

Parameter Type Description Required
drkey string Doctor key Yes
entitykey string Entity key Yes
date string Appointment Date
Format: YYYYMMDD
Ex: 20221110
Yes
slotstart string start slot time
Format: HH:MM
Ex: 22:00
Yes


Content Type : application/x-www-form-urlencoded


Response

Parameter Type Value Description
cachekey string itooth-nathankps_20221013_21:00 cachekey
entitykey string itooth Entity key
.... .... ....



Status Code

  • 200 - Success
  • 400 - Missed Fields
  • 401 - Unauthorized access
  • 402 - Validation Error
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl https://mocdoc.com/api/telecon/block/slot/itooth-nathankps/sathish-kumar-demo


Example Response

           
  {
    "status":"200",
    "message":"success",
    [
       {
        ...
       }
    ]
  }
            
            
          

Visit Patient Images

POST  https://mocdoc.com/api/visit/adddoc/{EntityKey}

This API is to get Visit Patient Images associated with the entity.


Request Parameters

Parameter Type Description Required
entitykey string Entity key Yes
Visitkey string Visit key Yes
imagename string Image Name Yes
imagecontent base64 Image Content Yes
imagenote string Image Note Optional


Content Type : Either application/x-www-form-urlencoded or application/json


Response

Parameter Type Value Description
imagekey string Image key
Visitkey string Visit key



Status Code

  • 200 - Success
  • 400 - "Please provide are all the Required field"
  • 401 - Unauthorized access
  • 402 - name already exist please change the file name..!
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/visit/adddoc/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "patientdoc": [
       {
        ...
       }
    ]
  }
          
          
          

Patient Images

POST  https://mocdoc.com/api/addimg/{EntityKey}

This API is to get Patient Images associated with the entity.


Request Parameters

Parameter Type Description Required
entitykey string Entity key Yes
Patientkey string Patient key Yes
imagename string Image Name Yes
imagecontent base64 Image Content Yes
imagenote string Image Note Optional


Content Type : Either application/x-www-form-urlencoded or application/json


Response

Parameter Type Value Description
imagekey string Image key
Patientkey string Patient key



Status Code

  • 200 - Success
  • 400 - Please provide are all the Required field
  • 401 - Unauthorized access
  • 402 - name already exist please change the file name..!
  • 403 - Forbidden
  • 500 - Something went wrong on MocDoc's end


Example Request

$ curl  https://mocdoc.com/api/addimg/sathish-kumar-demo


Example Response

          
  {
    "status":"200",
    "message":"success",
    "patientdoc": [
       {
        ...
       }
    ]
  }
          
          
          

WebHook


Webhooks are "user-defined HTTP callbacks". They are usually triggered by some event, such as pushing code to a repository, a new comment or a purchase, a comment being posted to a blog and many more use cases. When that event occurs, the source site makes an HTTP request to the URL configured for the webhook.

Webhook URL
{{ENDPOINT}}
Authentication Type

  • Basic Auth
  • API Key
  • Bearer Token
  • OAuth 2.O

Registration

Event Payload Details

Parameter Type Value Description
name string Raj Patient Name
lname string Kumar Patient Last Name
.... .... ....



Sample Payload

          
  {
    "status":"200",
    "message":"success",
    "name":"Raj",
    "lname":"kumar",
     ....
  }
          
          
          

OP Bill Creation

Event Payload Details

Parameter Type Value Description
billdate string 20211209 Bill Date
Format: YYYYMMDD
billno string OP2122-111 Bill Number
.... .... ....



Sample Payload

          
  {
    "status":"200",
    "message":"success",
     ....
  }
          
          
          

OP Bill Updation

Event Payload Details

Parameter Type Value Description
updated_by string Senthilnathan Periasamy Updated By
updated_at string 2021122320:23:39 Updated_At
Format: YYYYMMDDHH:MM:SS
.... .... ....



Sample Payload

          
  {
    "status":"200",
    "message":"success",
     ....
  }
          
          
          

OP Bill Cancellation

Event Payload Details

Parameter Type Value Description
cancelled_by string Senthilnathan Periasamy Cancelled By
cancelled_reason string Cancelled Reason
.... .... ....



Sample Payload

          
  {
    "status":"200",
    "message":"success",
     ....
  }
          
          
          

Appointment Confirmation

Event Payload Details

Parameter Type Value Description
bookedby string Anitha Doctor Name
bookedbyname string Senthilnathan Periasamy Booked By Name
.... .... ....



Sample Payload

          
  {
    "status":"200",
    "message":"success",
    "bookedby":"Anitha",
    "bookedbyname":"Senthilnathan Periasamy",
     ....
  }
          
          
          

Appointment Reschedule

Event Payload Details

Parameter Type Value Description
rescheduled_by string Senthilnathan Periasamy Rescheduled By
rescheduled_at string 2011102118:00:06 Rescheduled_At
Format: YYYYMMDDHH:MM:SS
.... .... ....



Sample Payload

          
  {
    "status":"200",
    "message":"success",
    "rescheduleby":"Senthilnathan Periyasamy",
     ....
  }
          
          
          

Appointment Cancellation

Event Payload Details

Parameter Type Value Description
cancelledby string Senthilnathan Periasamy Cancelled By
date string 2021102119:25:09 Cancelled Date
Format: YYYYMMDDHH:MM:SS
.... ....



Sample Payload

          
  {
    "status":"200",
    "message":"success",
     ....
  }
          
          
          
  {
    "status": "200",
    "message": "success",
    "entitylocations":
    [
      {
        "entitylocation": "location1",
        "landmark": "Near Tech Park",
        "mobile": "8144980616",
        "zip": "600026",
        "state": "Tamil Nadu",
        "city": "Chennai",
        "area": "Vadapalani",
        "street": "Gangai Amman Kovil Street",
        "pharmacy_name": "ABC Pharmacy",
        "lab_name": "ABC Laboratory",
        "alt_name": "ABC Hospital"
      },
      {
        "entitylocation": "location2",
        "landmark": "LaSaMi",
        "mobile": "8144980616",
        "zip": "600026",
        "state": "Tamil Nadu",
        "city": "Chennai",
        "area": "Vadaloor",
        "street": "Gangai Amman Kovil Street",
        "pharmacy_name": "ABC Pharmacy",
        "lab_name": "ABC Laboratory",
        "alt_name": "ABC Hospital"
      },
      {
        "entitylocation": "location3",
        "landmark": "Solai Building",
        "mobile": "8144980616",
        "zip": "600026",
        "state": "Tamil Nadu",
        "city": "Karur",
        "area": "Velayuthampalayam",
        "street": "Velur Main Road",
        "pharmacy_name": "ABC Pharmacy",
        "lab_name": "ABC Laboratory",
        "alt_name": "ABC Hospital"
      }
    ]
  }
{
    "status": "200",
    "message": "success",
    "products": [
      {
        "purprice": "3150.00",
        "name": "flexide putty",
        "status": "active",
        "salestax": "0",
        "unit": "",
        "pharmname": [""],
        "type": "Drug",
        "prodkey": "itooth_32",
        "mrp": "3350.00",
        "mfr": "",
        "usagetype": "Sales",
        "punit": "1",
        "schedulecode": "Scheduled",
        "reorderlevel": "0",
        "pcode": "32",
        "storesection": {
            "location1": "",
            "location2": "",
            "location3": "",
            "location4": ""
        },
        "allow_diff_price": "undefined",
        "hsn": "",
        "shortcode": "",
        "category": "",
        "indication": "",
        "schematype": "product",
        "prodtax": "",
        "prescription_params": {"ptype": "","dosage": "","morning": "","afternoon": "","evening": "","night": "","frequency": "","beforeorafterfood": "N/A","duration": "","presunit": "days","route": "","instruction": ""},
        "extpcode": "",
        "mrp_not_mandatory": "false"
      },
      {
        "purprice": "7.00",
        "name": "ggg",
        "status": "active",
        "salestax": "undefined",
        "unit": "",
        "pharmname": [""],
        "type": "Drug",
        "prodkey": "itooth_54",
        "mrp": "10.00",
        "mfr": "",
        "usagetype": "Sales",
        "punit": "1",
        "schedulecode": "Scheduled",
        "reorderlevel": "10",
        "pcode": "54",
        "storesection": {
            "location1": "",
            "location2": "",
            "location3": "",
            "location4": "",
            "location5": ""
        },
        "allow_diff_price": "false",
        "hsn": "11061000",
        "shortcode": "",
        "category": "",
        "indication": "",
        "schematype": "product",
        "prodtax": "",
        "prescription_params": {"ptype": "","dosage": "","morning": "","afternoon": "","evening": "","night": "","frequency": "","beforeorafterfood": "N/A","duration": "","presunit": "days","route": "","instruction": ""},
        "extpcode": "",
        "mrp_not_mandatory": "false"
      }
  ]
}
1.Success    
  {
  "status": "200",
  "message": "success",
  "patient_key": "itoothBH22222"
  }
  
2.Failure    
  {
  "status": "501",
  "message": "failure",
  "patient_key": """"
  }
  
1.Success    
  {
  "status": "200",
  "message": "success",
  "patient_key": "itoothBH22222"
  }

2.Failure
  {
  "status": "501",
  "message": "failure",
  "patient_key": """"
  }

{
  "status": "200",
  "message": "success",
  "stores": [
        "itoothlocation3_default": {
          "name": "Default",
          "entitylocation": "location3"
          },
        "itoothlocation1_stockstore1": {
          "name": "stockstore1",
          "entitylocation": "location1"
          },
        "itoothlocation1_default": {
          "name": "Vadapalani",
          "entitylocation": "location1"
          },
        "itoothlocation2_default": {
          "name": "Arumbakkam",
          "entitylocation": "location2"
          },
        "itoothlocation4_default": {
          "name": "Pallikaranai",
          "entitylocation": "location4"
          }
        ]
}

{
  "status": "200",
  "message": "success",
  "currentstock": [
    {
      "prodkey": "itooth_27",
      "qty": "43",
      "storesection": "",
      "reorderlevel": ""
    },
    {
      "prodkey": "itooth_13_83455",
      "qty": "1452.0",
      "storesection": "",
      "reorderlevel": ""
    },
    {
      "prodkey": "sathish-kumar-demo_11",
      "qty": "1298.0",
      "storesection": "D1",
      "reorderlevel": ""
    },
    {
      "prodkey": "sathish-kumar-demo_12",
      "qty": "0.0",
      "storesection": "",
      "reorderlevel": "0"
    }
  ]
}

{
  "status": "200",
  "message": "success",
  "products": [
    {
      "purprice": "200.00",
      "purpriceafterded": "200.0",
      "origpurprice": "2000.00",
      "batch": "Vetri",
      "expiry": "",
      "mrp": "300.00",
      "origmrp": "3000.00",
      "vat": "0",
      "qty": "62.0",
      "pcode": "",
      "punit": "10",
      "gst": "0.00",
      "salediscount": "0.00",
      "taxkey": ""
    },
    {
      "purprice": "1.333",
      "purpriceafterded": "1.333",
      "origpurprice": "4",
      "batch": "1",
      "expiry": "15/12/2023",
      "mrp": "3.333",
      "origmrp": "10",
      "vat": "",
      "qty": "10",
      "pcode": "",
      "punit": "3",
      "gst": "1",
      "salediscount": "",
      "taxkey": ""
    },
    {
      "purprice": "525.00",
      "purpriceafterded": "",
      "origpurprice": "5250.00",
      "batch": "",
      "expiry": "",
      "mrp": "600.00",
      "origmrp": "6000.00",
      "vat": "",
      "qty": "1063.0",
      "pcode": "",
      "punit": "10",
      "gst": "5.00",
      "salediscount": "0.00",
      "taxkey": ""
    }
  ]
}

1.Success case 
{
  "status": "200",
  "message": "success",
  "info": {
    "billkey": "itoothlocation1_PHARM2122-28_2021102918:45:16"
  }
}

2.Quantity exceeds case 
{
  "status": "400",
  "message": "Quantity exceeds current stock quantity",
  "info": {
    "productnames": [
      "Cons2",
      "Consum"
    ]
  }
}


  
{
  "status": "200",
  "message": "success",
  "ptlist": [
    {
      "registrationdate": "20200720",
      "phid": "BH22470",
      "name": "Raven",
      "dob": "20071030",
      "aged": "12",
      "agem": "9",
      "agey": "",
      "gender": "T",
      "email": "",
      "created-at": "2020072016:22:19"
    },
    {
      "registrationdate": "20211209",
      "phid": "20211209_002",
      "name": "Swetha",
      "dob": "",
      "aged": "",
      "agem": "",
      "agey": "",
      "gender": "M",
      "email": "",
      "created_at": "2021120915:31:06"
    }
  ]
}

  
{
  "status": "200",
  "message": "success",
  "name": "Raj",
  "lname": "kumar",
  "phid": "BH22470_001",
  "title": "Mr",
  "registrationdate": "20211209",
  "email": "[email protected]",
  "mobile": "9842424310",
  "contactnumbers": "8765478888",
  "isdcode": "+91",
  "altisdcode": "",
  "gender": "M",
  "aged": "09",
  "agem": "12",
  "agey": "2021",
  "dob": "20211209",
  "relationship": "Brother",
  "spousename": "",
  "spouseage": "",
  "extphid": "",
  "idproof": "Aadhaar",
  "idproofdetails": "1234 5678 9012 3456",
  "familyid": "",
  "bloodgroup": "B+",
  "occupation": "Business",
  "religion": "Hindhu",
  "guardian": "",
  "maritalstatus": "Single",
}

  
{
    "status": "200",
    "message": "success",
    "visits": [
      { "created_at": "2020070916:51:23",
        "location": "location1",
        "date": "2020070916:51:23",
        "phid": "790",
        "patient_key": "itooth790",
        "ext_phid": "123",
        "name": "Lini Mol Antony",
        "mobile": "9962724769",
        "email": "",
        "age": "",
        "gender": "M",
        "consultant": "Dr. Satish1 BDS, M.D.S (Endodontics)",
        "dr_key": "itooth-dr.satish",
        "referred_by": "",
        "referredbykey": "",
        "history": "HyperTension",
        "diagnosis": "

Diabetic Headache

", "treatment_advised": [ { "name": "PACKAGE - EXTRACTION WITH SOCKET PRESERVATION", "status": "planned", "teeth": "", "treatment_notes": "2" } ], "treatment_completed": [ { "name": "3rd molar extraction 2", "status": "completed", "teeth": "", "tr_at": "20200709", "tr_by": "Dr. Satish1 BDS, M.D.S (Endodontics)", "treatment_notes": "4", "trt_notes": "" } ], "notes": "

Treatment Notes

", "complaints": "Consultation", "examination": "

General Examination

", "prescription": [ { "type": "Tablet", "instruction": [ "this, is an instruction" ], "pharmname": "ASPIRIN", "medorder": "1", "name": "Dolo 650 mg", "dosage": "", "morning": "1", "afternoon": "1", "evening": "0", "night": "1", "beforeorafterfood": "After Food", "frequency": "", "unit": "days", "duration": "3", "schematype": "Prescription" } } ] }
  
{
  "status": "200",
  "message": "success",
  {"dr": [
          {
          "created_at": "2013040917:24:09",
          "locations": 
           [
                    {
                    "location": "location1",
                    "name": "ABC Hospital",
                    "alt_name": "",
                    "locname": "",
                    "street": "107, Gangai Amman Koil Street",
                    "area": "Vadapalani",
                    "city": "Chennai",
                    "state": "Moscow",
                    "zip": "-600026",
                    "landmark": "Near Swimming Pool",
                    "mobile": "7299400448",
                    "entitytype": "clinic",
                    "hospitalref": "itooth"
                    },
                    {
                    "location": "location2",
                    "name": "ABC Hospital",
                    "alt_name": "ArumABC Hospital",
                    "locname": "cupcakes",
                    "street": "R-8, Water Tank Road, MMDA",
                    "area": "Arumbakkam",
                    "city": "Chennai",
                    "state": "Tamil Nadu",
                    "zip": "",
                    "landmark": "9600032498",
                    "mobile": "9677032489",
                    "entitytype": "clinic",
                    "hospitalref": "itooth"
                    },
                    {
                    "location": "location3",
                    "name": "ABC Hospital",
                    "alt_name": "",
                    "locname": "",
                    "street": "Solai building, Velur main road",
                    "area": "velayuthampalayam",
                    "city": "Karur",
                    "state": "Tamil Nadu",
                    "zip": "600014",
                    "landmark": "Near Bank of india",
                    "mobile": "7299400445",
                    "entitytype": "clinic",
                    "hospitalref": "itooth"
                    },
                    {
                    "location": "location4",
                    "name": "ABC Hospital",
                    "alt_name": "",
                    "locname": "undefined",
                    "street": "100",
                    "area": "Pallikaranai",
                    "city": "Chennai",
                    "state": "Tamil Nadu",
                    "zip": "600012",
                    "landmark": "Near Text",
                    "mobile": "044-39909000",
                    "entitytype": "clinic",
                    "hospitalref": "itooth"
                    }
           ],
              "name": "Arthi B",
              "gender": "F",
              "speciality": ["Dentist", "Family Medicine"],
              "mobile": "9751673593",
              "ug_degree": "BDS",
              "pg_degree": ""
              },

              {
          "created_at": "2013071310:35:17",
          "locations": 
           [
                    {
                    "location": "location2",
                    "name": "ABC Hospital",
                    "alt_name": "ArumABC Hospital",
                    "locname": "cupcakes",
                    "street": "R-8, Water Tank Road, MMDA",
                    "area": "Arumbakkam",
                    "city": "Chennai",
                    "state": "Tamil Nadu",
                    "zip": "",
                    "landmark": "Near Building",
                    "mobile": "9876543210",
                    "entitytype": "clinic",
                    "hospitalref": "itooth"
                    },
                    {
                    "location": "location3",
                    "name": "ABC Hospital",
                    "alt_name": "",
                    "locname": "",
                    "street": "Solai building, Velur main road",
                    "area": "velayuthampalayam",
                    "city": "Karur",
                    "state": "Tamil Nadu",
                    "zip": "600014",
                    "landmark": "Near Bank of india",
                    "mobile": "7299400445",
                    "entitytype": "clinic",
                    "hospitalref": "itooth"
                    },
                    {
                    "location": "location4",
                    "name": "ABC Hospital",
                    "alt_name": "",
                    "locname": "undefined",
                    "street": "100",
                    "area": "Pallikaranai",
                    "city": "Chennai",
                    "state": "Tamil Nadu",
                    "zip": "600012",
                    "landmark": "Near Text",
                    "mobile": "044-39909000",
                    "entitytype": "clinic",
                    "hospitalref": "itooth"
                    }
           ],
              "name": "Nirmal",
              "gender": "M",
              "speciality": ["Dentist", "Family Medicine"],
              "mobile": "9751673593",
              "ug_degree": "B D S",
              "pg_degree": ""
              }
          }
    ]
}
  
  {
    "status": "200",
    "message": "success",
    "users":
    [
      {
        "key": "itooth-xxx",
        "created_at": "2014030615:22:04",
        "multilocation": [
                          "location1",
                          "location2",
                          "location3",
                          "location4"
                          ],
        "authdiscper": "0",
        "discountauthorization": false,
        "department": [
                      "Admin",
                      "Phlebotomist",
                      "HomeCare",
                      "Runner",
                      "Radiology"
                      ],
        "name": "xxx"
      },
      {
        "key": "testcp-1",
        "created_at": "2018122716:56:35",
        "authdiscper": "0",
        "discountauthorization": false,
        "name": "testcp",
        "department": [
                      "CorporateLab",
                      "CorporateOrderRequest"
                      ],
        "multilocation": [
                          "location1",
                          "location4",
                          "location3",
                          "location2"
                          ]
      },
      {
        "key": "star-health-insurance-1",
        "created_at": "2018092715:58:15",
        "authdiscper": "0",
        "discountauthorization": false,
        "name": "Star Health Insurance",
        "department": [
                      "CorporateLab",
                      "CorporateOrderRequest"
                      ],
        "multilocation": [
                          "location1",
                          "location4"
                          ]
      },
      {
        "key": "itooth-karthik",
        "created_at": "2013091914:33:43",
        "multilocation": [
                          "location1",
                          "location2",
                          "location3",
                          "location4"
                          ],
        "authdiscper": "10",
        "discountauthorization": ttrue,
        "department": [
                      "MultiLocationAdmin",
                      "Admin"
                      ],
        "name": "Karthik"
      },
      {
        "key": "itooth-bala",
        "created_at": "2013092311:37:02",
        "multilocation": [
                          "location1",
                          "location2",
                          "location3",
                          "location4"
                          ],
        "authdiscper": "0",
        "discountauthorization": false,
        "department": [
                      "itooth-locadmin"
                      ],
        "name": "Bala"
      }
    ]
  }
  
{
  "status": "200",
  "message": "success",
  {
  "providers": [{
          "email": "harimca1995@gmail.com",
          "isdcode": "91",
          "state": "tamilnadu",
          "city": "chennai",
          "subtype": "Lab",
          "area": "location",
          "type": "Corporate",
          "name": "Postpaid(Niva Bup)",
          "uniqueid": "postpaid",
          "phone": "1234567890"
      ]}
  }
}

  
{
  "status": "200",
  "message": "success",
  {
    "data": {
            "patientkey": "itoothBH44856",
            "patientid": "BH44856",
            "doctorkey": "itooth-saravankumar",
            "billkey": "itoothBH44856_2020111814:34:29"
            }
  }
}

  
{
  "status": "200",
  "message": "success",
  "billitems":
    {
      "item1":{
          "label": "Metal Ceramic Crown",
          "price": "350",
          "covered_price": "",
          "type": "test",
          "qty": "1",
          "salestax": "16.66",
          "salestaxname": "GST",
          "gst": "5.00",
          "cgst": "8.33",
          "sgst": "8.33",
      }
    },
  "billdate": "2021122318:23:39",   
  "saved_by": "Senthilnathan Periasamy",  
  "saved_at": "2021122318:23:39",     
  "consultant": "Lavanya",
  "bill_no": "OP2122-111",
  "paymenttype": "Cash",
  "natureofvisit": "Consultant",
  "totaltax": "16.66",
  "chief_complaint": "Abhinav",
  "unregistered Dr": "Senthilnathan",
  "referredby": "Aswath",
  "credit_provider": "SBI",
  "discountamount": "100",
  "discountpercentage": "10",
  "amountreceived": "1000",
  "amountpayable": "1000",
  "location": "107, Gangai Amman Koil Street, Vadapalani, Chennai",
}
  
{
  "status": "200",
  "message": "success",
  "billitems":
    {
      "item1":{
          "label": "Metal Ceramic Crown",
          "price": "350",
          "covered_price": "",
          "type": "test",
          "qty": "1",
          "salestax": "16.66",
          "salestaxname": "GST",
          "gst": "5.00",
          "cgst": "8.33",
          "sgst": "8.33",
      }
    },
  "updated_by": "Senthilnathan Periasamy",
  "updated_at": "2021122320:23:39",  
  "billdate": "2021122318:23:39",   
  "saved_by": "Senthilnathan Periasamy",  
  "saved_at": "2021122318:23:39",     
  "consultant": "Lavanya",
  "bill_no": "OP2122-111",
  "paymenttype": "Cash",
  "natureofvisit": "Consultant",
  "totaltax": "16.66",
  "chief_complaint": "Abhinav",
  "unregistered Dr": "Senthilnathan",
  "referredby": "Aswath",
  "credit_provider": "SBI",
  "discountamount": "100",
  "discountpercentage": "10",
  "amountreceived": "1000",
  "amountpayable": "1000",
  "location": "107, Gangai Amman Koil Street, Vadapalani, Chennai",
}
  
{
  "status": "200",
  "message": "success", 
  "billitems":
    {
      "item1":{
          "label": "Metal Ceramic Crown",
          "price": "350",
          "covered_price": "",
          "type": "test",
          "qty": "1",
          "salestax": "16.66",
          "salestaxname": "GST",
          "gst": "5.00",
          "cgst": "8.33",
          "sgst": "8.33",
      }
    },   
  "cancelled_by": "Senthilnathan Periasamy",   
  "cancelled_reason": "",      
  "billdate": "2021122318:23:39",   
  "saved_by": "Senthilnathan Periasamy",  
  "saved_at": "2021122318:23:39",     
  "consultant": "Lavanya",
  "bill_no": "OP2122-111",
  "paymenttype": "Cash",
  "natureofvisit": "Consultant",
  "totaltax": "16.66",
  "chief_complaint": "Abhinav",
  "unregistered Dr": "Senthilnathan",
  "referredby": "Aswath",
  "credit_provider": "SBI",
  "discountamount": "100",
  "discountpercentage": "10",
  "amountreceived": "1000",
  "amountpayable": "1000",
  "location": "107, Gangai Amman Koil Street, Vadapalani, Chennai",
}
  
{
  "status": "200",
  "message": "success",
  "bookedby": "Anitha",
  "bookedbyname": "Senthilnathan Periasamy",
  "dr_name": "Aswath",
  "start": "22:00",
  "end": "22:30",
  "purpose": "Consultation",
  "referred_by": "Dr.Abhinav",
  "bookingmode": "FrontOffice-Call",
  "email": "[email protected]",
  "date": "20211209",
  "appnotes": "Get Well Soon",
  "title": "Mr",
  "fname": "Sathish Kumar S",
  "phone": "5432154321",
  "isdcode": "+91",
  "altphone": 1233445566,
  "altisdcode": "+91",
  "age": "24 years 9 months 8 days",
  "dr_location": "107, Gangai Amman Koil Street, Vadapalani, Chennai",
}
  
{
  "status": "200",
  "message": "success",
  "rescheduled_by": "Senthilnathan Periyasamy",
  "rescheduled_at": "20211209",
  "bookedby": "Anitha",
  "bookedbyname": "Senthilnathan Periasamy",
  "dr_name": "Aswath",
  "start": "22:00",
  "end": "22:30",
  "purpose": "Consultation",
  "referred_by": "Dr.Abhinav",
  "bookingmode": "FrontOffice-Call",
  "email": "[email protected]",
  "date": "20211209",
  "appnotes": "Get Well Soon",
  "title": "Mr",
  "fname": "Sathish Kumar S",
  "phone": "5432154321",
  "isdcode": "+91",
  "altphone": 1233445566,
  "altisdcode": "+91",
  "age": "24 years 9 months 8 days",
  "dr_location": "107, Gangai Amman Koil Street, Vadapalani, Chennai",
}
  
{
  "status": "200",
  "message": "success",
  "cancelled":{ 
      "person": "Doctor",
      "cancelledby": "Senthilnathan periyasamy",
      "date": "20211209",
      "reason": ""
    },
  "bookedby": "Anitha",
  "bookedbyname": "Senthilnathan Periasamy",
  "dr_name": "Aswath",
  "start": "22:00",
  "end": "22:30",
  "purpose": "Consultation",
  "referred_by": "Dr.Abhinav",
  "bookingmode": "FrontOffice-Call",
  "email": "[email protected]",
  "date": "20211209",
  "appnotes": "Get Well Soon",
  "title": "Mr",
  "fname": "Sathish Kumar S",
  "phone": "5432154321",
  "isdcode": "+91",
  "altphone": 1233445566,
  "altisdcode": "+91",
  "age": "24 years 9 months 8 days",
  "dr_location": "107, Gangai Amman Koil Street, Vadapalani, Chennai",
}
  
{
  "status": "200",
  "message": "success",
  { 
    "data": {
      "labResources": [
                        {
                          "name": "Hand AP / Oblique",
                          "category": "Radiology",
                          "results": [],
                          "container": "red",
                          "key": "itoothlocation1hand-ap--oblique",
                          "shortname": "",
                          "type": "test",
                          "dept": "X-Ray"
                        },
                        {
                          "name": 
                          "Bio-Line / Other Lab Investigations",
                          "category": "Laboratory",
                          "results": [],
                          "container": "red",
                          "key": "itoothlocation1bio-line--other-lab-investigations",
                          "shortname": "",
                          "type": "test",
                          "dept": ""
                        }
                      ],
      "labProfiles":  [
                        {
                          "name": "Lipid Profile2",
                          "services": [
                                  {
                                    "order": "1",
                                    "name": "Total Cholesterol",
                                    "key": "itoothlocation2total-cholesterol",
                                    "price": "100.00",
                                    "type": "test"
                                  },
                                  {
                                    "order": "2",
                                    "name": "TGL",
                                    "key": "itoothlocation2tgl",
                                    "price": "100.00",
                                    "type": "test"
                                  },
                                  {
                                    "order": "3",
                                    "name": "HDL",
                                    "key": "itoothlocation2hdl",
                                    "price": "0.00",
                                    "type": "test"
                                  },
                                  {
                                    "order": "4",
                                    "name": "VLDL",
                                    "key": "itoothlocation2vldl",
                                    "price": "0.00",
                                    "type": "test"
                                  },
                                  {
                                    "order": "5",
                                    "name": "LDL",
                                    "key": "itoothlocation2ldl",
                                    "price": "0.00",
                                    "type": "test"
                                  },
                                  {
                                    "order": "6",
                                    "name": "LIVER FUNCTION TEST - LFT",
                                    "key": "itoothlocation1liver-function-test--lft",
                                    "price": "800.00",
                                    "type": "profile"
                                  }
                                ],
      "key": "itoothlocation2lipid-profile2",
      "shortname": "",
      "type": "profile"
    }
  ]
}
}
}

   
  {
  "status": "200",
  "message": "success",
    "data": {
              "entitykey": "itooth",
              "expirydate": "20311222",

      "Services": [
                      {
                        "name": "GLOBULIN",
                        "type": "test",
                        "id": "itooth-dr.hari",
                        "qty": "1",
                        "subpackageref": ""
                      }
                  ],
              "pkgcode": "PKG_17",
              "package": "Mixed Package",
              "status": "active",
              "expand_as_billitems": "false",
              "mention_details_in_bill": "false",
              "creditprovider": ""
  }
}
                          
   
  {
  "status": "200",
  "message": "success",
  "data": {
    "Treatments": [
                    {
                    "name": "Registration",
                    "key": "itooth_registration",
                    "price_op": "300.00",
                    "price_ip": "300.00",
                    "price_dc": "300.00"
                    }
                  ],
           "Drs": [
                    {
                    "name": "Dr. madhu(Acupuncture)",
                    "key": "itooth-madhu",
                    "price_op": "100.00",
                    "price_ip": "100.00",
                    "price_dc": "100.00"
                    }
                ],
      "Roomtypes": [
                    {
                    "name": "Deluxe",
                    "key": "itoothdeluxe",
                    "subitems": [
                      {
                        "key": "nursing_care",
                        "name": "Nursing Care",
                        "type": "Room Charges",
                        "price": "1000.00"
                      }
                    ]
                  }
               ],
      "Profiles": [
                    {
                    "name": "Rad",
                    "key": "itoothlocation1rad",
                    "price_op": "800.00",
                    "price_ip": "800.00",
                    "price_dc": "800.00"
                    }
              ],
      "Tests": [
                    {
                    "name": "Serum",
                    "key": "itoothlocation1serum",
                    "price_op": "1000.00",
                    "price_ip": "1000.00",
                    "price_dc": "1000.00"
                    }
               ],
      "Package": [
                    {
                    "name": "Mixed Package",
                    "key": "itoothmixed-package",
                    "packageprice": "50000.00",
                    "subitems": [
                        {
                        "name": "GLUCOSE - FASTING",
                        "id": "itoothlocation1glucose--fasting",
                        "type": "test",
                        "qty": "1",
                        "amt": "825.05"
                        }
                      ]
                    }
                ]
              "name": "itooth Default Rate Plan",
              "entitykey": "itooth"
    }
  }

                          
   
{
  "status": "200",
  "message": "success",
  "data": {
    [
      {
        "name": "Itooth",
        "rateplankey": "itooth_itooth"
      },
      {
        "name": "itooth Default Rate Plan",
        "rateplankey": "itooth_default"
      },
      {
        "name": "test",
        "rateplankey": "itooth_test"
      }
    ]
  }
}
                         
  
{
  "status": "200",
  "message": "success",
  {
      "data": {
      "referrals": [
                      {
                        "referral_name": "Surya",
                        "referral_mobile": "123456789",
                        "referral_key": "itoothaddrExternalDoctor_2016101018:09:43"
                      },
                      {
                        "referral_name": "Senthil",
                        "referral_mobile": "0000000000",
                        "referral_key": "itooth_externaldoctor_senthil_327120"
                      },
                      {
                        "referral_name": "sathish",
                        "referral_mobile": "0000000000",
                        "referral_key": "itooth_externaldoctor_sathish_125335"
                      }
                  ]
              }
  }
}

  
{
  "status": "200",
  "message": "success",
  {
    "ipadmission": [
      {
        "admissionkey": "itoothitooth20211222_001_2021122218:45:39",
        "floor": "0",
        "roomno": "003",
        "firstvisit_time": "18:44",
        "firstvisit_date": "20211222",
        "referredby": "Dr. S.Rekha B.D.S",
        "requestedby": "Dr. Devarayan B.D.S",
        "iptype": "Emergency",
        "name": "Jai",
        "drdept": "Bio",
        "phid": "20211222_001",
        "ipno": "317",
        "status": "admitted",
        "createdby": "Senthilnathan Periasam",
        "patient": [
          {
            "name": "Jai",
            "mobile": "9652000000",
            "email": "",
            "gender": "M",
            "age": "",
            "phid": "20211222_001",
            "title": "",
            "lname": "",
            "mobile": "7708284525",
            "dob": "",
            "ptsource": "none",
            "familyid": "",
            "isdcode": "",
            "address": "",
            "relationship": "",
            "street": "",
            "area": "",
            "city": "",
            "state": "",
            "zip": "",
            "country": "India"
          }
        ]
      }
    ]
  }   
}

  
{
    "status": "200",
    "message": "success",
      {
      "ipdischarge": 
        [
          {
            "admissionkey": "itoothitooth20211217_006_2021122310:35:09",
            "mobile": "9652000000",
            "email": "",
            "gender": "M",
            "age": "",
            "floor":  "0",
            "roomno":  "003",
            "firstvisit_time": "10:34",
            "firstvisit_date": "20211223",
            "requestedby": "Dr.  Abhinav B D S",
            "name": "preeti",
            "phid": "20211217_006",
            "ipno": "318",
            "createdby": "Senthilnathan Periasamy",
            "dod": "20211223",
            "discharge_time": "10:36",
            "dos": "20211223",
            "surg_time":  "10:35",
            "dodel":  "20211223",
            "deliv_time":  "10:35",
            "ondischargecondition":  "",
            "icd10list": [],
            "diagnosis": "",
            "provd_iagnosis": ""
          }
        ]
    }
}
  
{
  "status": "200",
  "message": "success",
  {
    "billlist": [
      {
        "billtype": "O/P",
        "consultant": "Dr. S.Rekha B.D.S",
        "consultantkey": "itooth-nathankps",
        "patientname": "Swetha",
        "phid": "BH22435",
        "extphid": "BH22437",
        "mobile": "8144980616",
        "ptsource": "Doctor",
        "email": " ",
        "age": " ",
        "gender": "M",
        "patientkey": "itoothBH44856",
        "referredby": "Dr. Senthilnathan Periasamy BHMS",
        "referredbykey": "itooth-nathankps",
        "opno": "750",
        "user": "Senthilnathan Periasamy",
        "billdate": "2021122318:23:39",
        "billno": "OP2122-111",
        "amt": "200.0",
        "paymenttype": "Cash"
      }
    ]
  }
}
  
{
  "status": "200",
  "message": "success",
  {
    "pharmbilllist": [
      {
        "name": "Giya",
        "patientkey": "itooth20230701_002",
        "phid": "20230701_002",
        "age": "23 years 4 months 23 days",
        "dob": "20000208",
        "mobile": "765538838",
        "gender": "M",
        "registrationdate": "2023070112:37:00",
        "patienttype": "IP",
        "consultant": "Dr. virat kholi M.B.B.S",
        "storekey": "itoothlocation2_default",
        "storename": "Arumbakkam",
        "billdate": "2023072719:16:13",
        "billno": "PHARM2324-74",
        "amountreceived": "437.00",
        "paymenttype": "SavedForCounter",
        "grandtax": "3.90",
        "grandtotal": "437.00",
        "granddiscountvalue": "0"
      }
    ]
  }
}
  
{
  "status": "200",
  "message": "success",
  {
    "billinglist_detailed": [
      {
        "entitylocation": "Gangai Amman Koil Street",
        "receivedby": "Dr. Senthilnathan Periasamy BHMS",
        "billdate": "2022031112:47:55",
        "bill_no": "IP2122-172",
        "phid": "BH22049",
        "name": "Selva",
        "paymenttype": "Cash",
        "itemname": "X-RAY KUB",
        "dept": "RADIOLOGY",
        "amt": "100.0",
        "subdept": "SERVICE TAX",
        "consultant": "Dr. VARUN SHANKAR M.B.B.S",
        "referredby": "Dr. Saravana Kumar M.B.B.S",
        "gender": "M",
        "mobile": "9840857538",
        "registrationdate": "20161125",
        "ptsource": "Doctor"
      }
    ]
  }
}
  
{
  "status": "200",
  "message": "success",
  {
    "transferroomlist": [
        "roomallocationkey": "itoothlocation1_9_907_962772021122319:04:50",
        "created_at": "2021122319:04:50",
        "firstvisit_date": "2021122319:03",
        "entitylocation": "location1",
        "entitykey": "itooth",
        "roomref": "itoothlocation1_9_907_96277",
        "floor": "9",
        "roomno": "907",
        "admissionkey": "itoothitooth20211218_012_2021122319:04:50",
        "admission_type": "I/P",
        "name": "Abiraja",
        "phid": "20211218_012",
        "patientkey": "itooth20211218_012",
        "occupied_date": "20211223",
        "occupied_at": "19:03",
        "duedate": "20221019",
        "roomtype": "Super Deluxe",
        "roomtyperef": "itoothsuper-deluxe",
        "allocatedby": "eS5Oe5wAriEVeA1hrQcYoKflaFU"
    ]
  }
}
  
  {
  "status": "200",
  "message": "success",
  "orders": {
    "itoothBH44778_2022071320:03:57_itoothlocation1uric-acid": {
      "status": "Bill Paid",
      "container": [ ],
      "orderdate": "2022071320:04:08",
      "visittype": "O/P",
      "invtype": "test",
      "patientkey": "itoothBH44778",
      "invresourceid": "itoothlocation1uric-acid",
      "visitkey": "itoothBH44778_2022071320:03:57",
      "entitylocation": "location1",
      "entitykey": "itooth",
      "order_no": "123501"
    },
    "itoothBH44778_2022071320:03:57_itoothlocation1bilirubin": {
      "status": "Bill Paid",
      "container": [ "green" ],
      "orderdate": "2022071320:04:08",
      "visittype": "O/P",
      "invtype": "test",
      "patientkey": "itoothBH44778",
      "invresourceid": "itoothlocation1bilirubin",
      "visitkey": "itoothBH44778_2022071320:03:57",
      "entitylocation": "location1",
      "entitykey": "itooth",
      "order_no": "123502"
    },
    "itoothBH45042_2022071314:53:49_itoothlocation1glucose--post-dinner": {
      "status": "Approved",
      "container": [ ],
      "orderdate": "2022071314:58:05",
      "visittype": "O/P",
      "invtype": "test",
      "patientkey": "itoothBH45042",
      "invresourceid": "itoothlocation1glucose--post-dinner",
      "visitkey": "itoothBH45042_2022071314:53:49",
      "entitylocation": "location1",
      "entitykey": "itooth",
      "order_no": "123498"
    },
    "itoothBH45042_2022071314:53:49_itoothlocation1glucose--pp-post-prandial": {
      "status": "Approved",
      "container": [ ],
      "orderdate": "2022071314:58:05",
      "visittype": "O/P",
      "invtype": "test",
      "patientkey": "itoothBH45042",
      "invresourceid": "itoothlocation1glucose--pp-post-prandial",
      "visitkey": "itoothBH45042_2022071314:53:49",
      "entitylocation": "location1",
      "entitykey": "itooth",
      "order_no": "123499"
      },
      "itoothBH45042_2022071314:53:49_itoothlocation1bicarbonate": {
      "status": "Approved",
      "container": [ "red" ],
      "orderdate": "2022071315:34:31",
      "visittype": "O/P",
      "invtype": "test",
      "patientkey": "itoothBH45042",
      "invresourceid": "itoothlocation1bicarbonate",
      "visitkey": "itoothBH45042_2022071315:34:20",
      "entitylocation": "location1",
      "entitykey": "itooth",
      "order_no": "123500",
      "sampleid": "0100003182"
      },
    }
  }   
  
 
{
  "status": "200",
  "message": "success",
  "orderresult": [
    {
      "orderkey": "itoothARM_3252_2022080319:31:15_itoothlocation1differential-count--dc",
      "results": [
        {
          "invresults": [
            {
              "resultname": "Polymorphs",
              "resultvalue": "POLY",
              "unit": "%",
              "order": "2",
              "formula": "",
              "valtype": "text",
              "isAbnormal": "",
              "abnormaltype": ""
            },
            {
              "resultname": "Lymphocyte",
              "resultvalue": "7",
              "unit": "%",
              "order": "2",
              "formula": "",
              "valtype": "numeric",
              "isAbnormal": "false",
              "abnormaltype": ""
            },
            {
              "resultname": "YEs",
              "resultvalue": "SUMA",
              "unit": "",
              "order": "3",
              "formula": "",
              "valtype": "text",
              "isAbnormal": "",
              "abnormaltype": ""
            },
            {
              "resultname": "Eosinophils",
              "resultvalue": "EOS",
              "unit": "%",
              "order": "3",
              "formula": "",
              "valtype": "text",
              "isAbnormal": "",
              "abnormaltype": ""
            },
            {
              "resultname": "Monocytes",
              "resultvalue": "MONO",
              "unit": "%",
              "order": "4",
              "formula": "",
              "valtype": "text",
              "isAbnormal": "",
              "abnormaltype": ""
            },
            {
              "resultname": "Basophils",
              "resultvalue": "BASO",
              "unit": "%",
              "order": "5",
              "formula": "",
              "valtype": "text",
              "isAbnormal": "",
              "abnormaltype": ""
            }
            
          ]
          "key": "itoothlocation1differential-count--dc",
          "name": "DIFFERENTIALCOUNT - DC",
          "qctestname": "DIFFERENTIAL COUNT - DC",
          "category": "Laboratory",
          "testremarks": "",
          "reagent": ""
        }
      ]
      "entitykey": "itooth",
      "entitylocation": "location1",
      "patientkey": "itoothARM_3252"
    }
    ,
    {
      "orderkey": "itoothARM_3405_2022080319:38:01_itoothlocation1haemoglobin--hb",
      "results": [
        {
          "invresults": [
            {
              "resultname": "HEMOGLOBIN(HB)",
              "resultvalue": "10.1",
              "unit": "gm/dl",
              "order": "1",
              "formula": "",
              "valtype": "numeric",
              "isAbnormal": "false",
              "abnormaltype": ""
            }
          ]
          "key": "itoothlocation1haemoglobin--hb",
          "name": "HAEMOGLOBIN- Hb",
          "qctestname": "HEMOGLOBIN (HB)",
          "category": "Laboratory",
          "testremarks": "",
          "reagent": ""
        }
      ]
      "entitykey": "itooth",
      "entitylocation": "location1",
      "patientkey": "itoothARM_3405"
    }
    ,
    {
      "orderkey": "itoothARM_3252_2022080319:25:56_itoothlocation1differential-count--dc",
      "results": [
        {
          "invresults": [
            {
              "resultname": "Polymorphs",
              "resultvalue": "0.29",
              "unit": "%",
              "order": "2",
              "formula": "",
              "valtype": "text",
              "isAbnormal": "false",
              "abnormaltype": ""
            },
            {
              "resultname": "Lymphocyte",
              "resultvalue": "7.57",
              "unit": "%",
              "order": "2",
              "formula": "",
              "valtype": "text",
              "isAbnormal": "false",
              "abnormaltype": ""
            },
            {
              "resultname": "YEs",
              "resultvalue": "SUMA",
              "unit": "",
              "order": "3",
              "formula": "",
              "valtype": "text",
              "isAbnormal": "",
              "abnormaltype": ""
            },
            {
              "resultname": "Eosinophils",
              "resultvalue": "5.32",
              "unit": "%",
              "order": "3",
              "formula": "",
              "valtype": "text",
              "isAbnormal": "false",
              "abnormaltype": ""
            },
            {
              "resultname": "Monocytes",
              "resultvalue": "MONO",
              "unit": "%",
              "order": "4",
              "formula": "",
              "valtype": "text",
              "isAbnormal": "",
              "abnormaltype": ""
            },
            {
              "resultname": "Basophils",
              "resultvalue": "BASO",
              "unit": "%",
              "order": "5",
              "formula": "",
              "valtype": "text",
              "isAbnormal": "",
              "abnormaltype": ""
            }
            
          ]
          "key": "itoothlocation1differential-count--dc",
          "name": "DIFFERENTIALCOUNT - DC",
          "qctestname": "DIFFERENTIAL COUNT - DC",
          "category": "Laboratory",
          "testremarks": "",
          "reagent": ""
        }
      ]
      "entitykey": "itooth",
      "entitylocation": "location1",
      "patientkey": "itoothARM_3252"
    }
  ]
}  
  
  
    {
      "status": "200",
      "message": "success",
      {
      [
      "checkinkey": "itooth20211230_002_2022080511:02:20",
      "speciality": "Orthopaedic Surgeon",
      "patient": {
        "age": "66 Years 11 Months",
        "phid": "20211230_002",
        "title": "Mr",
        "name": "Rakesh",
        "lname": " ",
        "mobile": "9000000000",
        "dob": "19550812",
        "gender": "M",
        "ptsource": "Doctor",
        "familyid": " ",
        "isdcode": "91",
        "address": [ ]
      },
      "created_at": "2022080511:13:59",
      "token": 1,
      "createdby": "eS5Oe5wAriEVeA1hrQcYoKflaFU",
      "createdby_name": "Senthilnathan Periasamy",
      "type": "direct",
      "date": "20220805",
      "start": "11:13",
      "bookeddr": "itooth-nathankps",
      "bookeddr_name": "Dr. Senthilnathan Periasamy BHMS MD",
      "opno": "2753",
      "consultingdr": "itooth-nathankps",
      "natureofvisit": "Consultation",
      "purpose": "Consultation",
      "referred_by": " ",
      "referredbykey": " ",
      "consultingdr_name": "Dr. Senthilnathan Periasamy BHMS MD",
      "entitykey": "itooth",
      "entitylocation": "location1"
       ] 
     }
    }  
  
  
      {
      "status": "200",
      "message": "success",
      "data": {
        "name": "Razmul",
        "phid": "201707_001",
        "patientkey": "itooth201707_001",
        "registrationdate": "20170713",
        "email": "harimca1995@gmail.com",
        "mobile": "7708284525",
        "gender": "M",
        "age": "29",
        "dob": "19940811",
        "maritalstatus": "unknown",
        "idproof": "Aadhaar",
        "idproofdetails": "1234 5678 9012 3456",
        "address": [
          {
            "landmark": "near temple",
            "zip": "600234",
            "state": "Tamilnadu",
            "city": "Chennai",
            "area": "Velachery",
            "street": "14, Nethaji street"
          }
        ]
      }
    } 
  
  
  {
    "status": "200",
    "message": "success",
    {
    [
    "drKey": "itooth-nathankps":,
    "drName": "Senthilnathan Periasamy",
    "slots":[{<<"ABC LOC1">>,
                  [{<<"20221014">>,
                        [<<"09:00">>,<<"09:30">>,<<"10:00">>,<<"10:30">>, 
                          <<"11:00">>,<<"11:30">>,<<"12:00">>,<<"12:30">>,
                          <<"13:00">>,<<"13:30">>,<<"14:00">>,<<"14:30">>,
                          <<"15:00">>,<<"15:30">>,<<"16:00">>,<<"16:30">>, 
                          <<"17:00">>,<<"17:30">>,<<"18:00">>,<<"18:30">>, 
                          <<"19:00">>,<<"19:30">>,<<"20:00">>,<<"20:30">>,
                          <<"21:00">>]},
                    {<<"20221015">>,
                        [<<"09:00">>,<<"09:30">>,<<"10:00">>,<<"10:30">>, 
                            <<"11:00">>,<<"11:30">>,<<"12:00">>,<<"12:30">>,
                            <<"13:00">>,<<"13:30">>,<<"14:00">>,<<"14:30">>,
                            <<"15:00">>,<<"15:30">>,<<"16:00">>,<<"16:30">>, 
                            <<"17:00">>,<<"17:30">>,<<"18:00">>,<<"18:30">>, 
                            <<"19:00">>,<<"19:30">>,<<"20:00">>,<<"20:30">>,
                            <<"21:00">>]},
                    {<<"20221016">>,
                        [<<"09:00">>,<<"09:30">>,<<"10:00">>,<<"10:30">>, 
                          <<"11:00">>,<<"11:30">>,<<"12:00">>,<<"12:30">>,
                          <<"13:00">>,<<"13:30">>,<<"14:00">>,<<"14:30">>,
                          <<"15:00">>,<<"15:30">>,<<"16:00">>,<<"16:30">>, 
                          <<"17:00">>,<<"17:30">>,<<"18:00">>,<<"18:30">>, 
                          <<"19:00">>,<<"19:30">>,<<"20:00">>,<<"20:30">>,
                          <<"21:00">>]},
                    {<<"20221017">>,  
                        [<<"09:00">>,<<"09:30">>,<<"10:00">>,<<"10:30">>, 
                          <<"11:00">>,<<"11:30">>,<<"12:00">>,<<"12:30">>,
                          <<"13:00">>,<<"13:30">>,<<"14:00">>,<<"14:30">>,
                          <<"15:00">>,<<"15:30">>,<<"16:00">>,<<"16:30">>, 
                          <<"17:00">>,<<"17:30">>,<<"18:00">>,<<"18:30">>, 
                          <<"19:00">>,<<"19:30">>,<<"20:00">>,<<"20:30">>,
                          <<"21:00">>]},
                    {<<"20221018">>, [<<"weeklyoff">>]}]}],
      ]
    }
  }
  
  
{
  "status": "200",
  "message": "success",
  {
    [
      "edited_at": "2022070711:59:00":,
      "bill_no": "IP2122-44",
      "phid": "20220117_002",
      "patientname": "Mrs. Fathima Ravi",
      "age": "72 years 7 months",
      "gender": "M",
      "mobile": "9840857538",
      "ptsource": "Doctor",
      "amt": "-192950.0",
      "paymenttype": "Credit",
      "edit_reason": "Wrong payment type",
      "editedby": "Senthilnathan Periasamy",
      "dept": "Facial",
      "subdept": "",
      "itemname": "Orange Facial"
    ]
  }
}


  
  {
    "status": "200",
    "message": "success",
    {
      "itooth-tazeenfathima": 
      [
        "title": "Dr",
        "name": "Tazeen Fathima",
        "ug_degree": "B.D.S",
        "pg_degree": "",
        "speciality": ["Dentist"],
        "teleconsult_fee": "100.00",
        "displaypriority": "1000"
      ]
    }
  }




   
    "status": "200",
    "message": "success",
    {
      "drslots": [
        "20221012": {
          "session1": [
            {
              "start": "11:00",
              "end": "13:00",
              "session": "session1",
              "slot_start": "11:00",
              "slot_end": "11:30",
              "token": 1
            },
            {
              "start": "11:00",
              "end": "13:00",
              "session": "session1",
              "slot_start": "11:30",
              "slot_end": "12:00",
              "token": 2
            },
            {
              "start": "11:30",
              "end": "13:00",
              "session": "session1",
              "slot_start": "12:00",
              "slot_end": "12:30",
              "token": 3
            },
            {
              "start": "12:00",
              "end": "13:00",
              "session": "session1",
              "slot_start": "12:30",
              "slot_end": "13:00",
              "token": 4
            }
          ],
          "session2": [
            {
              "start": "21:00",
              "end": "23:00",
              "session": "session2",
              "slot_start": "21:00",
              "slot_end": "21:24",
              "token": 1
            },
            {
              "start": "21:24",
              "end": "23:00",
              "session": "session2",
              "slot_start": "21:24",
              "slot_end": "21:48",
              "token": 2
            },
            {
              "start": "21:48",
              "end": "22:12",
              "session": "session2",
              "slot_start": "21:48",
              "slot_end": "22:12",
              "token": 3
            },
            {
              "start": "22:12",
              "end": "22:36",
              "session": "session2",
              "slot_start": "22:12",
              "slot_end": "22:36",
              "token": 4
            },
            {
              "start": "22:36",
              "end": "23:00",
              "session": "session2",
              "slot_start": "22:36",
              "slot_end": "23:00",
              "token": 5
            }
          ]
        },
        "drkey": "itooth-dr.hari",
        "entitykey": "itooth"
      }
    


  
  
  
    {
    "status": "200",
    "message": "success",
    "patientlist": 
    {
      "itooth20220117_002": 
      {
        "credit_provider": "sampoorna-suraksha-insurance",
        "title": "Mrs",
        "occupation": "",
        "religion": "",
        "registrationdate": "2022011723:59:59",
        "extphid": "PAN",
        "age": "72 years 7 months",
        "tag": "",
        "gender": "F",
        "dob": "19500101",
        "mobile": "2626262625",
        "phid": "20220117_002",
        "entitylocation": "location1",
        "entitykey": "itooth",
        "lname": "Ravi",
        "name": "Fathima",
        "zip": "",
        "state": "TamilNadu",
        "city": "Chennai",
        "area": "",
        "mobile": "2626262625",
        "entitykey": "itooth"
      }
    }
  }


  
    {
    "status": "200",
    "message": "Appointment Booked Successfully",
    {
      [
        "dr": "Dr. Senthilnathan Periasamy(Orthopaedic Surgeon)",
        "date": "20221013",
        "slot": "21:00"
      ]
    }
  }
 

  
    {
    "status": "200",
    "message": "success",
    {
      [
        "cachekey": "itooth-nathankps_20221013_21:00",
        "entitykey": "itooth",
        "drkey": "itooth-nathankps",
        "apptdate": "20221013",
        "slotstart": "21:00"
      ]
    }
  }


  
  
{
  "status": "200",
  "message": "success",
  "patientdoc": [
    {
      "imgkey":  "itooth3808_20221202143533sample16.jpg",
      "VisitKey": "itooth3808_2022120214:35:33"
    }
  ]
}

  
{
  "status": "200",
  "message": "success",
  "patientdoc": [
    {
      "imgkey":  "itooth3808samplepatient2.jpeg",
      "PatientKey": "itooth3808"
    }
  ]
}