示例#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
        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
 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;
 }
 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;
 }
 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;
 }
 public AdministrationController(IUnitOfWork data, IAdminService adminService, IDoctorService doctorService,
                                 ITrialService trialService) : base(data)
 {
     this.adminService  = adminService;
     this.doctorService = doctorService;
     this.trialService  = trialService;
 }
示例#27
0
 public EventsController(IAppointmentEventService appointmentEventService,
     ITimeSpanEventService timeSpanEventService, IDoctorService doctorService, IPatientService patientService)
 {
     _appointmentEventService = appointmentEventService;
     _timeSpanEventService = timeSpanEventService;
     _doctorService = doctorService;
     _patientService = patientService;
 }
 public UserSearchService(IUnitOfWork unitOfWork, IPatientService patientService, IDoctorService doctorService, IMapper mapper, IUriService uriService)
 {
     _unitOfWork     = unitOfWork;
     _doctorService  = doctorService;
     _patientService = patientService;
     _mapper         = mapper;
     _uriService     = uriService;
 }
 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
 public HistoryController(IConversationService conversationService, IRecommendationService recommendationService, IPatientService patientService, SiteUserManager userManager, IDoctorService doctorService)
 {
     _conversationService = conversationService;
     _recommendationService = recommendationService;
     _patientService = patientService;
     _userManager = userManager;
     _doctorService = doctorService;
 }
 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;
 }
 public HttpResponseMessage GetMedicalSpecializations(HttpRequestMessage request)
 {
     return GetHttpResponse(request, () =>
     {
         _doctorService = new DoctorClient();
         var specializations = _doctorService.GetMedicalSpecializations();
         return request.CreateResponse<MedicalSpecialization[]>(HttpStatusCode.OK, specializations);
     });
 }
 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
        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
 public ConversationService(
     IDbContextProvider dbContextProvider, 
     SiteUserManager userManager, 
     IDoctorService doctorService, 
     IPatientService patientService, 
     IPaymentHistoryService paymentService)
 {
     _dbContext = dbContextProvider.Context;
     _userManager = userManager;
     _doctorService = doctorService;
     _patientService = patientService;
     _paymentService = paymentService;
 }
 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
 public DoctorController(IDoctorService doctorService, SiteUserManager userManager)
 {
     _doctorService = doctorService;
     _userManager = userManager;
 }
 public AccountController(IPacientService pacients, IDoctorService doctors)
 {
     this._pacients = pacients;
     this._doctors = doctors;
 }
示例#44
0
 public BookingApiController(IDoctorService doctorService)
 {
     _doctorService = doctorService;
 }
示例#45
0
 public DoctorController(IDoctorService doctorService)
 {
     _doctorService = doctorService;
 }
 public DoctorApiController(IDoctorService doctorService,
                            IOrchardServices orchardServices) {
     _orchardServices = orchardServices;
     _doctorService = doctorService;
 }
示例#47
0
 public ConversationController(IConversationService conversationService, IDoctorService doctorService)
 {
     _conversationService = conversationService;
     _doctorService = doctorService;
 }
示例#48
0
 public StatusController(IDoctorService service)
 {
     _service = service;
 }