|
|
|
import 'package:doctor_app_flutter/core/service/dasboard_service.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/service/patient_service.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/service/prescription_service.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/service/procedure_service.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/service/sickleave_service.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/dashboard_view_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/patient_view_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/prescription_view_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/procedure_View_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/sick_leave_view_model.dart';
|
|
|
|
import 'package:get_it/get_it.dart';
|
|
|
|
|
|
|
|
import 'core/service/SOAP_service.dart';
|
|
|
|
import 'core/service/doctor_reply_service.dart';
|
|
|
|
import 'core/service/medicine_service.dart';
|
|
|
|
import 'core/service/patient-vital-signs-service.dart';
|
|
|
|
import 'core/service/patient-doctor-referral-service.dart';
|
|
|
|
import 'core/service/referral_patient_service.dart';
|
|
|
|
import 'core/service/referred_patient_service.dart';
|
|
|
|
import 'core/service/schedule_service.dart';
|
|
|
|
import 'core/viewModel/SOAP_view_model.dart';
|
|
|
|
import 'core/viewModel/doctor_replay_view_model.dart';
|
|
|
|
import 'core/viewModel/medicine_view_model.dart';
|
|
|
|
import 'core/viewModel/patient-vital-sign-viewmodel.dart';
|
|
|
|
import 'core/viewModel/patient-referral-viewmodel.dart';
|
|
|
|
import 'core/viewModel/referral_view_model.dart';
|
|
|
|
import 'core/viewModel/referred_view_model.dart';
|
|
|
|
import 'core/viewModel/schedule_view_model.dart';
|
|
|
|
|
|
|
|
GetIt locator = GetIt.instance;
|
|
|
|
|
|
|
|
///di
|
|
|
|
void setupLocator() {
|
|
|
|
/// Services
|
|
|
|
locator.registerLazySingleton(() => DoctorReplyService());
|
|
|
|
locator.registerLazySingleton(() => ScheduleService());
|
|
|
|
locator.registerLazySingleton(() => ReferralPatientService());
|
|
|
|
locator.registerLazySingleton(() => ReferredPatientService());
|
|
|
|
locator.registerLazySingleton(() => MedicineService());
|
|
|
|
locator.registerLazySingleton(() => PatientService());
|
|
|
|
locator.registerLazySingleton(() => DashboardService());
|
|
|
|
locator.registerLazySingleton(() => SickLeaveService());
|
|
|
|
locator.registerLazySingleton(() => SOAPService());
|
|
|
|
locator.registerLazySingleton(() => PatientReferralService());
|
|
|
|
locator.registerLazySingleton(() => PrescriptionService());
|
|
|
|
locator.registerLazySingleton(() => ProcedureService());
|
|
|
|
locator.registerLazySingleton(() => VitalSignsService());
|
|
|
|
|
|
|
|
/// View Model
|
|
|
|
locator.registerFactory(() => DoctorReplayViewModel());
|
|
|
|
locator.registerFactory(() => ScheduleViewModel());
|
|
|
|
locator.registerFactory(() => ReferralPatientViewModel());
|
|
|
|
locator.registerFactory(() => ReferredPatientViewModel());
|
|
|
|
locator.registerFactory(() => MedicineViewModel());
|
|
|
|
locator.registerFactory(() => PatientViewModel());
|
|
|
|
locator.registerFactory(() => DashboardViewModel());
|
|
|
|
locator.registerFactory(() => SickLeaveViewModel());
|
|
|
|
locator.registerFactory(() => SOAPViewModel());
|
|
|
|
locator.registerFactory(() => PatientReferralViewModel());
|
|
|
|
locator.registerFactory(() => PrescriptionViewModel());
|
|
|
|
locator.registerFactory(() => ProcedureViewModel());
|
|
|
|
locator.registerFactory(() => VitalSignsViewModel());
|
|
|
|
}
|