|
|
|
|
@ -48,8 +48,7 @@ class LabsService extends BaseService {
|
|
|
|
|
_requestPatientLabSpecialResult.orderNo = orderNo;
|
|
|
|
|
|
|
|
|
|
await baseAppClient.postPatient(GET_Patient_LAB_SPECIAL_RESULT,
|
|
|
|
|
patient: patient,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
patient: patient, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
patientLabSpecialResult.clear();
|
|
|
|
|
response['ListPLSR'].forEach((hospital) {
|
|
|
|
|
patientLabSpecialResult.add(PatientLabSpecialResult.fromJson(hospital));
|
|
|
|
|
@ -60,7 +59,8 @@ class LabsService extends BaseService {
|
|
|
|
|
}, body: _requestPatientLabSpecialResult.toJson());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future getPatientLabResult({PatientLabOrders patientLabOrder,PatiantInformtion patient}) async {
|
|
|
|
|
Future getPatientLabResult(
|
|
|
|
|
{PatientLabOrders patientLabOrder, PatiantInformtion patient}) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
Map<String, dynamic> body = Map();
|
|
|
|
|
body['InvoiceNo'] = patientLabOrder.invoiceNo;
|
|
|
|
|
@ -69,8 +69,7 @@ class LabsService extends BaseService {
|
|
|
|
|
body['SetupID'] = patientLabOrder.setupID;
|
|
|
|
|
body['ProjectID'] = patientLabOrder.projectID;
|
|
|
|
|
body['ClinicID'] = patientLabOrder.clinicID;
|
|
|
|
|
await baseAppClient.postPatient(GET_Patient_LAB_RESULT,
|
|
|
|
|
patient: patient,
|
|
|
|
|
await baseAppClient.postPatient(GET_Patient_LAB_RESULT, patient: patient,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
patientLabSpecialResult.clear();
|
|
|
|
|
labResultList.clear();
|
|
|
|
|
@ -84,19 +83,22 @@ class LabsService extends BaseService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future getPatientLabOrdersResults(
|
|
|
|
|
{PatientLabOrders patientLabOrder, String procedure,PatiantInformtion patient}) async {
|
|
|
|
|
{PatientLabOrders patientLabOrder,
|
|
|
|
|
String procedure,
|
|
|
|
|
PatiantInformtion patient}) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
Map<String, dynamic> body = Map();
|
|
|
|
|
body['InvoiceNo'] = patientLabOrder.invoiceNo;
|
|
|
|
|
body['OrderNo'] = patientLabOrder.orderNo;
|
|
|
|
|
if (patientLabOrder != null) {
|
|
|
|
|
body['InvoiceNo'] = patientLabOrder.invoiceNo;
|
|
|
|
|
body['OrderNo'] = patientLabOrder.orderNo;
|
|
|
|
|
body['SetupID'] = patientLabOrder.setupID;
|
|
|
|
|
body['ProjectID'] = patientLabOrder.projectID;
|
|
|
|
|
body['ClinicID'] = patientLabOrder.clinicID;
|
|
|
|
|
}
|
|
|
|
|
body['isDentalAllowedBackend'] = false;
|
|
|
|
|
body['SetupID'] = patientLabOrder.setupID;
|
|
|
|
|
body['ProjectID'] = patientLabOrder.projectID;
|
|
|
|
|
body['ClinicID'] = patientLabOrder.clinicID;
|
|
|
|
|
body['Procedure'] = procedure;
|
|
|
|
|
await baseAppClient.postPatient(GET_Patient_LAB_ORDERS_RESULT,
|
|
|
|
|
patient: patient,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
patient: patient, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
labOrdersResultsList.clear();
|
|
|
|
|
response['ListPLR'].forEach((lab) {
|
|
|
|
|
labOrdersResultsList.add(LabOrderResult.fromJson(lab));
|
|
|
|
|
|