public UnitOfWork(IPatientRepository patients, IBranchRepository branches, IEventRepository events, ILookUpRepository lookUps, IUserRepository users, ITreatmentRepository treatments, IAddressRepository addresses, IContactRepository contacts, ICountryRepository countries, ICityRepository cities, IClinicRepository clinics, IRoomRepository rooms, AppDbContext smartClinic360DbContext) { Patients = patients; Branches = branches; Events = events; LookUps = lookUps; Users = users; Treatments = treatments; Addresses = addresses; Contacts = contacts; Countries = countries; Cities = cities; Clinics = clinics; Rooms = rooms; }
public HospitalController( ILogger <HospitalController> logger, List <DoctorCabin> doctorcabins, WaitingRoom waitingroom, IConfiguration configuration, List <DoctorsModel> doctorsmodels, IHubContext <NotificationHub, INotificationHub> notify, IConfiguration config, IPatientRepository patientRepository, IDoctorRepository doctorRepository, IWebHostEnvironment hostEnvironment, FewaDbContext fewaDbContext) { FewaDbContext = fewaDbContext; _patientRepository = patientRepository; _doctorsmodels = doctorsmodels; Configuration = configuration; _logger = logger; _doctorcabins = doctorcabins; _waitingroom = waitingroom; _doctorRepository = doctorRepository; idletime = Convert.ToInt32(configuration["IdleTime"]); _notify = notify; _config = config; _hostingEnvironment = hostEnvironment; }
public PatientService(IPatientRepository patientRepository, IAppointmentRepository appointmentRepository, IScheduleRepository scheduleRepository) { this._patientRepo = patientRepository; this._appointmentRepo = appointmentRepository; this._scheduleRepo = scheduleRepository; }
public PatientNoteController(IUserRepository userRepo, IPatientNoteRepository patientNoteRepository, IPatientRepository patientRepository, IModelValidator <PatientNoteModel> validator) { _userRepository = userRepo; _patientNoteRepository = patientNoteRepository; _patientRepository = patientRepository; _validatorRepository = validator; }
public void SetUp() { _repository = Substitute.For<IPatientRepository>(); _securityService = Substitute.For<ISecurityService>(); _securityService.IsInRole("Admin").Returns(true); _service = new PatientService(_repository, _securityService); }
public ReportsController(IPatientRepository patientRepository, IVisitRepository visitRepository, IQueryRepository queryRepository) { this.patientRepository = patientRepository; this.visitRepository = visitRepository; this.queryRepository = queryRepository; }
public PatientController( IPatientRepository patientRepository, ILogger <PatientController> logger) { this.patientRepository = patientRepository; _logger = logger; }
public LoginService(RepositoryFactory repositoryFactory) { _doctorFileRepository = repositoryFactory.GetDoctorRepository(); _managerFileRepository = repositoryFactory.GetManagerRepository(); _patientFileRepository = repositoryFactory.GetPatientRepository(); _secretaryFileRepository = repositoryFactory.GetSecretaryRepository(); }
public InternalDatabase(IPatientRepository patientRepository, IDocumentRepository documentRepository, IIndexingService indexingService, IConfigurationService configurationService) { this.patientRepository = patientRepository; this.documentRepository = documentRepository; this.indexingService = indexingService; this.configurationService = configurationService; }
public PatientImagesController(IimagesRepository _imageRepository, IPatientRepository _patientRepository, IAppointmentRepository _appointmentRepository, ISessionStateManger _sessionStateManger) { imageRepository = _imageRepository; patientRepository = _patientRepository; appointmentRepository = _appointmentRepository; sessionStateManger = _sessionStateManger; }
public PatientServiceTest() { patientRepository = Substitute.For<IPatientRepository>(); unitOfWork = Substitute.For<IUnitOfWork>(); validatorService = Substitute.For<IValidatorService>(); patientService = new PatientService(patientRepository, unitOfWork, validatorService); }
public PracticeController( ILogger <PracticeController> logger, List <ProviderCabin> providerCabins, WaitingRoom waitingroom, IConfiguration configuration, List <Provider> providers, IHubContext <NotificationHub, INotificationHub> notify, IConfiguration config, IPatientRepository patientRepository, IProviderRepository providerRepository, IWebHostEnvironment hostEnvironment, FewaDbContext fewaDbContext, IHttpContextAccessor HttpContextAccessor) { FewaDbContext = fewaDbContext; _patientRepository = patientRepository; _providers = providers; Configuration = configuration; _logger = logger; _providerCabins = providerCabins; _waitingroom = waitingroom; _providerRepository = providerRepository; idletime = Convert.ToInt32(configuration["IdleTime"]); _notify = notify; _config = config; accessor = HttpContextAccessor; _hostingEnvironment = hostEnvironment; }
public PatientService(IPatientRepository patientRepository, IMapper mapper, IMessageSession messageSession, LinkGenerator linkGenerator, IConfiguration configuration) { _patientRepository = patientRepository; _mapper = mapper; _configuration = configuration; _messageSession = messageSession; }
public IPatientRepository GetRepository(IDataDomainRequest request, RepositoryType type) { IPatientRepository repo = null; switch (type) { case RepositoryType.Patient: { repo = new MongoPatientRepository(request.ContractNumber) as IPatientRepository; break; } case RepositoryType.CohortPatientView: { repo = new MongoCohortPatientViewRepository(request.ContractNumber) { Utils = new DTOUtils() } as IPatientRepository; break; } case RepositoryType.PatientUser: { repo = new MongoPatientUserRepository(request.ContractNumber) as IPatientRepository; break; } } repo.UserId = request.UserId; return(repo); }
public AuthService(IUserRepository userRepository, IPatientRepository patientRepository, IJwtHandler jwtHandler) { _userRepository = userRepository; _patientRepository = patientRepository; _jwtHandler = jwtHandler; }
public CalendarController(IDoctorRepository _doctorRepository, IAppointmentRepository _appointmentRepository, IPatientRepository _patientRepository, ISessionStateManger _sessionStateManger) { doctorRepository = _doctorRepository; appointmentRepository = _appointmentRepository; patientRepository = _patientRepository; sessionStateManger = _sessionStateManger; }
public ChatHub(IPhysicianRepository physicianRepository, IPatientRepository patientRepository, IMessageRepository messageRepository, INotificationRepository notificationRepository) { _physicianRepository = physicianRepository; _patientRepository = patientRepository; _messageRepository = messageRepository; _notificationRepository = notificationRepository; }
public NotificationRepository(ICSVStream <Notification> stream, ISequencer <long> sequencer, IPatientRepository patientRepository, IDoctorRepository doctorRepository, IManagerRepository managerRepository, ISecretaryRepository secretaryRepository) : base(ENTITY_NAME, stream, sequencer, new LongIdGeneratorStrategy <Notification>()) { _patientRepository = patientRepository; _doctorRepository = doctorRepository; _managerRepository = managerRepository; _secretaryRepository = secretaryRepository; }
public CompanionController() { _companionRepository = new CompanionRepository(); _companionManagmentRepository = new CompanionManagmentRepository(); _patientManagmentRepository = new PatientManagmentRepository(); _patientRepository = new PatientRepository(); }
public DietRepository(ApplicationDbContext ctx, IMapper mapper, IPatientRepository patientRepository, ILogger <DietRepository> logger) { _ctx = ctx; _mapper = mapper; _patientRepository = patientRepository; _logger = logger; }
public PatientsController(IPatientRepository patientRepository, IHostingEnvironment hostingEnvironment, IEmployeeRepository employeeRepository, IAccountRepository accountRepository) { _patientRepository = patientRepository; this.hostingEnvironment = hostingEnvironment; _employeeRepository = employeeRepository; _accountRepository = accountRepository; }
public AppointmentController(IAppointmentRepository apprepo, IPatientRepository patientrepo, IDoctorRepository doctorrepo, ITechnicianRepository techrepo) { _apprepo = apprepo; _patientrepo = patientrepo; _doctorrepo = doctorrepo; _techrepo = techrepo; }
public SelectionActionPageViewModel(INavigationService navigationService, IPatientRepository patientRepository, IActionRepository actionRepository) : base(navigationService) { this.navigationService = navigationService; this.patientRepository = patientRepository; this.actionRepository = actionRepository; }
public List <PatientData> GetPatients(DTO.GetPatientsDataRequest request) { IPatientRepository repo = Factory.GetRepository(request, RepositoryType.Patient); List <PatientData> response = repo.Select(request.PatientIds); return(response); }
public PatientsController(UserManager <ApplicationUser> userManager, IUnitOfWork unitOfWork, IProfile profile, IPatientRepository patient) { this.userManager = userManager; _unitOfWork = unitOfWork; _patient = patient; _profile = profile; }
public ChartController( IApplicationUserRepository applicationUserRepository, IPatientRepository patientRepository ) { _applicationUserRepository = applicationUserRepository; _patientRepository = patientRepository; }
public ProfileService(IDoctorRepository doctorRepository, IPatientRepository patientRepository, ISpecialityRepository specialityRepository) { this._doctorRepository = doctorRepository; this._patientRepository = patientRepository; this._specialityRepository = specialityRepository; }
public PatientResponsiblePageViewModel(INavigationService navigationService, IResponsibleRepository responsibleRepository, IPatientRepository patientRepository) : base(navigationService) { this.navigationService = navigationService; this.responsibleRepository = responsibleRepository; this.patientRepository = patientRepository; }
public HospitalizationRepository(ICSVStream <Hospitalization> stream, ISequencer <long> sequencer, IRoomRepository roomRepository, IPatientRepository patientRepository, IDoctorRepository doctorRepository) : base(stream, sequencer) { _patientRepository = patientRepository; _roomRepository = roomRepository; _doctorRepository = doctorRepository; }
public PatientService(IPatientRepository patientRepository, IUnitOfWork uow, ILogger <PatientService> logger) { _patientRepository = patientRepository; _uow = uow; _logger = logger; }
/// <summary> /// Initializes a new instance of the <see cref="CheckUp"/> class. /// </summary> public CheckUp() { InitializeComponent(); _prescriptionRepo = new PrescriptionRepository(); _prescriptionDetailRepo = new PrescriptionDetailRepository(); _patientRepo = new PatientRepository(); }
public ObservationCreatedHandler( IClinicalNoteRepository clinicalNotes, IPatientRepository patients) { this.ClinicalNotes = clinicalNotes; this.Patients = patients; }
public int updatePatient() { updateAddress(); IPatientRepository patientRepository = ((IPatientRepository)repositoryFactory.getRepository("PATIENT")); return(patientRepository.addPatient(patient)); }
public PatientPresenter(IRegistraionView view, IPatientRepository repository) { _view = view; view.Presenter = this; _repository = repository; UpdateCustomerListView(); }
public PatientService(IPatientRepository patientRepository, IUnitOfWork unitOfWork, IValidatorService validatorService) { _patientRepository = patientRepository; _unitOfWork = unitOfWork; _validatorService = validatorService; _patientValidatorFunc = p => !string.IsNullOrEmpty(p.Firstname) && !string.IsNullOrEmpty(p.Surname); }
public Bll() { _departmentRepository = new DepartmentRepository(); _doctorRepository = new DoctorRepository(); _patientRepository = new PatientRepository(); _ticketRepository = new TicketRepository(); _rangeRepository = new RangeRepository(); }
/// <summary> /// Initializes a new instance of the <see cref="PatientRegister"/> class. /// </summary> public PatientRegister(Patient patient) { InitializeComponent(); this.Patient = patient; this.bdsPatient.DataSource = Patient; this._isAddNew = false; this._patientRepository = new PatientRepository(); }
public PatientController(IUserRepository userRepository, IPatientRepository patientRepository, IDemographicFormDataRepository demographicFormDataRepository, IClinicalStudyDesignFactory clinicalStudyDesignFactory) { this.userRepository = userRepository; this.patientRepository = patientRepository; this.demographicFormDataRepository = demographicFormDataRepository; this.clinicalStudyDesignFactory = clinicalStudyDesignFactory; }
public HomeController() { if (ConfigurationManager.AppSettings["Schema"].Equals("EAV", StringComparison.CurrentCultureIgnoreCase)) { Repository = new MHGR.EAVModels.PatientRepository(); } else { Repository = new MHGR.HybridModels.PatientRepository(); } }
public AnalyticsController(IPatientRepository patientRepository, IVisitRepository visitRepository, IDemographicFormDataRepository dfdRepository, IHappinessFormDataRepository hfdRepository, IAdverseEventFormDataRepository aefdRepository, IQueryRepository queryRepository) { this.patientRepository = patientRepository; this.visitRepository = visitRepository; this.dfdRepository = dfdRepository; this.hfdRepository = hfdRepository; this.aefdRepository = aefdRepository; this.queryRepository = queryRepository; }
public MainWindowViewModel(IAppController appController, IPatientRepository patientRepository) { _appController = appController; _patientRepository = patientRepository; AddWorkspace = new RelayCommand(param => { var ws = _appController.GetWorkspace(); ws.CloseView += OnWorkspaceClose; _workspaces.Add(ws); }); _workspaces = new ObservableCollection<IWorkspace>(); Workspaces = CollectionViewSource.GetDefaultView(_workspaces); }
public HospitalRegistrationsService(IEmptyPlaceStatisticRepository emptyPlaceStatisticRepository, IHospitalSectionProfileRepository hospitalSectionProfileRepository, ITokenManager tokenManager, IHospitalUserRepository hospitalUserRepository, IEmptyPlaceByTypeStatisticRepository emptyPlaceByTypeStatisticRepository, IReservationRepository reservationRepository, IUserRepository userRepository, IMessageRepository messageRepository, IPatientRepository patientRepository, IHospitalManager hospitalManager, IReservationFileRepository reservationFileRepository, IHospitalUserSectionAccessRepository hospitalUserSectionAccessRepository) { _emptyPlaceStatisticRepository = emptyPlaceStatisticRepository; _hospitalSectionProfileRepository = hospitalSectionProfileRepository; _tokenManager = tokenManager; _hospitalUserRepository = hospitalUserRepository; _emptyPlaceByTypeStatisticRepository = emptyPlaceByTypeStatisticRepository; _reservationRepository = reservationRepository; _userRepository = userRepository; _messageRepository = messageRepository; _patientRepository = patientRepository; this._hospitalManager = hospitalManager; _reservationFileRepository = reservationFileRepository; this._hospitalUserSectionAccessRepository = hospitalUserSectionAccessRepository; }
/// <summary> /// Default constructor with dependencies /// </summary> /// <param name="repository">Patient Repository interface dependency</param> /// <param name="unitOfWork">UnitOfWork interface dependency</param> public PatientService(IPatientRepository repository, IUnitOfWork unitOfWork) { _repository = repository; _unitOfWork = unitOfWork; }
public PatientStore(IPatientRepository patientRepository) { _patientRepository = this.GetOrThrowArgumentNullException(patientRepository, "patientRepository"); }
public PatientManager(IUnitOfWork iu) { this.repo = iu.getPatientRepository(); }
public EFMedicineUnitOfWork() { _patientRepository = new EFPatientRepository(_dbContext); _patientHistoryRepository = new EFPatientHistoryRepository(_dbContext); }
/// <summary> /// Initializes a new instance of the <see cref="PatientController" /> class. /// </summary> /// <param name="patientRepository">Instance of the patient repository</param> public PatientController(IPatientRepository patientRepository) { _patientRepository = patientRepository; }
public ManagementService(IEntityRepository entityRepository, IPatientRepository patientRepository) { _entityRepository = entityRepository; _patientRepository = patientRepository; }
public PatientService(IPatientRepository patientRepository) { _patientRepository = patientRepository; }
/// <summary> /// Initializes a new instance of the <see cref="PatientFactory"/> class. /// </summary> /// <param name="patientRepository">The patient repository.</param> /// <param name="patientUniqueIdentifierCalculator">The patient unique identifier calculator.</param> public PatientFactory( IPatientRepository patientRepository, IPatientUniqueIdentifierGenerator patientUniqueIdentifierCalculator ) { _patientRepository = patientRepository; _patientUniqueIdentifierCalculator = patientUniqueIdentifierCalculator; }
/// <summary> /// Default constructor that initializes the patient repository /// </summary> public DashboardController() { _patientRepository = new PatientRepository(); }
public SearchService() { _physicianRepository = DI.CreatePhysicanRepository(); _patientRepository = DI.CreatePatientRepository(); _generalRepository = DI.CreateGeneralrepository(); }
public PatientNotesController(IPatientRepository repo) { _repo = repo; }
public PatientService(IUnitOfWork unitOfWork, IPatientRepository patientRepository) { _unitOfWork = unitOfWork; _patientRepository = patientRepository; }
/// <summary> /// Default constructor with dependencies /// </summary> /// <param name="repository">Experiment Repository interface dependency</param> /// <param name="unitOfWork">UnitOfWork interface dependency</param> public ExperimentService(IExperimentRepository repository, IUnitOfWork unitOfWork, IPatientRepository patientRepository) { _experimentRepository = repository; _unitOfWork = unitOfWork; _patientRepository = patientRepository; }
public PatientService(IPatientRepository patientRepository, ISecurityService securityService) { _patientRepository = patientRepository; _securityService = securityService; }
public PatientController() { _patientRepository = new PatientRepository(); _addressRepository = new AddressRepository(); }
public PatientController(IPatientRepository repository) { this._repository = repository; }
public PatientRegistrationService(IPatientRepository patientRepository) { this._patientRepository = patientRepository; }