|
|
|
@ -101,7 +101,60 @@ class PrescriptionService extends BaseService {
|
|
|
|
|
List<PrescriptionModel> prescription) async {
|
|
|
|
|
Map<String, dynamic> request = {
|
|
|
|
|
"Prescription": {
|
|
|
|
|
"objPatientInfo": {"Gender": patient.gender, "Age": patient.age},
|
|
|
|
|
"objPatientInfo": {"Gender": "Male", "Age": "21/06/1967"},
|
|
|
|
|
"objVitalSign": {"Height": "180", "Weight": "37"},
|
|
|
|
|
"objPrescriptionItems": [
|
|
|
|
|
{
|
|
|
|
|
"DrugId": "83-20-00-30-20-03-03",
|
|
|
|
|
"DrugName": "WARFARIN 1 MG TAB 28'S (N)",
|
|
|
|
|
"Dose": "1",
|
|
|
|
|
"DoseType": "04",
|
|
|
|
|
"Unit": "actuation(s)",
|
|
|
|
|
"FrequencyType": "1/3/Day",
|
|
|
|
|
"Duration": "3/Day",
|
|
|
|
|
"IsScreen": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"DrugId": "64-20-00-10-00-03-15",
|
|
|
|
|
"DrugName": "PANADOL 500 MG TAB 24'S(DIS)",
|
|
|
|
|
"Dose": "1",
|
|
|
|
|
"DoseType": "04",
|
|
|
|
|
"Unit": "MG",
|
|
|
|
|
"FrequencyType": "3/1/Day",
|
|
|
|
|
"Duration": "4/Day",
|
|
|
|
|
"RouteID": "24",
|
|
|
|
|
"IsScreen": "true"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"objAllergies": {
|
|
|
|
|
"Allergy": {
|
|
|
|
|
"objProperties": {"Id": "26", "Name": "phenoxymethylpenicillin"}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"objDiagnosis": {
|
|
|
|
|
"Diagnosis": {
|
|
|
|
|
"objProperties": {"Id": "A01.1", "Name": "Paratyphoid fever A"}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"IsDoctor": "false",
|
|
|
|
|
"IsPharmacist": "false"
|
|
|
|
|
},
|
|
|
|
|
"IPAdress": "10.10.10.10",
|
|
|
|
|
"Channel": 9,
|
|
|
|
|
"LanguageID": 2,
|
|
|
|
|
"VersionID": 5.3,
|
|
|
|
|
"SessionID": "BlUSkYymTt",
|
|
|
|
|
"IsLoginForDoctorApp": true,
|
|
|
|
|
"PatientOutSA": 0,
|
|
|
|
|
"TokenID": "@dm!n",
|
|
|
|
|
"OutSA": true
|
|
|
|
|
};
|
|
|
|
|
Map<String, dynamic> requestN = {
|
|
|
|
|
"Prescription": {
|
|
|
|
|
"objPatientInfo": {
|
|
|
|
|
"Gender": patient.gender == 1 ? 'Male' : 'Female',
|
|
|
|
|
"Age": patient.age
|
|
|
|
|
},
|
|
|
|
|
"objVitalSign": {"Height": vital.heightCm, "Weight": vital.weightKg},
|
|
|
|
|
"objPrescriptionItems": prescription[0].entityList,
|
|
|
|
|
"objAllergies": allergy,
|
|
|
|
|