From f7ed4b6c68ad1e17e2bf334c31ac9eaaf8c05ae1 Mon Sep 17 00:00:00 2001 From: "taha.alam" Date: Sun, 1 Dec 2024 15:57:33 +0300 Subject: [PATCH] WD: SETUP ID ADDED --- .../service/patient_medical_file/soap/SOAP_service.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/core/service/patient_medical_file/soap/SOAP_service.dart b/lib/core/service/patient_medical_file/soap/SOAP_service.dart index 1c8e66cf..dbcc2149 100644 --- a/lib/core/service/patient_medical_file/soap/SOAP_service.dart +++ b/lib/core/service/patient_medical_file/soap/SOAP_service.dart @@ -397,7 +397,8 @@ class SOAPService extends LookupService { Future patientAllergies(PatiantInformtion patientInfo) async { Map request = { "patientId": patientInfo.patientMRN, - "ProjectID": patientInfo.projectId + "ProjectID": patientInfo.projectId, + "setupId": await sharedPref.getString(DOCTOR_SETUP_ID) }; hasError = false; await baseAppClient.post(PATIENT_ALLERGIES, @@ -448,7 +449,10 @@ class SOAPService extends LookupService { }, onFailure: (String error, int statusCode) { hasError = true; super.error = error; - }, body: {"AllergyName": searchKey}); + }, body: { + "AllergyName": searchKey, + "setupId": await sharedPref.getString(DOCTOR_SETUP_ID) + }); } Future addAllergies(