public EPRClinicLetterDocxImporter(FileStream stream, string fileExtension,
                                    AspergillosisContext context, PASDbContext pasContext)
 {
     _stream         = stream;
     _fileExtension  = fileExtension;
     _pasContext     = pasContext;
     _context        = context;
     _patientManager = new PatientManager(context);
 }
Beispiel #2
0
 public BatchClinicLettersImporter(ICollection <IFileInfo> filesToImport,
                                   AspergillosisContext context,
                                   PASDbContext pasContext)
 {
     _filesToImport = filesToImport;
     _imported      = 0;
     _context       = context;
     _pasContext    = pasContext;
 }
 public PatientPASDownloader(List <string> rm2Numbers, AspergillosisContext context, PASDbContext pasContext)
 {
     _newRM2Numbers         = rm2Numbers;
     _context               = context;
     _pasContext            = pasContext;
     _patientAliveStatus    = _context.PatientStatuses.Where(s => s.Name == "Active").FirstOrDefault().ID;
     _patientDeceasedStatus = _context.PatientStatuses.Where(s => s.Name == "Deceased").FirstOrDefault().ID;
     _cpaDiagnosis          = _context.DiagnosisTypes.Where(dt => dt.Name.Contains("Chronic pulmonary aspergillosis")).SingleOrDefault();
     _primaryDiagnosisCat   = _context.DiagnosisCategories.Where(dc => dc.CategoryName == "Primary").SingleOrDefault();
 }
 public ExternalImportsController(AspergillosisContext context,
                                  PASDbContext pasContext,
                                  ExternalImportDbContext externalImportDbContext,
                                  SGRQContext sgrqContext)
 {
     _context    = context;
     _pasContext = pasContext;
     _externalImportDbContext = externalImportDbContext;
     _sqrqContext             = sgrqContext;
 }
 public ClinicLettersBatchImportController(IFileProvider fileProvider,
                                           AspergillosisContext context,
                                           PASDbContext pasContext,
                                           IHostingEnvironment hostingEnvironment,
                                           IConfiguration configuration)
 {
     _fileProvider  = fileProvider;
     _configuration = configuration;
     _context       = context;
     _pasContext    = pasContext;
     _environment   = hostingEnvironment;
     _dataDirectory = _configuration.GetSection("clinicLettersDirectory").Value.ToString();
 }
Beispiel #6
0
 public ImportsController(IHostingEnvironment hostingEnvironment,
                          AspergillosisContext context,
                          PASDbContext pasContext,
                          ExternalImportDbContext externalImportDbContext,
                          IConfiguration configuration)
 {
     _hostingEnvironment      = hostingEnvironment;
     _context                 = context;
     _pasContext              = pasContext;
     _configuration           = configuration;
     _externalImportDbContext = externalImportDbContext;
     _importerResolver        = new ImporterResolver(_context);
 }
Beispiel #7
0
 public PostcodesController(AspergillosisContext context,
                            PASDbContext pasDbContext,
                            ILogger <PostcodesController> logger,
                            IBackgroundTaskQueue queue,
                            IApplicationLifetime appLifetime
                            )
 {
     _context      = context;
     Queue         = queue;
     _pasDbContext = pasDbContext;
     _appLifetime  = appLifetime;
     _logger       = logger;
 }