####To CREATE USER
localhost:8084/v1/user/create/
{
"firstName":"Mahesh",
"middleName":"nagesh",
"lastName":"revanakar",
"personalContactNumber":1234567899,
"workContactNumber":1234567891,
"userName":"Nikhil",
"pin":"xcv",
"email":"nik@gail.com",
"timezone":"23-08-90",
"refName":"Dr.Vv",
"location":"Bangalore",
"description":"first Commit",
"department":"Cardiology",
"roleName":"DOCTOR",
"passwordStuff":{
"password":"nikhilrev",
"confirmPassword":"nikhilrev",
"hintQuestion1":"Evening",
"hintAnswer1":"Evening",
"hintQuestion2":"Evening",
"hintAnswer2":"Evening"
},
"doctorDetails":
{
"specilization":"CARDIOLOGY",
"qualification":"B.E"
},
"doctorSpecialization":[
{
"spec":"Nuerology"
},
{
"spec":"Cardiology"
}
]
}
TO UPDATE USER
localhost:8084/v1/user/update/UB00002 PUT METHOD
{
"firstName":"PAWAN",
"middleName":"nagesh",
"lastName":"Reddy",
"personalContactNumber":1234567899,
"workContactNumber":1234567891,
"userName":"Nikh234",
"pin":"xcv",
"email":"nik@gail.com",
"timezone":"23-08-90",
"refName":"Dr.Vv",
"location":"Bangalore",
"description":"first Commit",
"roleName":"DOCTOR",
"passwordStuff":{
"password":"nikhilrev",
"confirmPassword":"nikhilrev",
"txnPassword":"kill",
"confirmTxnPassword":"kill",
"hintQuestion1":"Evening",
"hintAnswer1":"Evening",
"hintQuestion2":"Evening",
"hintAnswer2":"Evening"
},
"doctorDetails":
{
"specilization":"CARDIOLOGY",
"qualification":"B.E"
}
"doctorSpecialization":[
{
"spec":"Nuerology"
},
{
"spec":"Cardiology"
}
]
}
For admin no specilization -Then json data will be
{
"firstName":"PAWAN",
"middleName":"nagesh",
"lastName":"Reddy",
"personalContactNumber":1234567899,
"workContactNumber":1234567891,
"userName":"Nikh234",
"pin":"xcv",
"email":"nik@gail.com",
"timezone":"23-08-90",
"refName":"Dr.Vv",
"location":"Bangalore",
"description":"first Commit",
"roleName":"DOCTOR",
"passwordStuff":{
"password":"nikhilrev",
"confirmPassword":"nikhilrev",
"txnPassword":"kill",
"confirmTxnPassword":"kill",
"hintQuestion1":"Evening",
"hintAnswer1":"Evening",
"hintQuestion2":"Evening",
"hintAnswer2":"Evening"
},
"doctorDetails":
{
"specilization":"CARDIOLOGY",
"qualification":"B.E"
}
"doctorSpecialization":[
]
}
TO GET EXISTING USER TYPE
localhost:8084/v1/user/create GET METHOD
--------------------------------------------------PATIENTS-------------------------------------------------------------
TO GET VALUES FOR DROP DOWN
localhost:8084/v1/patient/create GET METHOD
TO GET ONE PATIENTS
localhost:8084/v1/patient/getOne/{regID} GET METHOD
TO GET ALL PATIENTS
localhost:8084/v1/patient/getAll GET METHOD
TO CREATE PATIENTS
localhost:8084/v1/patient/create POST METHOD
{ "title":"Mr", "firstName":"Test2", "middleName":"Nagesh", "lastName":"Reddy", "dob":"2018-01-08T12:37:20", "ageCalculation":100, "motherName":"Nagraj", "bloodGroup":"B+", "gender":"Male", "nationality":"india", "religion":"hindu", "maritialStatus":"single", "occupation":"Engineer", "aliasName":"niki", "refName":{ "source":"Social Media", "refName":"gmail", "phone":"9019438563", "adr":"anavatti"
},
"patientTypeName":"OUTPATIENT",
"marketingName":"Facebook media",
"mobile":6303788196,
"telephone":8182,
"email":"nik@gmail.com",
"modeOfCommunication":"phone",
"address":"Bangalore",
"area":"CV raman",
"city":"bangalore",
"state":"Bangalore",
"country":"india",
"responsiblePerson":"Friend",
"responsiblePersonName":"Nagesh",
"pin":"E244",
"consultant":"Dr. Mahesh revanakar-UB00001",
"passportNo":"passport-2345",
"issueDate":"2018-08-27T18:30:20",
"issuedAt":"Bangalore",
"expiryDate":"2018-08-27T18:30:20",
"companyName":"VNC DIGITAL",
"companyCode":"VNC9019",
"companyFee":"10000",
"vPatientRegistration":[{
"appNo":10,
"dateOfJoining":"2019-01-08T05:30:20",
"regDate":"2019-01-08T05:30:20",
"referenceNumber":"er35356363",
"roomBookingDetails":[
{
"fromDate":"2018-11-14T18:30:20",
"toDate":"2018-11-20T18:30:20",
"bedNo":"udhbed4",
"advanceAmount":2000,
"estimateAmount":10000
}],
"patientPayment":[
{
"amount":100,
"typeOfCharge":"Reg Fees",
"modeOfPaymant":"Cash"
}
]
}]
} Changing consultantFee, regFee and Consultant
{
"title":"Mr",
"firstName":"Anan",
"middleName":"Nagesh",
"lastName":"Reddy",
"dob":"2018-12-01T11:01:20",
"motherName":"Nagraj",
"bloodGroup":"B+",
"gender":"Male",
"nationality":"india",
"religion":"hindu",
"occupation":"Engineer",
"ageCalculation":0,
"aliasName":"niki",
"refName":{
"source":"Family",
"refName":"Nik",
"phone":0,
"adr":""
},
"patientTypeName":"INPATIENT",
"marketingName":"Facebook media",
"mobile":6303788196,
"telephone":8182,
"email":"nik@gmail.com",
"modeOfCommunication":"phone",
"address":"Bangalore",
"area":"CV raman",
"city":"bangalore",
"state":"Bangalore",
"country":"india",
"responsiblePerson":"Friend",
"responsiblePersonName":"Nagesh",
"pin":"E244",
"consultant":"Dr. Sharath revanakar-UB00002",
"passportNo":"passport-2345",
"issueDate":"2018-08-27T18:30:20",
"issuedAt":"Bangalore",
"expiryDate":"2018-08-27T18:30:20",
"companyName":"VNC DIGITAL",
"companyCode":"VNC9019",
"companyFee":"10000",
"vPatientRegistration":[{
"appNo":10,
"dateOfJoining":"2019-01-21T12:00:20",
"regDate":"2019-01-21T12:00:20",
"referenceNumber":"er35356363",
"roomBookingDetails":[
{
"fromDate":"2018-11-14",
"toDate":"",
"bedNo":"udhbed8",
"advanceAmount":100,
"estimateAmount":500
}],
"multimode":[
{
"mode":"cash",
"amount":"100"
},
{
"mode":"card",
"amount":"300"
}],
"patientPayment":[
{
"amount":200,
"typeOfCharge":"Reg Fees",
"modeOfPaymant":"Cash+Card"
}
,
{
"amount":200,
"typeOfCharge":"Doctor Fee",
"modeOfPaymant":"Cash+Card"
}
]
}]
}
Update existing patient
localhost:8084/v1/patient/updateAll/{UMR} PUT Method
{ "title":"Mr", "firstName":"Jaffa", "middleName":"Nagesh", "lastName":"Reddy", "dob":"1994-01-08T12:37:20", "ageCalculation":100, "motherName":"Nagraj", "bloodGroup":"B+", "gender":"Male", "nationality":"india", "religion":"hindu", "occupation":"Engineer", "aliasName":"niki", "refName":{
},
"patientTypeName":"OUTPATIENT",
"marketingName":"Facebook media",
"mobile":6303788196,
"telephone":8182,
"email":"nik@gmail.com",
"modeOfCommunication":"phone",
"address":"Bangalore",
"area":"CV raman",
"city":"bangalore",
"state":"Bangalore",
"country":"india",
"responsiblePerson":"Friend",
"responsiblePersonName":"Nagesh",
"pin":"E244",
"consultant":"Dr. Mahesh revanakar-UB00001",
"passportNo":"passport-2345",
"issueDate":"2018-08-27T18:30:20",
"issuedAt":"Bangalore",
"expiryDate":"2018-08-27T18:30:20",
"companyName":"VNC DIGITAL",
"companyCode":"VNC9019",
"companyFee":"10000"
}
TO UPDATE PATIENTS
localhost:8084/v1/patient/update/UMR0000001 PUT METHOD
{
"mobile":9019438586,
"email":"nikhil.revanakar@gmail.com",
"address":"Singapore"
}
EXISTING PATIENT NEW ENROLLMENT
TO GET NEW VALUE FOR REG ID
localhost:8084/v1/registration/patient GET METHOD
TO ENROLL EXISTING PATIENT
localhost:8084/v1/registration/patient/{UMR} POST METHOD
{
"rePatientType":"OUTPATIENT",
"reConsultant":"Dr PAWAN Reddy",
"referenceNumber":"er35356363",
"roomBookingDetails":[
{
"fromDate":"2018-11-09T00:00:00",
"toDate":"2018-11-16T00:00:00",
"bedNo":"udhbed7",
"advanceAmount":2000,
"estimateAmount":10000
}],
"patientPayment":[
{
"amount": 200,
"typeOfCharge": "Reg Fees",
"modeOfPaymant": "cash",
"paid": "NO"
}
]
}
With Referral Name
{
"refName":{
"source":"Walkin",
"refName":"Walkin",
"phone":0,
"adr":""
},
"rePatientType":"OUTPATIENT",
"reConsultant":"Dr PAWAN Reddy-UB00002",
"roomBookingDetails":[
{
"fromDate":"2018-11-09T00:00:00",
"toDate":"2018-11-16T00:00:00",
"bedNo":"udhbed7",
"advanceAmount":2000,
"estimateAmount":10000
}],
"patientPayment":[
{
"amount": 200,
"typeOfCharge": "Reg Fees",
"modeOfPaymant": "cash",
"paid": "NO"
},
{
"amount": 200,
"typeOfCharge": "Doctor Fee",
"modeOfPaymant": "cash",
"paid": "NO"
}
]
}
Changing consultantfee,regfee and consultnt
{
"refName":{
"source":"Walkin",
"refName":"Walkin",
"phone":0,
"adr":""
},
"rePatientType":"INPATIENT",
"reConsultant":"Dr Mahesh Reddy-UB00002",
"roomBookingDetails":[
{
"fromDate":"2018-11-09T00:00:00",
"toDate":"2018-11-16T00:00:00",
"bedNo":"udhbed7",
"advanceAmount":2000,
"estimateAmount":10000
}],
"multimode":[
{
"mode":"Cash",
"amount":1000
},
{
"mode":"Card",
"amount":1200
}
],
"patientPayment":[
{
"amount": 200,
"typeOfCharge": "Doctor Fee",
"modeOfPaymant": "Cash+Card",
"paid": "NO"
}
]
}
To get all onboarded patients
localhost:8084/v1/patient/patientDetails
Patients paying advance multiple times
localhost:8084/v1/patient/advanceAmount/{regID}
{
"advance":"5000",
"mode":"Cheque",
"referenceNumber":"er35356363"
}
To add referral details
localhost:8084/v1/patient/refdetails
{
"source":"Social Media",
"refName":"Yahoo",
"refAdd":"Anavatti",
"refPhone":9090909090
}
To edit RegFee, DoctorFee, Cosultant and patient Type
localhost:8084/v1/patient/consultant/change { POST METHOD }
{
"consultant":"Dr. Nikhil revanakar-UB00003",
"regId":"PR00000004",
"regFee":"990"
}
To get dicharged and not discharged patient
localhost:8084/v1/patient/discharge/NOT DISCHARGED GET METHOD FOR NOT DISCHARGED PATIENTS
localhost:8084/v1/patient/discharge/DISCHARGED GET METHOD FOR DISCHARGED PATIENTS
---------------------------------------------------------------------Ambulance Service------------------------------------------------------------------------
Page LOaD
localhost:8084/v1/ambulance/create GET METHOD
Book Ambulance
localhost:8084/v1/ambulance/create POST METHOD
{
"patName":"Amit",
"fromLocation":"madanapalle",
"toLocation":"tirupati",
"mobileNo":9703601903,
"fromTime":"2018-12-13T00:00:20",
"driverName":"Amit",
"ambulanceNo":"amb4"
}
Tag PATIENT
localhost:8084/v1/ambulance/update/APD0000002
{
"regNo":"PR00000003",
"billAmount":200.1,
"paidTo":"narendra",
"amountStatus":"YES",
"toTime":"2018-12-13T12:00:20"
}
---------------------------------------------------------------------Extend Room Booking------------------------------------------------------------------------
localhost:8084/v1/patient/extend
{
"toDate":"2018-11-30T18:30:20",
"regId":"PR00000001",
"room":"udhbed10"
}
-------------------------------------------------------------------MEDICINE------------------------------------------------------------------
DEPRICATED METHOD -NOT USING
__TO GET VALUES AFTER PAGE LOaD__
localhost:8084/v1/pharmacist/medicine/create __GET METHOD__
__TO INSERT NEW MEDICINE__
localhost:8084/v1/pharmacist/medicine/create __POST METHOD__
{
"name":"Zoxy",
"itemLevel":"Fulll",
"batchNo":"B2",
"manufacturer":"dsds",
"vendorPackage":"dwsd",
"brand":"dswwd",
"drugType":"dwdwe",
"strengthUnits":"dswdw",
"saleUnits":89,
"quantityPerDay":10,
"minPurchaseQuantity":30,
"maxPurchaseQuantity":20
}
__TO GET ALL MEDICINE__
localhost:8084/v1/pharmacist/medicine/getAll __GET METHOD__
__Update medicine__
localhost:8084/v1/pharmacist/medicine/update __POST METHOD__
{
"medicineId":"ID"
"name":"Zoxy",
"itemLevel":"Fulll",
"batchNo":"B2",
"manufacturer":"dsds",
"vendorPackage":"dwsd",
"brand":"dswwd",
"drugType":"dwdwe",
"strengthUnits":"dswdw",
"saleUnits":89,
"quantityPerDay":10,
"minPurchaseQuantity":30,
"maxPurchaseQuantity":20
}
--------NEWLY CREATED METHOD---------
TO INSERT NEW LIST OF MEDICINE
localhost:8084/v1/pharmacist/medicine/listcreate
{
"refMedicine":
[
{
"name":"hyberabad test 3",
"batchNo":"B2",
"manufacturer":"dsds",
"brand":"dswwd",
"strengthUnits":"dswdw",
"saleUnits":89,
"quantityPerDay":10,
"minPurchaseQuantity":30,
"maxPurchaseQuantity":2,
"itemLevel":"Fulll",
"drugType":"dwdwe",
"vendorPackage":"dwsd"
},
{
"name":"hyberabad test 4",
"batchNo":"B2",
"manufacturer":"dsds",
"brand":"dswwd",
"strengthUnits":"dswdw",
"saleUnits":89,
"quantityPerDay":10,
"minPurchaseQuantity":30,
"maxPurchaseQuantity":20,
"itemLevel":"Fulll",
"drugType":"dwdwe",
"vendorPackage":"dwsd"
}
] }
--------------------------------------------------------------------VENDORS---------------------------------------------------------------------------
TO GET VALUES AFTER PAGE LOADED
localhost:8084/v1/pharmacist/vendor/create GET METHOD
TO INSERT NEW VENDORS
localhost:8084/v1/pharmacist/vendor/create POST METHOD
{
"vendorType":"Medical",
"businessType":"Foreign",
"vendorName":"VNC PHARMA",
"globalId":"GB001",
"regName":"VNC PHARMA",
"amount":1000,
"panNo":"CSDPR1059R",
"gstNo":"GST090",
"deliveryDays":20,
"paymentTerms":"ANything",
"brand":"Paracitamol",
"medicineId":29,
"suppliers":"Local",
"adress1":"bnglr",
"adress2":"hybd",
"area":"whitefield",
"city":"Bnglr",
"state":"Karnataka",
"country":"IndiA",
"pinCode":4569,
"contactPerson":"Company head",
"mobile":90194387,
"mail":"Nik@gmail.com",
"bankName":"Union Bank",
"bankBranch":"Shimoga",
"branchAdress":"Shimoga",
"accountNo":"890354hgee",
"accountType":"Saving",
"ifscCode":"CD456",
"micrCode":"34444",
"beneficiaryBankName":"State bank"
}
TO UPDATE EXISTING VENDORS
localhost:8084/v1/pharmacist/vendor/update/VEN0000002
{
"vendorType":"Medical",
"businessType":"Foreign",
"vendorName":"VNC PHARMA",
"regNo":"REGNIK9019",
"globalId":"GB001",
"regName":"VNC digital PHARMA",
"amount":1000,
"panNo":"CSDPR1059R",
"gstNo":"GST090",
"deliveryDays":20,
"paymentTerms":"ANything",
"brand":"Paracitamol",
"medicineId":29,
"suppliers":"Local",
"adress1":"bnglr",
"adress2":"hybd",
"area":"whitefield",
"city":"Bnglr",
"state":"Karnataka",
"country":"IndiA",
"pinCode":4569,
"contactPerson":"Company head",
"mobile":90194387,
"mail":"Nik@gmail.com",
"bankName":"Union Bank",
"bankBranch":"Shimoga",
"branchAdress":"Shimoga",
"accountNo":"890354hgee",
"accountType":"Saving",
"ifscCode":"CD456",
"micrCode":"34444",
"beneficiaryBankName":"State bank"
}
To pay vendors
localhost:8084/v1/pharmacist/invoice/pay/PRO0000004
{
"location":"Miyapur",
"balanceAmount":200,
"paid_amount":100,
"paymentType":"Cheque"
}
------------------------------------------------------------MEDICINE PROCUREMNET-------------------------------------------------------
TO GET VALUES AFTER PAGE LOADED
localhost:8084/v1/pharmacist/procurement/create GET METHOD
TO INSERT NEW PROCUREMENT VALUE
{
"location":"Miyapur",
"vendorName":"LK Pharma",
"invoiceNo":"IN99087",
"poNo":"dwd",
"procurementType":"Cheque",
"currency":"Indian",
"refMedicineDetails":[
{
"mrp":5,
"quantity":10,
"costPrice":50,
"tax":330,
"freeSample":"10",
"itemName":"Movex",
"batch":"B1",
"packing":"Yes",
"expDate":"Todq",
"manufacturedDate":"Dontknow",
"discount":6,
"gst":5
},
{
"mrp":5,
"quantity":10,
"costPrice":50,
"tax":330,
"freeSample":"20",
"itemName":"Zoxy",
"batch":"B1",
"packing":"Yes",
"expDate":"Todq",
"manufacturedDate":"Dontknow",
"discount":10,
"gst":12
}]
}
Update procurement
localhost:8084/v1/pharmacist/procurement/update PUT Method
{
"procurementId":"PRO0000012",
"location":"Miyapur",
"vendorName":"LK Pharma",
"invoiceNo":"IN99087",
"poNo":"dwd",
"draft":"NO",
"procurementType":"Cheque",
"currency":"Indian",
"refMedicineDetails":[
{
"mrp":200,
"quantity":2,
"costPrice":400,
"tax":330,
"freeSample":"Yes",
"itemName":"AMBRODIL S",
"batch":"B1",
"packing":"Yes",
"expDate":"Todq",
"manufacturedDate":"Dontknow",
"discount":6,
"gst":5
}]
}
AFTER PROCUREMENT PAYMENT THE INSERTED DATA WILL BE IN NOT-APPROVED STATE. IT HAS TO BE APPROVED BY ADMIN
TO GET ALL PROCUREMENT
localhost:8084/v1/pharmacist/procurement/getAll GET METHOD
AFTER THAT SELECT THE METHOD WHICH NEEDS TO BE APPROVED
localhost:8084/v1/pharmacist/procurement/approve/{procId} PUT METHOD
SEND IN THIS FORMAT( INSIDE ARRAY )
[
{
"masterProcurementId": "MPRO0000001",
"procurementId": "PRO0000001",
"costPrice": 50,
"mrp": 5,
"dateOfProcurement": "2018-10-15T12:29:47.000+0000",
"poNo": "dwd",
"insertedDate": "2018-10-15T12:29:47.000+0000",
"modifiedDate": null,
"quantity": 10,
"freeSample": "Yes",
"itemName": "Movex",
"batch": "B1",
"procurementType": "Cheque",
"status": "Not-Approved",
"currency": "Indian",
"amount": 2000000,
"manufacturedDate": "Dontknow",
"packing": "Yes",
"expDate": "Todq",
"tax": 330,
"vendorName": "LK PHARMA",
"medName": null,
"location": "Miyapur",
"refMedicineDetails": null
}
]
AFTER APPROVING YOU HAVE TO PAY FOR VENDORS
TO GET ALL PROCUREMENT WHICH ARE APPROVED
localhost:8084/v1/pharmacist/invoice/getApproved GET METHOD
TO PAY FOR VENDORS
localhost:8084/v1/pharmacist/invoice/pay/{PROCUREMENTID} POST METHOD
{
"location":"Miyapur",
"balanceAmount":3600000,
"paid_amount":3600000,
"paymentType":"Cheque"
}
-------------------------------------------------------------------------SALES CONTROLLER-----------------------------------------------------
TO GET VALUES AFTER PAGE LOADED
localhost:8084/v1/sales/create GET METHOD
TO FIND THE MRP AND BATCH NO FOR PARTICULAR MEDICINE
localhost:8084/v1/sales/return/findMed/{MEDICINE NAME} GET METHOD
To get cost for all medicine
localhost:8084/v1/sales/getmrp
[
{
"med":"Movex",
"quantity":23
},
{
"med":"Zoxy",
"quantity":23
}
]
To get Available quantity for same medicine with diff batch no
localhost:8084/v1/sales/getMedPro POST METHOD
{
"quantity":"2",
"medName":"Zoxy"
}
250
shivram prasad
TO INSERT DATA FOR WALKIN PATIENT
localhost:8084/v1/sales/create POST METHOD
{
"name":"Nikhil",
"location":"Miyapur",
"mobileNo":9019438586,
"paymentType":"cash",
"referenceNumber":"ERTYUI123",
"total":90,
"refSales":[
{
"medicineName":"Movex",
"mrp":2,
"batchNo":"B1",
"discount":0,
"quantity":20,
"amount":40,
"gst":20,
"expDate":"2019-09-03"
},
{
"medicineName":"Zoxy",
"mrp":5,
"batchNo":"B2",
"discount":0,
"quantity":10,
"amount":50,
"gst":20,
"expDate":"2019-09-03"
}]
}
TO INSERT DATA FOR INPATIENTS PATIENT
localhost:8084/v1/sales/create POST METHOD
{
"employeeName":"",
"regId":"PR00000022",
"location":"Miyapur",
"paymentType":"Cash",
"referenceNumber":"ERTYUI123",
"name":"nagesh revanakar",
"mobileNo":1234567899,
"total":250,
"refSales":[
{
"medicineName":"Movex",
"mrp":2,
"batchNo":"B1",
"discount":0,
"quantity":50,
"amount":100,
"gst":20,
"expDate":"2019-09-03"
},
{
"medicineName":"Zoxy",
"mrp":5,
"batchNo":"B2",
"discount":0,
"quantity":25,
"amount":50,
"gst":20,
"expDate":"2019-09-03"
}]
}
------------------Sales Cash+Card----------------------
{
"regId":"PR00000002",
"location":"Miyapur",
"paymentType":"Cash+Card",
"referenceNumber":"ERTYUI123",
"multimode":[
{
"mode":"cash",
"amount":"100"
},
{
"mode":"card",
"amount":"300"
}],
"total":250,
"refSales":[
{
"medicineName":"Dcold vnc",
"mrp":2,
"batchNo":"B1",
"discount":0,
"quantity":50,
"amount":100,
"gst":20,
"expDate":"2019-09-03"
},
{
"medicineName":"Zoxy vnc",
"mrp":5,
"batchNo":"B1",
"discount":0,
"quantity":25,
"amount":50,
"gst":20,
"expDate":"2019-09-03"
}]
}
------------------------------------------------------------SALES RETURN --------------------------------------------------------------
TO FIND THE LIST OF MEDICINE FOR ONE BILL
localhost:8084/v1/sales/return/find/{bill no} GET METHOD
localhost:8084/v1/sales/return/create
TO RETURN THE MEDICINE
{
"location":"Miyapur",
"billNo": "BL0000006",
"regId":"PR00000006",
"paymentType":"Cash",
"total":20,
"refSalesReturns":[
{
"batchNo":"B020",
"mrp":5,
"expDate":"2028-12-13 07:00:20",
"amount": 45,
"quantity": 10,
"medicineName": "Movex vnc"
},
{
"batchNo":"B020",
"mrp":5,
"expDate":"2028-12-13 07:00:20",
"amount": 45,
"quantity": 10,
"medicineName": "Movex vnc"
}]
}
--------------------------------------------------------------SALES REFUND---------------------------------------------------------------
TO GET THE UNAPPROVED SALES
localhost:8084/v1/sales/refund/create GET METHOD
TO APPROVE THE SALES RETURN
localhost:8084/v1/sales/refund/create PUT METHOD
[
{
"returnId": "RS0000022",
"returnAmount": 10,
"umr": "UMR0000001",
"status": "Not-Approved",
"name": null,
"mobileNo": 0,
"amount": 10,
"paymentType": "Cash",
"refundBy": "Apporva revanakar",
"refundDate": "2018-10-15T13:28:12.000+0000",
"billNo": "BL0000006",
"refSalesReturns": null
},
{
"returnId": "RS0000021",
"returnAmount": 10,
"umr": "UMR0000001",
"status": "Not-Approved",
"name": null,
"mobileNo": 0,
"amount": 10,
"paymentType": "Cash",
"refundBy": "Apporva revanakar",
"refundDate": "2018-10-15T13:28:12.000+0000",
"billNo": "BL0000006",
"refSalesReturns": null
},
]
-------------------------------------------------------------------Doctor---------------------------------------------------------------------------
Printing blank prescription
localhost:8084/v1/patient/blank/{regId}
{
"consultant":"Dr Mahesh revanakar",
"umr":"UMR0000001"
}
TO CREATE NOTES
localhost:8084/v1/doctor/create/notes POST METHOD
{
"regId":"PR00000006",
"writeNotes":"Run continous for 5km \n do swimming for next 2 hours "
}
TO GET NOTES PDF
localhost:8084/v1/doctor/notes/PR00000006 POST METHOD
TO WRITE PHARMACY NOTES
localhost:8084/v1/doctor/create/pharmacyNotes POST METHOD
{
"regId":"PR00000001",
"pharmacyNotes":"zoxy \n movex"
}
TO WRITE PRESCRITION
localhost:8084/v1/doctor/prescription/ POST METHOD
{
"regId":"PR00000006",
"presentillness":"D1\nd2\nd3",
"physicalExamination":"p1p\n2p3p1p\n2p3p2p3p1p\n2p3p1p\n2p32p3p1p\n2p3p1p\n2p3p1p\n2p3p1p\n2p3p1p\n2p1p\n2p3p1p\n2p3p1p\n21p\n2p3p1p\n2p3p1p\n2p3p1p\n2p3p1p\n2p3p1p\n2p3p1p\n2p32p3p1p\n2p3p1p\n2p3p1p\n2p3p1p\n2p3p1p\n2",
"investigationAdviced":"p1np\n2np3",
"medicationNameDosage":"p1\np\np3",
"patientInstruction":"p1\np2\np3",
"recommendation":"p1\np2\np3",
"docId":"UB00001"
}
TO GET PRESCRIPTION
localhost:8084/v1/doctor/prescription/{REG ID} GET METHOD
-------------------------------------------------------------------Admin Doctor view------------------------------------------------------------------------------
To get Doctor list
localhost:8084/v1/admin/getlist getmethod
To get All the year
localhost:8084/v1/admin/getyears get method for years
Get patient count for particular year
localhost:8084/v1/admin/getmonthwise/UB00001 postmethod
{
"year":"2018"
}
To Get patient for particular month of that year
localhost:8084/v1/admin/getPatientpost post method
{ "userId":"UB00001", "year":"2019", "month":"01" }
-------------------------------------------------------------------Nurse------------------------------------------------------------------------------
To get ALL DETAILS
localhost:8084/v1/nurse/getAll GET METHOD
---------------------------------------------------------------------OSP Service----------------------------------------------------------------------------------------------------------------------------------------------SALES
localhost:8084/v1/osp/create get method for dropdown
localhost:8084/v1/osp/getcost post method
{ "serviceName":"Ward Charge" }
localhost:8084/v1/osp/create post method {
"patientName":"abc", "mobile":908766, "refferedById":"mahesh-UB00001", "dob":"1996-02-14T12:12:10", "enteredDate":"2019-01-31T12:12:10", "paymentType":"due", "gender":"Male", "refLaboratoryRegistrations":[ {
"serviceName":"Breath Machine",
"price":200,
"discount":10,
"quantity":2,
"amount":190
}, {
"serviceName":"Breath Machine",
"price":200,
"quantity":2,
"discount":10,
"amount":190
}, {
"serviceName":"Breath Machine",
"price":200,
"quantity":2,
"discount":10,
"amount":190
}
]
}
---------------------------------------------------------------------Adding services-------------------------------------------------------------------
Adding services
localhost:8084/v1/service/getid get method for dropdown
localhost:8084/v1/service/create post method
{
"serviceName":"SERUM ELECTROLYTES",
"insertedDate":"2019-02-08T12:00:00",
"addService":[
{
"patientType":"INPATIENT",
"roomType":"DOUBLESHARING",
"serviceType":"Lab",
"cost":"200"
},
{
"patientType":"INPATIENT",
"roomType":"General Ward-Male",
"serviceType":"Lab",
"cost":"200"
},
{
"patientType":"INPATIENT",
"roomType":"General Ward-FeMale",
"serviceType":"Lab",
"cost":"200"
}, {
"patientType":"INPATIENT",
"roomType":"EMERGENCY",
"serviceType":"Lab",
"cost":200
}, {
"patientType":"INPATIENT",
"roomType":"DayCare",
"serviceType":"Lab",
"cost":200
}, {
"patientType":"INPATIENT",
"roomType":"SINGLE SHARING",
"serviceType":"Lab",
"cost":200
}, {
"patientType":"INPATIENT",
"roomType":"NICU",
"serviceType":"Lab",
"cost":200
}, {
"patientType":"INPATIENT",
"roomType":"ADULT ICU",
"serviceType":"Lab",
"cost":200
}, {
"patientType":"INPATIENT",
"roomType":"PICU",
"serviceType":"Lab",
"cost":200
}, {
"patientType":"INPATIENT",
"roomType":"ISOLATION",
"serviceType":"Lab",
"cost":200
}, {
"patientType":"INPATIENT",
"roomType":"POST OP&PRE OP",
"serviceType":"Lab",
"cost":200
}, {
"patientType":"OUTPATIENT",
"roomType":"NOT APPLICABLE",
"serviceType":"Lab",
"cost":200
}, {
"patientType":"OSP",
"roomType":"NOT APPLICABLE",
"serviceType":"Lab",
"cost":200
}
]
}
__Updating services__
localhost:8084/v1/service/update/LFT - LIVER FUNCTON TESTS/{serviceName} postmethod
{ "serviceName":"LFT - LIVER FUNCTON TESTS", "department":"BIOCHEMISTRY", "addService":[ { "serviceId":"SER000001", "roomType":"DOUBLESHARING", "patientType":"INPATIENT", "cost":"250"
},
{
"serviceId":"SER000002",
"roomType":"NOT ALLOCATED",
"patientType":"OUTPATIENT",
"cost":"250"
}
]
}
localhost:8084/v1/service/getService/LFT - LIVER FUNCTON TESTS/{serviceName} getmethod for display of all services for service name
localhost:8084/v1/service/list get method for list of services
---------------------------------------------------------------------Laboratory------------------------------------------------------------------------
TO GET VALUES AFTER PAGE LOADED
localhost:8084/v1/lab/register GET METHOD
To register and pay lab controller (new Controller)
localhost:8084/v1/lab/register/patient
Dicount In %
{
"reg_id":"PR00000003",
"invoiceNo":"INV0000033",
"paymentType":"cash",
"referenceNumber":"RTTYTUTU7878787",
"refLaboratoryRegistrations":[
{
"serviceName":"THYROIDTEST",
"discount":0
}
]
}
localhost:8084/v1/lab/register/patient
Dicount In Number
{
"reg_id":"PR00000002",
"paymentType":"Advance",
"referenceNumber":"RTTYTUTU7878787",
"refLaboratoryRegistrations":[
{
"serviceName":"COMPLETE BLOOD PICTURE",
"discount":-2,
"amount":88
}
]
}
Registering Services using CASH+CARD
{
"reg_id":"PR00000005",
"paymentType":"Cash+Card",
"referenceNumber":"RTTYTUTU7878787",
"multimode":[
{
"mode":"Cash",
"amount":"60"
},
{
"mode":"Card",
"amount":"26"
}
],
"refLaboratoryRegistrations":[
{
"serviceName":"SERUM ELECTROLYTES",
"discount":2,
"quantity":2,
"amount":88
}
]
}
To get lab meausre report for particular Service In Lab Admin View(Tracker in Admin view)
localhost:8084/v1/lab/measure/{regId}/{MeasureNAme} _GET METHOD
TO GET COST FOR PARTICULAR SERVICE
localhost:8084/v1/lab/service/BLOODTEST/PR00000009 GET METHOD
TO GET MEASURES FOR PARTICULAR SERVICE FOR THAT PARTICULAR PATIENT'S AGE
localhost:8084/v1/lab/report/BLOODTEST/PR00000003 GET METHOD
TO ADD SERVICE FOR ONE PATIENT , USING MEASURES
localhost:8084/v1/lab/service
{
"regId":"PR00000003",
"serviceName":"BLOODTEST",
"comment":"",
"refMeasureDetails":[
{
"measure":"WBC",
"value":1200
},
{
"measure":"RBC",
"value":1500
}]
}
CALCIUM SERUM
{
"regId":"PR00000001",
"serviceName":"CALCIUM SERUM",
"comment":"hiiiiii \n how are you",
"refMeasureDetails":[
{
"measure":"SERUM CALCIUM(Ca+)",
"value":"10.4"
}
]
}
MAGNESIUM-SERUM
{
"regId":"PR00000001",
"serviceName":"MAGNESIUM-SERUM",
"comments":"HIIII",
"refMeasureDetails":[
{
"measure":"SERUM MAGNESIUM",
"value":"10.4"
}
]
}
COMPLETE STOOL EXAMINATION
{
"regId":"PR00000001",
"serviceName":"COMPLETE STOOL EXAMINATION",
"comments":"HIIII",
"refMeasureDetails":[
{
"measure":"COLOUR",
"value":"GreenishYellow"
},
{
"measure":"APPEARANCE",
"value":"SemiSolid"
},
{
"measure":"REACTION",
"value":"Alkaline"
},
{
"measure":"MUCOUS",
"value":"Present"
},
{
"measure":"BLOOD",
"value":"NIL"
},
{
"measure":"OVA",
"value":"NIL"
},
{
"measure":"CYSTS",
"value":"NIL"
},
{
"measure":"PUS CELLS",
"value":"3-5"
},
{
"measure":"Epithelial Cells",
"value":"1-2"
},
{
"measure":"FAT GLOBULES",
"value":"NIL"
},
{
"measure":"STARCH",
"value":"NIL"
},
{
"measure":"VEGTETABLE CELLS/FIBERS",
"value":"NIL"
},
{
"measure":"BACTERIA",
"value":"NIL"
},
{
"measure":"OTHERS",
"value":"NIL"
}
]
}
Addinge measure for SERUM ELECTROLATE
{
"regId":"PR00000001",
"serviceName":"SERUM ELECTROLYTES",
"comment":"",
"refMeasureDetails":[
{
"measure":"Sodium",
"value":148
},
{
"measure":"Potassium",
"value":4
},
{
"measure":"Floride",
"value":110
},
{
"measure":"Serum Creatinine",
"value":1
}
]
}
To pay for the lab service
localhost:8084/v1/lab/register/pay/{Regid}/{Invoice}
AFTER COMPLETING REPORT , ADMIN HAS TO CHANGE STATUS FROM NOT-COMPLETED TO COMPLETED
TO GET NOT-COMPLETED DATA
localhost:8084/v1/lab/adminLab/approve GET METHOD
__TO CHANGE STATUS FROM NOT-COMPLETED TO COMPLETED
SELECT THE ROW WHICH NEED TO BE APPROVED__
localhost:8084/v1/lab/adminLab/approve PUT METHOD
Adding measures for thaat particular service
SERUM ELECTROLYTE
{
"regId":"PR00000001",
"serviceName":"SERUM ELECTROLYTES",
"comment":"",
"refMeasureDetails":[
{
"measure":"Sodium",
"value":148
},
{
"measure":"Potassium",
"value":4
},
{
"measure":"Floride",
"value":110
},
{
"measure":"Serum Creatinine",
"value":1
}
]
}
LFT LIVER FUNCTION
{
"regId":"PR00000001",
"comment":"",
"serviceName":"LIFT LIVER FUNCTON TEST",
"refMeasureDetails":[
{
"measure":"Total Bilirubin",
"value":3
},
{
"measure":"Direct Bilirubin",
"value":1
},
{
"measure":"Indirect Bilirubin",
"value":2
},
{
"measure":"SGPT(ALT)",
"value":19
},
{
"measure":"SGOT",
"value":23
},
{
"measure":"Alkaline Phosphatase",
"value":122
},
{
"measure":"Total Proteins",
"value":7
},
{
"measure":"Serum Albumin",
"value":3
},
{
"measure":"Serum Globulin",
"value":3
},
{
"measure":"Albumin/Globulin Ratio",
"value":1
}
]
}
RENAL FUNCTION TEST
{
"regId":"PR00000005",
"comment":"",
"serviceName":"RENAL FUNCTION TEST(RFT)",
"refMeasureDetails":[
{
"measure":"Random Blood Sugar",
"value":86
},
{
"measure":"Corresponding Urine Sugar",
"value":0
},
{
"measure":"Blood Urea",
"value":2
},
{
"measure":"Serum Creatinine",
"value":1
},
{
"measure":"Sodium",
"value":148
},
{
"measure":"Potassium",
"value":4
},
{
"measure":"Chloride",
"value":110
}
]
}
BLOODTEST
{
"regId":"PR00000001",
"comment":"",
"serviceName":"BLOODTEST",
"refMeasureDetails":[
{
"measure":"Haemoglobin",
"value":7
},
{
"measure":"RBC",
"value":2
},
{
"measure":"WBC",
"value":21
},
{
"measure":"Neutrophils",
"value":80
},
{
"measure":"Lymphocytes",
"value":16
},
{
"measure":"Eosinophils",
"value":2
},
{
"measure":"Monocytes",
"value":2
},
{
"measure":"Basophils",
"value":0
},
{
"measure":"PLATELET COUNT",
"value":1
}
]
}
WIDAL TEST
{
"regId":"PR00000001",
"serviceName":"WIDAL TEST",
"comment":"",
"refMeasureDetails":[
{
"measure":"S.TYPHI O",
"value":"1 IN 40 DILLUTION"
},
{
"measure":"S.TYPHI H",
"value":"1 IN 40 DILLUTION"
},
{
"measure":"S.PARA TYPHI H",
"value":"1 IN 20 DILLUTION"
},
{
"measure":"S.PARA TYPHI BH",
"value":"1 IN 20 DILLUTION"
}
]
}
C-Reactive protien
{
"regId":"PR00000001",
"serviceName":"C-reactive protien",
"comment":"",
"refMeasureDetails":[
{
"measure":"C-reactive protien",
"value":"0.4"
}
]
}
MALARIA TEST
{
"regId":"PR00000001",
"serviceName":"Malaria Test",
"comment":"",
"refMeasureDetails":[
{
"measure":"Malaria Test",
"value":"P.f-Negitive"
}
]
}
PROTHROMBIN TIME
{
"regId":"PR00000001",
"serviceName":"PROTHROMBIN TIME",
"comment":"",
"refMeasureDetails":[
{
"measure":"Test",
"value":"16.5"
},
{
"measure":"Control",
"value":"13.5"
},
{
"measure":"PR",
"value":"1.1"
}
, {
"measure":"INR",
"value":"1.2"
},
{
"measure":"Therapeutic Ranges",
"value":""
}, {
"measure":"P.Ratio",
"value":"2.4-4.0"
}, {
"measure":"INR",
"value":"2-3"
}, {
"measure":"ACTIVATED PARTIAL THROMBOPLASIN TIME",
"value":"27.0"
}, {
"measure":"Reference Range",
"value":"20-40"
}
]
}
Lipid Profile
{
"regId":"PR00000001",
"serviceName":"Lipid Profile",
"comment":"",
"refMeasureDetails":[
{
"measure":"Total Cholestral",
"value":"151"
},
{
"measure":"HDL Cholestral",
"value":"30.2"
},
{
"measure":"LDL Cholestral",
"value":"97.2"
},
{
"measure":"VLDL Cholestral",
"value":"23.6"
},
{
"measure":"Triglycerides",
"value":"118"
},
{
"measure":"Total cholest/HDL Cholesterol Ratio",
"value":"5.0"
},
{
"measure":"Triglycerides/HDL Cholesterol Ratio",
"value":"3.9"
}
]
}
BILIRUBINTEST
{
"regId":"PR00000001",
"serviceName":"BILIRUBINTEST",
"comment":"",
"refMeasureDetails":[
{
"measure":"TOTAL BILIRUBIN",
"value":"0.7"
},
{
"measure":"DIRECT BILIRUBIN",
"value":"0.15"
},
{
"measure":"INDIRECT BILIRUBIN",
"value":"0.58"
}
]
}
URINETEST
{
"regId":"PR00000001",
"serviceName":"URINETEST",
"comment":"",
"refMeasureDetails":[
{
"measure":"Color",
"value":"Pale Yellow"
},
{
"measure":"Appearance",
"value":"Clear"
},
{
"measure":"Ph",
"value":"6.0"
}, {
"measure":"Specific Gravity",
"value":"1.010"
}, {
"measure":"Albumin",
"value":"Nil"
}, {
"measure":"Sugar",
"value":"Nil"
}, {
"measure":"Bile Salts",
"value":"--"
}, {
"measure":"Bile Pigments",
"value":"--"
},{
"measure":"Pus Cells",
"value":"02-03/HPF"
},{
"measure":"Epithelial Cells",
"value":"01-01/HPF"
},{
"measure":"RBC",
"value":"Nil"
},
{
"measure":"Crystals",
"value":"Nil"
},{
"measure":"Casts",
"value":"Nil"
},{
"measure":"Amorpous Material",
"value":"Nil"
},{
"measure":"Others",
"value":"Nil"
}
]
}
2 D ECHO REPORT
{
"regId":"PR00000001",
"serviceName":"2 D ECHO REPORT",
"comment":"hiiiiii \n how are you",
"refMeasureDetails":[{}
]
}
ULTRA SOUND WHOLE ABDOMEN
{
"regId":"PR00000001",
"serviceName":"ULTRA SOUND WHOLE ABDOMEN",
"comment":"hiiiiii \n how are you",
"refMeasureDetails":[
{
"measure":"Liver",
"value":"Normal in size liver 65mm and normal echostructure Normal in size liver 65mm and normal echostructure"
},
{
"measure":"Gall bladder",
"value":"Well distended."
},
{
"measure":"Spleen",
"value":"Normal in size spleen 42mm and echotexture"
},
{
"measure":"Pancreas",
"value":"normal in size and echotexture"
},
{
"measure":"Right kidney",
"value":"Measure 45 * 20mm."
},
{
"measure":"Left kidney",
"value":"Measure 46 * 22mm."
},
{
"measure":"Urinary bladder",
"value":"Well distended."
},
{
"measure":"Bowels",
"value":"Normal."
}
]
}
----------------------------------------------------------Final billing for patients------------------------------------------------------------
localhost:8084/v1/bill/charge/discharge/{id} { "amount":0, "netAmount":0, "discount":0, "returnAmount":2200, "referenceNumber":"RTYYTYU", "paymentType":"Cash+Card", "multimode":[ { "mode":"cash", "amount":"100" }, { "mode":"card", "amount":"200" } ]
}
localhost:8084/v1/bill/charge/pay/{regNo}
{
"regId":"PR00000003",
"refBillDetails":[
{
"amount":50,
"chargeName":"LIPID PROFILE",
"quantity":2,
"dicount":0,
"mrp":20,
"netAmount":46
},
{
"amount":50,
"chargeName":"XRAY",
"quantity":2,
"dicount":0,
"mrp":20,
"netAmount":46
}]
}
localhost:8084/v1/bill/charge/discharge/PR00000010
{ "mode":"cash", "amount":"1900", "referenceNumber":"RTYYTYU",
}
localhost:8084/v1/bill/approximate/{regId}
---------Update bill------------
localhost:8084/v1/bill/charge/update/{regId} post method
{
"updateCharge":[
{
"chargeBillId":"CB0000021",
"mrp":120,
"chargeName":"Ward Charge",
"quantity":3,
"discount":0,
"netAmount":360
},
{"chargeBillId":"CB0000022",
"mrp":3000,
"quantity":5,
"chargeName":"Anastesya",
"discount":0,
"netAmount":360
},
{
"chargeBillId":"CB0000023",
"mrp":"1111300",
"chargeName":"Ward Charge",
"quantity":"2",
"discount":"10",
"netAmount":"5090"
},
{"chargeBillId":"CB0000024",
"mrp":"310",
"quantity":"6",
"chargeName":"Anastesya",
"discount":"20",
"netAmount":"14080"
}] }
----------------------------------------------------------Pharmacy due bill-----------------------------------------------------------
To get due bill for particular patient based on umr
localhost:8084/v1/due/get/{UMR} GET method
To get particular method based on umr
localhost:8084/v1/due/get/create/{umr} postmethod
{
"dueType":"Pharmacy"
}
To pay for due bill
localhost:8084/v1/due/duepay/{BillNO} postmethod
{
"dueType":"Pharmacy", "mode":"Cash+card", "amount":400, "multimode":[ { "mode":"cash", "amount":"100" }, { "mode":"card", "amount":"300" }]
}
Fetching record based on Reg No localhost:8084/v1/due/get/details/{regNo}
_Based on reg_no localhost:8084/v1/due/get/createdetails/{regNo} post method
{
"dueType":"Pharmacy" } ----------------------------------------------------------Outpatient Lab Registering-------------------------------------------------
To get Page info
localhost:8084/v1/lab/opservice { Get method }
To register Service
localhost:8084/v1/lab/opservice { Post method }
{ "regId":"PR00000006", "paymentType":"Cash", "refBillDetails":[ { "amount":400, "chargeName":"Anastesiya", "quantity":1, "discount":10, "netAmount":385 }
]
}
----------------------------------------------------------Bed allocation-------------------------------------------------------------
Bed Allocation For Nurse
{
"patId":"PR00000002",
"bedName":"udhbed7"
}
----------------------------------------------------------User wise shift summary---------------------------------------------------------
{ "fromDate":"2018-11-10 22:47:14", "toDate":"2018-12-30 17:02:27", "soldBy":"Dr Nagesh revanakar" }
----------------------------------------------------------Pharmacist Stock summary------------------------------------------------------------
----------------------------------------------------------All reports------------------------------------------------------------
localhost:8084/v1/sales/getReport
{ "fromDate":"2019-02-22", "toDate":"2019-02-22", "fromTime":"12:00:00 PM", "toTime":"01:20:00 PM", "soldBy":"Dr Nagesh revanakar-UB00001", "reportName":"UserWiseIpOpDetailedPatientWise" }
-------------------------------------------------------------Security-------------------------------------------------------------------------
{
"usernameOrEmail":"UB00005",
"password":"rakesh"
}
-------------------------------------------------------------Voucher-------------------------------------------------------------------------
Voucher
FOR PAGE LOAD INFO
localhost:8084/v1/voucher/create GET METHOD
localhost:8084/v1/voucher/create POST METHOD
{
"bank":"voucher",
"checkDate":"2019-12-06T06:11:20",
"paymentType":"ca",
"checkNo":"CH",
"remarks":" pt:praveen consultationarestrdyftugihoijiusyfryydrfuyrdfgy8wedgscfygds8yfgywsdgfwedysgfyugofuygfy",
"voucherAmount":900,
"paymentDate":"2019-12-06T06:11:20",
"paidTo":"Dr. Mahesh nagesh revanakar-UB00001",
"otherName":"",
"voucherType":"cashs"
}
localhost:8084/v1/updatevoucher/VCP0000023 put method { "bank":"voucher", "checkDate":"2019-12-06T06:11:20", "paymentType":"ca", "checkNo":"CH", "remarks":" pt:praveen consultationarestrdyftugihoijiusyfryydrfuyrdfgy8wedgscfygds8yfgywsdgfwedysgfyugofuygfy", "voucherAmount":900, "paymentDate":"2019-12-06T06:11:20", "paidTo":"Dr. Mahesh nagesh revanakar-UB00001", "otherName":"", "voucherType":"cashs"
}
-------------------------------------------------------------Doctor Appointment-------------------------------------------------------------------------
Page Load Info
localhost:8084/v1/appointment/create GET METHOD
Insert Appointment
localhost:8084/v1/appointment/create POST METHOD
--------------------------------------------------------------OP Billing-------------------------------------------------------------------------------------------------------------------------------------------------OP
{ "regId":"PR00000002", "paymentType":"Cash+Card", "multimode":[ { "mode":"cash", "amount":"100" }, { "mode":"card", "amount":"300" }], "refBillDetails":[ { "amount":220, "chargeName":"Anastesya",
"discount":10,
"netAmount":385
}
]
}
-----------------------------------------------------------------Yesterday sales-----------------------------------------------
localhost:8084/v1/sales/getprevious/salereport POST METHOD FOR PDF
localhost:8084/v1/sales/getprevious GETMETHOD
----------------------------------------------------------OSP --------------------------------------------------------------------------
{
"patientName":"Anand", "mobile":908766, "refferedById":"Dr. Nikhil Ambagade-UB00001", "dob":"1996-02-14T12:12:10", "enteredDate":"2019-01-31T12:12:10", "paymentType":"Due", "gender":"Male", "refLaboratoryRegistrations":[ {
"serviceName":"Ward Charge",
"price":200,
"quantity":2,
"discount":10,
"amount":390
}
]
}
localhost:8084/v1/osp/findAll getmethod for details
localhost:8084/v1/osp/pdf/{ospServiceId} getmethod for pdf
-------------------------------------------------------------ONLINE WARD ISSUE----------------------------------------------------------------------------------------------------------------------Yesterday
To save ward issue
localhost:8084/v1/sales/ward/create POST METHOD
{
"location":"Miyapur",
"name":"ICU",
"total":250,
"refSales":[
{
"medicineName":"Movex vnc",
"mrp":5,
"batchNo":"B2",
"discount":10,
"quantity":100,
"amount":475,
"gst":5,
"expDate":"2028-12-13 07:00:20"
}
]
}