Introduction


The MocDoc API provides secure, structured access to the MocDoc healthcare platform, enabling external systems to interact programmatically using REST-based endpoints. The API follows standard REST architecture principles including:

  • Resource-oriented URLs
  • Standard HTTP methods (GET, POST, PUT, DELETE)
  • JSON-formatted responses
  • Conventional HTTP response and error codes

Authentication & Security

Authentication is implemented using an HMAC-based signing mechanism. Each request must include the required headers and be transmitted over a secure TLS connection to ensure data integrity and confidentiality.The API supports integration across core operational and clinical workflows, including:

  • Locations, Users, Providers, Doctors, and Referrals
  • Patient registration and demographic updates
  • OP bill and pharmacy bill creation
  • Appointments (book / update status)
  • Lab orders and results retrieval
  • Stock and inventory management
  • Visit patient images and teleconsultation

Usage Guidelines

  • No fixed daily limit on total API calls.
  • Data retrieval APIs follow a one-day-per-call model.
  • Date range retrieval must be handled programmatically via looping.
  • Minimum interval: One request every 3 seconds.

These guidelines ensure secure, scalable, and reliable interoperability between MocDoc and external systems.


Previous
Next
  {
    "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": "",
              "blocked": "true,false", 
              "dr_img": "iVBORw0KGgoAAAANSUhEUgAAAZAAAADHCAYAAAA3QwU3AAAg..."
              },

              {
          "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": "",
              "blocked": "true,false", 
              "dr_img": "iVBORw0KGgoAAAANSUhEUgAAAZAAAADHCAYAAAA3QwU3AAAg..."
              }
          }
    ]
}
  
  {
    "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",
        "billingitems": [
          {
            "label": "BLOOD GAS ANALYSIS - ABG",
            "hsn_code": "",
            "taxable_percentage": "",
            "tax_amount": "47.62",
            "cgst_amount": "23.81",
            "sgst_amount": "23.81"
          }
        ]
      }
    ]
  }
}
  
{
  "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",
        "hsn": "12",
        "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"
        "taxable_percentage": "10"
        "tax_amount": "100"
        "cgst": "10"
        "sgst": "10"
        "igst": "10"
        "tds_percentage": "0"
        "tds_amount": "0"
        "billtype": "Pharmacy"
      }
    ]
  }
}
  
{
  "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"
    }
  ]
}
  
{
  "status": "200",
  "message": "success",
  "cancelledbills": [
    {
      "bill_date": "2026021818:23:39",
      "cancelled_date": "2026021819:15:22",
      "billno": "OP2526-111",
      "patientid": "20260218_001",
      "patientname": "Raj",
      "amount_received": "750.00",
      "cancelreason": "Duplicate bill",
      "cancelled_by": "Senthilnathan Periasamy"
    }
  ]
}
  
{
  "status": "200",
  "message": "success",
  "cancelledsalebills": [
    {
      "bill_date": "2026021818:23:39",
      "billno": "PHARM2526-74",
      "patientid": "20260218_001",
      "patientname": "Raj",
      "createdat": "2026021819:15:22",
      "cancelreason": "Wrong product",
      "cancelled_by": "Senthilnathan Periasamy",
      "amount_received": "437.00"
    }
  ]
}
  
{
  "status": "200",
  "message": "success",
  "cancelledsaleretbills": [
    {
      "billdate": "2026021819:15:22",
      "billno": "RET2526-11",
      "patientid": "20260218_001",
      "patientname": "Raj",
      "cancelreason": "Wrong return entry",
      "cancelled_by": "Senthilnathan Periasamy",
      "amount_returned": "150.00"
    }
  ]
}
  
{
  "status": "200",
  "message": "success",
  "discountedbills": [
    {
      "bill_date": "2026021818:23:39",
      "billno": "OP2526-111",
      "patientid": "20260218_001",
      "patientname": "Raj",
      "consultant_name": "Dr. S.Rekha B.D.S",
      "referred_by": "Dr. Senthilnathan",
      "provider": "Cash",
      "bill_type": "O/P",
      "bill_amount": "850.00",
      "discount_percentage": "10",
      "discount_amount": "85.00",
      "previous_balance": "0",
      "previous_balance_discount_percentage": "0",
      "previous_balance_discount_amount": "0",
      "discount_remarks": "Loyalty discount",
      "payment_type": "cash",
      "discount_authorized_by": "Admin User",
      "created_by": "Reception User"
    }
  ]
}
  
{
  "status": "200",
  "message": "success",
  "pharmdiscountedbills": [
    {
      "bill_date": "2026021818:23:39",
      "billno": "PHARM2526-74",
      "patientid": "20260218_001",
      "patientname": "Raj",
      "consultant_name": "Dr. S.Rekha B.D.S",
      "discount_percentage": "8",
      "discount_amount": "35.00",
      "discount_remarks": "Offer discount",
      "discount_authorized_by": "Admin User",
      "bill_type": "Pharmacy",
      "payment_type": "cash"
    }
  ]
}
  
{
  "status": "200",
  "message": "success",
  "refundedbills": [
    {
      "refunded_at": "2026021819:25:00",
      "refund_no": "RF2526-10",
      "refund_billno": "OP2526-111",
      "patientid": "20260218_001",
      "patientname": "Raj",
      "refundedname": "Raj",
      "refundedmobile": "9876543210",
      "refund_amount": "250.00",
      "payment_type": "cash",
      "reason": "Service not delivered",
      "approvedby": "Admin User",
      "refunded_by": "Reception User"
    }
  ]
}