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.

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



Response

Parameter Type Description
entitylocation varchar(100) Location Unique Key
landmark varchar(100) 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 varchar(100) Entity location no


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


Response

Parameter Type Description
name varchar(100) Doctor's name
created_at YYYYMMDDHH:mm:ss Created At
.... ....



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 varchar(100) Entity location no


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


Response

Parameter Type Description
Type varchar(100) Provider Type
Sub Typet varchar(100) Provider sub type
.... ....



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",
    "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 varchar(100) Entity location no


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


Response

Parameter Type Description
name varchar(100) Doctor's name
drkey varchar(100) 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.


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


Response

Parameter Type Description
referral_name varchar(100) Referral Name
referral_mobile int(0-9) Referral Mobile Number
referral_key varchar(100) 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.


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


Response

Parameter Type 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.


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


Response

Parameter Type Description
entitykey varchar(100) EntityKey
expirydate YYYYMMDD Date of Expiry
.... ....



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.


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


Response

Parameter Type Description
name varchar(100) Name
rateplankey varchar(100) 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.


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


Response

Parameter Type Description
name varchar(100) Name
entitykey varchar(100) EntityKey
Treatments varchar(100)



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.


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


Response

Parameter Type Description
name varchar(100) Product name
purprice int(0-9) 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.

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



Response

Parameter Type Description
name varchar(100) Name of the Store
entitylocation varchar(100) 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 Allowed Values
entitykey varchar(100) Entity key yes
entitylocation varchar(100) Unique key for location yes
.... .... .... ....


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


Response

Parameter Type Description
phid varchar(100) 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 Allowed Values
entitykey varchar(100) Entity key yes
phid varchar(100) Patient ID yes
.... .... .... ....


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


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 varchar(100) Entity key yes
entitylocation varchar(100) Unique key for location yes
.... .... ....


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


Response

Parameter Type Description
patientkey varchar(100) Patient Key
patientid varchar(100) Patient ID
doctorkey varchar(100) Doctor Key
billkey varchar(100) 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 varchar(100) Name of the patient yes
patientmobile varchar(100) Mobile number yes
.... .... ....


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


Response

Parameter Type Description
billkey varchar(100) 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 varchar(100) Patient Id yes
mobile int(10) Mobile Number yes


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


Response

Parameter Type Description
name varchar(100) Patient Name
phid varchar(100) 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 varchar(100) First name yes
phone varchar(100) Phone number yes
.... .... ....


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


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 varchar(100) Appointment Key yes
status varchar(100) Status yes
totalamt int(0-9) Total Amount no
amount_paid int(0-9) Amount Paid no


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


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.


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


Response

Parameter Type Description
prodkey varchar(100) Unique key of the product
qty int(0-9) Quantity of the product
storesection object Store section of the product
reorderlevel int(0-9) 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.

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



Response

Parameter Type Description
purprice int(0-9) Purchase price of the product
purpriceafterded int(0-9) 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 YYYYMMDD Registration Date yes
entitylocation varchar(100) Entity location no


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


Response

Parameter Type Description
name varchar(100) Patient Name
phid varchar(100) 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 YYYYMMDD Date of Visit yes
entitylocation varchar(100) Entity location no


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


Response

Parameter Type Description
location varchar(100) Entity location
date YYYYMMDDHH:mm:ss Date of Visit
.... ....



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 varchar(100) Entity key yes
entitylocation varchar(100) Unique key for location yes
startdate YYYYMMDDHH:MM:SS Start Date yes
enddate YYYYMMDDHH:MM:SS End Date yes
speciality varchar(100) Cardiac surgeon no
drdept varchar(100) Inpatient service no


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


Response

Parameter Type Description
checkinkey varchar(100) Checkin Key
speciality varchar(100) 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 varchar(100) Entity key yes
drkey varchar(100) Dr key yes
startdate YYYYMMDDHH:MM:SS Start Date yes
enddate YYYYMMDDHH:MM:SS End Date yes


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


Response

Parameter Type Description
drkey varchar(100) Drkey
drname varchar(100) 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 varchar(100) Entity key yes
entitylocation varchar(100) Unique key for location yes
date YYYYMMDD Date of admission yes
drdept varchar(100) Inpatient service no


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


Response

Parameter Type Description
firstvisit_time HH:MM First Visit Time
firstvisit_date YYYYMMDD First Visit Data
.... ....



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 varchar(100) Entity key yes
entitylocation varchar(100) Unique key for location yes
date YYYYMMDD Date of discharge yes


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


Response

Parameter Type Description
ipno int(0-9) IP number
phid varchar(100) 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 varchar(100) Entity key yes
entitylocation varchar(100) Unique key for location yes
date YYYYMMDD Date of discharge yes


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


Response

Parameter Type Description
roomallocationkey varchar(100) Room Allocation Key
created_at YYYYMMDDHH:MM Created at
.... ....



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 varchar(100) Entity key yes
entitylocation varchar(100) Unique key for location yes
date YYYYMMDD Bill date yes


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


Response

Parameter Type Description
billtype varchar(100) Bill Type
consultant varchar(100) 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 varchar(100) Entity key yes
entitylocation varchar(100) Unique key for location yes
date YYYYMMDD Bill date yes


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


Response

Parameter Type Description
entitylocation varchar(100) Entitylocation
receivedby varchar(100) 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 varchar(100) Entity key yes
entitylocation varchar(100) Unique key for location yes
date YYYYMMDD Bill date yes


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


Response

Parameter Type Description
edited_at YYYYMMDDHH:MM:SS Edited at
bill_no varchar(100) 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 varchar(100) Unique key for location yes
date YYYYMMDD Bill date yes


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


Response

Parameter Type Description
name varchar(100) Patient name
patientkey varchar(100) 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 varchar(100) Entity key yes
date YYYYMMDD Date of Order yes
starttime HH:MM Start Time of Order yes
endtime HH:MM End Time of Order yes


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


Response

Parameter Type Description
status varchar(100) Order Status
orderdate YYYYMMDDHH:MM Bill date
.... ....



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 varchar(100) Date yes
starttime varchar(100) Start Time yes
endtime varchar(100) End Time yes


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


Response

Parameter Type Description
orderkey varchar(100) Order Key
results array
entitykey varchar(100) Entity Key
entitylocation varchar(100) Entity Location
patientkey varchar(100) 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 Description
patientkey varchar(100) Patient Key
patientid varchar(100) Patient ID
doctorkey varchar(100) Doctor Key
billkey varchar(100) 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 varchar(100) Entity key yes


Response

Parameter Type Description
title varchar(100) Dr title
name varchar(100) Dr 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/{EntityKey}

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


Request Parameters

Parameter Type Description Required
entitykey varchar(100) Entity key yes
startdate YYYYMMDD Start Date yes
enddate YYYYMMDD End Date yes
drkey varchar(100) Unique key of the doctor yes


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


Response

Parameter Type Description
drslots array
drkey varchar(100) Dr key
entitykey varchar(100) 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/sathish-kumar-demo


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 varchar(100) Entity key yes
mobile varchar(100) Patient mobile number yes


Response

Parameter Type Description
Title varchar(100) DrTitle
credit_provider varchar(100) 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/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 varchar(100) Doctor key yes
entitykey varchar(100) Entity key yes
.... .... ....


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


Response

Parameter Type Description
dr varchar(100) Dr name
date YYYYMMDD Date
slot HH:MM start slot time



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/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 varchar(100) Doctor key yes
entitykey varchar(100) Entity key yes
date YYYYMMDD Appointment Date yes
slotstart HH:MM start slot time yes


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


Response

Parameter Type Description
cachekey varchar(100) cachekey
entitykey varchar(100) 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/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 varchar(100) Entity key yes
Visitkey varchar(100) Visit key yes
imagename varchar(100) Image Name yes
imagecontent base64 Image Content yes
imagenote varchar(100) Image Note no


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


Response

Parameter Type Description
imagekey varchar(100) Image key
Visitkey varchar(100) 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 varchar(100) Entity key yes
Patientkey varchar(100) Patient key yes
imagename varchar(100) Image Name yes
imagecontent base64 Image Content yes
imagenote varchar(100) Image Note no


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


Response

Parameter Type Description
imagekey varchar(100) Image key
Patientkey varchar(100) 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": [
       {
        ...
       }
    ]
  }
          
          
          
  {
    "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",
    "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",
  { 
    "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"
    }
  ]
}