From 84ec110c828d645791d188ba67bb372ff8687a8f Mon Sep 17 00:00:00 2001 From: Elham Rababah Date: Fri, 23 Apr 2021 22:27:52 +0300 Subject: [PATCH] fix radiology_service --- lib/core/service/radiology_service.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/core/service/radiology_service.dart b/lib/core/service/radiology_service.dart index 68504d2c..7296d7b7 100644 --- a/lib/core/service/radiology_service.dart +++ b/lib/core/service/radiology_service.dart @@ -29,9 +29,13 @@ class RadiologyService extends BaseService { Future getPatientRadOrders(PatiantInformtion patient , {isInPatient = false}) async { String url = GET_PATIENT_ORDERS; + final Map body = new Map(); if(isInPatient) { url = GET_IN_PATIENT_ORDERS; + body['ProjectID'] = patient.projectId; } + + hasError = false; await baseAppClient.postPatient(url, patient: patient, @@ -47,7 +51,7 @@ class RadiologyService extends BaseService { }, onFailure: (String error, int statusCode) { hasError = true; super.error = error; - }, body: Map()); + }, body:body); }