Beispiel #1
0
        private void LoadServices()
        {
            // HospitalManagementService
            doctorStatisticsService    = new DoctorStatisticsService(doctorStatisticRepository);
            inventoryStatisticsService = new InventoryStatisticsService(inventoryStatisticRepository);
            roomStatisticsService      = new RoomStatisticsService(roomStatisticRepository);
            hospitalService            = new HospitalService(hospitalRepository);
            inventoryService           = new InventoryService(inventoryRepository, inventoryItemRepository, medicineRepository);
            roomService     = new RoomService(roomRepository, appointmentRepository);
            medicineService = new MedicineService(medicineRepository);

            // MedicineService
            diagnosisService     = new DiagnosisService(diagnosisRepository);
            diseaseService       = new DiseaseService(diseaseRepository);
            medicalRecordService = new MedicalRecordService(medicalRecordRepository);
            therapyService       = new TherapyService(therapyRepository, medicalRecordService);

            // MiscService
            articleService        = new ArticleService(articleRepository);
            doctorFeedbackService = new DoctorFeedbackService(doctorFeedbackRepository);

            feedbackService               = new FeedbackService(feedbackRepository, questionRepository, userRepository);
            locationService               = new LocationService(locationRepository);
            messageService                = new MessageService(messageRepository);
            notificationService           = new NotificationService(notificationRepository);
            appointmentNotificationSender = new AppointmentNotificationSender(notificationService);
            appointmentService            = new AppointmentService(appointmentRepository, appointmentStrategy, appointmentNotificationSender);
            pharmacyApiKeyService         = new PharmacyApiKeyService(pharmacyApiKeyRepository);

            // UsersService
            doctorService    = new DoctorService(doctorRepository, userRepository, appointmentService);
            managerService   = new ManagerService(managerRepository);
            patientService   = new PatientService(patientRepository, medicalRecordRepository);
            secretaryService = new SecretaryService(secretaryRepository);
            userService      = new UserService(userRepository);

            appointmentRecommendationService = new AppointmentRecommendationService(appointmentService, doctorService);
        }
 public InventoryStatisticsController(InventoryStatisticsService inventoryStatisticsService)
 {
     _inventoryStatisticsService = inventoryStatisticsService;
 }