Exemplo n.º 1
0
 public HomeController(
     ICPFileService cpFileService,
     IDiagnoseService diagnoseService,
     IDiagService diagService,
     IHospitalPracticeService hospitalPracticeService,
     IPatientService patientService,
     IUsedDrugService usedDrugService,
     ILogger <HomeController> logger,
     MedicDataLocalization medicDataLocalization,
     ICacheable medicCache,
     IMedicLoggerService medicLoggerService,
     IFormattableFactory formattableFactory)
     : base(medicDataLocalization)
 {
     CPFileService           = cpFileService ?? throw new ArgumentNullException(nameof(cpFileService));
     DiagnoseService         = diagnoseService ?? throw new ArgumentNullException(nameof(diagnoseService));
     DiagService             = diagService ?? throw new ArgumentNullException(nameof(diagService));
     HospitalPracticeService = hospitalPracticeService ?? throw new ArgumentNullException(nameof(hospitalPracticeService));
     PatientService          = patientService ?? throw new ArgumentNullException(nameof(patientService));
     UsedDrugService         = usedDrugService ?? throw new ArgumentNullException(nameof(usedDrugService));
     Logger             = logger ?? throw new ArgumentNullException(nameof(logger));
     MedicCache         = medicCache ?? throw new ArgumentNullException(nameof(medicCache));
     MedicLoggerService = medicLoggerService ?? throw new ArgumentNullException(nameof(medicLoggerService));
     FormattableFactory = formattableFactory ?? throw new ArgumentNullException(nameof(formattableFactory));
 }
Exemplo n.º 2
0
 public OutController(IOutService outService,
                      IPatientService patientService,
                      IUsedDrugService usedDrugService,
                      IHealthRegionService healthRegionService,
                      MedicDataLocalization medicDataLocalization,
                      ICacheable medicCache,
                      IMedicLoggerService medicLoggerService,
                      IToEHRConverter toEHRConverter,
                      IFormattableFactory formattableFactory)
     : base(patientService, healthRegionService, medicCache, medicDataLocalization)
 {
     OutService         = outService ?? throw new ArgumentNullException(nameof(outService));
     UsedDrugService    = usedDrugService ?? throw new ArgumentNullException(nameof(usedDrugService));
     MedicLoggerService = medicLoggerService ?? throw new ArgumentNullException(nameof(medicLoggerService));
     ToEHRConverter     = toEHRConverter ?? throw new ArgumentNullException(nameof(toEHRConverter));
     FormattableFactory = formattableFactory ?? throw new ArgumentNullException(nameof(formattableFactory));
 }