|
|
|
|
@ -29,9 +29,13 @@ class RadiologyService extends BaseService {
|
|
|
|
|
|
|
|
|
|
Future getPatientRadOrders(PatiantInformtion patient , {isInPatient = false}) async {
|
|
|
|
|
String url = GET_PATIENT_ORDERS;
|
|
|
|
|
final Map<String, dynamic> body = new Map<String, dynamic>();
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|