Exemple #1
0
 public MedicalRecordRepository(Stream <MedicalRecord> stream, IDiagnosisRepository diagnosisRepository, IMedicationRepository medicationRepository, IUserRepository userRepository) :
     base(stream, "Medical record")
 {
     illnessesRepository = diagnosisRepository;
     therapyRepository   = medicationRepository;
     patientRepository   = userRepository;
 }
Exemple #2
0
 public MedicationController(ApplicationDbContext dbContext, IHostingEnvironment hostingEnvironment, UserManager <ApplicationUser> userManager, IMedicationRepository medicationRepository)
 {
     context = dbContext;
     this.hostingEnvironment = hostingEnvironment;
     this.userManager        = userManager;
     _medicationRepository   = medicationRepository;
 }
 public HealthService(
     IPatientRepository patientRepository,
     IAilmentRepository ailmentRepository,
     IMedicationRepository medicationRepository)
 {
     _medicationRepository = medicationRepository;
     _ailmentRepository    = ailmentRepository;
     _patientRepository    = patientRepository;
 }
 public ReportService(IReportRepository reportRepository, ITreatmentRepository treatmentRepository,
                      IMedicationRepository medicationRepository, IExaminationSurgeryRepository examinationSurgeryRepository,
                      IRoomRepository roomRepository)
 {
     this.reportRepository             = reportRepository;
     this.treatmentRepository          = treatmentRepository;
     this.medicationRepository         = medicationRepository;
     this.examinationSurgeryRepository = examinationSurgeryRepository;
     this.roomRepository = roomRepository;
 }
 public SyncMedicationPollingAgent(IMedicationRepository medicationRepository, IMedicareApiService medicareApiService, ISettings setting,
                                   ILogManager logManager)
 {
     _medicationRepository = medicationRepository;
     _medicareApiService   = medicareApiService;
     _setting           = setting;
     _logger            = logManager.GetLogger("SyncMedicationPollingAgent");
     _isDevEnvironment  = setting.IsDevEnvironment;
     _modifiedByService = new OrganizationRoleUser(1);
 }
 public MedicationService(IOrganizationRoleUserRepository organizationRoleUserRepository, IMedicationUploadRepository medicationUploadRepository,
                          IMedicationRepository medicationRepository, IMedicationFactory medicationFactory, ISyncMedicationPollingAgent syncMedicationPollingAgent, ILogManager logger)
 {
     _organizationRoleUserRepository = organizationRoleUserRepository;
     _medicationUploadRepository     = medicationUploadRepository;
     _medicationRepository           = medicationRepository;
     _medicationFactory          = medicationFactory;
     _syncMedicationPollingAgent = syncMedicationPollingAgent;
     _logger = logger.GetLogger("MedicationService");
 }
Exemple #7
0
 public VisitationManagementService(IVisitationRepository visitationRepository,
                                    IMedicationRepository medicationRepository,
                                    ITreatmentRepository treatmentRepository,
                                    ITestRepository testRepository)
 {
     _visitationRepository = visitationRepository;
     _medicationRepository = medicationRepository;
     _treatmentRepository  = treatmentRepository;
     _testRepository       = testRepository;
 }
 public AdminViewModel()
 {
     _productRepository = new ProductRepository();
     _categoryRepository = new CategoryRepository();
     _locationRepository = new LocationRepository();
     _serviceRepository = new ServiceRepository();
     _allergyRepository = new AllergyRepository();
     _immunizationRepository = new ImmunizationRepository();
     _medicationRepository = new MedicationRepository();
     _templateRepository = new TemplateRepository();
 }
Exemple #9
0
 public AdminViewModel()
 {
     _productRepository      = new ProductRepository();
     _categoryRepository     = new CategoryRepository();
     _locationRepository     = new LocationRepository();
     _serviceRepository      = new ServiceRepository();
     _allergyRepository      = new AllergyRepository();
     _immunizationRepository = new ImmunizationRepository();
     _medicationRepository   = new MedicationRepository();
     _templateRepository     = new TemplateRepository();
 }
 public BillingManagementService(IVisitationRepository visitationRepository,
                                 ITreatmentRepository treatmentRepository,
                                 ITestRepository testRepository,
                                 IDoctorRepository doctorRepository,
                                 IPatientRepository patientRepository,
                                 IMedicationRepository medicationRepository)
 {
     _visitationRepository = visitationRepository;
     _treatmentRepository  = treatmentRepository;
     _testRepository       = testRepository;
     _doctorRepository     = doctorRepository;
     _patientRepository    = patientRepository;
     _medicationRepositpry = medicationRepository;
 }
        public static IMedicationRepository <T> GetMedicationRepository(string dbName, string productName, string userId)
        {
            try
            {
                IMedicationRepository <T> repo = null;

                //We only have 1 repository at this time, just return it
                repo        = new MongoMedicationRepository <T>(dbName) as IMedicationRepository <T>;
                repo.UserId = userId;
                return(repo);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 public PatientsController(IPatientRepository patients,
                           IPatientDetailsRepository patientDetails,
                           IAllergyRepository allergies,
                           IMedicationRepository medications,
                           IDiagnosisRepository diagnoses,
                           IClinicalNoteRepository clinicalNotes,
                           IContactRepository contacts)
 {
     this.Patients       = patients;
     this.PatientDetails = patientDetails;
     this.Allergies      = allergies;
     this.Medications    = medications;
     this.Diagnoses      = diagnoses;
     this.ClinicalNotes  = clinicalNotes;
     this.Contacts       = contacts;
 }
Exemple #13
0
        public MedicationUploadFileParserPollingAgent(IMedicationUploadRepository medicationUploadRepository, IMedicationUploadLogRepository medicationUploadLogRepository,
                                                      IMedicationRepository medicationRepository, ICustomerRepository customerRepository, ICsvReader csvReader, IMedicationUploadHelper medicationUploadHelper,
                                                      IUniqueItemRepository <File> fileRepository, ILogManager logManager, ISettings settings, IMediaRepository mediaRepository, INdcRepository ndcRepository,
                                                      ISyncMedicationPollingAgent syncMedicationPollingAgent, IUnitRepository unitRepository)
        {
            _medicationUploadRepository    = medicationUploadRepository;
            _medicationUploadLogRepository = medicationUploadLogRepository;
            _medicationRepository          = medicationRepository;
            _customerRepository            = customerRepository;
            _csvReader = csvReader;
            _medicationUploadHelper     = medicationUploadHelper;
            _fileRepository             = fileRepository;
            _mediaRepository            = mediaRepository;
            _ndcRepository              = ndcRepository;
            _syncMedicationPollingAgent = syncMedicationPollingAgent;
            _unitRepository             = unitRepository;

            _logger           = logManager.GetLogger("MedicationUploadFileParserPollingAgent");
            _isDevEnvironment = settings.IsDevEnvironment;
            _pageSize         = 100;
        }
Exemple #14
0
 public MedicationService(IMedicationRepository medicationRepository)
 {
     this.medicationRepository = new RepositoryWrapper <IMedicationRepository>(medicationRepository);
 }
Exemple #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MedicationFactory"/> class.
 /// </summary>
 /// <param name="medicationRepository">The medication repository.</param>
 public MedicationFactory(IMedicationRepository medicationRepository)
 {
     _medicationRepository = medicationRepository;
 }
Exemple #16
0
 public ValidationMedicationRepository(Stream <ValidationMed> stream, IUserRepository userRepository, MedicationRepository medicationRepository) : base(stream, "Validation")
 {
     this.userRepository       = userRepository;
     this.medicationRepository = medicationRepository;
 }
Exemple #17
0
 public MedicationService(IMedicationRepository IMedicationRepository)
 {
     _IMedicationRepository = IMedicationRepository;
 }
 public MedicationService(IMedicationRepository medicationRepository)
 {
     _medicationRepository = medicationRepository;
 }
Exemple #19
0
 public TreatmentRepository(IMedicationRepository medicationRepository, IDepartmentRepository departmentRepository, Stream <Treatment> stream) : base(stream, "Treatment")
 {
     this.departmentRepository = departmentRepository;
     this.medicationRepository = medicationRepository;
 }
 public MedicationController(IMedicationRepository repo)
 {
     this.repo = repo;
 }
Exemple #21
0
 // Constructor
 public MedicationsController(IMedicationRepository medicationRepo, IMapper mapper)
 {
     _meRepo = medicationRepo;
     _mapper = mapper;
 }
 public MedicationService(IMedicationRepository medicationRepository, IUnitOfWork unitOfWork)
 {
     this._medicationRepository = medicationRepository;
     _unitOfWork = unitOfWork;
 }
 public MedicationControllerTests()
 {
     repo      = Substitute.For <IMedicationRepository>();
     underTest = new MedicationController(repo);
 }
Exemple #24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetMedicationByKeyRequestHandler"/> class.
 /// </summary>
 /// <param name="medicationRepository">The medication repository.</param>
 public GetMedicationByKeyRequestHandler(IMedicationRepository medicationRepository)
 {
     _medicationRepository = medicationRepository;
 }
Exemple #25
0
 public MedicationsController(IMedicationRepository apRepo, IResidentRepository reRepo, IEmailSender emailSender)
 {
     _meRepo      = apRepo;
     _reRepo      = reRepo;
     _emailSender = emailSender;
 }
 public MedicationService(IMedicationRepository repository, IMapper mapper, MedicationFollowupService medicationFollowupService)
 {
     _repository = repository;
     _mapper     = mapper;
     _medicationFollowupService = medicationFollowupService;
 }
Exemple #27
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MedicationFactory"/> class.
 /// </summary>
 /// <param name="medicationRepository">The medication repository.</param>
 public MedicationFactory( IMedicationRepository medicationRepository )
 {
     _medicationRepository = medicationRepository;
 }
Exemple #28
0
 public MedicationLoader(IMedicationRepository medicationRepository)
 {
     _medicationRepository = medicationRepository;
 }
Exemple #29
0
 public MedicationService(IMedicationRepository medicationRepository, IMapper autoMapper)
 {
     _autoMapper           = autoMapper;
     _medicationRepository = medicationRepository;
 }
Exemple #30
0
 public HomeController(IMedicationRepository medicationRepository)
 {
     _medicationRepository = medicationRepository;
 }
Exemple #31
0
 public MedicationManager(IMedicationRepository medicationRepository, IMedicationLoader medicationLoader)
 {
     _medicationRepository = medicationRepository;
     _medicationLoader     = medicationLoader;
 }
 public MedicationService(IMedicationRepository medicationRepository, IValidationMedicationRepository validationMedicationRepository)
 {
     this.validationMedicationRepository = validationMedicationRepository;
     this.medicationRepository           = medicationRepository;
 }