コード例 #1
0
        // Constructors
        #region Constructors
        public AppointmentsViewModel(
            IReservationService reservationService,
            IScheduleService scheduleService,
            IPatientService patientService,
            ISpecializationService specializationService,
            IDoctorService doctorService)
        {
            _reservationService    = reservationService;
            _scheduleService       = scheduleService;
            _patientService        = patientService;
            _specializationService = specializationService;
            _doctorService         = doctorService;

            SelectedDate = DateTime.Today;

            UnregisterPatientCommand = new AsyncRelayCommand(UnregisterPatient, (obj) => SelectedReservation != null && SelectedReservation?.Patient != null, (ex) => throw ex);

            SelectReservationCommand      = new RelayCommand(SelectReservation);
            OpenReservationDetailsCommand = new RelayCommand(OpenReservationDetails);

            SetSelectedDateToTodayCommand          = new RelayCommand((obj) => SelectedDate = DateTime.Now);
            SetSelectedDoctorToNullCommand         = new RelayCommand((obj) => SelectedDoctor = null);
            SetSelectedSpecializationToNullCommand = new RelayCommand((obj) => SelectedSpecialization = null);

            LoadSchedules();
            LoadDoctors();
            LoadSpecializations();
        }
コード例 #2
0
ファイル: DoctorModule.cs プロジェクト: nerobianchi/poc-nancy
        public DoctorModule(IDoctorService doctorService)
        {
            this.doctorService = doctorService;

            this.Get["/doctors/", ctx => isAvailable(ctx.Request)] = parameters => "hello curl";

            this.Get["/doctors/"]                 = parameters => this.doctorService.ListActiveDoctors();
            this.Get["/doctors/{id}"]             = parameters => this.doctorService.GetDoctor(parameters.id);
            this.Get["/doctors/{id}/slots"]       = parameters => this.doctorService.GetDoctorSlots(parameters.id.ToString(), this.Request.Query["date"], this.Request.Query["status"]);
            this.Get["/doctors/{id}/array_input"] = parameters =>
            {
                var s     = parameters.id.ToString();
                var array = this.Request.Query["id"];

                var bind = this.Bind <Hede>();

                return(this.doctorService.GetDoctorArrayInput());
            };
            this.Post["/doctors/{id}/array_input"] = parameters =>
            {
                var s     = parameters.id.ToString();
                var array = this.Request.Query["id"];

                var bind = this.Bind <Hede>();

                return(this.doctorService.GetDoctorArrayInput());
            };
        }
コード例 #3
0
ファイル: HomeController.cs プロジェクト: eluninm/tmk
 public HomeController(IAppointmentEventService appointmentEventService,
     ITimeSpanEventService timeSpanEventService, IDoctorService doctorService)
 {
     _appointmentEventService = appointmentEventService;
     _timeSpanEventService = timeSpanEventService;
     _doctorService = doctorService;
 }
コード例 #4
0
 public ScheduleService(
     IDataService dataService,
     IDoctorService doctorService)
 {
     _dataService   = dataService;
     _doctorService = doctorService;
 }
コード例 #5
0
        // Constructors
        #region Constructors
        public ManageSchedulesViewModel(
            IDoctorService doctorService,
            IScheduleService scheduleService,
            GenerateScheduleViewModel generateScheduleViewModel)
        {
            _doctorService            = doctorService;
            _scheduleService          = scheduleService;
            GenerateScheduleViewModel = generateScheduleViewModel;

            _doctors = new List <DoctorModel>();
            DoctorsCollectionView        = CollectionViewSource.GetDefaultView(_doctors);
            DoctorsCollectionView.Filter = DoctorsFilter;
            DoctorsCollectionView.SortDescriptions.Add(new SortDescription(nameof(DoctorModel.LastName), ListSortDirection.Ascending));

            _schedules = new List <Schedule>();
            SchedulesCollectionView = CollectionViewSource.GetDefaultView(_schedules);
            SchedulesCollectionView.SortDescriptions.Add(new SortDescription(nameof(Schedule.Date), ListSortDirection.Ascending));
            //OpenEditSelectedScheduleFormCommand = new RelayCommand(OpenEditSelectedScheduleForm, CanEditSelectedScheduleDay);
            DeleteSelectedScheduleDayCommand        = new AsyncRelayCommand(DeleteSelectedScheduleDay, CanDeleteSelectedScheduleDay, (ex) => throw ex);
            GenerateNewScheduleCommand              = new RelayCommand(GenerateNewSchedule);
            GenerateScheduleViewModel.FormSubmited += GenerateScheduleViewModel_FormSubmited;

            LoadDoctors();

            DateFrom = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
            DateTo   = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month));
        }
コード例 #6
0
 public AuthController(UserManager <ApplicationUsers> userManager, IOptions <ApplicationSettings> appSettings, IDoctorService doctorService, IPatientService patientService)
 {
     _userManager    = userManager;
     _appSettings    = appSettings.Value;
     _doctorService  = doctorService;
     _patientService = patientService;
 }
コード例 #7
0
 public NoteService(INoteDAL noteDAL, IPatientService patientService, IDoctorService doctorService, IDiseaseService diseaseService)
 {
     this.NoteDAL        = noteDAL;
     this.PatientService = patientService;
     this.DoctorService  = doctorService;
     this.DiseaseService = diseaseService;
 }
コード例 #8
0
 public RecommendationsController(IDoctorService doctorService, IRecommendationService recommendationService,
     IPatientService patientService)
 {
     _doctorService = doctorService;
     _recommendationService = recommendationService;
     _patientService = patientService;
 }
コード例 #9
0
 public DoctorsController(IDoctorService doctorService,
                          IDoctorRepository doctorRepository,
                          IMapper mapper)
 {
     _doctorService = doctorService;
     _mapper        = mapper;
 }
コード例 #10
0
 public AppointmentService(HospitalCalendarDbContextFactory contextFactory, INotificationService notificationService,
                           IRoomService roomService, IDoctorService doctorService) : base(contextFactory)
 {
     _notificationService = notificationService;
     _roomService         = roomService;
     _doctorService       = doctorService;
 }
コード例 #11
0
 public PatientController(ApplicationUserManager userManager,
                          IDoctorService doctorService, IPatientservice patientService)
     : base(userManager)
 {
     this._doctorService  = doctorService;
     this._patientService = patientService;
 }
コード例 #12
0
 public HomeController(IUserService userService, IRoleService roleService, IDoctorService doctorService, IPatientService patientService)
 {
     this.userService    = userService;
     this.roleService    = roleService;
     this.doctorService  = doctorService;
     this.patientService = patientService;
 }
コード例 #13
0
 public EventsController(IEventService eventService, IPatientService patientService, IDoctorService doctorService, ILogger <EventsController> logger)
 {
     _eventService   = eventService;
     _patientService = patientService;
     _doctorService  = doctorService;
     _logger         = logger;
 }
コード例 #14
0
 public DoctorController(IDoctorService doctorService, IMapper mapper, IPatientCardService patientCardService, ILoggerService <DoctorController> loggerService)
 {
     _doctorService      = doctorService;
     _mapper             = mapper;
     _patientCardService = patientCardService;
     _loggerService      = loggerService;
 }
コード例 #15
0
 public AppointmentController(IPatientService _patientService, IDoctorService _doctorService,
                              IAppointmentService _appointmentService)
 {
     patientService     = _patientService;
     doctorService      = _doctorService;
     appointmentService = _appointmentService;
 }
コード例 #16
0
 public NoteController(INoteService noteService, IPatientService patientService, IDoctorService doctorService, IDiseaseService diseaseService)
 {
     NoteService    = noteService;
     PatientService = patientService;
     DoctorService  = doctorService;
     DiseaseService = diseaseService;
 }
コード例 #17
0
 public ReportService(ICalendarEntryService calendarEntryService, IAppointmentService appointmentService, IRoomService roomService, IDoctorService doctorService)
 {
     _calendarEntryService = calendarEntryService;
     _roomService          = roomService;
     _doctorService        = doctorService;
     _appointmentService   = appointmentService;
 }
コード例 #18
0
 public AppointmentService(
     IDataService dataService,
     IDoctorService doctorService)
 {
     _dataService   = dataService;
     _doctorService = doctorService;
 }
コード例 #19
0
 public PatientController(IPatientService patientService, IDoctorService doctorService, ILoggerService <PatientController> loggerService, IMapper mapper)
 {
     _patientService = patientService;
     _doctorService  = doctorService;
     _loggerService  = loggerService;
     _mapper         = mapper;
 }
コード例 #20
0
 public UserService(IPatientService patientServ, IDoctorService _doctor, ISecretaryService secretaryService, IDirectorService directorService)
 {
     _patientService   = patientServ;
     _doctorService    = _doctor;
     _secretaryService = secretaryService;
     _directorService  = directorService;
 }
コード例 #21
0
 public AppointmentController(IDoctorService doctorService,
                              IAppointmentService scheduleService)
 {
     _doctorService   = doctorService;
     _scheduleService = scheduleService;
     _context         = new DPTSDbContext();
 }
コード例 #22
0
        //public AccountController()
        //{
        //}

        public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, IDoctorService doctorService, IPatientservice patientService)
        {
            UserManager    = userManager;
            SignInManager  = signInManager;
            DoctorService  = doctorService;
            PatientService = patientService;
        }
 public DoctorController(
     IDoctorService doctorService,
     INotificationHandler <DomainNotification> notifications,
     IMediatorHandler mediator) : base(notifications, mediator)
 {
     _doctorService = doctorService;
 }
コード例 #24
0
 public DoctorsController(ILogger <UsersController> logger, IDoctorService doctorService, IStatsService statsService, UserManager <AppUser> userManager)
 {
     _logger        = logger;
     _doctorService = doctorService;
     _statsService  = statsService;
     _userManager   = userManager;
 }
コード例 #25
0
 public DoctorController(IDoctorService doctorService, IMapper mapper, ILoggerService <DoctorController> loggerService, ISpecialityService specialityService)
 {
     _doctorService     = doctorService;
     _mapper            = mapper;
     _loggerService     = loggerService;
     _specialityService = specialityService;
 }
コード例 #26
0
 public AdministrationController(IUnitOfWork data, IAdminService adminService, IDoctorService doctorService,
                                 ITrialService trialService) : base(data)
 {
     this.adminService  = adminService;
     this.doctorService = doctorService;
     this.trialService  = trialService;
 }
コード例 #27
0
ファイル: EventsController.cs プロジェクト: eluninm/tmk
 public EventsController(IAppointmentEventService appointmentEventService,
     ITimeSpanEventService timeSpanEventService, IDoctorService doctorService, IPatientService patientService)
 {
     _appointmentEventService = appointmentEventService;
     _timeSpanEventService = timeSpanEventService;
     _doctorService = doctorService;
     _patientService = patientService;
 }
コード例 #28
0
 public UserSearchService(IUnitOfWork unitOfWork, IPatientService patientService, IDoctorService doctorService, IMapper mapper, IUriService uriService)
 {
     _unitOfWork     = unitOfWork;
     _doctorService  = doctorService;
     _patientService = patientService;
     _mapper         = mapper;
     _uriService     = uriService;
 }
コード例 #29
0
 public PatientService(IOrchardServices orchardServices,
                      IRepository<Patient> patientRepository,
                      IDoctorService doctorService)
 {
     _orchardServices = orchardServices;
     _patientRepository = patientRepository;
     _doctorService = doctorService;
 }
コード例 #30
0
 public AuthorizationController(IAdminService adminService,
                                IGreetingService greeting,
                                IDoctorService doctorService)
 {
     _adminService  = adminService;
     _greeting      = greeting;
     _doctorService = doctorService;
 }
コード例 #31
0
ファイル: HistoryController.cs プロジェクト: eluninm/tmk
 public HistoryController(IConversationService conversationService, IRecommendationService recommendationService, IPatientService patientService, SiteUserManager userManager, IDoctorService doctorService)
 {
     _conversationService = conversationService;
     _recommendationService = recommendationService;
     _patientService = patientService;
     _userManager = userManager;
     _doctorService = doctorService;
 }
コード例 #32
0
 public AdministrationController(IDoctorService doctorService,
                                 IQualifiactionService qualificationService,
                                 IGenericAttributeService genericAttributeService)
 {
     _doctorService           = doctorService;
     _qualificationService    = qualificationService;
     _genericAttributeService = genericAttributeService;
 }
コード例 #33
0
 public MedicalAppointmentService(
     IMedicalAppointmentRepository medicalAppointmentRepository,
     IDoctorService doctorService
     )
 {
     _medicalAppointmentRepository = medicalAppointmentRepository;
     _doctorService = doctorService;
 }
コード例 #34
0
 public DoctorController(IMapper mapper,
                         IDoctorService doctorService,
                         ILogger <DoctorController> logger)
 {
     _mapper        = mapper;
     _doctorService = doctorService;
     _logger        = logger;
 }
コード例 #35
0
 public ExportImportsController(IImportManager importManager,
                                IDoctorService doctorService,
                                DPTSDbContext context)
 {
     _importManager = importManager;
     _context       = context;
     _doctorService = doctorService;
 }
コード例 #36
0
 public HttpResponseMessage GetMedicalSpecializations(HttpRequestMessage request)
 {
     return GetHttpResponse(request, () =>
     {
         _doctorService = new DoctorClient();
         var specializations = _doctorService.GetMedicalSpecializations();
         return request.CreateResponse<MedicalSpecialization[]>(HttpStatusCode.OK, specializations);
     });
 }
コード例 #37
0
 public HttpResponseMessage GetAvailableDoctors(HttpRequestMessage request, DateTime appointmentDate,int doctorType)
 {
     return GetHttpResponse(request, () =>
     {
         _doctorService = new DoctorClient();
         var doctors = _doctorService.GetDoctorsWithSpecializationOnDate(doctorType, appointmentDate);
         return request.CreateResponse<Doctor[]>(HttpStatusCode.OK, doctors);
     });
 }
コード例 #38
0
ファイル: _HomeController.cs プロジェクト: eluninm/tmk
        public _HomeController(IPatientService patientService, SiteUserManager siteUserManager, IDoctorService doctorService,
            ISpecializationService specializationService,
            ITimeSpanEventService timeSpanEventService, IUserEventsService userEventsService)
        {
            _patientService = patientService;
            _siteUserManager = siteUserManager;
            _doctorService = doctorService;
            _specializationService = specializationService;
            _timeSpanEventService = timeSpanEventService;
            _userEventsService = userEventsService;

        }
コード例 #39
0
ファイル: IConversationService.cs プロジェクト: eluninm/tmk
 public ConversationService(
     IDbContextProvider dbContextProvider, 
     SiteUserManager userManager, 
     IDoctorService doctorService, 
     IPatientService patientService, 
     IPaymentHistoryService paymentService)
 {
     _dbContext = dbContextProvider.Context;
     _userManager = userManager;
     _doctorService = doctorService;
     _patientService = patientService;
     _paymentService = paymentService;
 }
コード例 #40
0
 public DoctorsController(IDoctorService doctors, IMemoService memo, IPacientService pacients)
 {
     this._doctors = doctors;
     this._memo = memo;
     this._pacients = pacients;
 }
 public PatientApiController(IDoctorService doctorService) {
     _doctorService = doctorService;
 }
コード例 #42
0
ファイル: DoctorController.cs プロジェクト: eluninm/tmk
 public DoctorController(IDoctorService doctorService, SiteUserManager userManager)
 {
     _doctorService = doctorService;
     _userManager = userManager;
 }
コード例 #43
0
 public AccountController(IPacientService pacients, IDoctorService doctors)
 {
     this._pacients = pacients;
     this._doctors = doctors;
 }
コード例 #44
0
 public BookingApiController(IDoctorService doctorService)
 {
     _doctorService = doctorService;
 }
コード例 #45
0
ファイル: DoctorController.cs プロジェクト: eluninm/tmk
 public DoctorController(IDoctorService doctorService)
 {
     _doctorService = doctorService;
 }
 public DoctorApiController(IDoctorService doctorService,
                            IOrchardServices orchardServices) {
     _orchardServices = orchardServices;
     _doctorService = doctorService;
 }
コード例 #47
0
ファイル: ConversationController.cs プロジェクト: eluninm/tmk
 public ConversationController(IConversationService conversationService, IDoctorService doctorService)
 {
     _conversationService = conversationService;
     _doctorService = doctorService;
 }
コード例 #48
0
ファイル: StatusController.cs プロジェクト: eluninm/tmk
 public StatusController(IDoctorService service)
 {
     _service = service;
 }