|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
import 'package:diplomaticquarterapp/core/model/labs/patient_lab_orders.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/model/prescriptions/prescription_report_enh.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/model/prescriptions/Prescriptions.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/model/radiology/final_radiology.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/feedback/feedback_view_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
@ -13,11 +13,11 @@ import 'package:diplomaticquarterapp/pages/MyAppointments/models/BookedButtons.d
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/MyAppointments/models/BookedButtonsAllowCheckIn.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/MyAppointments/models/ConfirmedButtons.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/MyAppointments/models/ConfirmedButtonsAllowCheckIn.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/MyAppointments/widgets/PrescriptionReport.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/MyAppointments/widgets/askDocDialog.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/feedback/feedback_home_page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/insurance/insurance_approval_screen.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/labs/laboratory_result_page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/prescriptions/prescription_items_page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/radiology/radiology_details_page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/vital_sign/vital_sign_details_screen.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/services/appointment_services/GetDoctorsList.dart';
|
|
|
|
@ -391,29 +391,24 @@ class _AppointmentActionsState extends State<AppointmentActions> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
openPrescriptionReport() {
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
List<PrescriptionReportEnh> prescriptionReportEnhList = List();
|
|
|
|
|
DoctorsListService service = new DoctorsListService();
|
|
|
|
|
service.getPatientPrescriptionReports(widget.appo, context).then((res) {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
if (res['ListPRM'].length != 0) {
|
|
|
|
|
res['ListPRM'].forEach((report) {
|
|
|
|
|
prescriptionReportEnhList.add(PrescriptionReportEnh.fromJson(report));
|
|
|
|
|
});
|
|
|
|
|
print(prescriptionReportEnhList.length);
|
|
|
|
|
navigateToMedicinePrescriptionReport(prescriptionReportEnhList, res['ListPRM']);
|
|
|
|
|
} else {
|
|
|
|
|
AppToast.showErrorToast(message: TranslationBase.of(context).noRecords);
|
|
|
|
|
}
|
|
|
|
|
}).catchError((err) {
|
|
|
|
|
print(err);
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
AppToast.showErrorToast(message: err);
|
|
|
|
|
});
|
|
|
|
|
Prescriptions prescriptions = new Prescriptions();
|
|
|
|
|
|
|
|
|
|
prescriptions.doctorName = widget.appo.doctorNameObj;
|
|
|
|
|
prescriptions.doctorImageURL = widget.appo.doctorImageURL;
|
|
|
|
|
prescriptions.speciality = widget.appo.doctorSpeciality;
|
|
|
|
|
prescriptions.name = widget.appo.projectName;
|
|
|
|
|
prescriptions.appointmentDate = widget.appo.appointmentDate;
|
|
|
|
|
prescriptions.nationalityFlagURL = null;
|
|
|
|
|
prescriptions.doctorRate = widget.appo.doctorRate;
|
|
|
|
|
prescriptions.actualDoctorRate = widget.appo.actualDoctorRate;
|
|
|
|
|
prescriptions.noOfPatientsRate = widget.appo.noOfPatientsRate;
|
|
|
|
|
prescriptions.isInOutPatient = widget.appo.isInOutPatient;
|
|
|
|
|
|
|
|
|
|
navigateToMedicinePrescriptionReport(prescriptions);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future navigateToMedicinePrescriptionReport(List<PrescriptionReportEnh> prescriptionReportEnhList, dynamic listPres) async {
|
|
|
|
|
Navigator.push(context, FadePage(page: PrescriptionReportPage(prescriptionReportEnhList: prescriptionReportEnhList, listPres: listPres, appo: widget.appo)));
|
|
|
|
|
Future navigateToMedicinePrescriptionReport(Prescriptions prescriptions) async {
|
|
|
|
|
Navigator.push(context, FadePage(page: PrescriptionItemsPage(prescriptions: prescriptions)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future navigateToLabResults(PatientLabOrders patientLabOrders) async {
|
|
|
|
@ -557,6 +552,8 @@ class _AppointmentActionsState extends State<AppointmentActions> {
|
|
|
|
|
|
|
|
|
|
rateAppointment() {
|
|
|
|
|
widget.browser = new MyInAppBrowser();
|
|
|
|
|
widget.browser.openBrowser('http://hmg.com/SitePages/pso.aspx?p=' + widget.appo.projectID.toString() + '.' + widget.appo.appointmentNo.toString() + '&c=1');
|
|
|
|
|
var url = 'http://hmg.com/SitePages/pso.aspx?p=' + widget.appo.projectID.toString() + '.' + widget.appo.appointmentNo.toString() + '&c=1';
|
|
|
|
|
print(url);
|
|
|
|
|
launch(url);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|