public PatientController(IConfiguration configuration, ILoggingService loggingService, IPatientManager patientManager) : base(configuration) { _logger = loggingService.GetLogger <PatientController>(nameof(PatientController)); _patientManager = patientManager; }
public TimelineManager(string apiBaseUrl) { var client = new FhirClient(new Uri(apiBaseUrl)); _patientManager = new PatientManager(client); _timelineBuilder = new TimelineBuilder(client); }
public PatientController(IPatientsRepository repository, ILanguagesRepository languagesRepository, IHomeManager homeManager, IPatientManager patientManager) { this._repository = repository; this._languagesRepository = languagesRepository; this._homeManager = homeManager; this._patientManager = patientManager; }
public FrmPatientApp() { _manager = new PatientManager(); _patientList = _manager.Read(); _resetFlag = false; InitializeComponent(); }
public void TestSetUp() { var client = new FhirClient(new Uri(BaseUrl)); _timelineBuilder = new TimelineBuilder(client); _patientManager = new PatientManager(client); }
public PatientDetailViewController(IObjectFactory objectFactory) { this.ObjectFactory = objectFactory; this.PatientManager = this.ObjectFactory.Create<IPatientManager>(); this.navBar = new UINavigationBar(new RectangleF(0,0,768, 44)); this.navBar.AutoresizingMask = UIViewAutoresizing.FlexibleWidth; this.navBar.SetItems( new[] { new UINavigationItem("Patient Information") },false); this.navBar.TopItem.SetRightBarButtonItem(this.EditButtonItem, false); this.View.BackgroundColor = UIColor.LightGray; this.View.Frame = new RectangleF(0,0,768,768); this.patientDetailView = this.ObjectFactory.Create<PatientDetailView>(); this.patientDetailView.Frame = new RectangleF(0,44,this.colWidth1 + this.colWidth2, 728); this.patientDetailView.AutoresizingMask = UIViewAutoresizing.FlexibleHeight; this.View.AddSubview (this.patientDetailView); this.View.AddSubview (this.navBar); }
public PatientDetailViewController(IObjectFactory objectFactory) { this.ObjectFactory = objectFactory; this.PatientManager = this.ObjectFactory.Create <IPatientManager>(); this.navBar = new UINavigationBar(new RectangleF(0, 0, 768, 44)); this.navBar.AutoresizingMask = UIViewAutoresizing.FlexibleWidth; this.navBar.SetItems( new[] { new UINavigationItem("Patient Information") }, false); this.navBar.TopItem.SetRightBarButtonItem(this.EditButtonItem, false); this.View.BackgroundColor = UIColor.LightGray; this.View.Frame = new RectangleF(0, 0, 768, 768); this.patientDetailView = this.ObjectFactory.Create <PatientDetailView>(); this.patientDetailView.Frame = new RectangleF(0, 44, this.colWidth1 + this.colWidth2, 728); this.patientDetailView.AutoresizingMask = UIViewAutoresizing.FlexibleHeight; this.View.AddSubview(this.patientDetailView); this.View.AddSubview(this.navBar); }
/// <summary> /// Users controller constructor /// </summary> public PatientsController(IUserManager userManager, IBedManager bedManager, IPatientManager patientManager, IMapper mapper) { _userManager = userManager; _bedManager = bedManager; _patientManager = patientManager; _mapper = mapper; }
/// <summary> /// Initializes a new instance of the <see cref="BarcodeViewModel"/> class. /// </summary> /// <param name="patientManager">Patient manager object</param> /// <param name="barcodeTraceabilityManager">Barcode traceability manager</param> public BarcodeViewModel(IPatientManager patientManager, IBarcodeTraceabilityManager barcodeTraceabilityManager) { this.patientManager = patientManager; BarcodeTraceabilityManager = barcodeTraceabilityManager; SaveArbitraryCommand = new RelayCommand(OnSaveArbitraryCommand); Barcode = new BarcodeModel() { ProductionDate = null, ExpiryDate = new DateTime() }; ArbitraryBarcode = new BarcodeModel() { QualifyLevel = (int)QualifyType.Unknown, QualifyLevelType = (int)QualifyLevelType.Other, ProductionDate = null, ExpiryDate = null }; patientManager.PatientContext.PropertyChanged += OnDependentPropertyChanged; barcodeTraceabilityManager.PropertyChanged += OnDependentPropertyChanged; barcodeTraceabilityManager.IsBypassUsed = false; barcodeTraceabilityManager.IsScanning = false; barcodeTraceabilityManager.NewConsumableCount = 0; SaveCommand = new RelayCommand(OnSaveCommand); AddArbitraryCommand = new RelayCommand(OnAddArbitraryCommand); BypassCommand = new RelayCommand(OnBypassCommand); RemoveBarcodeCommand = new RelayCommand <int>(OnRemoveBarcodeCommand); }
//public PatientEntityIdentifier GetPatientByCardSerialNumber(string cardSerialNumber) //{ // return _mgr.GetPatientByCardSerialNumber(cardSerialNumber); //} public PatientEntity GetPatientEntityByIdentifier(string identifierCode, string identifierValue) { IIdentifiersManager _idMgr = (IIdentifiersManager)ObjectFactory.CreateInstance("BusinessProcess.CCC.Enrollment.BIdentifier, BusinessProcess.CCC"); IPersonIdentifierManager _personmgr = (IPersonIdentifierManager)ObjectFactory.CreateInstance("BusinessProcess.CCC.Enrollment.BPersonIdentifier, BusinessProcess.CCC"); PatientEntity patient = null; IPatientManager _patMgr = (IPatientManager)ObjectFactory.CreateInstance("BusinessProcess.CCC.Patient.BPatient, BusinessProcess.CCC"); var identifier = _idMgr.GetIdentifierByCode(identifierCode); if (identifier == null) { return(patient); } if ((IdentifierType)identifier.IdentifierType == IdentifierType.Patient) { var retVal = CheckIfIdentifierNumberIsUsed(identifierValue, identifier.Id); if (retVal != null && retVal.Count > 0) { patient = PatientEntityHelper.MapFromPatientPersonView(_patMgr.GetPatient(retVal[0].PatientId)); } } else if ((IdentifierType)identifier.IdentifierType == IdentifierType.Person) { var retVal = _personmgr.CheckIfPersonIdentifierExists(identifierValue, identifier.Id); if (retVal != null && retVal.Count > 0) { patient = PatientEntityHelper.MapFromPatientPersonView(_patMgr.GetPatientEntityByPersonId(retVal[0].PersonId)); } } return(patient); }
public PatientController(IPatientManager manager, IHttpContextAccessor httpContextAccessor, UserManager <User> userManager, IJwtTokenGenerator jwtTokenGenerator) { _manager = manager; _httpContextAccessor = httpContextAccessor; _userManager = userManager; _jwtTokenGenerator = jwtTokenGenerator; }
public Read(Patient patient, IPatientManager patientManager, IAppointmentManager appointmentManager, ITestResultManager testResultManager) { InitializeComponent(); this.patient = patient; this.appointmentManager = appointmentManager; this.testResultManager = testResultManager; this.patientManager = patientManager; }
public FrmAddEditPatient(Patient patient = null) { _patientManager = new PatientManager(); _doctorManager = new DoctorManager(); _doctorList = _doctorManager.Read(); _patient = patient; InitializeComponent(); }
public Add(IPatientManager patientManager, IEmergencyContactManager emergencyContactManager, IConsultationManager consultationManager, IAddressManager addressManager) { InitializeComponent(); this.patientManager = patientManager; this.emergencyContactManager = emergencyContactManager; this.consultationManager = consultationManager; this.addressManager = addressManager; }
public ProviderController(IProviderManager manager, IHttpContextAccessor httpContextAccessor, IEmailService emailService, ISMSService smsService, IPatientManager patientIManager) { _manager = manager; _httpContextAccessor = httpContextAccessor; _emailService = emailService; _smsService = smsService; _patientManager = patientIManager; }
public HomeController(ICenterLoginManager centerLoginManager, IDoctorManager doctorManager, IMedicineStoreManager medicineStoreManager, IDiseaseManager diseaseManager, IPatientManager patientManager, IPatientTreatmentManager patientTreatmentManager) { _centerLoginManager = centerLoginManager; _doctorManager = doctorManager; _medicineStoreManager = medicineStoreManager; _diseaseManager = diseaseManager; _patientManager = patientManager; _patientTreatmentManager = patientTreatmentManager; }
public PatientDetailViewController(IPatientManager patientManager, int patientId) { this.PatientManager = patientManager; this.patientId = patientId; this.View.BackgroundColor = UIColor.White; if (AppDelegate.IsPad) { this.toolbar = new UIToolbar(new RectangleF(0, 0, UIScreen.MainScreen.Bounds.Width, 40)); this.View.AddSubview(this.toolbar); this.y = 40; } this.nameLabel = new UILabel() { TextAlignment = UITextAlignment.Left, Font = UIFont.FromName("Helvetica-Light", AppDelegate.Font16pt), BackgroundColor = UIColor.FromWhiteAlpha(0f, 0f) }; this.titleLabel = new UILabel() { TextAlignment = UITextAlignment.Left, Font = UIFont.FromName("Helvetica-LightOblique", AppDelegate.Font10pt), TextColor = UIColor.DarkGray, BackgroundColor = UIColor.FromWhiteAlpha(0f, 0f) }; this.companyLabel = new UILabel() { TextAlignment = UITextAlignment.Left, Font = UIFont.FromName("Helvetica-Light", AppDelegate.Font10pt), TextColor = UIColor.DarkGray, BackgroundColor = UIColor.FromWhiteAlpha(0f, 0f) }; this.bioTextView = new UITextView() { TextAlignment = UITextAlignment.Left, Font = UIFont.FromName("Helvetica-Light", AppDelegate.Font10_5Pt), BackgroundColor = UIColor.FromWhiteAlpha(0f, 0f), ScrollEnabled = true, Editable = false }; this.image = new UIImageView(); this.scrollView = new UIScrollView(); this.scrollView.AddSubview(this.nameLabel); this.scrollView.AddSubview(this.titleLabel); this.scrollView.AddSubview(this.companyLabel); this.scrollView.AddSubview(this.bioTextView); this.scrollView.AddSubview(this.image); this.Add(this.scrollView); }
public FrmViewPatient(Form parentForm) { _patientManager = new PatientManager(); _doctorManager = new DoctorManager(); _patientList = _patientManager.Read(); _doctorList = _doctorManager.Read(); _parentForm = parentForm; InitializeComponent(); }
public HeadOfficeController(IMedicineManager medicineManager, IDiseaseManager diseaseManager, ICenterManager centerManager, ICenterLoginManager centerLoginManager, IMedicineStoreManager medicineStoreManager, IPatientManager patientManager) { _medicineManager = medicineManager; _diseaseManager = diseaseManager; _centerManager = centerManager; _centerLoginManager = centerLoginManager; _medicineStoreManager = medicineStoreManager; _patientManager = patientManager; }
/// <summary> /// Get instance of manager class by passing context /// </summary> /// <param name="context"></param> /// <returns></returns> public static IPatientManager CreateInstance(CallingContext context) { IPatientManager instance = null; if (context == CallingContext.ContextTypeA) { instance = new PatientManager(); } return(instance); }
public AccountController(UserManager <User> userManager, IJwtTokenGenerator jwtTokenGenerator, IProviderManager manager, IPatientManager patientIManager, IHttpContextAccessor httpContextAccessor, IPaymentService paymentService, ICommonManager commonManager) { _userManager = userManager; _jwtTokenGenerator = jwtTokenGenerator; _providerManager = manager; _patientIManager = patientIManager; _httpContextAccessor = httpContextAccessor; _paymentService = paymentService; _commonManager = commonManager; }
public MediHub(IProviderManager providerManager, ISuperAdminManager superAdminManager, IHttpContextAccessor httpContextAccessor, IPatientManager patientIManager, ICommonManager commonManager, UserManager <User> userManager, IEmailService emailService, ISMSService sMSService) { _providerManager = providerManager; _superAdminManager = superAdminManager; _httpContextAccessor = httpContextAccessor; _patientIManager = patientIManager; _commonManager = commonManager; _userManager = userManager; _emailService = emailService; _sMSService = sMSService; }
/// <summary>for iPad</summary> public PatientListViewController( IPatientManager patientManager, PatientSplitViewController patientSplitViewController, IPatientFileUpdateManager patientFileUpdateManager, IObjectFactory objectFactory) : base(patientFileUpdateManager) { PatientManager = patientManager; this.ObjectFactory = objectFactory; this.splitViewController = patientSplitViewController; this.EnableSearch = true; // requires PatientTableElement to implement Matches() }
public PatientDetailViewController(IPatientManager patientManager, int patientId) { this.PatientManager = patientManager; this.patientId = patientId; this.View.BackgroundColor = UIColor.White; if (AppDelegate.IsPad) { this.toolbar = new UIToolbar (new RectangleF(0,0,UIScreen.MainScreen.Bounds.Width, 40)); this.View.AddSubview (this.toolbar); this.y = 40; } this.nameLabel = new UILabel () { TextAlignment = UITextAlignment.Left, Font = UIFont.FromName ("Helvetica-Light", AppDelegate.Font16pt), BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f) }; this.titleLabel = new UILabel () { TextAlignment = UITextAlignment.Left, Font = UIFont.FromName ("Helvetica-LightOblique", AppDelegate.Font10pt), TextColor = UIColor.DarkGray, BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f) }; this.companyLabel = new UILabel () { TextAlignment = UITextAlignment.Left, Font = UIFont.FromName ("Helvetica-Light", AppDelegate.Font10pt), TextColor = UIColor.DarkGray, BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f) }; this.bioTextView = new UITextView () { TextAlignment = UITextAlignment.Left, Font = UIFont.FromName ("Helvetica-Light", AppDelegate.Font10_5Pt), BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f), ScrollEnabled = true, Editable = false }; this.image = new UIImageView(); this.scrollView = new UIScrollView(); this.scrollView.AddSubview (this.nameLabel); this.scrollView.AddSubview (this.titleLabel); this.scrollView.AddSubview (this.companyLabel); this.scrollView.AddSubview (this.bioTextView); this.scrollView.AddSubview (this.image); this.Add (this.scrollView); }
public Read(Patient patient, IPatientManager patientManager, IAddressManager addressManager, IEmergencyContactManager emergencyContactManager, ITestResultManager testResultManager ) { InitializeComponent(); this.patient = patient; this.patientManager = patientManager; this.addressManager = addressManager; this.emergencyContactManager = emergencyContactManager; this.testResultManager = testResultManager; }
public PatientController(IPatientManager patientManager, IAddressManager addressManager, IEmergencyContactManager emergencyContactManager, IConsultationManager consultationManager, IAppointmentManager appointmentManager, IPatientFactory patientFactory) { _patientManager = patientManager; _addressManager = addressManager; _emergencyContactManager = emergencyContactManager; _consultationManager = consultationManager; _appointmentManager = appointmentManager; _patientFactory = patientFactory; }
public PatientSearchPageViewModel(INavigationService navigationService, IGenericRepo <mstr_ward_details> mstrWardRepo, IGenericRepo <mstr_bed_details> mstrBedRepo, IPatientManager patientManager, IGenericRepo <mstr_patient_info> patientRepo, IPageDialogService pageDialog) : base(navigationService, pageDialog) { _mstrWardRepo = mstrWardRepo; _mstrBedRepo = mstrBedRepo; _patientManager = patientManager; _patientRepo = patientRepo; SearchBtnCommand = new DelegateCommand <string>(GetPatientsList); LoadData(); var currentDate = DateTime.UtcNow.Date; MaxDate = MinDate.AddDays(1); }
public PatientSearchPageViewModel(INavigationService navigationService, IGenericRepo <mstr_ward_details> mstrWardRepo, IGenericRepo <mstr_bed_details> mstrBedRepo, IPatientManager patientManager, IGenericRepo <mstr_patient_info> patientRepo, IPageDialogService pageDialog) : base(navigationService, pageDialog) { _mstrWardRepo = mstrWardRepo; _mstrBedRepo = mstrBedRepo; _patientManager = patientManager; _patientRepo = patientRepo; SearchBtnCommand = new DelegateCommand <string>(GetPatientsList); Library.KEY_langchangedfrommealpage = "no"; LoadData(); var currentDate = DateTime.UtcNow.Date; MaxDate = Device.RuntimePlatform == Device.Android ? MinDate.AddDays(2) : MinDate.AddDays(1); }
public PatientEntity GetPatientByCardSerialNumber(string cardSerialNumber) { IIdentifiersManager _idMgr = (IIdentifiersManager)ObjectFactory.CreateInstance("BusinessProcess.CCC.Enrollment.BIdentifier, BusinessProcess.CCC"); IPersonIdentifierManager _personmgr = (IPersonIdentifierManager)ObjectFactory.CreateInstance("BusinessProcess.CCC.Enrollment.BPersonIdentifier, BusinessProcess.CCC"); // IPatientLookupmanager _patientLookupmanager = (IPatientLookupmanager)ObjectFactory.CreateInstance("BusinessProcess.CCC.BPatientLookupManager, BusinessProcess.CCC"); PatientEntity patient = null; IPatientManager _patMgr = (IPatientManager)ObjectFactory.CreateInstance("BusinessProcess.CCC.Patient.BPatient, BusinessProcess.CCC"); var identifier = _idMgr.GetIdentifierByCode("CARD_SERIAL_NUMBER"); if (identifier != null) { var retVal = _personmgr.CheckIfPersonIdentifierExists(cardSerialNumber, identifier.Id); if (retVal != null && retVal.Count > 0) { patient = PatientEntityHelper.MapFromPatientPersonView(_patMgr.GetPatientEntityByPersonId(retVal[0].PersonId)); } } return(patient); }
/// <summary>for iPhone</summary> public PatientListViewController( IPatientManager patientManager, IPatientFileUpdateManager patientFileUpdateManager, IObjectFactory objectFactory) : this(patientManager, null, patientFileUpdateManager, objectFactory) { }
public Patient(IPatientManager manager) { _patientManager = manager; }
public Patient(IConfiguration configuration) { _patientManager = new PatientManager(configuration); }
public HomeController(ILogger <HomeController> logger, IPatientManager patientManager) { _logger = logger; _patientManager = patientManager; }
public PatientController(IPatientManager iPatientManager) { IPatientManager = iPatientManager; }