import 'package:doctor_app_flutter/config/config.dart';
import 'package:doctor_app_flutter/root_page.dart';
import 'package:doctor_app_flutter/screens/medical-file/medical_file_page.dart';
import 'package:doctor_app_flutter/screens/patients/ECGPage.dart';
import 'package:doctor_app_flutter/screens/patients/insurance_approval_screen_patient.dart';
import 'package:doctor_app_flutter/screens/patients/profile/UCAF/UCAF-detail-screen.dart';
import 'package:doctor_app_flutter/screens/patients/profile/UCAF/UCAF-input-screen.dart';
import 'package:doctor_app_flutter/screens/patients/profile/insurance_approvals_screen.dart';
import 'package:doctor_app_flutter/screens/patients/profile/lab_result/labs_home_page.dart';
import 'package:doctor_app_flutter/screens/patients/profile/patient_orders_screen.dart';
import 'package:doctor_app_flutter/screens/patients/profile/progress_note_screen.dart';
import 'package:doctor_app_flutter/screens/patients/profile/radiology/radiology_home_page.dart';
import 'package:doctor_app_flutter/screens/patients/profile/refer_patient_screen.dart';

import 'package:doctor_app_flutter/screens/patients/profile/prescriptions/in_patient_prescription_details_screen.dart';
import 'package:doctor_app_flutter/screens/live_care/video_call.dart';
import 'package:doctor_app_flutter/screens/prescription/prescription_screen_history.dart';
import 'package:doctor_app_flutter/screens/prescription/prescriptions_page.dart';
import 'package:doctor_app_flutter/screens/sick-leave/add-sickleave.dart';
import 'package:doctor_app_flutter/screens/sick-leave/show-sickleave.dart';
import 'package:doctor_app_flutter/screens/sick-leave/sick_leave.dart';
import 'package:doctor_app_flutter/screens/procedures/procedure_screen.dart';
import 'package:doctor_app_flutter/widgets/patients/profile/soap_update/update_soap_index.dart';

import './screens/QR_reader_screen.dart';
import './screens/auth/change_password_screen.dart';
import './screens/auth/login_screen.dart';
import './screens/auth/verification_methods_screen.dart';
import './screens/auth/verify_account_screen.dart';
import './screens/blood_bank_screen.dart';
import './screens/dashboard_screen.dart';
import './screens/doctor/message_screen.dart';
import './screens/doctor/my_schedule_screen.dart';
import './screens/doctor/services_screen.dart';
import './screens/medicine/medicine_search_screen.dart';
import './screens/medicine/pharmacies_list_screen.dart';
import './screens/patients/patient_search_screen.dart';
import './screens/patients/patients_referred_screen.dart';
import './screens/patients/patients_screen.dart';
import './screens/patients/profile/insurance_approvals_screen.dart';
import './screens/patients/profile/lab_result/lab_orders_screen.dart';
import './screens/patients/profile/patient_orders_screen.dart';
import './screens/patients/profile/patient_profile_screen.dart';
import './screens/patients/profile/prescriptions/prescriptions_screen.dart';
import './screens/patients/profile/progress_note_screen.dart';
import './screens/patients/profile/radiology/radiology_screen.dart';
import './screens/patients/profile/vital_sign/vital_sign_details_screen.dart';
import './screens/patients/profile/vital_sign/vital_sign_item_details_screen.dart';
import './screens/profile_screen.dart';
import './screens/settings/settings_screen.dart';
import 'landing_page.dart';
import 'screens/doctor/doctor_reply_screen.dart';
import 'screens/live_care/panding_list.dart';
import 'screens/patients/profile/admission-request/admission-request-detail-screen.dart';
import 'screens/patients/profile/admission-request/admission-request-first-screen.dart';
import 'screens/patients/profile/admission-request/admission-request-third-screen.dart';
import 'screens/patients/profile/admission-request/admission-request_second-screen.dart';
import 'screens/patients/profile/referral/my-referral-detail-screen.dart';
import 'screens/patients/profile/referral/refer-patient-screen.dart';
import 'screens/prescription/prescription_screen.dart';
import 'screens/patients/profile/vital_sign/vital-signs-screen.dart';

const String INIT_ROUTE = ROOT;
const String ROOT = 'root';
const String HOME = '/';
const String LOGIN = 'login';
const String PROFILE = 'profile';
const String CHANGE_PASSWORD = 'change-password';
const String VERIFY_ACCOUNT = 'verify-account';
const String VERIFICATION_METHODS = 'verification-methods';
const String MY_SCHEDULE = 'my-schedule';
const String QR_READER = 'qr-reader';
const String PATIENT_SEARCH = 'patients/patient-search';
const String PATIENTS = 'patients/patients';
const String PATIENTS_PROFILE = 'patients/patients-profile';
const String PATIENTS_REFERRED = 'patients/patients-referred';
const String BLOOD_BANK = 'blood-bank';
const String DOCTOR_REPLY = 'doctor-reply';
const String MEDICINE_SEARCH = 'medicine/medicine-search';
const String PHARMACIES_LIST = 'medicine/pharmacies-list';
const String MESSAGES = 'messages';
const String SERVICES = 'services';
const String SETTINGS = 'settings';
const String VITAL_SIGN = 'patients/vital-sign';
const String LAB_ORDERS = 'patients/lab_orders';
const String LAB_RESULT = 'patients/lab_result';
const String PRESCRIPTIONS = 'patients/prescription';
const String MEDICAL_FILE = 'patients/radiology';
const String PROGRESS_NOTE = 'patients/progress-note';
const String REFER_PATIENT = 'patients/refer-patient';
const String MY_REFERRAL_DETAIL = 'my_referral_detail';
const String REFER_PATIENT_TO_DOCTOR = 'patients/refer-to-doctor';
const String PATIENT_ORDERS = 'patients/patient_orders';
const String PATIENT_INSURANCE_APPROVALS = 'patients/patient_insurance_approvals';
const String PATIENT_INSURANCE_APPROVALS_NEW = 'patients/patient_insurance_approvals_new';
const String VITAL_SIGN_DETAILS = 'patients/vital-sign-details';
const String PATIENT_VITAL_SIGN = 'patients/vital-sign-data';
const String CREATE_EPISODE = 'patients/create-episode';
const String UPDATE_EPISODE = 'patients/update-episode';
const String PATIENT_ADMISSION_REQUEST = 'patients/admission-request';
const String PATIENT_ADMISSION_REQUEST_2 = 'patients/admission-request-second';
const String PATIENT_ADMISSION_REQUEST_3 = 'patients/admission-request-third';
const String PATIENT_UCAF_REQUEST = 'patients/ucaf';
const String PATIENT_UCAF_DETAIL = 'patients/ucaf/detail';
const String PATIENT_ECG = 'patients/ecg';

const String BODY_MEASUREMENTS = 'patients/body-measurements';
const String IN_PATIENT_PRESCRIPTIONS_DETAILS = 'patients/prescription-details';
// const String VIDEO_CALL = 'video-call';
const String LIVECARE_PENDING_LIST = 'livecare-pendinglist';
const String ORDER_PRESCRIPTION = 'prescription/prescriptionsss';
const String ORDER_PRESCRIPTION_NEW = 'prescription/prescription_new';
const String ORDER_PRESCRIPTION_HISTORY = 'prescription/prescriptionsssH';
const String ORDER_PROCEDURE = 'procedure/procedure';
// const String LIVECARE_END_DIALOG = 'video-call/EndCallDialogBox';
const String PATIENT_SICKLEAVE = 'patients/patient_sickleave';
const String ADD_SICKLEAVE = 'add-sickleave';
const String SHOW_SICKLEAVE = 'show-sickleave';
const String RADIOLOGY = 'radiology';
const String RADIOLOGY_PATIENT = 'radiology-patient';
//todo: change the routing way.
var routes = {
  ROOT: (_) => RootPage(),
  HOME: (_) => LandingPage(),
  LOGIN: (_) => Loginsreen(),
  PROFILE: (_) => ProfileScreen(),
  MY_SCHEDULE: (_) => MyScheduleScreen(),
  PATIENT_SEARCH: (_) => PatientSearchScreen(),
  PATIENTS_REFERRED: (_) => PatientReferredScreen(),
  PATIENTS: (_) => PatientsScreen(),
  QR_READER: (_) => QrReaderScreen(),
  BLOOD_BANK: (_) => BloodBankScreen(),
  DOCTOR_REPLY: (_) => DoctorReplyScreen(),
  MEDICINE_SEARCH: (_) => MedicineSearchScreen(),
  SETTINGS: (_) => SettingsScreen(),
  CHANGE_PASSWORD: (_) => ChangePasswordScreen(),
  VERIFY_ACCOUNT: (_) => VerifyAccountScreen(),
  VERIFICATION_METHODS: (_) => VerificationMethodsScreen(),
  PATIENTS_PROFILE: (_) => PatientProfileScreen(),
  PHARMACIES_LIST: (_) => PharmaciesListScreen(
        itemID: null,
      ),
  MESSAGES: (_) => MessagesScreen(),
  SERVICES: (_) => ServicesScreen(),
  LAB_ORDERS: (_) => LabOrdersScreen(),
  LAB_RESULT: (_) => LabsHomePage(),
  PRESCRIPTIONS: (_) => PrescriptionScreen(),
  MEDICAL_FILE: (_) => MedicalFilePage(),
  PROGRESS_NOTE: (_) => ProgressNoteScreen(),
  REFER_PATIENT: (_) => ReferPatientScreen(),
  REFER_PATIENT_TO_DOCTOR: (_) => PatientMakeReferralScreen(),
  PATIENT_ORDERS: (_) => PatientsOrdersScreen(),
  PATIENT_INSURANCE_APPROVALS: (_) => InsuranceApprovalsScreen(),
  PATIENT_INSURANCE_APPROVALS_NEW: (_) => InsuranceApprovalScreenNew(),
  VITAL_SIGN_DETAILS: (_) => VitalSignDetailsScreen(),
  PATIENT_VITAL_SIGN: (_) => PatientVitalSignScreen(),
  RADIOLOGY: (_) => RadiologyScreen(),
  RADIOLOGY_PATIENT: (_) => RadiologyHomePage(),
  PATIENT_ADMISSION_REQUEST: (_) => AdmissionRequestFirstScreen(),
  PATIENT_ADMISSION_REQUEST_2: (_) => AdmissionRequestSecondScreen(),
  PATIENT_ADMISSION_REQUEST_3: (_) => AdmissionRequestThirdScreen(),
  // PATIENT_ADMISSION_REQUEST: (_) => AdmissionRequestDetailScreen(),
  CREATE_EPISODE: (_) => UpdateSoapIndex(
        isUpdate: true,
      ),
  UPDATE_EPISODE: (_) => UpdateSoapIndex(
        isUpdate: true,
      ),
  BODY_MEASUREMENTS: (_) => VitalSignItemDetailsScreen(),
  IN_PATIENT_PRESCRIPTIONS_DETAILS: (_) => InpatientPrescriptionDetailsScreen(),
  // VIDEO_CALL: (_) => VideoCallPage(patientData: null),
  LIVECARE_PENDING_LIST: (_) => LiveCarePandingListScreen(),
  // LIVECARE_END_DIALOG: (_) => EndCallDialogBox(),
  PATIENT_SICKLEAVE: (_) => SickLeaveScreen(),
  ADD_SICKLEAVE: (_) => AddSickLeavScreen(),
  SHOW_SICKLEAVE: (_) => ShowSickLeaveScreen(),
  ORDER_PRESCRIPTION: (_) => NewPrescriptionScreen(),
  ORDER_PRESCRIPTION_NEW: (_) => PrescriptionsPage(),
  ORDER_PRESCRIPTION_HISTORY: (_) => NewPrescriptionHistoryScreen(),
  ORDER_PROCEDURE: (_) => ProcedureScreen(),

  // LIVECARE_END_DIALOG: (_) => EndCallDialogBox()
  MY_REFERRAL_DETAIL: (_) => MyReferralDetailScreen(),
  PATIENT_UCAF_REQUEST: (_) => UCAFInputScreen(),
  PATIENT_UCAF_DETAIL: (_) => UcafDetailScreen(),
  PATIENT_ECG: (_) => ECGPage(),
};
