|
|
|
|
@ -72,7 +72,7 @@ class PatientsProvider with ChangeNotifier {
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
dynamic localRes;
|
|
|
|
|
await BaseAppClient.post('DoctorApplication.svc/REST/' + SERVICES_PATIANT[val],
|
|
|
|
|
await BaseAppClient.post(GET_PATIENT + SERVICES_PATIANT[val],
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
localRes = response;
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
@ -235,8 +235,7 @@ class PatientsProvider with ChangeNotifier {
|
|
|
|
|
try {
|
|
|
|
|
prescriptionReportForInPatientList = [];
|
|
|
|
|
notifyListeners();
|
|
|
|
|
await BaseAppClient.post(
|
|
|
|
|
'DoctorApplication.svc/REST/GetPrescriptionReportForInPatient',
|
|
|
|
|
await BaseAppClient.post(GET_PRESCRIPTION_REPORT_FOR_IN_PATIENT,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
response['List_PrescriptionReportForInPatient'].forEach((v) {
|
|
|
|
|
prescriptionReportForInPatientList
|
|
|
|
|
@ -261,7 +260,7 @@ class PatientsProvider with ChangeNotifier {
|
|
|
|
|
isError = false;
|
|
|
|
|
error = "";
|
|
|
|
|
notifyListeners();
|
|
|
|
|
await BaseAppClient.post('Patients.svc/REST/GetPrescriptionReport',
|
|
|
|
|
await BaseAppClient.post(GET_PRESCRIPTION_REPORT,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
response['ListPRM'].forEach((v) {
|
|
|
|
|
prescriptionReport.add(PrescriptionReport.fromJson(v));
|
|
|
|
|
@ -330,7 +329,7 @@ class PatientsProvider with ChangeNotifier {
|
|
|
|
|
requestLabResult.orderNo = labOrdersResModel.orderNo;
|
|
|
|
|
requestLabResult.invoiceNo = labOrdersResModel.invoiceNo;
|
|
|
|
|
requestLabResult.patientTypeID = labOrdersResModel.patientType;
|
|
|
|
|
await BaseAppClient.post('DoctorApplication.svc/REST/GetPatientLabResults',
|
|
|
|
|
await BaseAppClient.post(GET_PATIENT_LAB_RESULTS,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
isError = false;
|
|
|
|
|
isLoading = false;
|
|
|
|
|
|