diff --git a/assets/images/new/services/bmi.svg b/assets/images/new/services/bmi.svg
new file mode 100644
index 00000000..ce3be188
--- /dev/null
+++ b/assets/images/new/services/bmi.svg
@@ -0,0 +1,8 @@
+
diff --git a/assets/images/new/services/bmr_calc.svg b/assets/images/new/services/bmr_calc.svg
new file mode 100644
index 00000000..991cdd08
--- /dev/null
+++ b/assets/images/new/services/bmr_calc.svg
@@ -0,0 +1,7 @@
+
diff --git a/assets/images/new/services/body_fat_calc.svg b/assets/images/new/services/body_fat_calc.svg
new file mode 100644
index 00000000..552715b9
--- /dev/null
+++ b/assets/images/new/services/body_fat_calc.svg
@@ -0,0 +1,5 @@
+
diff --git a/assets/images/new/services/calories_calc.svg b/assets/images/new/services/calories_calc.svg
new file mode 100644
index 00000000..2d4de2fa
--- /dev/null
+++ b/assets/images/new/services/calories_calc.svg
@@ -0,0 +1,15 @@
+
diff --git a/assets/images/new/services/carbs_proteitn_fat.svg b/assets/images/new/services/carbs_proteitn_fat.svg
new file mode 100644
index 00000000..ba1c7005
--- /dev/null
+++ b/assets/images/new/services/carbs_proteitn_fat.svg
@@ -0,0 +1,8 @@
+
diff --git a/assets/images/new/services/delivery.svg b/assets/images/new/services/delivery.svg
new file mode 100644
index 00000000..2b350b8b
--- /dev/null
+++ b/assets/images/new/services/delivery.svg
@@ -0,0 +1,9 @@
+
diff --git a/assets/images/new/services/ideal_weight_calc.svg b/assets/images/new/services/ideal_weight_calc.svg
new file mode 100644
index 00000000..60d7ecbe
--- /dev/null
+++ b/assets/images/new/services/ideal_weight_calc.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/new/services/ovulation.svg b/assets/images/new/services/ovulation.svg
new file mode 100644
index 00000000..29650a70
--- /dev/null
+++ b/assets/images/new/services/ovulation.svg
@@ -0,0 +1,8 @@
+
diff --git a/lib/config/config.dart b/lib/config/config.dart
index 5f9d7d2a..c4fabca6 100644
--- a/lib/config/config.dart
+++ b/lib/config/config.dart
@@ -16,18 +16,23 @@ const PACKAGES_SHOPPING_CART = '/api/shopping_cart_items';
const PACKAGES_ORDERS = '/api/orders';
const PACKAGES_TAMARA_OPT = '/api/orders/paymentoptions/tamara';
// const BASE_URL = 'https://uat.hmgwebservices.com/';
-// const BASE_URL = 'https://hmgwebservices.com/';
-const BASE_URL = 'https://uat.hmgwebservices.com/';
-// const BASE_URL = 'https://hmgwebservices.com/';
+const BASE_URL = 'https://hmgwebservices.com/';
// Pharmacy UAT URLs
-// const BASE_PHARMACY_URL = 'https://uat.hmgwebservices.com/epharmacy/api/';
-// const PHARMACY_BASE_URL = 'https://uat.hmgwebservices.com/epharmacy/api/';
+// const BASE_PHARMACY_URL = 'https://uat.hmgwebservices.com/epharmacy/api/';
+// const PHARMACY_BASE_URL = 'https://uat.hmgwebservices.com/epharmacy/api/';
// // Pharmacy Production URLs
const BASE_PHARMACY_URL = 'https://mdlaboratories.com/exacartapi/api/';
const PHARMACY_BASE_URL = 'https://mdlaboratories.com/exacartapi/api/';
+// // Pharmacy Pre-Production URLs
+// const BASE_PHARMACY_URL = 'https://mdlaboratories.com/exacartapitest/api/';
+// const PHARMACY_BASE_URL = 'https://mdlaboratories.com/exacartapitest/api/';
+
+// RC API URL
+const RC_BASE_URL = 'https://livecare.hmg.com/';
+
const PING_SERVICE = 'Services/Weather.svc/REST/CheckConnectivity';
const GET_PROJECT = 'Services/Lists.svc/REST/GetProject';
@@ -37,7 +42,8 @@ const GET_GEO_ZONES = 'Services/Patients.svc/REST/GeoF_GetAllPoints';
const LOG_GEO_ZONES = 'Services/Patients.svc/REST/GeoF_InsertPatientFileInfo';
// Delivery Driver
-const DRIVER_LOCATION = 'Services/Patients.svc/REST/PatientER_GetDriverLocation';
+const DRIVER_LOCATION =
+ 'Services/Patients.svc/REST/PatientER_GetDriverLocation';
//weather
const WEATHER_INDICATOR = 'Services/Weather.svc/REST/GetCityInfo';
@@ -45,71 +51,105 @@ const WEATHER_INDICATOR = 'Services/Weather.svc/REST/GetCityInfo';
const GET_PRIVILEGE = 'Services/Patients.svc/REST/Service_Privilege';
// Wifi Credentials
-const WIFI_CREDENTIALS = "Services/Patients.svc/Hmg_SMS_Get_By_ProjectID_And_PatientID";
+const WIFI_CREDENTIALS =
+ "Services/Patients.svc/Hmg_SMS_Get_By_ProjectID_And_PatientID";
///Doctor
-const GET_MY_DOCTOR = 'Services/Doctors.svc/REST/GetPatientDoctorAppointmentResult';
+const GET_MY_DOCTOR =
+ 'Services/Doctors.svc/REST/GetPatientDoctorAppointmentResult';
const GET_DOCTOR_PROFILE = 'Services/Doctors.svc/REST/GetDocProfiles';
-const GET_DOCTOR_PRE_POST_IMAGES = 'Services/Doctors.svc/REST/GetDoctorPrePostImages';
-const GET_DOCTOR_RATING_NOTES = 'Services/Doctors.svc/REST/dr_GetNotesDoctorRating';
-const GET_DOCTOR_RATING_DETAILS = 'Services/Doctors.svc/REST/dr_GetDoctorRatingDetails';
+const GET_DOCTOR_PRE_POST_IMAGES =
+ 'Services/Doctors.svc/REST/GetDoctorPrePostImages';
+const GET_DOCTOR_RATING_NOTES =
+ 'Services/Doctors.svc/REST/dr_GetNotesDoctorRating';
+const GET_DOCTOR_RATING_DETAILS =
+ 'Services/Doctors.svc/REST/dr_GetDoctorRatingDetails';
const GET_DOCTOR_RATING = 'Services/Doctors.svc/REST/dr_GetAvgDoctorRating';
///Prescriptions
const PRESCRIPTIONS = 'Services/Patients.svc/REST/GetPrescriptionApptList';
-const GET_PRESCRIPTIONS_ALL_ORDERS = 'Services/Patients.svc/REST/PatientER_GetPatientAllPresOrders';
-const GET_PRESCRIPTION_REPORT = 'Services/Patients.svc/REST/INP_GetPrescriptionReport';
-const SEND_PRESCRIPTION_EMAIL = 'Services/Notifications.svc/REST/SendPrescriptionEmail';
-const GET_PRESCRIPTION_REPORT_ENH = 'Services/Patients.svc/REST/GetPrescriptionReport_enh';
+const GET_PRESCRIPTIONS_ALL_ORDERS =
+ 'Services/Patients.svc/REST/PatientER_GetPatientAllPresOrders';
+const GET_PRESCRIPTION_REPORT =
+ 'Services/Patients.svc/REST/INP_GetPrescriptionReport';
+const SEND_PRESCRIPTION_EMAIL =
+ 'Services/Notifications.svc/REST/SendPrescriptionEmail';
+const GET_PRESCRIPTION_REPORT_ENH =
+ 'Services/Patients.svc/REST/GetPrescriptionReport_enh';
///Lab Order
const GET_Patient_LAB_ORDERS = 'Services/Patients.svc/REST/GetPatientLabOrders';
-const GET_Patient_LAB_SPECIAL_RESULT = 'Services/Patients.svc/REST/GetPatientLabSpecialResults';
-const SEND_LAB_RESULT_EMAIL = 'Services/Notifications.svc/REST/SendLabReportEmail';
-const GET_Patient_LAB_RESULT = 'Services/Patients.svc/REST/GetPatientLabResults';
-const GET_Patient_LAB_ORDERS_RESULT = 'Services/Patients.svc/REST/GetPatientLabOrdersResults';
-const SEND_COVID_LAB_RESULT_EMAIL = 'Services/Notifications.svc/REST/GenerateCOVIDReport';
-const COVID_PASSPORT_UPDATE = 'Services/Patients.svc/REST/Covid19_Certificate_PassportUpdate';
-const GET_PATIENT_PASSPORT_NUMBER = 'Services/Patients.svc/REST/Covid19_Certificate_GetPassport';
+const GET_Patient_LAB_SPECIAL_RESULT =
+ 'Services/Patients.svc/REST/GetPatientLabSpecialResults';
+const SEND_LAB_RESULT_EMAIL =
+ 'Services/Notifications.svc/REST/SendLabReportEmail';
+const GET_Patient_LAB_RESULT =
+ 'Services/Patients.svc/REST/GetPatientLabResults';
+const GET_Patient_LAB_ORDERS_RESULT =
+ 'Services/Patients.svc/REST/GetPatientLabOrdersResults';
+const SEND_COVID_LAB_RESULT_EMAIL =
+ 'Services/Notifications.svc/REST/GenerateCOVIDReport';
+const COVID_PASSPORT_UPDATE =
+ 'Services/Patients.svc/REST/Covid19_Certificate_PassportUpdate';
+const GET_PATIENT_PASSPORT_NUMBER =
+ 'Services/Patients.svc/REST/Covid19_Certificate_GetPassport';
///
const GET_PATIENT_ORDERS = 'Services/Patients.svc/REST/GetPatientRadOrders';
-const GET_PATIENT_LAB_ORDERS_BY_APPOINTMENT = 'Services/Patients.svc/REST/GetPatientLabResultsByAppointmentNo';
+const GET_PATIENT_LAB_ORDERS_BY_APPOINTMENT =
+ 'Services/Patients.svc/REST/GetPatientLabResultsByAppointmentNo';
-const GET_PATIENT_ORDERS_DETAILS = 'Services/Patients.svc/REST/Rad_UpdatePatientRadOrdersToRead';
+const GET_PATIENT_ORDERS_DETAILS =
+ 'Services/Patients.svc/REST/Rad_UpdatePatientRadOrdersToRead';
const GET_RAD_IMAGE_URL = 'Services/Patients.svc/Rest/GetRadImageURL';
-const SEND_RAD_REPORT_EMAIL = 'Services/Notifications.svc/REST/SendRadReportEmail';
+const SEND_RAD_REPORT_EMAIL =
+ 'Services/Notifications.svc/REST/SendRadReportEmail';
///Feedback
const SEND_FEEDBACK = 'Services/COCWS.svc/REST/InsertCOCItemInSPList';
const GET_STATUS_FOR_COCO = 'Services/COCWS.svc/REST/GetStatusforCOC';
+// const GET_PATIENT_AppointmentHistory = 'Services'
+// '/Doctors.svc/REST/PateintHasAppoimentHistory';
+
const GET_PATIENT_AppointmentHistory = 'Services'
- '/Doctors.svc/REST/PateintHasAppoimentHistory';
+ '/Doctors.svc/REST/PateintHasAppoimentHistory_Async';
///VITAL SIGN
-const GET_PATIENT_VITAL_SIGN = 'Services/Doctors.svc/REST/Doctor_GetPatientVitalSign';
+const GET_PATIENT_VITAL_SIGN =
+ 'Services/Doctors.svc/REST/Doctor_GetPatientVitalSign';
///Er Nearest
-const GET_NEAREST_HOSPITAL = 'Services/Patients.svc/REST/Patient_GetProjectAvgERWaitingTime';
+const GET_NEAREST_HOSPITAL =
+ 'Services/Patients.svc/REST/Patient_GetProjectAvgERWaitingTime';
///ED Online
-const ER_GET_VISUAL_TRIAGE_QUESTIONS = "services/Doctors.svc/REST/ER_GetVisualTriageQuestions";
-const ER_SAVE_TRIAGE_INFORMATION = "services/Doctors.svc/REST/ER_SaveTriageInformation";
-const ER_GetPatientPaymentInformationForERClinic = "services/Doctors.svc/REST/ER_GetPatientPaymentInformationForERClinic";
+const ER_GET_VISUAL_TRIAGE_QUESTIONS =
+ "services/Doctors.svc/REST/ER_GetVisualTriageQuestions";
+const ER_SAVE_TRIAGE_INFORMATION =
+ "services/Doctors.svc/REST/ER_SaveTriageInformation";
+const ER_GetPatientPaymentInformationForERClinic =
+ "services/Doctors.svc/REST/ER_GetPatientPaymentInformationForERClinic";
///Er Nearest
-const GET_AMBULANCE_REQUEST = 'Services/Patients.svc/REST/PatientER_RRT_GetAllTransportationMethod';
-const GET_PATIENT_ALL_PRES_ORDERS = 'Services/Patients.svc/REST/PatientER_GetPatientAllPresOrders';
-const GET_PICK_UP_REQUEST_BY_PRES_ORDER_ID = 'Services/Patients.svc/REST/PatientER_RRT_GetPickUpRequestByPresOrderID';
-const UPDATE_PRESS_ORDER = 'Services/Patients.svc/REST/PatientER_UpdatePresOrder';
-const INSERT_ER_INERT_PRES_ORDER = 'Services/Patients.svc/REST/PatientER_InsertPresOrder';
+const GET_AMBULANCE_REQUEST =
+ 'Services/Patients.svc/REST/PatientER_RRT_GetAllTransportationMethod';
+const GET_PATIENT_ALL_PRES_ORDERS =
+ 'Services/Patients.svc/REST/PatientER_GetPatientAllPresOrders';
+const GET_PICK_UP_REQUEST_BY_PRES_ORDER_ID =
+ 'Services/Patients.svc/REST/PatientER_RRT_GetPickUpRequestByPresOrderID';
+const UPDATE_PRESS_ORDER =
+ 'Services/Patients.svc/REST/PatientER_UpdatePresOrder';
+const INSERT_ER_INERT_PRES_ORDER =
+ 'Services/Patients.svc/REST/PatientER_InsertPresOrder';
/// ER RRT
const GET_ALL_RC_TRANSPORTATION = 'rc/api/Transportation/getalltransportation';
const GET_ALL_TRANSPORTATIONS_RC = 'rc/api/Transportation/getalltransportation';
-const GET_ALL_RRT_QUESTIONS = 'Services/Patients.svc/REST/PatientER_RRT_GetAllQuestions';
-const GET_RRT_SERVICE_PRICE = 'Services/Patients.svc/REST/PatientE_RealRRT_GetServicePrice';
+const GET_ALL_RRT_QUESTIONS =
+ 'Services/Patients.svc/REST/PatientER_RRT_GetAllQuestions';
+const GET_RRT_SERVICE_PRICE =
+ 'Services/Patients.svc/REST/PatientE_RealRRT_GetServicePrice';
const GET_ALL_TRANSPORTATIONS_ORDERS = 'rc/api/Transportation/get';
@@ -124,13 +164,15 @@ const GET_FINDUS_REQUEST = 'Services/Lists.svc/REST/Get_HMG_Locations';
const GET_LIVECHAT_REQUEST = 'Services/Patients.svc/REST/GetPatientICProjects';
///babyInformation
-const GET_BABYINFORMATION_REQUEST = 'Services/Community.svc/REST/GetBabyByUserID';
+const GET_BABYINFORMATION_REQUEST =
+ 'Services/Community.svc/REST/GetBabyByUserID';
///Get Baby By User ID
const GET_BABY_BY_USER_ID = 'Services/Community.svc/REST/GetBabyByUserID';
///userInformation
-const GET_USERINFORMATION_REQUEST = 'Services/Community.svc/REST/GetUserInformation_New';
+const GET_USERINFORMATION_REQUEST =
+ 'Services/Community.svc/REST/GetUserInformation_New';
///Update email
const UPDATE_PATENT_EMAIL = 'Services/Patients.svc/REST/UpdatePateintEmail';
@@ -152,23 +194,34 @@ const GET_TABLE_REQUEST = 'Services/Community.svc/REST/CreateVaccinationTable';
const GET_CITIES_REQUEST = 'Services/Lists.svc/REST/GetAllCities';
///BloodDetails
-const GET_BLOOD_REQUEST = 'services/PatientVarification.svc/REST/BloodDonation_GetBloodGroupDetails';
+const GET_BLOOD_REQUEST =
+ 'services/PatientVarification.svc/REST/BloodDonation_GetBloodGroupDetails';
-const SAVE_BLOOD_REQUEST = 'Services/PatientVarification.svc/REST/BloodDonation_RegisterBloodType';
+const SAVE_BLOOD_REQUEST =
+ 'Services/PatientVarification.svc/REST/BloodDonation_RegisterBloodType';
-const GET_BLOOD_AGREEMENT = 'Services/PatientVarification.svc/REST/CheckUserAgreementForBloodDonation';
-const SAVE_BLOOD_AGREEMENT = 'Services/PatientVarification.svc/REST/AddUserAgreementForBloodDonation';
+const GET_BLOOD_AGREEMENT =
+ 'Services/PatientVarification.svc/REST/CheckUserAgreementForBloodDonation';
+const SAVE_BLOOD_AGREEMENT =
+ 'Services/PatientVarification.svc/REST/AddUserAgreementForBloodDonation';
///Reports
const REPORTS = 'Services/Doctors.svc/REST/GetPatientMedicalReportStatusInfo';
-const INSERT_REQUEST_FOR_MEDICAL_REPORT = 'Services/Doctors.svc/REST/InsertRequestForMedicalReport';
-const SEND_MEDICAL_REPORT_EMAIL = 'Services/Notifications.svc/REST/SendMedicalReportEmail';
+const INSERT_REQUEST_FOR_MEDICAL_REPORT =
+ 'Services/Doctors.svc/REST/InsertRequestForMedicalReport';
+const SEND_MEDICAL_REPORT_EMAIL =
+ 'Services/Notifications.svc/REST/SendMedicalReportEmail';
///Rate
-const IS_LAST_APPOITMENT_RATED = 'Services/Doctors.svc/REST/IsLastAppoitmentRated';
-const GET_APPOINTMENT_DETAILS_BY_NO = 'Services/MobileNotifications.svc/REST/GetAppointmentDetailsByApptNo';
-const NEW_RATE_APPOINTMENT_URL = "Services/Doctors.svc/REST/AppointmentsRating_InsertAppointmentRate";
-const NEW_RATE_DOCTOR_URL = "Services/Doctors.svc/REST/DoctorsRating_InsertDoctorRate";
+// const IS_LAST_APPOITMENT_RATED = 'Services/Doctors.svc/REST/IsLastAppoitmentRated';
+const IS_LAST_APPOITMENT_RATED =
+ 'Services/Doctors.svc/REST/IsLastAppoitmentRated_Async';
+const GET_APPOINTMENT_DETAILS_BY_NO =
+ 'Services/MobileNotifications.svc/REST/GetAppointmentDetailsByApptNo';
+const NEW_RATE_APPOINTMENT_URL =
+ "Services/Doctors.svc/REST/AppointmentsRating_InsertAppointmentRate";
+const NEW_RATE_DOCTOR_URL =
+ "Services/Doctors.svc/REST/DoctorsRating_InsertDoctorRate";
const GET_QR_PARKING = 'Services/SWP.svc/REST/GetQRParkingByID';
@@ -176,7 +229,8 @@ const GET_QR_PARKING = 'Services/SWP.svc/REST/GetQRParkingByID';
const GET_CLINICS_LIST_URL = "Services/lists.svc/REST/GetClinicCentralized";
//URL to get active appointment list
-const GET_ACTIVE_APPOINTMENTS_LIST_URL = "Services/Doctors.svc/Rest/Dr_GetAppointmentActiveNumber";
+const GET_ACTIVE_APPOINTMENTS_LIST_URL =
+ "Services/Doctors.svc/Rest/Dr_GetAppointmentActiveNumber";
//URL to get projects list
const GET_PROJECTS_LIST = 'Services/Lists.svc/REST/GetProject';
@@ -185,92 +239,128 @@ const GET_PROJECTS_LIST = 'Services/Lists.svc/REST/GetProject';
const GET_DOCTORS_LIST_URL = "Services/Doctors.svc/REST/SearchDoctorsByTime";
//URL to dental doctors list
-const GET_DENTAL_DOCTORS_LIST_URL = "Services/Doctors.svc/REST/Dental_DoctorChiefComplaintMapping";
+const GET_DENTAL_DOCTORS_LIST_URL =
+ "Services/Doctors.svc/REST/Dental_DoctorChiefComplaintMapping";
//URL to get doctor free slots
const GET_DOCTOR_FREE_SLOTS = "Services/Doctors.svc/REST/GetDoctorFreeSlots";
//URL to insert appointment
-const INSERT_SPECIFIC_APPOINTMENT = "Services/Doctors.svc/REST/InsertSpecificAppointment";
+const INSERT_SPECIFIC_APPOINTMENT =
+ "Services/Doctors.svc/REST/InsertSpecificAppointment";
//URL to get patient share
-const GET_PATIENT_SHARE = "Services/Doctors.svc/REST/GetCheckinScreenAppointmentDetailsByAppointmentNO";
+const GET_PATIENT_SHARE =
+ "Services/Doctors.svc/REST/GetCheckinScreenAppointmentDetailsByAppointmentNO";
//URL to get patient appointment history
-const GET_PATIENT_APPOINTMENT_HISTORY = "Services/Doctors.svc/REST/PateintHasAppoimentHistory";
+const GET_PATIENT_APPOINTMENT_HISTORY =
+ "Services/Doctors.svc/REST/PateintHasAppoimentHistory";
-const DOCTOR_SCHEDULE_URL = 'Services/Doctors.svc/REST/GetDoctorWorkingHoursTable';
+const DOCTOR_SCHEDULE_URL =
+ 'Services/Doctors.svc/REST/GetDoctorWorkingHoursTable';
-const SEND_REPORT_EYE_EMAIL = "Services/Notifications.svc/REST/SendGlassesPrescriptionEmail";
+const SEND_REPORT_EYE_EMAIL =
+ "Services/Notifications.svc/REST/SendGlassesPrescriptionEmail";
-const SEND_CONTACT_LENS_PRESCRIPTION_EMAIL = "Services/Notifications.svc/REST/SendContactLensPrescriptionEmail";
+const SEND_CONTACT_LENS_PRESCRIPTION_EMAIL =
+ "Services/Notifications.svc/REST/SendContactLensPrescriptionEmail";
//URL to get patient appointment curfew history
-const GET_PATIENT_APPOINTMENT_CURFEW_HISTORY = "Services/Doctors.svc/REST/AppoimentHistoryForCurfew";
+// const GET_PATIENT_APPOINTMENT_CURFEW_HISTORY = "Services/Doctors.svc/REST/AppoimentHistoryForCurfew";
+const GET_PATIENT_APPOINTMENT_CURFEW_HISTORY =
+ "Services/Doctors.svc/REST/AppoimentHistoryForCurfew_Async";
//URL to confirm appointment
-const CONFIRM_APPOINTMENT = "Services/MobileNotifications.svc/REST/ConfirmAppointment";
+const CONFIRM_APPOINTMENT =
+ "Services/MobileNotifications.svc/REST/ConfirmAppointment";
-const INSERT_VIDA_REQUEST = "Services/ER_VirtualCall.svc/REST/PatientER_VidaRequestInseart";
+const INSERT_VIDA_REQUEST =
+ "Services/ER_VirtualCall.svc/REST/PatientER_VidaRequestInseart";
//URL to cancel appointment
const CANCEL_APPOINTMENT = "Services/Doctors.svc/REST/CancelAppointment";
//URL get appointment QR
-const GENERATE_QR_APPOINTMENT = "Services/Doctors.svc/REST/GenerateQRAppointmentNo";
+const GENERATE_QR_APPOINTMENT =
+ "Services/Doctors.svc/REST/GenerateQRAppointmentNo";
//URL send email appointment QR
-const EMAIL_QR_APPOINTMENT = "Services/Notifications.svc/REST/sendEmailForOnLineCheckin";
+const EMAIL_QR_APPOINTMENT =
+ "Services/Notifications.svc/REST/sendEmailForOnLineCheckin";
//URL check payment status
-const CHECK_PAYMENT_STATUS = "Services/PayFort_Serv.svc/REST/GetRequestStatusByRequestID";
+const CHECK_PAYMENT_STATUS =
+ "Services/PayFort_Serv.svc/REST/GetRequestStatusByRequestID";
//URL create advance payment
const CREATE_ADVANCE_PAYMENT = "Services/Doctors.svc/REST/CreateAdvancePayment";
-const HIS_CREATE_ADVANCE_PAYMENT = "Services/Patients.svc/REST/HIS_CreateAdvancePayment";
+const HIS_CREATE_ADVANCE_PAYMENT =
+ "Services/Patients.svc/REST/HIS_CreateAdvancePayment";
-const ADD_ADVANCE_NUMBER_REQUEST = 'Services/PayFort_Serv.svc/REST/AddAdvancedNumberRequest';
+const ADD_ADVANCE_NUMBER_REQUEST =
+ 'Services/PayFort_Serv.svc/REST/AddAdvancedNumberRequest';
-const IS_ALLOW_ASK_DOCTOR = 'Services/Doctors.svc/REST/GetPatientDoctorAppointmentResult';
-const GET_CALL_REQUEST_TYPE = 'Services/Doctors.svc/REST/GetCallRequestType_LOV';
-const ADD_VIDA_REQUEST = 'Services/ER_VirtualCall.svc/REST/PatientER_VidaRequestInseart';
+const IS_ALLOW_ASK_DOCTOR =
+ 'Services/Doctors.svc/REST/GetPatientDoctorAppointmentResult';
+const GET_CALL_REQUEST_TYPE =
+ 'Services/Doctors.svc/REST/GetCallRequestType_LOV';
+const ADD_VIDA_REQUEST =
+ 'Services/ER_VirtualCall.svc/REST/PatientER_VidaRequestInseart';
const SEND_CALL_REQUEST = 'Services/Doctors.svc/REST/InsertCallInfo';
-const GET_LIVECARE_CLINICS = 'Services/ER_VirtualCall.svc/REST/PatientER_GetClinics';
+const GET_LIVECARE_CLINICS =
+ 'Services/ER_VirtualCall.svc/REST/PatientER_GetClinics';
-const GET_LIVECARE_SCHEDULE_CLINICS = 'Services/Doctors.svc/REST/PatientER_GetClinicsHaveSchedule';
+const GET_LIVECARE_SCHEDULE_CLINICS =
+ 'Services/Doctors.svc/REST/PatientER_GetClinicsHaveSchedule';
-const GET_LIVECARE_SCHEDULE_CLINIC_DOCTOR_LIST = 'Services/Doctors.svc/REST/PatientER_GetDoctorByClinicID';
+const GET_LIVECARE_SCHEDULE_CLINIC_DOCTOR_LIST =
+ 'Services/Doctors.svc/REST/PatientER_GetDoctorByClinicID';
-const GET_LIVECARE_SCHEDULE_DOCTOR_TIME_SLOTS = 'Services/Doctors.svc/REST/PatientER_GetDoctorFreeSlots';
+const GET_LIVECARE_SCHEDULE_DOCTOR_TIME_SLOTS =
+ 'Services/Doctors.svc/REST/PatientER_GetDoctorFreeSlots';
-const INSERT_LIVECARE_SCHEDULE_APPOINTMENT = 'Services/Doctors.svc/REST/InsertSpecificAppoitmentForSchedule';
+const INSERT_LIVECARE_SCHEDULE_APPOINTMENT =
+ 'Services/Doctors.svc/REST/InsertSpecificAppoitmentForSchedule';
-const GET_PATIENT_SHARE_LIVECARE = "Services/Doctors.svc/REST/GetCheckinScreenAppointmentDetailsByAppointmentNOForLiveCare";
+const GET_PATIENT_SHARE_LIVECARE =
+ "Services/Doctors.svc/REST/GetCheckinScreenAppointmentDetailsByAppointmentNOForLiveCare";
-const GET_LIVECARE_CLINIC_TIMING = 'Services/ER_VirtualCall.svc/REST/PatientER_GetClinicsServiceTimingsSchedule';
+const GET_LIVECARE_CLINIC_TIMING =
+ 'Services/ER_VirtualCall.svc/REST/PatientER_GetClinicsServiceTimingsSchedule';
-const GET_ER_APPOINTMENT_FEES = 'Services/DoctorApplication.svc/REST/GetERAppointmentFees';
+const GET_ER_APPOINTMENT_FEES =
+ 'Services/DoctorApplication.svc/REST/GetERAppointmentFees';
const GET_ER_APPOINTMENT_TIME = 'Services/ER_VirtualCall.svc/REST/GetRestTime';
-const ADD_NEW_CALL_FOR_PATIENT_ER = 'Services/DoctorApplication.svc/REST/NewCallForPatientER';
+const ADD_NEW_CALL_FOR_PATIENT_ER =
+ 'Services/DoctorApplication.svc/REST/NewCallForPatientER';
-const GET_LIVECARE_HISTORY = 'Services/ER_VirtualCall.svc/REST/GetPatientErVirtualHistory';
-const CANCEL_LIVECARE_REQUEST = 'Services/ER_VirtualCall.svc/REST/DeleteErRequest';
-const SEND_LIVECARE_INVOICE_EMAIL = 'Services/Notifications.svc/REST/SendInvoiceForLiveCare';
+const GET_LIVECARE_HISTORY =
+ 'Services/ER_VirtualCall.svc/REST/GetPatientErVirtualHistory';
+const CANCEL_LIVECARE_REQUEST =
+ 'Services/ER_VirtualCall.svc/REST/DeleteErRequest';
+const SEND_LIVECARE_INVOICE_EMAIL =
+ 'Services/Notifications.svc/REST/SendInvoiceForLiveCare';
-const APPLE_PAY_INSERT_REQUEST = 'Services/PayFort_Serv.svc/REST/PayFort_ApplePayRequestData_Insert';
+const APPLE_PAY_INSERT_REQUEST =
+ 'Services/PayFort_Serv.svc/REST/PayFort_ApplePayRequestData_Insert';
const GET_USER_TERMS = 'Services/Patients.svc/REST/GetUserTermsAndConditions';
-const UPDATE_HEALTH_TERMS = 'services/Patients.svc/REST/UpdatePateintHealthSummaryReport';
+const UPDATE_HEALTH_TERMS =
+ 'services/Patients.svc/REST/UpdatePateintHealthSummaryReport';
-const GET_PATIENT_HEALTH_STATS = 'Services/Patients.svc/REST/Med_GetTransactionsSts';
+const GET_PATIENT_HEALTH_STATS =
+ 'Services/Patients.svc/REST/Med_GetTransactionsSts';
-const SEND_CHECK_IN_NFC_REQUEST = 'Services/Patients.svc/REST/Patient_CheckAppointmentValidation_ForNFC';
+const SEND_CHECK_IN_NFC_REQUEST =
+ 'Services/Patients.svc/REST/Patient_CheckAppointmentValidation_ForNFC';
-const HAS_DENTAL_PLAN = 'Services/Doctors.svc/REST/Dental_IsPatientHasOnGoingEstimation';
+const HAS_DENTAL_PLAN =
+ 'Services/Doctors.svc/REST/Dental_IsPatientHasOnGoingEstimation';
const LASER_BODY_PARTS = 'Services/Patients.svc/REST/Laser_GetBodyPartsByCategory';
@@ -293,16 +383,21 @@ var DeviceTypeID = Platform.isIOS ? 1 : 2;
const LANGUAGE_ID = 2;
const GET_PHARMCY_ITEMS = "Services/Lists.svc/REST/GetPharmcyItems_Region";
const GET_PHARMACY_LIST = "Services/Patients.svc/REST/GetPharmcyList";
-const GET_PAtIENTS_INSURANCE = "Services/Patients.svc/REST/Get_PatientInsuranceDetails";
-const GET_PAtIENTS_INSURANCE_UPDATED = "Services/Patients.svc/REST/PatientER_GetPatientInsuranceCardUpdateHistory";
+const GET_PAtIENTS_INSURANCE =
+ "Services/Patients.svc/REST/Get_PatientInsuranceDetails";
+const GET_PAtIENTS_INSURANCE_UPDATED =
+ "Services/Patients.svc/REST/PatientER_GetPatientInsuranceCardUpdateHistory";
const INSURANCE_DETAILS = "Services/Patients.svc/REST/Get_InsuranceCheckList";
-const GET_PATIENT_INSURANCE_DETAILS = "Services/Patients.svc/REST/PatientER_GetPatientInsuranceDetails";
-const UPLOAD_INSURANCE_CARD = 'Services/Patients.svc/REST/PatientER_PatientInfoForInsuranceCardUpdate';
+const GET_PATIENT_INSURANCE_DETAILS =
+ "Services/Patients.svc/REST/PatientER_GetPatientInsuranceDetails";
+const UPLOAD_INSURANCE_CARD =
+ 'Services/Patients.svc/REST/PatientER_PatientInfoForInsuranceCardUpdate';
const GET_VACCINES = "Services/Patients.svc/REST/GetDoneVaccinesByPatientID";
const GET_VACCINES_EMAIL = "Services/Notifications.svc/REST/SendVaccinesEmail";
-const GET_PAtIENTS_INSURANCE_APPROVALS = "Services/Patients.svc/REST/GetApprovalStatus_Async";
+const GET_PAtIENTS_INSURANCE_APPROVALS =
+ "Services/Patients.svc/REST/GetApprovalStatus_Async";
// const GET_PAtIENTS_INSURANCE_APPROVALS = "Services/Patients.svc/REST/GetApprovalStatus";
const SEARCH_BOT = 'HabibiChatBotApi/BotInterface/GetVoiceCommandResponse';
@@ -313,54 +408,86 @@ const GET_PATIENT_SICK_LEAVE = 'Services/Patients.svc/REST/GetPatientSickLeave';
const SendSickLeaveEmail = 'Services/Notifications.svc/REST/SendSickLeaveEmail';
-const GET_PATIENT_AdVANCE_BALANCE_AMOUNT = 'Services/Patients.svc/REST/GetPatientAdvanceBalanceAmount';
-const GET_PATIENT_INFO_BY_ID = 'Services/Doctors.svc/REST/GetPatientInfoByPatientID';
-const GET_PATIENT_INFO_BY_ID_AND_MOBILE_NUMBER = 'Services/Patients.svc/REST/AP_GetPatientInfoByPatientIDandMobileNumber';
-const SEND_ACTIVATION_CODE_FOR_ADVANCE_PAYMENT = 'Services/Authentication.svc/REST/SendActivationCodeForAdvancePayment';
-const CHECK_ACTIVATION_CODE_FOR_ADVANCE_PAYMENT = 'Services/Authentication.svc/REST/CheckActivationCodeForAdvancePayment';
+const GET_PATIENT_AdVANCE_BALANCE_AMOUNT =
+ 'Services/Patients.svc/REST/GetPatientAdvanceBalanceAmount';
+const GET_PATIENT_INFO_BY_ID =
+ 'Services/Doctors.svc/REST/GetPatientInfoByPatientID';
+const GET_PATIENT_INFO_BY_ID_AND_MOBILE_NUMBER =
+ 'Services/Patients.svc/REST/AP_GetPatientInfoByPatientIDandMobileNumber';
+const SEND_ACTIVATION_CODE_FOR_ADVANCE_PAYMENT =
+ 'Services/Authentication.svc/REST/SendActivationCodeForAdvancePayment';
+const CHECK_ACTIVATION_CODE_FOR_ADVANCE_PAYMENT =
+ 'Services/Authentication.svc/REST/CheckActivationCodeForAdvancePayment';
-const GET_COVID_DRIVETHRU_PROJECT_LIST = 'Services/Doctors.svc/REST/COVID19_ProjectDriveThroughTestingCenter';
+const GET_COVID_DRIVETHRU_PROJECT_LIST =
+ 'Services/Doctors.svc/REST/COVID19_ProjectDriveThroughTestingCenter';
-const GET_COVID_DRIVETHRU_PAYMENT_INFO = 'Services/Doctors.svc/REST/COVID19_GetPatientPaymentInormation';
+const GET_COVID_DRIVETHRU_PAYMENT_INFO =
+ 'Services/Doctors.svc/REST/COVID19_GetPatientPaymentInormation';
-const GET_COVID_DRIVETHRU_FREE_SLOTS = 'Services/Doctors.svc/REST/COVID19_GetFreeSlots';
+const GET_COVID_DRIVETHRU_FREE_SLOTS =
+ 'Services/Doctors.svc/REST/COVID19_GetFreeSlots';
-const GET_COVID_DRIVETHRU_PROCEDURES_LIST = 'Services/Doctors.svc/REST/COVID19_GetTestProcedures';
+const GET_COVID_DRIVETHRU_PROCEDURES_LIST =
+ 'Services/Doctors.svc/REST/COVID19_GetTestProcedures';
///Smartwatch Integration Services
-const GET_PATIENT_LAST_RECORD = 'Services/Patients.svc/REST/Med_GetPatientLastRecord';
-const INSERT_PATIENT_HEALTH_DATA = 'Services/Patients.svc/REST/Med_InsertTransactions';
+const GET_PATIENT_LAST_RECORD =
+ 'Services/Patients.svc/REST/Med_GetPatientLastRecord';
+const INSERT_PATIENT_HEALTH_DATA =
+ 'Services/Patients.svc/REST/Med_InsertTransactions';
///My Trackers
-const GET_DIABETIC_RESULT_AVERAGE = 'Services/Patients.svc/REST/Patient_GetDiabeticResultAverage';
-const GET_DIABTEC_RESULT = 'Services/Patients.svc/REST/Patient_GetDiabtecResults';
-const ADD_DIABTEC_RESULT = 'Services/Patients.svc/REST/Patient_AddDiabtecResult';
-
-const GET_BLOOD_PRESSURE_RESULT_AVERAGE = 'Services/Patients.svc/REST/Patient_GetBloodPressureResultAverage';
-const GET_BLOOD_PRESSURE_RESULT = 'Services/Patients.svc/REST/Patient_GetBloodPressureResult';
-const ADD_BLOOD_PRESSURE_RESULT = 'Services/Patients.svc/REST/Patient_AddBloodPressureResult';
-
-const GET_WEIGHT_PRESSURE_RESULT_AVERAGE = 'Services/Patients.svc/REST/Patient_GetWeightMeasurementResultAverage';
-const GET_WEIGHT_PRESSURE_RESULT = 'Services/Patients.svc/REST/Patient_GetWeightMeasurementResult';
-const ADD_WEIGHT_PRESSURE_RESULT = 'Services/Patients.svc/REST/Patient_AddWeightMeasurementResult';
-
-const ADD_ACTIVE_PRESCRIPTIONS_REPORT_BY_PATIENT_ID = 'Services/Patients.svc/Rest/GetActivePrescriptionReportByPatientID';
-
-const GET_CALL_INFO_HOURS_RESULT = 'Services/Doctors.svc/REST/GetCallInfoHoursResult';
-const GET_CALL_REQUEST_TYPE_LOV = 'Services/Doctors.svc/REST/GetCallRequestType_LOV';
-
-const UPDATE_DIABETIC_RESULT = 'Services/Patients.svc/REST/Patient_UpdateDiabeticResult';
-
-const SEND_AVERAGE_BLOOD_SUGAR_REPORT = 'Services/Notifications.svc/REST/SendAverageBloodSugarReport';
-const DEACTIVATE_DIABETIC_STATUS = 'services/Patients.svc/REST/Patient_DeactivateDiabeticStatus';
-const DEACTIVATE_BLOOD_PRESSURES_STATUS = 'services/Patients.svc/REST/Patient_DeactivateBloodPressureStatus';
-
-const UPDATE_BLOOD_PRESSURE_RESULT = 'Services/Patients.svc/REST/Patient_UpdateBloodPressureResult';
-const SEND_AVERAGE_BLOOD_WEIGHT_REPORT = 'Services/Notifications.svc/REST/SendAverageBodyWeightReport';
-const SEND_AVERAGE_BLOOD_PRESSURE_REPORT = 'Services/Notifications.svc/REST/SendAverageBloodPressureReport';
-
-const UPDATE_WEIGHT_PRESSURE_RESULT = 'Services/Patients.svc/REST/Patient_UpdateWeightMeasurementResult';
-const DEACTIVATE_WEIGHT_PRESSURE_RESULT = 'services/Patients.svc/REST/Patient_DeactivateWeightMeasurementStatus';
+const GET_DIABETIC_RESULT_AVERAGE =
+ 'Services/Patients.svc/REST/Patient_GetDiabeticResultAverage';
+const GET_DIABTEC_RESULT =
+ 'Services/Patients.svc/REST/Patient_GetDiabtecResults';
+const ADD_DIABTEC_RESULT =
+ 'Services/Patients.svc/REST/Patient_AddDiabtecResult';
+
+const GET_BLOOD_PRESSURE_RESULT_AVERAGE =
+ 'Services/Patients.svc/REST/Patient_GetBloodPressureResultAverage';
+const GET_BLOOD_PRESSURE_RESULT =
+ 'Services/Patients.svc/REST/Patient_GetBloodPressureResult';
+const ADD_BLOOD_PRESSURE_RESULT =
+ 'Services/Patients.svc/REST/Patient_AddBloodPressureResult';
+
+const GET_WEIGHT_PRESSURE_RESULT_AVERAGE =
+ 'Services/Patients.svc/REST/Patient_GetWeightMeasurementResultAverage';
+const GET_WEIGHT_PRESSURE_RESULT =
+ 'Services/Patients.svc/REST/Patient_GetWeightMeasurementResult';
+const ADD_WEIGHT_PRESSURE_RESULT =
+ 'Services/Patients.svc/REST/Patient_AddWeightMeasurementResult';
+
+const ADD_ACTIVE_PRESCRIPTIONS_REPORT_BY_PATIENT_ID =
+ 'Services/Patients.svc/Rest/GetActivePrescriptionReportByPatientID';
+
+const GET_CALL_INFO_HOURS_RESULT =
+ 'Services/Doctors.svc/REST/GetCallInfoHoursResult';
+const GET_CALL_REQUEST_TYPE_LOV =
+ 'Services/Doctors.svc/REST/GetCallRequestType_LOV';
+
+const UPDATE_DIABETIC_RESULT =
+ 'Services/Patients.svc/REST/Patient_UpdateDiabeticResult';
+
+const SEND_AVERAGE_BLOOD_SUGAR_REPORT =
+ 'Services/Notifications.svc/REST/SendAverageBloodSugarReport';
+const DEACTIVATE_DIABETIC_STATUS =
+ 'services/Patients.svc/REST/Patient_DeactivateDiabeticStatus';
+const DEACTIVATE_BLOOD_PRESSURES_STATUS =
+ 'services/Patients.svc/REST/Patient_DeactivateBloodPressureStatus';
+
+const UPDATE_BLOOD_PRESSURE_RESULT =
+ 'Services/Patients.svc/REST/Patient_UpdateBloodPressureResult';
+const SEND_AVERAGE_BLOOD_WEIGHT_REPORT =
+ 'Services/Notifications.svc/REST/SendAverageBodyWeightReport';
+const SEND_AVERAGE_BLOOD_PRESSURE_REPORT =
+ 'Services/Notifications.svc/REST/SendAverageBloodPressureReport';
+
+const UPDATE_WEIGHT_PRESSURE_RESULT =
+ 'Services/Patients.svc/REST/Patient_UpdateWeightMeasurementResult';
+const DEACTIVATE_WEIGHT_PRESSURE_RESULT =
+ 'services/Patients.svc/REST/Patient_DeactivateWeightMeasurementStatus';
const GET_DOCTOR_RESPONSE = 'Services/Patients.svc/REST/GetDoctorResponse';
const UPDATE_READ_STATUS = 'Services/Patients.svc/REST/UpdateReadStatus';
const INSERT_CALL_INFO = 'Services/Doctors.svc/REST/InsertCallInfo';
@@ -368,25 +495,35 @@ const INSERT_CALL_INFO = 'Services/Doctors.svc/REST/InsertCallInfo';
const GET_PATIENT_ALLERGIES = 'Services/Patients.svc/REST/GetPatientAllergies';
// H2O
-const H2O_GET_USER_PROGRESS = "Services/H2ORemainder.svc/REST/H2O_GetUserProgress";
-const H2O_INSERT_USER_ACTIVITY = "Services/H2ORemainder.svc/REST/H2O_InsertUserActivity";
-const H2O_GET_USER_DETAIL = "Services/H2ORemainder.svc/REST/H2O_GetUserDetails_New";
-const H2O_UPDATE_USER_DETAIL = "Services/H2ORemainder.svc/REST/H2O_UpdateUserDetails_New";
-const H2O_UNDO_USER_ACTIVITY = "Services/H2ORemainder.svc/REST/H2o_UndoUserActivity";
+const H2O_GET_USER_PROGRESS =
+ "Services/H2ORemainder.svc/REST/H2O_GetUserProgress";
+const H2O_INSERT_USER_ACTIVITY =
+ "Services/H2ORemainder.svc/REST/H2O_InsertUserActivity";
+const H2O_GET_USER_DETAIL =
+ "Services/H2ORemainder.svc/REST/H2O_GetUserDetails_New";
+const H2O_UPDATE_USER_DETAIL =
+ "Services/H2ORemainder.svc/REST/H2O_UpdateUserDetails_New";
+const H2O_UNDO_USER_ACTIVITY =
+ "Services/H2ORemainder.svc/REST/H2o_UndoUserActivity";
//E_Referral Services
-const GET_ALL_RELATIONSHIP_TYPES = "Services/Patients.svc/REST/GetAllRelationshipTypes";
-const SEND_ACTIVATION_CODE_FOR_E_REFERRAL = 'Services/Authentication.svc/REST/SendActivationCodeForEReferral';
-const CHECK_ACTIVATION_CODE_FOR_E_REFERRAL = 'Services/Authentication.svc/REST/CheckActivationCodeForEReferral';
+const GET_ALL_RELATIONSHIP_TYPES =
+ "Services/Patients.svc/REST/GetAllRelationshipTypes";
+const SEND_ACTIVATION_CODE_FOR_E_REFERRAL =
+ 'Services/Authentication.svc/REST/SendActivationCodeForEReferral';
+const CHECK_ACTIVATION_CODE_FOR_E_REFERRAL =
+ 'Services/Authentication.svc/REST/CheckActivationCodeForEReferral';
const GET_ALL_CITIES = 'services/Lists.svc/rest/GetAllCities';
const CREATE_E_REFERRAL = "Services/Patients.svc/REST/CreateEReferral";
const GET_E_REFERRALS = "Services/Patients.svc/REST/GetEReferrals";
// Encillary Orders
-const GET_ANCILLARY_ORDERS = 'Services/Doctors.svc/REST/GetOnlineAncillaryOrderList';
+const GET_ANCILLARY_ORDERS =
+ 'Services/Doctors.svc/REST/GetOnlineAncillaryOrderList';
-const GET_ANCILLARY_ORDERS_DETAILS = 'Services/Doctors.svc/REST/GetOnlineAncillaryOrderProcList';
+const GET_ANCILLARY_ORDERS_DETAILS =
+ 'Services/Doctors.svc/REST/GetOnlineAncillaryOrderProcList';
//Pharmacy wishlist
// const GET_WISHLIST = "http://swd-pharapp-01:7200/api/shopping_cart_items/";
@@ -408,7 +545,7 @@ const GET_CUSTOMERS_ADDRESSES = "Customers/";
const SUBSCRIBE_PRODUCT = "subscribe?";
const GET_ORDER = "orders?";
const GET_ORDER_DETAILS = "orders/";
-const ADD_CUSTOMER_ADDRESS = "epharmacy/api/addcustomeraddress";
+const ADD_CUSTOMER_ADDRESS = "addcustomeraddress";
const EDIT_CUSTOMER_ADDRESS = "epharmacy/api/editcustomeraddress";
const DELETE_CUSTOMER_ADDRESS = "epharmacy/api/deletecustomeraddress";
const GET_ADDRESS = "Customers/";
@@ -419,32 +556,50 @@ const GET_SHIPPING_OPTIONS = "get_shipping_option/";
const DELETE_SHOPPING_CART = "delete_shopping_cart_items/";
const DELETE_SHOPPING_CART_ALL = "delete_shopping_cart_item_by_customer/";
const ORDER_SHOPPING_CART = "orders";
-const GET_LACUM_ACCOUNT_INFORMATION = "Services/Patients.svc/REST/GetLakumAccountInformation";
-const GET_LACUM_GROUP_INFORMATION = "Services/Patients.svc/REST/GetlakumInQueryInfoGrouping";
-const LACUM_ACCOUNT_ACTIVATE = "Services/Patients.svc/REST/LakumAccountActivation";
-const LACUM_ACCOUNT_DEACTIVATE = "Services/Patients.svc/REST/LakumAccountDeactivation";
-const CREATE_LAKUM_ACCOUNT = "Services/Patients.svc/REST/PHR_CreateLakumAccount";
-const TRANSFER_YAHALA_LOYALITY_POINTS = "Services/Patients.svc/REST/TransferYaHalaLoyaltyPoints";
-const LAKUM_GET_USER_TERMS_AND_CONDITIONS = "Services/ERP.svc/REST/GetUserTermsAndConditionsForEPharmcy";
+const GET_LACUM_ACCOUNT_INFORMATION =
+ "Services/Patients.svc/REST/GetLakumAccountInformation";
+const GET_LACUM_GROUP_INFORMATION =
+ "Services/Patients.svc/REST/GetlakumInQueryInfoGrouping";
+const LACUM_ACCOUNT_ACTIVATE =
+ "Services/Patients.svc/REST/LakumAccountActivation";
+const LACUM_ACCOUNT_DEACTIVATE =
+ "Services/Patients.svc/REST/LakumAccountDeactivation";
+const CREATE_LAKUM_ACCOUNT =
+ "Services/Patients.svc/REST/PHR_CreateLakumAccount";
+const TRANSFER_YAHALA_LOYALITY_POINTS =
+ "Services/Patients.svc/REST/TransferYaHalaLoyaltyPoints";
+const LAKUM_GET_USER_TERMS_AND_CONDITIONS =
+ "Services/ERP.svc/REST/GetUserTermsAndConditionsForEPharmcy";
const PRESCRIPTION = 'Services/Patients.svc/REST/GetPrescriptionApptList';
const GET_RECOMMENDED_PRODUCT = 'alsoProduct/';
-const GET_MOST_VIEWED_PRODUCTS = "mostview?";
-const GET_NEW_PRODUCTS = "newproducts?";
+const GET_MOST_VIEWED_PRODUCTS = "mostview";
+const GET_NEW_PRODUCTS = "newproducts";
// Home Health Care
-const HHC_GET_ALL_SERVICES = "Services/Patients.svc/REST/PatientER_HHC_GetAllServices";
-const HHC_GET_ALL_CMC_SERVICES = "Services/Patients.svc/REST/PatientER_CMC_GetAllServices";
-const PATIENT_ER_UPDATE_PRES_ORDER = "Services/Patients.svc/REST/PatientER_UpdatePresOrder";
-const GET_ORDER_DETAIL_BY_ID = "Services/Patients.svc/REST/PatientER_HHC_GetTransactionsForOrder";
-const GET_CMC_ORDER_DETAIL_BY_ID = "Services/Patients.svc/REST/PatientER_CMC_GetTransactionsForOrder";
+const HHC_GET_ALL_SERVICES =
+ "Services/Patients.svc/REST/PatientER_HHC_GetAllServices";
+const HHC_GET_ALL_CMC_SERVICES =
+ "Services/Patients.svc/REST/PatientER_CMC_GetAllServices";
+const PATIENT_ER_UPDATE_PRES_ORDER =
+ "Services/Patients.svc/REST/PatientER_UpdatePresOrder";
+const GET_ORDER_DETAIL_BY_ID =
+ "Services/Patients.svc/REST/PatientER_HHC_GetTransactionsForOrder";
+const GET_CMC_ORDER_DETAIL_BY_ID =
+ "Services/Patients.svc/REST/PatientER_CMC_GetTransactionsForOrder";
const GET_CHECK_UP_ITEMS = "Services/Patients.svc/REST/GetCheckUpItems";
-const PUSH_NOTIFICATION_GET_ALL_NOTIFICATIONS = 'Services/MobileNotifications.svc/REST/PushNotification_GetAllNotifications';
-const PUSH_NOTIFICATION_SET_MESSAGES_FROM_POOL_AS_READ = 'Services/MobileNotifications.svc/REST/PushNotification_SetMessagesFromPoolAsRead';
-const GET_PATIENT_ALL_PRES_ORD = 'Services/Patients.svc/REST/PatientER_GetPatientAllPresOrders';
-const PATIENT_ER_INSERT_PRES_ORDER = 'Services/Patients.svc/REST/PatientER_InsertPresOrder';
+const PUSH_NOTIFICATION_GET_ALL_NOTIFICATIONS =
+ 'Services/MobileNotifications.svc/REST/PushNotification_GetAllNotifications';
+const PUSH_NOTIFICATION_SET_MESSAGES_FROM_POOL_AS_READ =
+ 'Services/MobileNotifications.svc/REST/PushNotification_SetMessagesFromPoolAsRead';
+const GET_PATIENT_ALL_PRES_ORD =
+ 'Services/Patients.svc/REST/PatientER_GetPatientAllPresOrders';
+const PATIENT_ER_INSERT_PRES_ORDER =
+ 'Services/Patients.svc/REST/PatientER_InsertPresOrder';
const PHARMACY_MAKE_REVIEW = 'epharmacy/api/insertreviews';
-const BLOOD_DONATION_REGISTER_BLOOD_TYPE = 'Services/PatientVarification.svc/REST/BloodDonation_RegisterBloodType';
-const ADD_USER_AGREEMENT_FOR_BLOOD_DONATION = 'Services/PatientVarification.svc/REST/AddUserAgreementForBloodDonation';
+const BLOOD_DONATION_REGISTER_BLOOD_TYPE =
+ 'Services/PatientVarification.svc/REST/BloodDonation_RegisterBloodType';
+const ADD_USER_AGREEMENT_FOR_BLOOD_DONATION =
+ 'Services/PatientVarification.svc/REST/AddUserAgreementForBloodDonation';
// HHC RC SERVICES
const HHC_GET_ALL_SERVICES_RC = "rc/api/HHC/getallhhc";
@@ -466,9 +621,9 @@ const UPDATE_RRT_ORDER_RC = 'rc/api/rrt/update';
// PRESCRIPTION RC SERVICES
const ADD_PRESCRIPTION_ORDER_RC = "rc/api/prescription/add";
const GET_ALL_PRESCRIPTION_ORDERS_RC = "rc/api/prescription/list";
+const GET_ALL_PRESCRIPTION_INFO_RC = "rc/api/Prescription/info";
const UPDATE_PRESCRIPTION_ORDER_RC = 'rc/api/prescription/update';
-
//Pharmacy wishlist
const GET_WISHLIST = "shopping_cart_items/";
const DELETE_WISHLIST = "delete_shopping_cart_item_by_product?customer_id=";
@@ -487,17 +642,21 @@ const GET_CUSTOMER_INFO = "VerifyCustomer";
//Pharmacy
-const GET_PHARMACY_CATEGORISE = 'categories?fields=id,name,namen,description,image,localized_names,display_order,parent_category_id,is_leaf&parent_id=0';
+const GET_PHARMACY_CATEGORISE =
+ 'categories?fields=id,name,namen,description,image,localized_names,display_order,parent_category_id,is_leaf&parent_id=0';
const GET_OFFERS_CATEGORISE = 'discountcategories';
const GET_OFFERS_PRODUCTS = 'offerproducts/';
-const GET_CATEGORISE_PARENT = 'categories?fields=id,name,namen,description,image,localized_names,display_order,parent_category_id,is_leaf&parent_id=';
+const GET_CATEGORISE_PARENT =
+ 'categories?fields=id,name,namen,description,image,localized_names,display_order,parent_category_id,is_leaf&parent_id=';
const GET_PARENT_PRODUCTS = 'products?categoryid=';
-const GET_SUB_CATEGORISE = 'categories?fields=id,name,namen,description,image,localized_names,display_order,parent_category_id,is_leaf&parent_id=';
+const GET_SUB_CATEGORISE =
+ 'categories?fields=id,name,namen,description,image,localized_names,display_order,parent_category_id,is_leaf&parent_id=';
const GET_SUB_PRODUCTS = 'products?categoryid=';
const GET_FINAL_PRODUCTS =
'products?fields=id,reviews,discount_ids,name,namen,localized_names,display_order,short_description,full_description,full_descriptionn,sku,order_minimum_quantity,order_maximum_quantity,price,old_price,images,is_rx,rx_message,rx_messagen,discount_name,discount_namen,approved_rating_sum,approved_total_reviews,allow_back_in_stock_subscriptions,stock_quantity,stock_availability,stock_availabilityn,discount_percentage&CategoryId=';
const GET_CLINIC_CATEGORY = 'Services/Doctors.svc/REST/DP_GetClinicCategory';
-const GET_DISEASE_BY_CLINIC_ID = 'Services/Doctors.svc/REST/DP_GetDiseasesByClinicID';
+const GET_DISEASE_BY_CLINIC_ID =
+ 'Services/Doctors.svc/REST/DP_GetDiseasesByClinicID';
const SEARCH_DOCTOR_BY_TIME = 'Services/Doctors.svc/REST/SearchDoctorsByTime';
const TIMER_MIN = 10;
@@ -513,13 +672,17 @@ const SCAN_QR_CODE = 'productbysku/';
const FILTERED_PRODUCTS = 'products?categoryids=';
-const GET_DOCTOR_LIST_CALCULATION = "Services/Doctors.svc/REST/GetCallculationDoctors";
+const GET_DOCTOR_LIST_CALCULATION =
+ "Services/Doctors.svc/REST/GetCallculationDoctors";
-const GET_ALL_APPOINTMENTS_FOR_DENTAL_CLINIC = "Services/Patients.svc/REST/GetDentalAppointments";
+const GET_ALL_APPOINTMENTS_FOR_DENTAL_CLINIC =
+ "Services/Patients.svc/REST/GetDentalAppointments";
-const GET_DENTAL_APPOINTMENT_INVOICE = "Services/Patients.svc/REST/HIS_eInvoiceForDentalByAppointmentNo";
+const GET_DENTAL_APPOINTMENT_INVOICE =
+ "Services/Patients.svc/REST/HIS_eInvoiceForDentalByAppointmentNo";
-const SEND_DENTAL_APPOINTMENT_INVOICE_EMAIL = "Services/Notifications.svc/REST/SendInvoiceForDental";
+const SEND_DENTAL_APPOINTMENT_INVOICE_EMAIL =
+ "Services/Notifications.svc/REST/SendInvoiceForDental";
class AppGlobal {
static var context;
diff --git a/lib/config/localized_values.dart b/lib/config/localized_values.dart
index 72c06137..ae7d045d 100644
--- a/lib/config/localized_values.dart
+++ b/lib/config/localized_values.dart
@@ -490,9 +490,11 @@ const Map localizedValues = {
"noLocationAvailable": {"en": "No Location Available", "ar": "لا يوجد موقع"},
"orders": {"en": "Orders", "ar": "الطلبات"},
"lakum": {"en": "Lakum", "ar": "برنامج لكم"},
+ "lakumMsg": {"en": "No Details of Points Are There", "ar": " لاتوجد تفاصيل عن النقاط"},
+ "lakumPoint": {"en": "Point", "ar": "نقطه"},
"wishlist": {"en": "Wishlist", "ar": "المفضلة"},
"products": {"en": "Products", "ar": "المنتجات"},
- "reviews": {"en": "Reviews", "ar": "التقيمات"},
+ "reviews": {"en": "Reviews", "ar": "التقييمات"},
"brands": {"en": "Brands", "ar": "العلامات التجارية"},
"productDetails": {"en": "Product Details", "ar": "تفاصيل المنتج"},
"medicationRefill": {"en": "Medication Refill", "ar": "تعبئة الأدوية"},
@@ -585,6 +587,7 @@ const Map localizedValues = {
"remeberthat": {"en": "Remember that", "ar": "تذكر ذلك:"},
"loginToUseService": {"en": "You need to login to use this service", "ar": "هذة الخدمة تتطلب تسجيل الدخول"},
"offersAndPromotions": {"en": "OFFERS & SPECIAL PROMOTIONS", "ar": "العروض والترقيات الخاصة"},
+ "offers": {"en": "OFFERS", "ar": "العروض"},
"myPrescriptions": {"en": "MY PRESCRIPTIONS", "ar": "وصفاتي"},
"searchAndScanMedication": {"en": "SEARCH & SCAN FOR MEDICATION", "ar": "البحث والمسح للأدوية"},
"shopByBrands": {"en": "Shop by Brands", "ar": "تسوق حسب الماركات"},
@@ -605,19 +608,39 @@ const Map localizedValues = {
"gained": {"en": "GAINED", "ar": "المكتسب"},
"consumed": {"en": "Consumed", "ar": "المستهلك"},
"transferred": {"en": "TRANSFERRED", "ar": "المحول"},
+ "RIYAL": {"en": "RIYAL", "ar": "ريال"},
+ "MEMBERSINCE": {"en": "MEMBER SINCE", "ar": "تاريخ العضوية"},
+ "IDENTIFICATION": {"en": "IDENTIFICATION", "ar": "رقم الهوية"},
+ "lakumMobile": {"en": "lakum Mobile", "ar": "رقم الجوال"},
+ "Waitinggained": {"en": "Waiting gained", "ar": " بأنتظار التفعيل"},
+ "Expired": {"en": "Expired", "ar": "منتهية الصلاحيه"},
+ "WillBeExpired": {"en": "Will Be Expired", "ar": "ستنتهي صلاحيتها"},
+ "LakumPoint": {"en": "Lakum Points", "ar": "نقاط لكم"},
+ "ActivateLAKUMAccount": {"en": "Activate LAKUM Account", "ar": "تفعيل لكم"},
"checkBeneficiary": {"en": "CHECK BENEFICIARY", "ar": "تحقق من المستفيد"},
"beneficiaryName": {"en": "Beneficiary Name", "ar": "اسم المستفيد"},
"accountActivation": {"en": "Account Activation", "ar": "تفعيل الحساب"},
- "lakumTransfer": {"en": "Lakum Transfer", "ar": "تفعيل الحساب"},
+ "lakumTransfer": {"en": "Lakum Transfer", "ar": "تحويل نقاط لكم"},
"acceptLbl": {"en": "Accept", "ar": "موافقة"},
"select-gender": {"en": "Select Gender", "ar": "اختر الجنس"},
"i-am-a": {"en": "I am a ...", "ar": "أنا ..."},
"select-age": {"en": "Select Your Age", "ar": "حدد العمر"},
- "select": {"en": "Select", "ar": "يختار"},
+ "select": {"en": "Select", "ar": "اختر"},
"i-am": {"en": "I am", "ar": "أنا"},
"years-old": {"en": "years old", "ar": "سنة"},
"drag-point": {"en": "Drag point to change your age", "ar": "اسحب لتغيير عمرك"},
"refine": {"en": "Refine", "ar": "تصفية"},
+ "max": {"en": "Max", "ar": "اعلى"},
+ "compeleteOrderMsg": {"en": "Order has been placed successfully!!", "ar": "تم اتمام الطلب بنجاح"},
+ "addToCompareMsg": {"en": "You have added a product to the Compare list", "ar": "تمت الاضافه لقائمة المقارنه"},
+ "itInListMsg": {"en": "Item is already in the list", "ar": "المنتج موجود في القائمه"},
+ "compareListFull": {"en": "Your compare list is full", "ar": "قائمة المقارنة ممتلئه"},
+ "addQuantity": {"en": "You should add quantity", "ar": "اختر الكمية"},
+ "addToCartMsg": {"en": "You have added a product to the cart", "ar": "تمت اضافة المنتج بنجاح"},
+ "addToWishlistMsg": {"en": "You have added a product to the Wishlist", "ar": "تمت الاضافة لقائمة المفضله"},
+ "notifyMeMsg": {"en": "You will be notified when product available", "ar": "سيتم اخبارك في حال توفر المنتج"},
+ "removeFromWishlistMsg": {"en": "You have removed a product from the Wishlist", "ar": "تمت ازالة المنتج بنجاح"},
+ "min": {"en": "Min", "ar": "اقل"},
"reset": {"en": "Reset", "ar": "اعادة تعيين"},
"apply": {"en": "Apply", "ar": "تطبيق"},
"viewCategorise": {"en": "View All Categories", "ar": "عرض جميع الفئات"},
@@ -1025,6 +1048,7 @@ const Map localizedValues = {
"no-data": {"en": "No data found", "ar": "لاتوجد بيانات"},
"insurance-details": {"en": "Insurance Details", "ar": "تفاصيل التأمين"},
"nearest-hospital": {"en": "Nearest Hospital", "ar": "أقرب مستشفى"},
+ "submitReview": {"en": "Your review has been Submitted successfully", "ar": "تم إرسال التقييم بنجاح"},
"request-sent": {"en": "Request sent successfully", "ar": "تم إرسال الطلب بنجاح"},
"message-sent": {"en": "Message sent successfully", "ar": "تم إرسال الرسالة بنجاح"},
"sent-on": {"en": "Sent on", "ar": "أرسلت في"},
@@ -1137,7 +1161,7 @@ const Map localizedValues = {
"triglycerides": {"en": "Triglycerides", "ar": "الدهون الثلاثية"},
"fatInBlood": {"en": "Fat in Blood", "ar": ""},
"convertFrom": {"en": "Convert from", "ar": "تحويل من"},
- "calculate": {"en": "calculate", "ar": "احسب"},
+ "calculate": {"en": "Calculate", "ar": "احسب"},
"enterReadingValue": {"en": "Enter the reading value", "ar": "ادخل القيمة"},
"result": {"en": "Result", "ar": "النتيجة"},
"sort": {"en": "Sort", "ar": "فرز"},
@@ -1183,8 +1207,8 @@ const Map localizedValues = {
"ovulation": {"en": "Ovulation", "ar": "الإباضة"},
"delivery": {"en": "Delivery", "ar": "الولادة"},
"bmiCalcDesc": {
- "en": "'Calculate the BMI value and weight\n status to identify the healthy weight.\n Not appropriate for children and women\n who are pregnant or breastfeeding'",
- "ar": "حساب قيمة مؤشر كتلة الجسم وحالة الوزن لتحديد الوزن الصحي. \n وغير مناسب للأطفال والنساء الحوامل أو المرضعات"
+ "en": "Calculate the BMI value and weight status to identify the healthy weight. Not appropriate for children and women who are pregnant or breastfeeding",
+ "ar": "احسب قيمة مؤشر كتلة الجسم وحالة الوزن لتحديد الوزن الصحي. غير مناسب للأطفال والنساء الحوامل أو المرضعات"
},
"selectUnit": {"en": "Select Unit", "ar": "اختر الوحدة"},
"feet": {"en": "Feet", "ar": "قدم"},
@@ -1613,4 +1637,88 @@ const Map localizedValues = {
"bodyFatTitle": {"en": "Body Fat", "ar": " الدهون في الجسم"},
"cholesTitle": {"en": "Blood Cholesterol", "ar": " الكولسترول في الدم"},
"laserClinic": {"en": "Laser Clinic", "ar": "عيادة الليزر"},
+ "noImage": {"en": "No Image", "ar": "لا توجد صورة"},
+ "signoutMessage": {"en": "Are you sure you want to logout?", "ar": "هل أنت متأكد أنك تريد تسجيل الخروج؟"},
+ "RRTTitle": {"en": "RRT", "ar": "خدمة فريق"},
+ "RRTSubTitle": {"en": "Service", "ar": "الاستجابة السريع"},
+ "transportation": {"en": "Transportation", "ar": "النقل"},
+
+ "neck": {"en": "Neck", "ar": "رقبه"},
+ "waist": {"en": "Waist", "ar": "وسط"},
+ "hip": {"en": "Hip", "ar": "ورك او نتوء"},
+ "carbsProtin": {"en": "Carbs, Protein and Fat", "ar": "الكربوهيدرات والبروتينات والدهون"},
+ "usefulInfo": {"en": "Useful Information", "ar": "معلومات مفيدة"},
+ "babyAge": {"en": "Baby Age", "ar": "عمر الطفل الآن:"},
+ "babyAgeAvail": {"en": "baby age is not available", "ar": "عمر الطفل غير متوفر"},
+ "deliveryDue": {"en": "The delivery due date is estimated to be on the", "ar": "من المقدر أن يكون تاريخ استحقاق التسليم في"},
+
+ "almostInactive": {"en": "Almost Inactive(Little or no exercises)", "ar": "شبه غير نشط (تمارين قليلة أو معدومة)"},
+ "lightActive1": {"en": "Lighty Active (1-3) days per week", "ar": "Lighty Active (1-3) أيام في الأسبوع"},
+ "veryActive": {"en": "very Active(6-7) days per week", "ar": "نشط جدا (6-7) أيام في الأسبوع"},
+ "superActive": {"en": "Super Active(very hard exercises)", "ar": "سوبر نشط (تمارين صعبة للغاية)"},
+
+ "dailyIntake": {"en": "Daily intake is", "ar": "المدخول اليومي"},
+ "calculateAmount": {"en": "Calculates the amount of energy that the person’s body expends in a day", "ar": "تحسب كمية الطاقة التي يبذلها جسم الشخص في اليوم"},
+ "bodyWillBurn": {"en": "This means the body will burn", "ar": "هذا يعني أن الجسم سوف يحترق"},
+ "caloriesEachDay": {"en": "calories each day, if engaged in no activity for the entire day.. Note: Daily calorie requirement is", "ar": "السعرات الحرارية في كل يوم ، إذا لم تمارس أي نشاط طوال اليوم .. ملاحظة: متطلبات السعرات الحرارية اليومية هي"},
+ "maintainWeight": {"en": "calories, to maintain the current weight.", "ar": "السعرات الحرارية للحفاظ على الوزن الحالي."},
+
+ "mediumFinger": {"en": "Medium(fingers touch)", "ar": "متوسطة (لمسة الأصابع)"},
+ "smallFinger": {"en": "Small(fingers overlap)", "ar": "صغير (أصابع متداخلة)"},
+ "largeFinger": {"en": "Large(fingers don\'n touch)", "ar": "كبير (لا تلمس الأصابع)"},
+ "idealBodyWeight": {"en": "Calculates the ideal body weight based on height, Weight, and Body Size", "ar": "يحسب وزن الجسم المثالي بناءً على الطول والوزن وحجم الجسم"},
+ "bodyFrameSize": {"en": "Body Frame Size", "ar": "حجم إطار الجسم"},
+
+ "idealWeightRange": {"en": "Ideal weight range is", "ar": "نطاق الوزن المثالي هو"},
+ "currentWeightPerfect": {"en": "Congratulations! The current weight is perfect and considered healthy", "ar": "تهانينا! الوزن الحالي مثالي ويعتبر صحي"},
+ "littleBitWeightMore": {"en": "This means that the weight is a little bit more than ideal weight by", "ar": "هذا يعني أن الوزن أكثر قليلاً من الوزن المثالي به"},
+ "consultWithDoctor": {"en": "May wish to consult with the doctor for medical help. Click to view our list of Doctors", "ar": "قد ترغب في استشارة الطبيب للحصول على مساعدة طبية. انقر لعرض قائمة الأطباء لدينا"},
+ "excessiveObesity": {"en": "Means that you suffer from excessive obesity by", "ar": "يعني أنك تعاني من السمنة المفرطة بها"},
+ "mayWish": {"en": "May wish to consult with the doctor for medical help. Click to view our list of\n Doctors", "ar": "قد ترغب في استشارة الطبيب للحصول على مساعدة طبية. انقر لعرض قائمة الأطباء \ n الخاصة بنا"},
+
+ "essential": {"en": "The category falls under essential", "ar": "الفئة تندرج تحت الأساسية"},
+ "athlete": {"en": "The category falls under athlete", "ar": "فئة تندرج تحت رياضي"},
+ "fitness": {"en": "The category falls under fitness", "ar": "الفئة تندرج تحت اللياقة البدنية"},
+ "acceptable": {"en": "The category falls under acceptable", "ar": "الفئة تندرج تحت مقبول"},
+ "underObese": {"en": "The category falls under obese", "ar": "تندرج الفئة تحت السمنة"},
+ "crossedLimits": {"en": "Please check the value you have entered, since the body fat percentage has crosed the limits.", "ar": "يرجى التحقق من القيمة التي أدخلتها ، لأن نسبة الدهون في الجسم تجاوزت الحدود."},
+ "lowLimits": {"en": "Please check the value you have entered, since the body fat percentage cannot be this low.", "ar": "يرجى التحقق من القيمة التي أدخلتها ، حيث لا يمكن أن تكون نسبة الدهون في الجسم منخفضة."},
+ "estimates": {"en": "Estimates the total body fat based on\nthe size", "ar": "تقدير إجمالي الدهون في الجسم بناءً على \ n الحجم"},
+
+
+ "myCart": {"en": "Cart", "ar": "عربة التسوق"},
+ "browseOffers": {"en": "Browse offers by clinic", "ar": "تصفح العروض حسب العيادة"},
+ "inactiveAct":{"en":"Almost inactive (little or no exercise)","ar":"غير نشط تقريبا (ممارسة الرياضة قليلة أو منعدمة)"},
+ "light":{"en":"Lightly active (1-3) days per week","ar":"خفيف النشاط (1-3 أيام في الأسبوع)"},
+ "moderate":{"en":"Moderately active (3-5) days per week)","ar":"معتدل النشاط (3-5 أيام في الأسبوع)"},
+ "very":{"en":"Very active (6-7) days per week)","ar":"نشط جداُ (6-7 أيام في الأسبوع)"},
+ "super":{"en":"Super active (very hard exercise)","ar":"عالي النشاط (ممارسة الرياضة الصعبة)"},
+ "resultCalories": {"en": "Daily intake is (#) calories", "ar": "الإحتياج اليومي (#) سعرة حرارية"},
+ "bmrDesc": {"en": "Calculates the amount of energy that the person’s body expends in a day", "ar": "معدل الأيض القاعدي: هو حساب كمية الطاقة التي يحتاجها الجسم في اليوم الواحد"},
+ "idealWeightDesc": {"en": "Calculates the ideal body weight based on height, Weight, and Body Size", "ar": "حساب الوزن المثالي والوزن الصحي للجسم على أساس الطول، والوزن ،والجسم"},
+ "bodyFrame": {"en": "Body Frame Size", "ar": "مقاس هيكل الجسم"},
+ "bodyFrameSmall": {"en": "Small (fingers overlap)", "ar": "رفيع (الأصابع تتداخل)"},
+ "bodyFrameMedium": {"en": "Medium (fingers touch)", "ar": "متوسط (الأصابع تتلامس)"},
+ "bodyFrameLarge": {"en": "Large (fingers don't touch)", "ar": "عريض (الأصابع لا تتلامس)"},
+ "bodyFatDesc": {"en": "Estimates the total body fat based on the size", "ar": "حساب الدهون في الجسم بناءاً على الحجم"},
+
+ "obeseBodyFat":{"en":"The category falls under Obese.","ar":"تندرج تحت فئة دهون جسم سمين"},
+ "invalid":{"en":"Invalid input for calculation.","ar":"البيانات المدخلة غير صالحة للحساب"},
+ "more":{"en":"Please check the value you have entered, since the body fat percentage has crossed the limits.","ar":"يرجى التحقق من القيمة التي أدخلتها ، نظرًا لأن نسبة الدهون في الجسم قد تجاوزت الحدود"},
+ "less":{"en":"Please check the value you have entered, since the body fat percentage cannot be this low.","ar":"يرجى التحقق من القيمة التي أدخلتها ، نظرًا لأن نسبة الدهون في الجسم لا يمكن أن تكون منخفضة"},
+ "carbProteinDesc": {"en": "Calculates carbohydrate protein and fat ratio in calories and grams according to a pre-set ratio", "ar": "حساب نسب الكربوهيدرات و البروتينات و الدهون بالسعرات الحرارية والغرامات وفقا لنسب محددة مسبقا"},
+ "calDay": {"en": "Calories Per Day", "ar": "السعرات الحرارية في اليوم الواحد"},
+ "notSure": {"en": "Not sure? click here", "ar": "غير متأكد؟ اضغط هنا"},
+ "selectDiet": {"en": "Select Diet Type", "ar": "حدد نوع النظام الغذائي"},
+ "dietVeryLow":{"en":"Very Low Carb","ar":"حمية منخفضة جدا في الكربوهيدرات"},
+ "dietLow":{"en":"Low Carb","ar":"حمية منخفضة الكربوهيدرات"},
+ "dietModerate":{"en":"Moderate Carb","ar":"حمية معتدلة الكربوهيدرات"},
+ "dietUSDA":{"en":"USDA Guidelines","ar":"ارشادات وزارة الزراعة الأمريكية"},
+ "dietZone":{"en":"Zone Diet","ar":"حمية زون"},
+
+ "Protein": {"en": "Protein", "ar": "بروتين"},
+ "Cals": {"en": "Cals", "ar": "كالس"},
+ "gramsPerDay": {"en": "Grams Per Day", "ar": "غرام في اليوم"},
+ "gr": {"en": "gr", "ar": "غرام"},
+ "gramsPerMeal": {"en": "Grams Per Meal", "ar": "عدد الجرامات لكل وجبة"},
};
diff --git a/lib/core/model/er/AmbulanceRequestOrdersModel.dart b/lib/core/model/er/AmbulanceRequestOrdersModel.dart
index 6bcc02b0..72a3fd5f 100644
--- a/lib/core/model/er/AmbulanceRequestOrdersModel.dart
+++ b/lib/core/model/er/AmbulanceRequestOrdersModel.dart
@@ -1,26 +1,27 @@
class AmbulanceRequestOrdersModel {
String statusText;
- int paymentStatus;
+ num paymentStatus;
dynamic clientRequestid;
dynamic paymentStatusText;
dynamic projectName;
String nearestProjectName;
- double paymentAmount;
+ num paymentAmount;
WFOrder wFOrder;
String serviceText;
bool isSentForApproval;
- int exaCartOrderId;
+ num exaCartOrderId;
+ String exaCartGUID;
bool isTimer;
- int timeSeconds;
- int totalPendingSeconds;
- int timeMinute;
- int timeHour;
- int timeTotalSeconds;
- int timeTotalMinute;
- int timeTotalHour;
+ num timeSeconds;
+ num totalPendingSeconds;
+ num timeMinute;
+ num timeHour;
+ num timeTotalSeconds;
+ num timeTotalMinute;
+ num timeTotalHour;
dynamic approvalStatus;
bool isActive;
- int clickButton;
+ num clickButton;
dynamic orderHistory;
String pickupLocation;
String dropOffLocation;
@@ -28,22 +29,21 @@ class AmbulanceRequestOrdersModel {
String doctorName;
String branch;
String time;
- dynamic notes;
- int id;
- String patientId;
- int patientOutSa;
+ String notes;
+ num iD;
+ num patientId;
+ num patientOutSa;
bool isOutPatient;
- int projectId;
- int nearestProjectId;
+ num projectId;
+ num nearestProjectId;
dynamic longitude;
dynamic latitude;
dynamic appointmentNo;
dynamic dischargeId;
- int statusId;
- int serviceId;
- int channel;
+ num statusId;
+ num serviceId;
+ num channel;
Orderpayment orderpayment;
- dynamic orderselectedservice;
dynamic wforder;
dynamic orderapprovalobj;
String created;
@@ -54,266 +54,293 @@ class AmbulanceRequestOrdersModel {
AmbulanceRequestOrdersModel(
{this.statusText,
- this.paymentStatus,
- this.clientRequestid,
- this.paymentStatusText,
- this.projectName,
- this.nearestProjectName,
- this.paymentAmount,
- this.wFOrder,
- this.serviceText,
- this.isSentForApproval,
- this.exaCartOrderId,
- this.isTimer,
- this.timeSeconds,
- this.totalPendingSeconds,
- this.timeMinute,
- this.timeHour,
- this.timeTotalSeconds,
- this.timeTotalMinute,
- this.timeTotalHour,
- this.approvalStatus,
- this.isActive,
- this.clickButton,
- this.orderHistory,
- this.pickupLocation,
- this.dropOffLocation,
- this.clinicName,
- this.doctorName,
- this.branch,
- this.time,
- this.notes,
- this.id,
- this.patientId,
- this.patientOutSa,
- this.isOutPatient,
- this.projectId,
- this.nearestProjectId,
- this.longitude,
- this.latitude,
- this.appointmentNo,
- this.dischargeId,
- this.statusId,
- this.serviceId,
- this.channel,
- this.orderpayment,
- this.orderselectedservice,
- this.wforder,
- this.orderapprovalobj,
- this.created,
- this.createdBy,
- this.modified,
- this.modifiedBy,
- this.isDeleted});
+ this.paymentStatus,
+ this.clientRequestid,
+ this.paymentStatusText,
+ this.projectName,
+ this.nearestProjectName,
+ this.paymentAmount,
+ this.wFOrder,
+ this.serviceText,
+ this.isSentForApproval,
+ this.exaCartOrderId,
+ this.exaCartGUID,
+ this.isTimer,
+ this.timeSeconds,
+ this.totalPendingSeconds,
+ this.timeMinute,
+ this.timeHour,
+ this.timeTotalSeconds,
+ this.timeTotalMinute,
+ this.timeTotalHour,
+ this.approvalStatus,
+ this.isActive,
+ this.clickButton,
+ this.orderHistory,
+ this.pickupLocation,
+ this.dropOffLocation,
+ this.clinicName,
+ this.doctorName,
+ this.branch,
+ this.time,
+ this.notes,
+ this.iD,
+ this.patientId,
+ this.patientOutSa,
+ this.isOutPatient,
+ this.projectId,
+ this.nearestProjectId,
+ this.longitude,
+ this.latitude,
+ this.appointmentNo,
+ this.dischargeId,
+ this.statusId,
+ this.serviceId,
+ this.channel,
+ this.orderpayment,
+ this.wforder,
+ this.orderapprovalobj,
+ this.created,
+ this.createdBy,
+ this.modified,
+ this.modifiedBy,
+ this.isDeleted});
AmbulanceRequestOrdersModel.fromJson(Map json) {
- statusText = json['statusText'];
- paymentStatus = json['paymentStatus'];
- clientRequestid = json['clientRequestid'];
- paymentStatusText = json['paymentStatusText'];
- projectName = json['projectName'];
- nearestProjectName = json['nearestProjectName'];
- paymentAmount = json['paymentAmount'];
- wFOrder = json['wF_order'] != null ? new WFOrder.fromJson(json['wF_order']) : null;
- serviceText = json['serviceText'];
+ statusText = json['StatusText'];
+ paymentStatus = json['PaymentStatus'];
+ clientRequestid = json['ClientRequestid'];
+ paymentStatusText = json['PaymentStatusText'];
+ projectName = json['ProjectName'];
+ nearestProjectName = json['NearestProjectName'];
+ paymentAmount = json['PaymentAmount'];
+ wFOrder = json['WF_order'] != null
+ ? new WFOrder.fromJson(json['WF_order'])
+ : null;
+ serviceText = json['ServiceText'];
isSentForApproval = json['isSentForApproval'];
- exaCartOrderId = json['exaCart_OrderId'];
+ exaCartOrderId = json['ExaCart_OrderId'];
+ exaCartGUID = json['ExaCart_GUID'];
isTimer = json['isTimer'];
- timeSeconds = json['timeSeconds'];
- totalPendingSeconds = json['totalPendingSeconds'];
- timeMinute = json['timeMinute'];
- timeHour = json['timeHour'];
- timeTotalSeconds = json['timeTotalSeconds'];
- timeTotalMinute = json['timeTotalMinute'];
- timeTotalHour = json['timeTotalHour'];
- approvalStatus = json['approvalStatus'];
+ timeSeconds = json['TimeSeconds'];
+ totalPendingSeconds = json['TotalPendingSeconds'];
+ timeMinute = json['TimeMinute'];
+ timeHour = json['TimeHour'];
+ timeTotalSeconds = json['TimeTotalSeconds'];
+ timeTotalMinute = json['TimeTotalMinute'];
+ timeTotalHour = json['TimeTotalHour'];
+ approvalStatus = json['ApprovalStatus'];
isActive = json['isActive'];
- clickButton = json['clickButton'];
- orderHistory = json['orderHistory'];
- pickupLocation = json['pickupLocation'];
- dropOffLocation = json['dropOffLocation'];
+ clickButton = json['ClickButton'];
+ orderHistory = json['OrderHistory'];
+ pickupLocation = json['PickupLocation'];
+ dropOffLocation = json['DropOffLocation'];
clinicName = json['clinicName'];
- doctorName = json['doctorName'];
- branch = json['branch'];
- time = json['time'];
- notes = json['notes'];
- id = json['id'];
- patientId = json['patientId'];
- patientOutSa = json['patientOutSa'];
- isOutPatient = json['isOutPatient'];
- projectId = json['projectId'];
- nearestProjectId = json['nearestProjectId'];
- longitude = json['longitude'];
- latitude = json['latitude'];
- appointmentNo = json['appointmentNo'];
- dischargeId = json['dischargeId'];
- statusId = json['statusId'];
- serviceId = json['serviceId'];
- channel = json['channel'];
- orderpayment = json['orderpayment'] != null ? new Orderpayment.fromJson(json['orderpayment']) : null;
- orderselectedservice = json['orderselectedservice'];
+ doctorName = json['DoctorName'];
+ branch = json['Branch'];
+ time = json['Time'];
+ notes = json['Notes'];
+ iD = json['ID'];
+ patientId = json['PatientId'];
+ patientOutSa = json['PatientOutSa'];
+ isOutPatient = json['IsOutPatient'];
+ projectId = json['ProjectId'];
+ nearestProjectId = json['NearestProjectId'];
+ longitude = json['Longitude'];
+ latitude = json['Latitude'];
+ appointmentNo = json['AppointmentNo'];
+ dischargeId = json['DischargeId'];
+ statusId = json['StatusId'];
+ serviceId = json['ServiceId'];
+ channel = json['Channel'];
+ orderpayment = json['orderpayment'] != null
+ ? new Orderpayment.fromJson(json['orderpayment'])
+ : null;
wforder = json['wforder'];
orderapprovalobj = json['orderapprovalobj'];
- created = json['created'];
- createdBy = json['createdBy'];
- modified = json['modified'];
- modifiedBy = json['modifiedBy'];
- isDeleted = json['isDeleted'];
+ created = json['Created'];
+ createdBy = json['CreatedBy'];
+ modified = json['Modified'];
+ modifiedBy = json['ModifiedBy'];
+ isDeleted = json['IsDeleted'];
}
Map toJson() {
final Map data = new Map();
- data['statusText'] = this.statusText;
- data['paymentStatus'] = this.paymentStatus;
- data['clientRequestid'] = this.clientRequestid;
- data['paymentStatusText'] = this.paymentStatusText;
- data['projectName'] = this.projectName;
- data['nearestProjectName'] = this.nearestProjectName;
- data['paymentAmount'] = this.paymentAmount;
+ data['StatusText'] = this.statusText;
+ data['PaymentStatus'] = this.paymentStatus;
+ data['ClientRequestid'] = this.clientRequestid;
+ data['PaymentStatusText'] = this.paymentStatusText;
+ data['ProjectName'] = this.projectName;
+ data['NearestProjectName'] = this.nearestProjectName;
+ data['PaymentAmount'] = this.paymentAmount;
if (this.wFOrder != null) {
- data['wF_order'] = this.wFOrder.toJson();
+ data['WF_order'] = this.wFOrder.toJson();
}
- data['serviceText'] = this.serviceText;
+ data['ServiceText'] = this.serviceText;
data['isSentForApproval'] = this.isSentForApproval;
- data['exaCart_OrderId'] = this.exaCartOrderId;
+ data['ExaCart_OrderId'] = this.exaCartOrderId;
+ data['ExaCart_GUID'] = this.exaCartGUID;
data['isTimer'] = this.isTimer;
- data['timeSeconds'] = this.timeSeconds;
- data['totalPendingSeconds'] = this.totalPendingSeconds;
- data['timeMinute'] = this.timeMinute;
- data['timeHour'] = this.timeHour;
- data['timeTotalSeconds'] = this.timeTotalSeconds;
- data['timeTotalMinute'] = this.timeTotalMinute;
- data['timeTotalHour'] = this.timeTotalHour;
- data['approvalStatus'] = this.approvalStatus;
+ data['TimeSeconds'] = this.timeSeconds;
+ data['TotalPendingSeconds'] = this.totalPendingSeconds;
+ data['TimeMinute'] = this.timeMinute;
+ data['TimeHour'] = this.timeHour;
+ data['TimeTotalSeconds'] = this.timeTotalSeconds;
+ data['TimeTotalMinute'] = this.timeTotalMinute;
+ data['TimeTotalHour'] = this.timeTotalHour;
+ data['ApprovalStatus'] = this.approvalStatus;
data['isActive'] = this.isActive;
- data['clickButton'] = this.clickButton;
- data['orderHistory'] = this.orderHistory;
- data['pickupLocation'] = this.pickupLocation;
- data['dropOffLocation'] = this.dropOffLocation;
+ data['ClickButton'] = this.clickButton;
+ data['OrderHistory'] = this.orderHistory;
+ data['PickupLocation'] = this.pickupLocation;
+ data['DropOffLocation'] = this.dropOffLocation;
data['clinicName'] = this.clinicName;
- data['doctorName'] = this.doctorName;
- data['branch'] = this.branch;
- data['time'] = this.time;
- data['notes'] = this.notes;
- data['id'] = this.id;
- data['patientId'] = this.patientId;
- data['patientOutSa'] = this.patientOutSa;
- data['isOutPatient'] = this.isOutPatient;
- data['projectId'] = this.projectId;
- data['nearestProjectId'] = this.nearestProjectId;
- data['longitude'] = this.longitude;
- data['latitude'] = this.latitude;
- data['appointmentNo'] = this.appointmentNo;
- data['dischargeId'] = this.dischargeId;
- data['statusId'] = this.statusId;
- data['serviceId'] = this.serviceId;
- data['channel'] = this.channel;
+ data['DoctorName'] = this.doctorName;
+ data['Branch'] = this.branch;
+ data['Time'] = this.time;
+ data['Notes'] = this.notes;
+ data['ID'] = this.iD;
+ data['PatientId'] = this.patientId;
+ data['PatientOutSa'] = this.patientOutSa;
+ data['IsOutPatient'] = this.isOutPatient;
+ data['ProjectId'] = this.projectId;
+ data['NearestProjectId'] = this.nearestProjectId;
+ data['Longitude'] = this.longitude;
+ data['Latitude'] = this.latitude;
+ data['AppointmentNo'] = this.appointmentNo;
+ data['DischargeId'] = this.dischargeId;
+ data['StatusId'] = this.statusId;
+ data['ServiceId'] = this.serviceId;
+ data['Channel'] = this.channel;
if (this.orderpayment != null) {
data['orderpayment'] = this.orderpayment.toJson();
}
- data['orderselectedservice'] = this.orderselectedservice;
data['wforder'] = this.wforder;
data['orderapprovalobj'] = this.orderapprovalobj;
- data['created'] = this.created;
- data['createdBy'] = this.createdBy;
- data['modified'] = this.modified;
- data['modifiedBy'] = this.modifiedBy;
- data['isDeleted'] = this.isDeleted;
+ data['Created'] = this.created;
+ data['CreatedBy'] = this.createdBy;
+ data['Modified'] = this.modified;
+ data['ModifiedBy'] = this.modifiedBy;
+ data['IsDeleted'] = this.isDeleted;
return data;
}
}
class WFOrder {
- dynamic wfButtonsDTO;
- int id;
- int orderId;
- int previousStep;
- int nextStep;
- int serviceId;
- dynamic order;
+ Null wfButtonsDTO;
+ num iD;
+ num orderId;
+ num previousStep;
+ num nextStep;
+ num serviceId;
+ Null order;
String created;
- dynamic createdBy;
- dynamic modified;
- dynamic modifiedBy;
+ Null createdBy;
+ Null modified;
+ Null modifiedBy;
bool isDeleted;
- WFOrder({this.wfButtonsDTO, this.id, this.orderId, this.previousStep, this.nextStep, this.serviceId, this.order, this.created, this.createdBy, this.modified, this.modifiedBy, this.isDeleted});
+ WFOrder(
+ {this.wfButtonsDTO,
+ this.iD,
+ this.orderId,
+ this.previousStep,
+ this.nextStep,
+ this.serviceId,
+ this.order,
+ this.created,
+ this.createdBy,
+ this.modified,
+ this.modifiedBy,
+ this.isDeleted});
WFOrder.fromJson(Map json) {
wfButtonsDTO = json['wf_ButtonsDTO'];
- id = json['id'];
- orderId = json['orderId'];
- previousStep = json['previousStep'];
- nextStep = json['nextStep'];
- serviceId = json['serviceId'];
- order = json['order'];
- created = json['created'];
- createdBy = json['createdBy'];
- modified = json['modified'];
- modifiedBy = json['modifiedBy'];
- isDeleted = json['isDeleted'];
+ iD = json['ID'];
+ orderId = json['OrderId'];
+ previousStep = json['PreviousStep'];
+ nextStep = json['NextStep'];
+ serviceId = json['ServiceId'];
+ order = json['Order'];
+ created = json['Created'];
+ createdBy = json['CreatedBy'];
+ modified = json['Modified'];
+ modifiedBy = json['ModifiedBy'];
+ isDeleted = json['IsDeleted'];
}
Map toJson() {
final Map data = new Map();
data['wf_ButtonsDTO'] = this.wfButtonsDTO;
- data['id'] = this.id;
- data['orderId'] = this.orderId;
- data['previousStep'] = this.previousStep;
- data['nextStep'] = this.nextStep;
- data['serviceId'] = this.serviceId;
- data['order'] = this.order;
- data['created'] = this.created;
- data['createdBy'] = this.createdBy;
- data['modified'] = this.modified;
- data['modifiedBy'] = this.modifiedBy;
- data['isDeleted'] = this.isDeleted;
+ data['ID'] = this.iD;
+ data['OrderId'] = this.orderId;
+ data['PreviousStep'] = this.previousStep;
+ data['NextStep'] = this.nextStep;
+ data['ServiceId'] = this.serviceId;
+ data['Order'] = this.order;
+ data['Created'] = this.created;
+ data['CreatedBy'] = this.createdBy;
+ data['Modified'] = this.modified;
+ data['ModifiedBy'] = this.modifiedBy;
+ data['IsDeleted'] = this.isDeleted;
return data;
}
}
class Orderpayment {
- int id;
- int orderId;
- dynamic clientRequestId;
- double totalAmount;
- int paymentStatus;
- dynamic order;
+ num iD;
+ num orderId;
+ Null clientRequestId;
+ num totalAmount;
+ num paymentStatus;
+ Null order;
String created;
- dynamic createdBy;
- dynamic modified;
- dynamic modifiedBy;
+ Null createdBy;
+ Null modified;
+ Null modifiedBy;
bool isDeleted;
- Orderpayment({this.id, this.orderId, this.clientRequestId, this.totalAmount, this.paymentStatus, this.order, this.created, this.createdBy, this.modified, this.modifiedBy, this.isDeleted});
+ Orderpayment(
+ {this.iD,
+ this.orderId,
+ this.clientRequestId,
+ this.totalAmount,
+ this.paymentStatus,
+ this.order,
+ this.created,
+ this.createdBy,
+ this.modified,
+ this.modifiedBy,
+ this.isDeleted});
Orderpayment.fromJson(Map json) {
- id = json['id'];
- orderId = json['orderId'];
- clientRequestId = json['clientRequestId'];
- totalAmount = json['totalAmount'];
- paymentStatus = json['paymentStatus'];
- order = json['order'];
- created = json['created'];
- createdBy = json['createdBy'];
- modified = json['modified'];
- modifiedBy = json['modifiedBy'];
- isDeleted = json['isDeleted'];
+ iD = json['ID'];
+ orderId = json['OrderId'];
+ clientRequestId = json['ClientRequestId'];
+ totalAmount = json['TotalAmount'];
+ paymentStatus = json['PaymentStatus'];
+ order = json['Order'];
+ created = json['Created'];
+ createdBy = json['CreatedBy'];
+ modified = json['Modified'];
+ modifiedBy = json['ModifiedBy'];
+ isDeleted = json['IsDeleted'];
}
Map toJson() {
final Map data = new Map();
- data['id'] = this.id;
- data['orderId'] = this.orderId;
- data['clientRequestId'] = this.clientRequestId;
- data['totalAmount'] = this.totalAmount;
- data['paymentStatus'] = this.paymentStatus;
- data['order'] = this.order;
- data['created'] = this.created;
- data['createdBy'] = this.createdBy;
- data['modified'] = this.modified;
- data['modifiedBy'] = this.modifiedBy;
- data['isDeleted'] = this.isDeleted;
+ data['ID'] = this.iD;
+ data['OrderId'] = this.orderId;
+ data['ClientRequestId'] = this.clientRequestId;
+ data['TotalAmount'] = this.totalAmount;
+ data['PaymentStatus'] = this.paymentStatus;
+ data['Order'] = this.order;
+ data['Created'] = this.created;
+ data['CreatedBy'] = this.createdBy;
+ data['Modified'] = this.modified;
+ data['ModifiedBy'] = this.modifiedBy;
+ data['IsDeleted'] = this.isDeleted;
return data;
}
}
diff --git a/lib/core/model/er/PatientER_RC.dart b/lib/core/model/er/PatientER_RC.dart
index ec564128..6abec2d6 100644
--- a/lib/core/model/er/PatientER_RC.dart
+++ b/lib/core/model/er/PatientER_RC.dart
@@ -10,7 +10,7 @@ class PatientER_RC {
String sessionID;
bool isDentalAllowedBackend;
int deviceTypeID;
- String patientID;
+ int patientID;
String tokenID;
int patientTypeID;
int patientType;
diff --git a/lib/core/model/er/get_all_transportation_method_list_model.dart b/lib/core/model/er/get_all_transportation_method_list_model.dart
index 1f0a91c3..530b4f25 100644
--- a/lib/core/model/er/get_all_transportation_method_list_model.dart
+++ b/lib/core/model/er/get_all_transportation_method_list_model.dart
@@ -1,5 +1,5 @@
class PatientERTransportationMethod {
- int id;
+ int iD;
String serviceID;
int orderServiceID;
String text;
@@ -12,7 +12,7 @@ class PatientERTransportationMethod {
int quantity;
PatientERTransportationMethod(
- {this.id,
+ {this.iD,
this.serviceID,
this.orderServiceID,
this.text,
@@ -25,32 +25,32 @@ class PatientERTransportationMethod {
this.quantity});
PatientERTransportationMethod.fromJson(Map json) {
- id = json['id'];
- serviceID = json['serviceID'];
- orderServiceID = json['orderServiceID'];
- text = json['text'];
- textN = json['textN'];
- price = json['price'];
- priceVAT = json['priceVAT'];
- priceTotal = json['priceTotal'];
- isEnabled = json['isEnabled'];
- orderId = json['orderId'];
- quantity = json['quantity'];
+ iD = json['ID'];
+ serviceID = json['ServiceID'];
+ orderServiceID = json['OrderServiceID'];
+ text = json['Text'];
+ textN = json['TextN'];
+ price = json['Price'];
+ priceVAT = json['PriceVAT'];
+ priceTotal = json['PriceTotal'];
+ isEnabled = json['IsEnabled'];
+ orderId = json['OrderId'];
+ quantity = json['Quantity'];
}
Map toJson() {
final Map data = new Map();
- data['id'] = this.id;
- data['serviceID'] = this.serviceID;
- data['orderServiceID'] = this.orderServiceID;
- data['text'] = this.text;
- data['textN'] = this.textN;
- data['price'] = this.price;
- data['priceVAT'] = this.priceVAT;
- data['priceTotal'] = this.priceTotal;
- data['isEnabled'] = this.isEnabled;
- data['orderId'] = this.orderId;
- data['quantity'] = this.quantity;
+ data['ID'] = this.iD;
+ data['ServiceID'] = this.serviceID;
+ data['OrderServiceID'] = this.orderServiceID;
+ data['Text'] = this.text;
+ data['TextN'] = this.textN;
+ data['Price'] = this.price;
+ data['PriceVAT'] = this.priceVAT;
+ data['PriceTotal'] = this.priceTotal;
+ data['IsEnabled'] = this.isEnabled;
+ data['OrderId'] = this.orderId;
+ data['Quantity'] = this.quantity;
return data;
}
}
diff --git a/lib/core/model/packages_offers/responses/PackagesResponseModel.dart b/lib/core/model/packages_offers/responses/PackagesResponseModel.dart
index 7297a20a..23a864f7 100644
--- a/lib/core/model/packages_offers/responses/PackagesResponseModel.dart
+++ b/lib/core/model/packages_offers/responses/PackagesResponseModel.dart
@@ -192,6 +192,8 @@ class PackagesResponseModel with JsonConvert {
List discountIds;
@JSONField(name: "store_ids")
List storeIds;
+ @JSONField(name: "store_names")
+ List storeNames;
@JSONField(name: "manufacturer_ids")
List manufacturerIds;
List reviews;
@@ -207,12 +209,10 @@ class PackagesResponseModel with JsonConvert {
String seName;
String getName() {
- if(localizedNames.length == 2){
- if(localizedNames.first.languageId == 2)
+ if (localizedNames.length == 2) {
+ if (localizedNames.first.languageId == 2)
return localizedNames.first.localizedName ?? name;
-
- else if(localizedNames.first.languageId == 1)
- return localizedNames.last.localizedName ?? name;
+ else if (localizedNames.first.languageId == 1) return localizedNames.last.localizedName ?? name;
}
return name;
}
diff --git a/lib/core/model/pharmacies/Prescriptions.dart b/lib/core/model/pharmacies/Prescriptions.dart
deleted file mode 100644
index 80caff0a..00000000
--- a/lib/core/model/pharmacies/Prescriptions.dart
+++ /dev/null
@@ -1,157 +0,0 @@
-
-
-import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
-
-class Prescriptions {
- String setupID;
- int projectID;
- int patientID;
- int appointmentNo;
- String appointmentDate;
- String doctorName;
- String clinicDescription;
- String name;
- int episodeID;
- int actualDoctorRate;
- int admission;
- int clinicID;
- String companyName;
- String despensedStatus;
- DateTime dischargeDate;
- int dischargeNo;
- int doctorID;
- String doctorImageURL;
- int doctorRate;
- String doctorTitle;
- int gender;
- String genderDescription;
- bool isActiveDoctorProfile;
- bool isDoctorAllowVedioCall;
- bool isExecludeDoctor;
- bool isInOutPatient;
- String isInOutPatientDescription;
- String isInOutPatientDescriptionN;
- bool isInsurancePatient;
- String nationalityFlagURL;
- int noOfPatientsRate;
- String qR;
- List speciality;
-
- Prescriptions(
- {this.setupID,
- this.projectID,
- this.patientID,
- this.appointmentNo,
- this.appointmentDate,
- this.doctorName,
- this.clinicDescription,
- this.name,
- this.episodeID,
- this.actualDoctorRate,
- this.admission,
- this.clinicID,
- this.companyName,
- this.despensedStatus,
- this.dischargeDate,
- this.dischargeNo,
- this.doctorID,
- this.doctorImageURL,
- this.doctorRate,
- this.doctorTitle,
- this.gender,
- this.genderDescription,
- this.isActiveDoctorProfile,
- this.isDoctorAllowVedioCall,
- this.isExecludeDoctor,
- this.isInOutPatient,
- this.isInOutPatientDescription,
- this.isInOutPatientDescriptionN,
- this.isInsurancePatient,
- this.nationalityFlagURL,
- this.noOfPatientsRate,
- this.qR,
- this.speciality});
-
- Prescriptions.fromJson(Map json) {
- setupID = json['SetupID'];
- projectID = json['ProjectID'];
- patientID = json['PatientID'];
- appointmentNo = json['AppointmentNo'];
- appointmentDate = json['AppointmentDate'];
- doctorName = json['DoctorName'];
- clinicDescription = json['ClinicDescription'];
- name = json['Name'];
- episodeID = json['EpisodeID'];
- actualDoctorRate = json['ActualDoctorRate'];
- admission = json['Admission'];
- clinicID = json['ClinicID'];
- companyName = json['CompanyName'];
- despensedStatus = json['Despensed_Status'];
- dischargeDate = DateUtil.convertStringToDate(json['DischargeDate']);
- dischargeNo = json['DischargeNo'];
- doctorID = json['DoctorID'];
- doctorImageURL = json['DoctorImageURL'];
- doctorRate = json['DoctorRate'];
- doctorTitle = json['DoctorTitle'];
- gender = json['Gender'];
- genderDescription = json['GenderDescription'];
- isActiveDoctorProfile = json['IsActiveDoctorProfile'];
- isDoctorAllowVedioCall = json['IsDoctorAllowVedioCall'];
- isExecludeDoctor = json['IsExecludeDoctor'];
- isInOutPatient = json['IsInOutPatient'];
- isInOutPatientDescription = json['IsInOutPatientDescription'];
- isInOutPatientDescriptionN = json['IsInOutPatientDescriptionN'];
- isInsurancePatient = json['IsInsurancePatient'];
- nationalityFlagURL = json['NationalityFlagURL'];
- noOfPatientsRate = json['NoOfPatientsRate'];
- qR = json['QR'];
- // speciality = json['Speciality'].cast();
- }
-
- Map toJson() {
- final Map data = new Map();
- data['SetupID'] = this.setupID;
- data['ProjectID'] = this.projectID;
- data['PatientID'] = this.patientID;
- data['AppointmentNo'] = this.appointmentNo;
- data['AppointmentDate'] = this.appointmentDate;
- data['DoctorName'] = this.doctorName;
- data['ClinicDescription'] = this.clinicDescription;
- data['Name'] = this.name;
- data['EpisodeID'] = this.episodeID;
- data['ActualDoctorRate'] = this.actualDoctorRate;
- data['Admission'] = this.admission;
- data['ClinicID'] = this.clinicID;
- data['CompanyName'] = this.companyName;
- data['Despensed_Status'] = this.despensedStatus;
- data['DischargeDate'] = this.dischargeDate;
- data['DischargeNo'] = this.dischargeNo;
- data['DoctorID'] = this.doctorID;
- data['DoctorImageURL'] = this.doctorImageURL;
- data['DoctorRate'] = this.doctorRate;
- data['DoctorTitle'] = this.doctorTitle;
- data['Gender'] = this.gender;
- data['GenderDescription'] = this.genderDescription;
- data['IsActiveDoctorProfile'] = this.isActiveDoctorProfile;
- data['IsDoctorAllowVedioCall'] = this.isDoctorAllowVedioCall;
- data['IsExecludeDoctor'] = this.isExecludeDoctor;
- data['IsInOutPatient'] = this.isInOutPatient;
- data['IsInOutPatientDescription'] = this.isInOutPatientDescription;
- data['IsInOutPatientDescriptionN'] = this.isInOutPatientDescriptionN;
- data['IsInsurancePatient'] = this.isInsurancePatient;
- data['NationalityFlagURL'] = this.nationalityFlagURL;
- data['NoOfPatientsRate'] = this.noOfPatientsRate;
- data['QR'] = this.qR;
- data['Speciality'] = this.speciality;
- return data;
- }
-}
-
-//class PrescriptionsList {
-// String filterName = "";
-// List prescriptionsList = List();
-//
-// PrescriptionsList({this.filterName, Prescriptions prescriptions}) {
-// prescriptionsList.add(prescriptions);
-// }
-//}
diff --git a/lib/core/model/pharmacies/ShoppingCartResponse.dart b/lib/core/model/pharmacies/ShoppingCartResponse.dart
index 332f63b6..1d90464d 100644
--- a/lib/core/model/pharmacies/ShoppingCartResponse.dart
+++ b/lib/core/model/pharmacies/ShoppingCartResponse.dart
@@ -8,6 +8,7 @@ class ShoppingCartResponse {
double subtotalWithVat;
double subtotalVatAmount;
double subtotalVatRate;
+ double totalAmount;
List shoppingCarts;
ShoppingCartResponse(
@@ -16,7 +17,8 @@ class ShoppingCartResponse {
this.subtotal=0.0,
this.subtotalWithVat = 0.0,
this.subtotalVatAmount = 0.0,
- this.subtotalVatRate = 0.0 ,
+ this.subtotalVatRate = 0.0,
+ this.totalAmount = 0.0,
this.shoppingCarts});
diff --git a/lib/core/model/prescriptions/prescription_info_rc_model.dart b/lib/core/model/prescriptions/prescription_info_rc_model.dart
new file mode 100644
index 00000000..23c4ad55
--- /dev/null
+++ b/lib/core/model/prescriptions/prescription_info_rc_model.dart
@@ -0,0 +1,52 @@
+class PrescriptionInfoRCModel {
+ String itemDescription;
+ String image;
+ String sKU;
+ dynamic productId;
+ dynamic productName;
+ int quantity;
+ int orderId;
+ int totalPrice;
+ int dispenseQuantity;
+ dynamic itemhand;
+
+ PrescriptionInfoRCModel(
+ {this.itemDescription,
+ this.image,
+ this.sKU,
+ this.productId,
+ this.productName,
+ this.quantity,
+ this.orderId,
+ this.totalPrice,
+ this.dispenseQuantity,
+ this.itemhand});
+
+ PrescriptionInfoRCModel.fromJson(Map json) {
+ itemDescription = json['ItemDescription'];
+ image = json['image'];
+ sKU = json['SKU'];
+ productId = json['ProductId'];
+ productName = json['ProductName'];
+ quantity = json['Quantity'];
+ orderId = json['OrderId'];
+ totalPrice = json['TotalPrice'];
+ dispenseQuantity = json['DispenseQuantity'];
+ itemhand = json['itemhand'];
+ }
+
+ Map toJson() {
+ final Map data = new Map();
+ data['ItemDescription'] = this.itemDescription;
+ data['image'] = this.image;
+ data['SKU'] = this.sKU;
+ data['ProductId'] = this.productId;
+ data['ProductName'] = this.productName;
+ data['Quantity'] = this.quantity;
+ data['OrderId'] = this.orderId;
+ data['TotalPrice'] = this.totalPrice;
+ data['DispenseQuantity'] = this.dispenseQuantity;
+ data['itemhand'] = this.itemhand;
+ return data;
+ }
+}
diff --git a/lib/core/service/AlHabibMedicalService/cmc_service.dart b/lib/core/service/AlHabibMedicalService/cmc_service.dart
index 7fc23cc9..c6c2d82f 100644
--- a/lib/core/service/AlHabibMedicalService/cmc_service.dart
+++ b/lib/core/service/AlHabibMedicalService/cmc_service.dart
@@ -28,7 +28,7 @@ class CMCService extends BaseService {
hasError = false;
// RC IMPLEMENTATION
- await baseAppClient.post(GET_ALL_CMC_SERVICES_RC + "?patientID=" + user.patientID.toString(), isAllowAny: true, onSuccess: (dynamic response, int statusCode) {
+ await baseAppClient.post(GET_ALL_CMC_SERVICES_RC + "?patientID=" + user.patientID.toString(), isRCService: true, isAllowAny: true, onSuccess: (dynamic response, int statusCode) {
cmcAllServicesList.clear();
response['response'].forEach((data) {
cmcAllServicesList.add(GetCMCServicesResponseModel.fromJson(data));
@@ -67,7 +67,7 @@ class CMCService extends BaseService {
Future getCmcAllPresOrdersRC() async {
GetHHCAllPresOrdersRequestModel getHHCAllPresOrdersRequestModel = GetHHCAllPresOrdersRequestModel();
hasError = false;
- await baseAppClient.post(GET_ALL_CMC_ORDERS_RC, onSuccess: (dynamic response, int statusCode) {
+ await baseAppClient.post(GET_ALL_CMC_ORDERS_RC, isRCService: true, onSuccess: (dynamic response, int statusCode) {
cmcAllPresOrdersList.clear();
cmcAllOrderDetail.clear();
@@ -122,7 +122,7 @@ class CMCService extends BaseService {
Future updateCmcPresOrderRC(UpdatePresOrderRequestModel updatePresOrderRequestModel) async {
hasError = false;
- await baseAppClient.post(UPDATE_CMC_ORDER_RC, onSuccess: (dynamic response, int statusCode) {
+ await baseAppClient.post(UPDATE_CMC_ORDER_RC, isRCService: true, onSuccess: (dynamic response, int statusCode) {
isOrderUpdated = true;
}, onFailure: (String error, int statusCode) {
hasError = true;
@@ -133,7 +133,7 @@ class CMCService extends BaseService {
Future insertCMCOrderRC({CMCInsertPresOrderRequestModel order}) async {
hasError = false;
String reqId = "";
- await baseAppClient.post(ADD_CMC_ORDER_RC, onSuccess: (dynamic response, int statusCode) {
+ await baseAppClient.post(ADD_CMC_ORDER_RC, isRCService: true, onSuccess: (dynamic response, int statusCode) {
isOrderUpdated = true;
reqId = response['response'].toString();
}, onFailure: (String error, int statusCode) {
diff --git a/lib/core/service/AlHabibMedicalService/home_health_care_service.dart b/lib/core/service/AlHabibMedicalService/home_health_care_service.dart
index cd90dae5..99220b07 100644
--- a/lib/core/service/AlHabibMedicalService/home_health_care_service.dart
+++ b/lib/core/service/AlHabibMedicalService/home_health_care_service.dart
@@ -38,7 +38,7 @@ class HomeHealthCareService extends BaseService {
Future getHHCAllServicesRC(HHCGetAllServicesRequestModel hHCGetAllServicesRequestModel) async {
hasError = false;
- await baseAppClient.post(HHC_GET_ALL_SERVICES_RC + "?PatientID=" + user.patientID.toString(), onSuccess: (dynamic response, int statusCode) {
+ await baseAppClient.post(HHC_GET_ALL_SERVICES_RC + "?PatientID=" + user.patientID.toString(), isRCService: true, onSuccess: (dynamic response, int statusCode) {
hhcAllServicesList.clear();
response['response'].forEach((data) {
hhcAllServicesList.add(HHCGetAllServicesResponseModel.fromJson(data));
@@ -52,7 +52,7 @@ class HomeHealthCareService extends BaseService {
Future getHHCAllPresOrdersRC() async {
GetHHCAllPresOrdersRequestModel getHHCAllPresOrdersRequestModel = GetHHCAllPresOrdersRequestModel();
hasError = false;
- await baseAppClient.post(GET_ALL_HHC_ORDERS_RC, onSuccess: (dynamic response, int statusCode) {
+ await baseAppClient.post(GET_ALL_HHC_ORDERS_RC, isRCService: true, onSuccess: (dynamic response, int statusCode) {
hhcAllPresOrdersList.clear();
hhcAllOrderDetail.clear();
response['response'].forEach((data) {
@@ -106,7 +106,7 @@ class HomeHealthCareService extends BaseService {
Future updateHHCPresOrderRC(UpdatePresOrderRequestModel updatePresOrderRequestModel) async {
hasError = false;
- await baseAppClient.post(UPDATE_HHC_ORDER_RC, onSuccess: (dynamic response, int statusCode) {
+ await baseAppClient.post(UPDATE_HHC_ORDER_RC, isRCService: true, onSuccess: (dynamic response, int statusCode) {
isOrderUpdated = true;
}, onFailure: (String error, int statusCode) {
hasError = true;
@@ -127,7 +127,7 @@ class HomeHealthCareService extends BaseService {
Future insertHHCOrderRC({PatientERInsertPresOrderRequestModel order}) async {
hasError = false;
- await baseAppClient.post(ADD_HHC_ORDER_RC, onSuccess: (dynamic response, int statusCode) {
+ await baseAppClient.post(ADD_HHC_ORDER_RC, isRCService: true, onSuccess: (dynamic response, int statusCode) {
hhcResponse = response;
requestNo = response["response"];
}, onFailure: (String error, int statusCode) {
diff --git a/lib/core/service/blood/blood_donation_service.dart b/lib/core/service/blood/blood_donation_service.dart
index 0128d0d1..a59a2169 100644
--- a/lib/core/service/blood/blood_donation_service.dart
+++ b/lib/core/service/blood/blood_donation_service.dart
@@ -10,13 +10,13 @@ class BloodDonationService extends BaseService {
List CitiesModelList = List();
Map body = Map();
+
Future getAllCitiesOrders() async {
hasError = false;
body['ListCities'] = false;
- await baseAppClient.post(GET_CITIES_REQUEST,
- onSuccess: (dynamic response, int statusCode) {
+ body["IsPublicRequest"] = true;
+ await baseAppClient.post(GET_CITIES_REQUEST, onSuccess: (dynamic response, int statusCode) {
CitiesModelList.clear();
-
response['ListCities'].forEach((vital) {
CitiesModelList.add(CitiesModel.fromJson(vital));
});
@@ -25,16 +25,16 @@ class BloodDonationService extends BaseService {
super.error = error;
}, body: body);
}
+
Future bloodDonationSave(request) async {
var localRes;
try {
- await baseAppClient.post(SAVE_BLOOD_REQUEST,
- onSuccess: (dynamic response, int statusCode) {
- localRes = response;
- }, onFailure: (String error, int statusCode) {
- localRes = error;
- return Future.value(error);
- }, body: request);
+ await baseAppClient.post(SAVE_BLOOD_REQUEST, onSuccess: (dynamic response, int statusCode) {
+ localRes = response;
+ }, onFailure: (String error, int statusCode) {
+ localRes = error;
+ return Future.value(error);
+ }, body: request);
return Future.value(localRes);
} catch (error) {
throw error;
@@ -44,30 +44,27 @@ class BloodDonationService extends BaseService {
Future getAgreement() async {
var localRes;
try {
- await baseAppClient.post(GET_BLOOD_AGREEMENT,
- onSuccess: (dynamic response, int statusCode) {
- localRes = response;
- }, onFailure: (String error, int statusCode) {
- localRes = error;
- return Future.value(error);
- }, body: {});
+ await baseAppClient.post(GET_BLOOD_AGREEMENT, onSuccess: (dynamic response, int statusCode) {
+ localRes = response;
+ }, onFailure: (String error, int statusCode) {
+ localRes = error;
+ return Future.value(error);
+ }, body: {});
return Future.value(localRes);
} catch (error) {
throw error;
}
}
-
Future saveAgreement(request) async {
var localRes;
try {
- await baseAppClient.post(SAVE_BLOOD_AGREEMENT,
- onSuccess: (dynamic response, int statusCode) {
- localRes = response;
- }, onFailure: (String error, int statusCode) {
- localRes = error;
- return Future.value(error);
- }, body: request);
+ await baseAppClient.post(SAVE_BLOOD_AGREEMENT, onSuccess: (dynamic response, int statusCode) {
+ localRes = response;
+ }, onFailure: (String error, int statusCode) {
+ localRes = error;
+ return Future.value(error);
+ }, body: request);
return Future.value(localRes);
} catch (error) {
throw error;
diff --git a/lib/core/service/client/base_app_client.dart b/lib/core/service/client/base_app_client.dart
index 19c8eac2..1f6ca580 100644
--- a/lib/core/service/client/base_app_client.dart
+++ b/lib/core/service/client/base_app_client.dart
@@ -35,12 +35,20 @@ VitalSignService _vitalSignService = locator();
class BaseAppClient {
post(String endPoint,
- {Map body, Function(dynamic response, int statusCode) onSuccess, Function(String error, int statusCode) onFailure, bool isAllowAny = false, bool isExternal = false}) async {
+ {Map body,
+ Function(dynamic response, int statusCode) onSuccess,
+ Function(String error, int statusCode) onFailure,
+ bool isAllowAny = false,
+ bool isExternal = false,
+ bool isRCService = false}) async {
String url;
if (isExternal) {
url = endPoint;
} else {
- url = BASE_URL + endPoint;
+ if (isRCService)
+ url = RC_BASE_URL + endPoint;
+ else
+ url = BASE_URL + endPoint;
}
try {
//Map profile = await sharedPref.getObj(DOCTOR_PROFILE);
@@ -116,7 +124,7 @@ class BaseAppClient {
// body['IdentificationNo'] = 1009199553;
// body['MobileNo'] = "966545156035";
- // body['PatientID'] = 1018977;
+ // body['PatientID'] = 1018977; //3844083
// body['TokenID'] = "@dm!n";
body.removeWhere((key, value) => key == null || value == null);
@@ -376,12 +384,20 @@ class BaseAppClient {
Navigator.pushReplacement(context, FadePage(page: AppUpdatePage(appUpdateText: text)));
}
- get(String endPoint, {Function(dynamic response, int statusCode) onSuccess, Function(String error, int statusCode) onFailure, Map queryParams, bool isExternal = false}) async {
+ get(String endPoint,
+ {Function(dynamic response, int statusCode) onSuccess,
+ Function(String error, int statusCode) onFailure,
+ Map queryParams,
+ bool isExternal = false,
+ bool isRCService = false}) async {
String url;
if (isExternal) {
url = endPoint;
} else {
- url = BASE_URL + endPoint;
+ if (isRCService)
+ url = RC_BASE_URL + endPoint;
+ else
+ url = BASE_URL + endPoint;
}
if (queryParams != null) {
String queryString = Uri(queryParameters: queryParams).query;
@@ -465,7 +481,7 @@ class BaseAppClient {
simplePost(
String fullUrl, {
- Map body,
+ Map body,
Map headers,
Function(dynamic response, int statusCode) onSuccess,
Function(String error, int statusCode) onFailure,
@@ -480,7 +496,6 @@ class BaseAppClient {
body: json.encode(body),
headers: headers,
);
-
final int statusCode = response.statusCode;
print("statusCode :$statusCode");
if (await handleUnauthorized(statusCode, forUrl: fullUrl)) simplePost(fullUrl, onFailure: onFailure, onSuccess: onSuccess, body: body, headers: headers);
@@ -498,7 +513,6 @@ class BaseAppClient {
simpleGet(String fullUrl,
{Function(dynamic response, int statusCode) onSuccess, Function(String error, int statusCode) onFailure, Map queryParams, Map headers}) async {
String url = fullUrl;
- print("URL Query String: $url");
var haveParams = (queryParams != null);
if (haveParams) {
@@ -690,6 +704,7 @@ class BaseAppClient {
body['PatientTypeID'] = body.containsKey('PatientTypeID')
? body['PatientTypeID'] != null
+
? body['PatientTypeID']
: user['PatientType'] != null
? user['PatientType']
@@ -724,7 +739,7 @@ class BaseAppClient {
print("statusCode :$statusCode");
if (statusCode < 200 || statusCode >= 400 || json == null) {
var parsed = json.decode(utf8.decode(response.bodyBytes));
- onFailure(parsed['error']['ErrorEndUserMsg'] ?? 'Error While Fetching data', statusCode);
+ onFailure(parsed['error']['ErrorEndUserMsgN'] ?? 'Error While Fetching data', statusCode);
} else {
// var parsed = json.decode(response.body.toString());
var parsed = json.decode(utf8.decode(response.bodyBytes));
diff --git a/lib/core/service/er/am_service.dart b/lib/core/service/er/am_service.dart
index 9c66d373..a76ae73a 100644
--- a/lib/core/service/er/am_service.dart
+++ b/lib/core/service/er/am_service.dart
@@ -28,9 +28,9 @@ class AmService extends BaseService {
Map body = Map();
body['isDentalAllowedBackend'] = false;
body['IdentificationNo'] = user.patientIdentificationNo;
- await baseAppClient.get(GET_ALL_TRANSPORTATIONS_RC + "?patientID=" + user.patientID.toString(), isExternal: false, onSuccess: (dynamic response, int statusCode) {
+ await baseAppClient.get(GET_ALL_TRANSPORTATIONS_RC + "?patientID=" + user.patientID.toString(), isRCService: true, isExternal: false, onSuccess: (dynamic response, int statusCode) {
amModelList.clear();
- response['data']['transportationservices'].forEach((item) {
+ response['response']['transportationservices'].forEach((item) {
amModelList.add(PatientERTransportationMethod.fromJson(item));
});
}, onFailure: (String error, int statusCode) {
@@ -69,18 +69,18 @@ class AmService extends BaseService {
pickUpRequestPresOrder = null;
Map body = Map();
- body['patientId'] = patientID.toString();
- body['PatientID'] = patientID.toString();
+ body['patientId'] = patientID;
+ body['PatientID'] = patientID;
- await baseAppClient.post(GET_ALL_TRANSPORTATIONS_ORDERS, onSuccess: (dynamic response, int statusCode) {
+ await baseAppClient.post(GET_ALL_TRANSPORTATIONS_ORDERS, isRCService: true, onSuccess: (dynamic response, int statusCode) {
patientAmbulanceRequestOrdersList.clear();
hasPendingOrder = false;
pendingOrderID = 0;
pendingAmbulanceRequestOrder = null;
- response['data'].forEach((item) {
+ response['response'].forEach((item) {
patientAmbulanceRequestOrdersList.add(AmbulanceRequestOrdersModel.fromJson(item));
- if (item['statusId'] == 1) {
+ if (item['StatusId'] == 1) {
hasPendingOrder = true;
pendingOrderID = item['orderpayment']['id'];
pendingOrderStatus = item['statusText'];
@@ -127,14 +127,14 @@ class AmService extends BaseService {
}, body: body);
}
- Future updatePressOrderRC({@required int presOrderID, @required String patientID}) async {
+ Future updatePressOrderRC({@required int presOrderID, @required int patientID}) async {
hasError = false;
Map body = Map();
body['Id'] = presOrderID;
body['StatusId'] = 6;
body['ClickButton'] = 14;
body['PatientID'] = patientID;
- await baseAppClient.post(CANCEL_AMBULANCE_REQUEST, onSuccess: (dynamic response, int statusCode) {}, onFailure: (String error, int statusCode) {
+ await baseAppClient.post(CANCEL_AMBULANCE_REQUEST, isRCService: true, onSuccess: (dynamic response, int statusCode) {}, onFailure: (String error, int statusCode) {
hasError = true;
super.error = error;
}, body: body);
@@ -146,7 +146,7 @@ class AmService extends BaseService {
var body = patientER.toJson();
print(body);
- await baseAppClient.post(INSERT_TRANSPORTATION_ORDER_RC, onSuccess: (dynamic response, int statusCode) {}, onFailure: (String error, int statusCode) {
+ await baseAppClient.post(INSERT_TRANSPORTATION_ORDER_RC, isRCService: true, onSuccess: (dynamic response, int statusCode) {}, onFailure: (String error, int statusCode) {
hasError = true;
super.error = error;
}, body: body);
diff --git a/lib/core/service/hospital_service.dart b/lib/core/service/hospital_service.dart
index b9e970e1..46bc95f9 100644
--- a/lib/core/service/hospital_service.dart
+++ b/lib/core/service/hospital_service.dart
@@ -1,4 +1,5 @@
import 'package:diplomaticquarterapp/config/config.dart';
+import 'package:diplomaticquarterapp/config/shared_pref_kay.dart';
import 'package:diplomaticquarterapp/core/model/hospitals/hospitals_model.dart';
import 'package:diplomaticquarterapp/core/service/base_service.dart';
import 'package:geolocator/geolocator.dart';
@@ -25,8 +26,8 @@ class HospitalService extends BaseService {
if(isResBasedOnLoc)
await _getCurrentLocation();
Map body = Map();
- body['Latitude'] = isResBasedOnLoc?_latitude:0;
- body['Longitude'] = isResBasedOnLoc?_longitude:0;
+ body['Latitude'] = await this.sharedPref.getDouble(USER_LAT);
+ body['Longitude'] = await this.sharedPref.getDouble(USER_LONG);
body['IsOnlineCheckIn'] = isResBasedOnLoc;
body['PatientOutSA'] = 0;
diff --git a/lib/core/service/medical/my_balance_service.dart b/lib/core/service/medical/my_balance_service.dart
index fd6b5180..283eac4b 100644
--- a/lib/core/service/medical/my_balance_service.dart
+++ b/lib/core/service/medical/my_balance_service.dart
@@ -28,7 +28,7 @@ class MyBalanceService extends BaseService {
locator();
MyBalanceService() {
- getFamilyFiles();
+ // getFamilyFiles();
}
getPatientAdvanceBalanceAmount() async {
diff --git a/lib/core/service/medical/prescriptions_service.dart b/lib/core/service/medical/prescriptions_service.dart
index 48c4f1bf..0a7d9e68 100644
--- a/lib/core/service/medical/prescriptions_service.dart
+++ b/lib/core/service/medical/prescriptions_service.dart
@@ -3,6 +3,7 @@ import 'package:diplomaticquarterapp/config/shared_pref_kay.dart';
import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/ComprehensiveMedicalCheckup/GetCMCAllOrdersResponseModel.dart';
import 'package:diplomaticquarterapp/core/model/prescriptions/Prescriptions.dart';
import 'package:diplomaticquarterapp/core/model/prescriptions/perscription_pharmacy.dart';
+import 'package:diplomaticquarterapp/core/model/prescriptions/prescription_info_rc_model.dart';
import 'package:diplomaticquarterapp/core/model/prescriptions/prescription_report.dart';
import 'package:diplomaticquarterapp/core/model/prescriptions/prescription_report_enh.dart';
import 'package:diplomaticquarterapp/core/model/prescriptions/prescription_report_inp.dart';
@@ -18,6 +19,7 @@ class PrescriptionsService extends BaseService {
List prescriptionsList = List();
List prescriptionReportListINP = List();
List prescriptionsOrderList = List();
+ List prescriptionsOrderListRC = List();
var isMedDeliveryAllowed;
Future getPrescriptions() async {
@@ -49,6 +51,20 @@ class PrescriptionsService extends BaseService {
}, body: body);
}
+ Future getPrescriptionsInfoRC(int orderID, dynamic patientID) async {
+ prescriptionsOrderListRC.clear();
+ Map body = Map();
+ body['ID'] = orderID;
+ await baseAppClient.post(GET_ALL_PRESCRIPTION_INFO_RC + "?PatientId=" + patientID.toString(), onSuccess: (dynamic response, int statusCode) {
+ response['response']['report'].forEach((prescriptionsOrder) {
+ prescriptionsOrderListRC.add(PrescriptionInfoRCModel.fromJson(prescriptionsOrder));
+ });
+ }, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: body);
+ }
+
Future getPrescriptionsOrdersRC() async {
prescriptionsOrderList.clear();
Map body = Map();
@@ -162,7 +178,6 @@ class PrescriptionsService extends BaseService {
List prescriptionReportEnhList = List();
Future getPrescriptionReportEnh({PrescriptionsOrder prescriptionsOrder}) async {
- ///This logic copy from the old app from class [order-history.component.ts] in line 45
bool isInPatient = false;
prescriptionsList.forEach((element) {
if (prescriptionsOrder.appointmentNo == "0") {
@@ -184,8 +199,6 @@ class PrescriptionsService extends BaseService {
_requestPrescriptionReportEnh.setupID = element.setupID;
_requestPrescriptionReportEnh.dischargeNo = element.dischargeNo;
isInPatient = element.isInOutPatient;
-
- ///call inpGetPrescriptionReport
}
}
});
@@ -212,6 +225,18 @@ class PrescriptionsService extends BaseService {
}, body: _requestPrescriptionReportEnh.toJson());
}
+ Future updatePressOrderRC({@required int presOrderID}) async {
+ hasError = false;
+ Map body = Map();
+ body['Id'] = presOrderID;
+ body['StatusId'] = 6;
+ body['ClickButton'] = 14;
+ await baseAppClient.post(UPDATE_PRESCRIPTION_ORDER_RC, onSuccess: (dynamic response, int statusCode) {}, onFailure: (String error, int statusCode) {
+ hasError = true;
+ super.error = error;
+ }, body: body);
+ }
+
Future updatePressOrder({@required int presOrderID}) async {
hasError = false;
Map body = Map();
diff --git a/lib/core/service/packages_offers/PackagesOffersServices.dart b/lib/core/service/packages_offers/PackagesOffersServices.dart
index d05bc274..ae5396a7 100644
--- a/lib/core/service/packages_offers/PackagesOffersServices.dart
+++ b/lib/core/service/packages_offers/PackagesOffersServices.dart
@@ -4,6 +4,7 @@ import 'dart:developer';
import 'package:diplomaticquarterapp/config/config.dart';
import 'package:diplomaticquarterapp/config/shared_pref_kay.dart';
import 'package:diplomaticquarterapp/core/model/ResponseModel.dart';
+import 'package:diplomaticquarterapp/core/model/hospitals/hospitals_model.dart';
import 'package:diplomaticquarterapp/core/model/packages_offers/requests/AddProductToCartRequestModel.dart';
import 'package:diplomaticquarterapp/core/model/packages_offers/requests/CreateCustomerRequestModel.dart';
import 'package:diplomaticquarterapp/core/model/packages_offers/requests/OffersCategoriesRequestModel.dart';
@@ -15,13 +16,12 @@ import 'package:diplomaticquarterapp/core/model/packages_offers/responses/Packag
import 'package:diplomaticquarterapp/core/model/packages_offers/responses/order_response_model.dart';
import 'package:diplomaticquarterapp/core/model/packages_offers/responses/tamara_payment_option.dart';
import 'package:diplomaticquarterapp/core/service/base_service.dart';
-import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
import 'package:diplomaticquarterapp/models/Authentication/authenticated_user.dart';
import 'package:diplomaticquarterapp/uitl/gif_loader_dialog_utils.dart';
-import 'package:diplomaticquarterapp/uitl/utils.dart';
import 'package:flutter/cupertino.dart';
-var packagesAuthHeader = {'Authorization' : ''};
+Map packagesAuthHeader = {};
+
class OffersAndPackagesServices extends BaseService {
AuthenticatedUser patientUser;
List categoryList = List();
@@ -31,9 +31,10 @@ class OffersAndPackagesServices extends BaseService {
List bestSellerList = List();
List bannersList = List();
List cartItemList = List();
+ List _hospitals = List();
+ List get hospitals => _hospitals;
String cartItemCount = "";
-
PackagesCustomerResponseModel customer;
Future> getAllCategories(OffersCategoriesRequestModel request) async {
@@ -47,8 +48,7 @@ class OffersAndPackagesServices extends BaseService {
categoryList.add(PackagesCategoriesResponseModel().fromJson(json));
});
}
- }, onFailure: (String error, int statusCode) {
- }, queryParams: request.toFlatMap());
+ }, onFailure: (String error, int statusCode) {}, queryParams: request.toFlatMap());
return categoryList;
}
@@ -57,7 +57,7 @@ class OffersAndPackagesServices extends BaseService {
Future errorThrow;
request.sinceId = (productList.isNotEmpty) ? productList.last.id : 0;
-
+
productList = List();
var url = EXA_CART_API_BASE_URL + PACKAGES_PRODUCTS;
await baseAppClient.simpleGet(url, headers: packagesAuthHeader, onSuccess: (dynamic stringResponse, int statusCode) {
@@ -67,15 +67,13 @@ class OffersAndPackagesServices extends BaseService {
productList.add(PackagesResponseModel().fromJson(json));
});
}
- }, onFailure: (String error, int statusCode) {
- }, queryParams: request.toFlatMap());
+ }, onFailure: (String error, int statusCode) {}, queryParams: request.toFlatMap());
return productList;
}
Future> getTamaraOptions({@required BuildContext context, @required bool showLoading = true}) async {
- if(tamaraPaymentOptions != null && tamaraPaymentOptions.isNotEmpty)
- return tamaraPaymentOptions;
+ if (tamaraPaymentOptions != null && tamaraPaymentOptions.isNotEmpty) return tamaraPaymentOptions;
var url = EXA_CART_API_BASE_URL + PACKAGES_TAMARA_OPT;
await baseAppClient.simpleGet(url, headers: packagesAuthHeader, onSuccess: (dynamic stringResponse, int statusCode) {
@@ -93,9 +91,9 @@ class OffersAndPackagesServices extends BaseService {
}
Future> getLatestOffers({@required OffersProductsRequestModel request, @required BuildContext context, @required bool showLoading = true}) async {
-
var url = EXA_CART_API_BASE_URL + PACKAGES_PRODUCTS;
await baseAppClient.simpleGet(url, headers: packagesAuthHeader, onSuccess: (dynamic stringResponse, int statusCode) {
+ latestOffersList.clear();
if (statusCode == 200) {
var jsonResponse = json.decode(stringResponse);
jsonResponse['products'].forEach((json) {
@@ -110,9 +108,9 @@ class OffersAndPackagesServices extends BaseService {
}
Future> getBestSellers({@required OffersProductsRequestModel request, @required BuildContext context, @required bool showLoading = true}) async {
-
var url = EXA_CART_API_BASE_URL + PACKAGES_PRODUCTS;
await baseAppClient.simpleGet(url, headers: packagesAuthHeader, onSuccess: (dynamic stringResponse, int statusCode) {
+ bestSellerList.clear();
if (statusCode == 200) {
var jsonResponse = json.decode(stringResponse);
jsonResponse['products'].forEach((json) {
@@ -126,7 +124,6 @@ class OffersAndPackagesServices extends BaseService {
return bestSellerList;
}
-
Future> getBanners({@required OffersProductsRequestModel request, @required BuildContext context, @required bool showLoading = true}) async {
var url = EXA_CART_API_BASE_URL + PACKAGES_PRODUCTS;
await baseAppClient.simpleGet(url, headers: packagesAuthHeader, onSuccess: (dynamic stringResponse, int statusCode) {
@@ -143,15 +140,13 @@ class OffersAndPackagesServices extends BaseService {
return bannersList;
}
- Future loadOffersPackagesDataForMainPage({@required BuildContext context, bool showLoading = true, Function completion }) async {
+ Future loadOffersPackagesDataForMainPage({@required BuildContext context, bool showLoading = true, Function completion}) async {
var finished = 0;
- var totalCalls = 3;
-
-
- completedAll(){
+ var totalCalls = 2;
+ completedAll() {
finished++;
- if(completion != null && finished == totalCalls) {
+ if (completion != null && finished == totalCalls) {
_hideLoading(context, showLoading);
completion();
}
@@ -160,57 +155,56 @@ class OffersAndPackagesServices extends BaseService {
_showLoading(context, showLoading);
final auth_token = await baseAppClient.generatePackagesToken();
- if(auth_token == null){
+ if (auth_token == null) {
throw 'Something went wrong while authentication, Please try again letter';
}
packagesAuthHeader["Authorization"] = 'Bearer $auth_token';
-
// Check and Create Customer
- if(patientUser != null){
+ if (patientUser != null) {
customer = await getCurrentCustomer(context: context, showLoading: showLoading);
- if(customer == null){
+ if (customer == null) {
createCustomer(PackagesCustomerRequestModel.fromUser(patientUser), context: context);
}
}
// Performing Parallel Request on same time
// # 1
- getBestSellers(request: OffersProductsRequestModel(), context: context, showLoading: false).then((value){
- completedAll();
+ getBestSellers(request: OffersProductsRequestModel(), context: context, showLoading: false).then((value) {
+ completedAll();
});
// # 2
- getLatestOffers(request: OffersProductsRequestModel(), context: context, showLoading: false).then((value){
+ getLatestOffers(request: OffersProductsRequestModel(), context: context, showLoading: false).then((value) {
completedAll();
});
// # 3
- getBanners(request: OffersProductsRequestModel(), context: context, showLoading: false).then((value){
- completedAll();
- });
-
+ // getBanners(
+ // request: OffersProductsRequestModel(),
+ // context: context,
+ // showLoading: false)
+ // .then((value) {
+ // completedAll();
+ // });
}
// --------------------
// Create Customer
// --------------------
- Future createCustomer(PackagesCustomerRequestModel request, {@required BuildContext context, bool showLoading = true, Function(bool) completion }) async{
- if(customer != null)
- return Future.value(customer);
+ Future createCustomer(PackagesCustomerRequestModel request, {@required BuildContext context, bool showLoading = true, Function(bool) completion}) async {
+ if (customer != null) return Future.value(customer);
customer = null;
Future errorThrow;
_showLoading(context, showLoading);
var url = EXA_CART_API_BASE_URL + PACKAGES_CUSTOMER;
- await baseAppClient.simplePost(url, headers: packagesAuthHeader, body: request.json(), onSuccess: (dynamic stringResponse, int statusCode){
-
+ await baseAppClient.simplePost(url, headers: packagesAuthHeader, body: request.json(), onSuccess: (dynamic stringResponse, int statusCode) {
var jsonResponse = json.decode(stringResponse);
var customerJson = jsonResponse['customers'].first;
customer = PackagesCustomerResponseModel.fromJson(customerJson);
-
- }, onFailure: (String error, int statusCode){
+ }, onFailure: (String error, int statusCode) {
errorThrow = Future.error(error);
log(error);
});
@@ -221,37 +215,33 @@ class OffersAndPackagesServices extends BaseService {
return errorThrow ?? customer;
}
- Future getCurrentCustomer({@required BuildContext context, bool showLoading = true}) async{
- if(customer != null)
- return Future.value(customer);
+ Future getCurrentCustomer({@required BuildContext context, bool showLoading = true}) async {
+ if (customer != null) return Future.value(customer);
_showLoading(context, showLoading);
var url = EXA_CART_API_BASE_URL + PACKAGES_CUSTOMER + "/username/${patientUser.patientID}";
- await baseAppClient.simpleGet(url, headers: packagesAuthHeader, onSuccess: (dynamic stringResponse, int statusCode){
+ await baseAppClient.simpleGet(url, headers: packagesAuthHeader, onSuccess: (dynamic stringResponse, int statusCode) {
var jsonResponse = json.decode(stringResponse);
var customerJson = jsonResponse['customers'].first;
customer = PackagesCustomerResponseModel.fromJson(customerJson);
-
- }, onFailure: (String error, int statusCode){
+ }, onFailure: (String error, int statusCode) {
log(error);
});
_hideLoading(context, showLoading);
- return customer;
+ return customer;
}
-
-
// --------------------
// Shopping Cart
// --------------------
- Future