|
|
|
|
@ -98,6 +98,7 @@ class PrescriptionsService extends BaseService {
|
|
|
|
|
await baseAppClient.post(prescriptions.isInOutPatient! ? GET_PRESCRIPTION_REPORT_ENH : GET_PRESCRIPTION_REPORT, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
prescriptionReportList.clear();
|
|
|
|
|
prescriptionReportEnhList.clear();
|
|
|
|
|
prescriptionReportListINP.clear();
|
|
|
|
|
isMedDeliveryAllowed = response['IsHomeMedicineDeliverySupported'];
|
|
|
|
|
if (prescriptions.isInOutPatient!) {
|
|
|
|
|
response['ListPRM'].forEach((prescriptions) {
|
|
|
|
|
@ -120,8 +121,9 @@ class PrescriptionsService extends BaseService {
|
|
|
|
|
isDentalAllowedBackend: false,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Future sendPrescriptionEmail(String appointmentDate, int patientID, String clinicName, String doctorName, int doctorID, int projectID) async {
|
|
|
|
|
Future sendPrescriptionEmail(String appointmentDate, int patientID, String clinicName, String doctorName, int doctorID, int projectID, bool isInOutPatient) async {
|
|
|
|
|
_requestSendPrescriptionEmail.listPrescriptions = prescriptionReportList;
|
|
|
|
|
_requestSendPrescriptionEmail.listPrescriptionsINP = prescriptionReportListINP;
|
|
|
|
|
_requestSendPrescriptionEmail.appointmentDate = appointmentDate;
|
|
|
|
|
_requestSendPrescriptionEmail.patientID = patientID;
|
|
|
|
|
_requestSendPrescriptionEmail.clinicName = clinicName;
|
|
|
|
|
|