コード例 #1
0
 public PatientDetailViewViewModel(IPatientDataService patientDataService)
 {
     _patientDataService = patientDataService;
     Delete = new CustomCommand(DeleteExecute, CanDeleteExecute);
     Save   = new CustomCommand(SaveExecute, CanSaveExecute);
     Messenger.Default.Register <PatientViewModel>(this, SetSelectedPatient);
 }
コード例 #2
0
 public NewPatientViewModel(IDialogService dialogService, IPatientDataService patientDataService)
 {
     _dialogService      = dialogService;
     _patientDataService = patientDataService;
     NewPatient          = new PatientViewModel();
     Save   = new CustomCommand(SaveExecute, CanSaveExecute);
     Cancel = new CustomCommand(CancelExecute, _ => true);
 }
コード例 #3
0
 public DoctorController(IDoctorService doctorService,
                         ICommonSerivce commonSerivce, IScheduleService scheduleService,
                         IPatientService patientService,
                         IConclusionService conclusionService,
                         IPatientDataService patientDataService)
 {
     this.doctorService      = doctorService;
     this.commonSerivce      = commonSerivce;
     this.scheduleService    = scheduleService;
     this.patientService     = patientService;
     this.conclusionService  = conclusionService;
     this.patientDataService = patientDataService;
 }
コード例 #4
0
        public MainWindowViewModel(IDialogService dialogService,
                                   IPatientDataService patientDataService)
        {
            _dialogService      = dialogService;
            _patientDataService = patientDataService;
            EditCommand         = new CustomCommand(Edit, CanEdit);
            AllPatients         = new ObservableCollection <PatientViewModel>();
            Messenger.Default.Register <PatientToBeDeleted>(this, DeleteSelectedPatient);
            var allPatients       = _patientDataService.GetAllPatients();
            var patientViewModels = allPatients.Select(x => PatientViewModel.FromModel(x));

            foreach (var patient in patientViewModels)
            {
                AllPatients.Add(patient);
            }
        }
コード例 #5
0
ファイル: ExperimentController.cs プロジェクト: trwq63/med656
 public ExperimentController(IExperimentAdminService expAdminService, IExperimentService expService, IPatientService patientService,
                             IZephyrAccelService zephyrAccelService, IZephyrBreathingService zephyrBreathingService, IZephyrECGService zephyrEcgService,
                             IZephyrEventDataService eventDataService, IZephyrSummaryService summaryService,
                             IZephyrBrRrService brRrService, IBasisPeakSummaryService basisPeakService,
                             IMSBandHeartRateService msBandHeartRateService, IPatientDataService patientDataService)
 {
     _experimentAdminService = expAdminService;
     _experimentService = expService;
     _patientService = patientService;
     _patientDataService = patientDataService;
     _zephyrAccelService = zephyrAccelService;
     _zephyrBreathingService = zephyrBreathingService;
     _zephyrEcgService = zephyrEcgService;
     _eventDataService = eventDataService;
     _summaryService = summaryService;
     _brRrService = brRrService;
     _patientService = patientService;
     _basisPeakService = basisPeakService;
     _msBandHeartRateService = msBandHeartRateService;
 }
コード例 #6
0
 public MainApiController()
 {
     patientDataService    = new PatientDataService();
     mainDataservice       = new MainDataService();
     this.connectionString = ConfigurationManager.ConnectionStrings[ConfigurationManager.AppSettings["activeConnection"]].ConnectionString;
 }
コード例 #7
0
 public InteractionController(IPatientDataService patientDataService, IMemoryCache cache)
 {
     PatientDataService = patientDataService;
     this.cache         = cache;
 }
コード例 #8
0
 public PatientService(IPatientDataService patientDataService)
 {
     this.PatientDataService = patientDataService;
 }
コード例 #9
0
 public PatientController(IPatientDataService patientDataService)
 {
     _patientDataService = patientDataService;
 }
コード例 #10
0
 public PatientDataController(IPatientDataService patientData)
 {
     _patientData = patientData;
 }
コード例 #11
0
 public EditModel(IPatientDataService patientDatatService, IHtmlHelper htmlHelper)
 {
     _patientDataService = patientDatatService;
     _htmlHelper         = htmlHelper;
 }
コード例 #12
0
 public PatientService(IPatientDataService patientDataService, IAddressDataService addressDataService)
 {
     _patientDataService = patientDataService;
     _addressDataService = addressDataService;
 }
コード例 #13
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="patientDataService">Service object for accessing patient data database functions.</param>
 /// <param name="zephyrAccelService">Service object for accessing Zephyr Accelerometer database functions.</param>
 /// <param name="zephyrBreathingService">Service object for accessing Zephyr Breathing Waveform database functions.</param>
 /// <param name="zephyrEcgService">Service object for accessing Zephyr ECG Waveform database functions.</param>
 /// <param name="eventDataService">Service object for accessing Zephyr Event Data database functions.</param>
 /// <param name="summaryService">Service object for accessing Zephyr Summary database functions.</param>
 /// <param name="brRrService">Service object for accessing Zephyr BR RR database functions.</param>
 /// <param name="patientService">Service object for accessing patient database functions.</param>
 /// <param name="basisPeakService">Service object for accessing basis peak summary database functions.</param>
 /// <param name="msBandHeartRateService">Service object for accessing Microsoft Band Heart Rate database functions.</param>
 /// <param name="medicalDeviceService">Service for accessing medical devices.</param>
 public PatientDataController(IPatientDataService patientDataService, IZephyrAccelService zephyrAccelService,
                             IZephyrBreathingService zephyrBreathingService, IZephyrECGService zephyrEcgService,
                             IZephyrEventDataService eventDataService, IZephyrSummaryService summaryService,
                             IZephyrBrRrService brRrService, IPatientService patientService, IBasisPeakSummaryService basisPeakService,
                             IMSBandHeartRateService msBandHeartRateService, IMedicalDeviceService medicalDeviceService)
 {
     _patientDataService = patientDataService;
     _zephyrAccelService = zephyrAccelService;
     _zephyrBreathingService = zephyrBreathingService;
     _zephyrEcgService = zephyrEcgService;
     _eventDataService = eventDataService;
     _summaryService = summaryService;
     _brRrService = brRrService;
     _patientService = patientService;
     _basisPeakService = basisPeakService;
     _msBandHeartRateService = msBandHeartRateService;
     _medicalDeviceService = medicalDeviceService;
 }
コード例 #14
0
ファイル: ExportController.cs プロジェクト: trwq63/med656
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="patientDataService">Service object for accessing patient data database functions.</param>
 /// <param name="zephyrAccelService">Service object for accessing Zephyr Accelerometer database functions.</param>
 /// <param name="breathingService">Service object for accessing Zephyr Breathing Waveform database functions.</param>
 /// <param name="ecgService">Service object for accessing Zephyr ECG Waveform database functions.</param>
 /// <param name="eventDataService">Service object for accessing Zephyr Event Data database functions.</param>
 /// <param name="summaryService">Service object for accessing Zephyr Summary database functions.</param>
 /// <param name="brRrService">Service object for accessing Zephyr BR RR database functions.</param>
 /// <param name="patientService">Service object for accessing patient database functions.</param>
 /// <param name="basisPeakService">Service object for accessing basis peak summary database functions.</param>
 /// <param name="msBandAccelService">Service object for accessing Microsoft Band Accelerometer database functions.</param>
 /// <param name="msBandCaloriesService">Service object for accessing Microsoft Band Calories database functions.</param>
 /// <param name="msBandDistanceService">Service object for accessing Microsoft Band Distance database functions.</param>
 /// <param name="msBandGyroscopeService">Service object for accessing Microsoft Band Gyroscope database functions.</param>
 /// <param name="msBandHeartRateService">Service object for accessing Microsoft Band Heart Rate database functions.</param>
 /// <param name="msBandPedometerService">Service object for accessing Microsoft Band Pedometer database functions.</param>
 /// <param name="msBandTemperatureService">Service object for accessing Microsoft Band Temperature database functions.</param>
 /// <param name="msBandUVService">Service object for accessing Microsoft Band UV database functions.</param>
 /// <param name="physicianService">Service object for accessing physician database functions.</param>
 public ExportController(IPatientDataService patientDataService, IZephyrAccelService zephyrAccelService,
                             IZephyrBreathingService breathingService, IZephyrECGService ecgService,
                             IZephyrEventDataService eventDataService, IZephyrSummaryService summaryService,
                             IZephyrBrRrService brRrService, IPatientService patientService, 
                             IBasisPeakSummaryService basisPeakService, IMSBandAccelService msBandAccelService,
                             IMSBandCaloriesService msBandCaloriesService, IMSBandDistanceService msBandDistanceService,
                             IMSBandGyroscopeService msBandGyroscopeService, IMSBandHeartRateService msBandHeartRateService,
                             IMSBandPedometerService msBandPedometerService, IMSBandTemperatureService msBandTemperatureService,
                             IMSBandUVService msBandUVService, IPhysicianService physicianService)
 {
     _patientDataService = patientDataService;
     _zephyrAccelService = zephyrAccelService;
     _breathingService = breathingService;
     _ecgService = ecgService;
     _eventDataService = eventDataService;
     _summaryService = summaryService;
     _brRrService = brRrService;
     _patientService = patientService;
     _basisPeakService = basisPeakService;
     _msBandAccelService = msBandAccelService;
     _msBandCaloriesService = msBandCaloriesService;
     _msBandDistanceService = msBandDistanceService;
     _msBandGyroscopeService = msBandGyroscopeService;
     _msBandHeartRateService = msBandHeartRateService;
     _msBandPedometerService = msBandPedometerService;
     _msBandTemperatureService = msBandTemperatureService;
     _msBandUVService = msBandUVService;
     _physicianService = physicianService;
 }
コード例 #15
0
 public DetailModel(IPatientDataService patientDataSerice)
 {
     _patientDataService = patientDataSerice;
 }
コード例 #16
0
 public ListModel(IPatientDataService patientDataSerice)
 {
     _patientDataService = patientDataSerice;
 }