public PrescriptionsViewModel(INavigationService navigationService, ISessionService sessionService, IPrescriptionService prescriptionService)
 {
     _navigationService       = navigationService;
     _sessionService          = sessionService;
     _prescriptionService     = prescriptionService;
     LoadPrescriptionsCommand = new Command(Load);
     AddPrescriptionCommand   = new Command(HandleAddPrescriptionCommand);
     Prescriptions            = new ObservableCollection <PrescriptionViewModel>();
 }
 public PrescriptionController(IClinicianService clinicianService, UserManager <ApplicationUser> userManager, IProfileService profileService, IPrescriptionService prescriptionService, IEmailSender emailSender, IPharmacyService pharmacyService)
 {
     _clinicianService    = clinicianService;
     _userManager         = userManager;
     _profileService      = profileService;
     _prescriptionService = prescriptionService;
     _emailSender         = emailSender;
     _pharmacyService     = pharmacyService;
 }
示例#3
0
 public ProfileController(IPrescriptionService PrescriptionService,
                          IPatientService PatientService,
                          UserManager <IdentityUser> UserManager,
                          IAppUserService AppUserService,
                          IAppAuthorisationService AppAuthorisationService,
                          IUserOrgRoleService UserOrgRoleService
                          ) : base(UserManager, AppUserService, AppAuthorisationService, UserOrgRoleService)
 {
 }
 public ReportsController(IClinicianService clinicianService, UserManager <ApplicationUser> userManager, IProfileService profileService, IPrescriptionService prescriptionService, ICreditService creditService, IAppointmentService appointmentService)
 {
     _clinicianService    = clinicianService;
     _userManager         = userManager;
     _prescriptionService = prescriptionService;
     _profileService      = profileService;
     _creditService       = creditService;
     _appointmentService  = appointmentService;
 }
示例#5
0
 public ExaminationService(IExaminationUpcomingRepository upcomingRepository, IExaminationPreviousRepository previousRepository, IDiagnosisService diagnosisService, IPrescriptionService prescriptionService, IReferralService referralService, ISymptomService symptomService, ITherapyService therapyService)
 {
     _upcomingRepository  = upcomingRepository;
     _previousRepository  = previousRepository;
     _diagnosisService    = diagnosisService;
     _prescriptionService = prescriptionService;
     _referralService     = referralService;
     _symptomService      = symptomService;
     _therapyService      = therapyService;
 }
示例#6
0
 public PrescriptionController(IPrescriptionService prescriptionService,
                               IPharmacySystemService pharmacySystemService,
                               IAdapterContext adapterContext,
                               IPushNotificationService pushNotificationService)
 {
     _prescriptionService     = prescriptionService;
     _pharmacySystemService   = pharmacySystemService;
     _adapterContext          = adapterContext;
     _pushNotificationService = pushNotificationService;
 }
示例#7
0
 public HomeController(UserManager <ApplicationUser> userManager, IDoctorService doctorService, IMedicamentService medicamentService, IPrescriptionService prescriptionService, IPatientService patientAccountService, IVisitService visitService, ISpecializationService specializationService, IReferralService referralService)
 {
     _userManager           = userManager;
     _doctorService         = doctorService;
     _medicamentService     = medicamentService;
     _prescriptionService   = prescriptionService;
     _patientAccountService = patientAccountService;
     _visitService          = visitService;
     _specializationService = specializationService;
     _referralService       = referralService;
 }
 public AuditingPrescriptionService(IPrescriptionService service, int userID)
 {
     if (service == null)
     {
         throw new ArgumentNullException(nameof(service));
     }
     if (userID <= 0)
     {
         throw new ArgumentOutOfRangeException(nameof(userID));
     }
     this.Service = service;
     this.UserID  = userID;
 }
 public AuditingPrescriptionService(IPrescriptionService service, int userID)
 {
     if(service == null)
     {
         throw new ArgumentNullException(nameof(service));
     }
     if(userID <= 0)
     {
         throw new ArgumentOutOfRangeException(nameof(userID));
     }
     this.Service = service;
     this.UserID = userID;
 }
示例#10
0
 public PrescriptionController(IPrescriptionService PrescriptionService,
                               IDrugService DrugService,
                               IPatientService PatientService,
                               UserManager <IdentityUser> UserManager,
                               IAppUserService AppUserService,
                               IAppAuthorisationService AppAuthorisationService,
                               IUserOrgRoleService UserOrgRoleService
                               ) : base(UserManager, AppUserService, AppAuthorisationService, UserOrgRoleService)
 {
     _prescriptionService = PrescriptionService;
     _drugService         = DrugService;
     _patientService      = PatientService;
 }
 public PrescriptionsController(
     ApplicationDbContext context,
     IPrescriptionService prescriptionService,
     UserManager <ApplicationUser> userManager,
     IEmailSender emailSender,
     SignInManager <ApplicationUser> signInManager
     )
 {
     _context             = context;
     _prescriptionService = prescriptionService;
     _userManager         = userManager;
     _emailSender         = emailSender;
     _signInManager       = signInManager;
 }
示例#12
0
 public DoctorController(IPatientProfileService patientProfileService, IPrescriptionService prescriptionService,
                         IMedicineForPrescriptionService medicineForPrescriptionService, IMedicalTestService medicalTestService,
                         IPatientsConsultService patientsConsultService, IPatientConsultSingleService patientConsultSingleService,
                         IPatientsProblemPageForDoctorService patientProblemService, IDoctorProfileService doctorProblemService)
 {
     _patientProfileService          = patientProfileService;
     _prescriptionService            = prescriptionService;
     _medicineForPrescriptionService = medicineForPrescriptionService;
     _medicalTestService             = medicalTestService;
     _patientsConsultService         = patientsConsultService;
     _patientConsultSingleService    = patientConsultSingleService;
     _patientProblemService          = patientProblemService;
     _doctorProfileService           = doctorProblemService;
 }
 public HomeController(IPrescriptionService PrescriptionService,
                       IPatientService PatientService,
                       UserManager <IdentityUser> UserManager,
                       IAppUserService AppUserService,
                       IAppAuthorisationService AppAuthorisationService,
                       IUserOrgRoleService UserOrgRoleService
                       ) : base(UserManager, AppUserService, AppAuthorisationService, UserOrgRoleService)
 {
     _prescriptionService = PrescriptionService;
     _patientService      = PatientService;
     //_appUserService = AppUserService;
     //_userManager = UserManager;
     //_appAuthorisationService = AppAuthorisationService;
 }
示例#14
0
 public PatientController(ISpecialityService specialityService, IPatientProfileService patientProfileService,
                          IDoctorProfileService doctorProfileService, IPatientsConsultService consultService,
                          IPatientsConsultService patientsConsultService, IPrescriptionService prescriptionService, IMedicalTestService testService,
                          IMedicineForPrescriptionService medicineForPrescriptionService, IPatientsProblemPageForDoctorService patientsProblemPageForDoctorService)
 {
     _specialityService                   = specialityService;
     _patientProfileService               = patientProfileService;
     _doctorProfileService                = doctorProfileService;
     _consultService                      = consultService;
     _patientsConsultService              = patientsConsultService;
     _prescriptionService                 = prescriptionService;
     _testService                         = testService;
     _medicineForPrescriptionService      = medicineForPrescriptionService;
     _patientsProblemPageForDoctorService = patientsProblemPageForDoctorService;
 }
        static void Main(string[] args)
        {
            Container = new UnityContainer();
            Container.AddNewExtension <Interception>();

            Container.RegisterType <IPrescription, Prescription>();
            Container.RegisterType <IPrescriptionService, PrescriptionService>(
                new Interceptor <InterfaceInterceptor>(),
                new InterceptionBehavior <AuditingInterceptionBehavior>());

            IPrescriptionService service = Container.Resolve <IPrescriptionService>();

            IPrescription prescription = service.GetPrescriptionByID(1);

            Console.WriteLine("Retrieved: {0}", prescription);

            Console.ReadKey();
        }
 /// <summary>
 /// The constructor
 /// </summary>
 public PrescriptionController(IPrescriptionService prescriptionService, IValidatorService validatorService)
 {
     _prescriptionService = prescriptionService;
     _validatorService    = validatorService;
 }
示例#17
0
 public PrescriptionController(IPrescriptionService prescriptionService)
 {
     this.prescriptionService = prescriptionService;
 }
 public PrescriptionController(IPrescriptionService animalService)
 {
     _prescriptionService = animalService;
 }
示例#19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PrescriptionsController"/> class.
 /// </summary>
 /// <param name="service">The prescription service.</param>
 public PrescriptionsController(IPrescriptionService service)
 {
     this.service = service;
 }
示例#20
0
 public PrescriptionController(IPrescriptionService service)
 {
     _prescriptionService = service;
 }
 public MedicalfilesController(IMedicalfileService medicalFileService, IPrescriptionService prescriptionService)
 {
     _medicalFileService  = medicalFileService;
     _prescriptionService = prescriptionService;
 }
示例#22
0
 public OrderController(IMedicineService medicineService, IPrescriptionService prescriptionService, IOrderService orderService)
 {
     _medicineService     = medicineService;
     _prescriptionService = prescriptionService;
     _orderService        = orderService;
 }
示例#23
0
 public PrescriptionController(IPrescriptionService prescriptionService, IMedicineService medicineService)
 {
     _prescriptionService = prescriptionService;
     _medicineService     = medicineService;
 }
示例#24
0
 public PrescriptionController(IPrescriptionService dbService)
 {
     _dbService = dbService;
 }