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);
        }
예제 #3
0
 public PatientController(IPatientsRepository repository, ILanguagesRepository languagesRepository, IHomeManager homeManager, IPatientManager patientManager)
 {
     this._repository          = repository;
     this._languagesRepository = languagesRepository;
     this._homeManager         = homeManager;
     this._patientManager      = patientManager;
 }
예제 #4
0
 public FrmPatientApp()
 {
     _manager     = new PatientManager();
     _patientList = _manager.Read();
     _resetFlag   = false;
     InitializeComponent();
 }
예제 #5
0
        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);
		}
예제 #7
0
        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;
 }
예제 #9
0
        /// <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);
        }
예제 #10
0
        //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);
        }
예제 #11
0
 public PatientController(IPatientManager manager, IHttpContextAccessor httpContextAccessor, UserManager <User> userManager, IJwtTokenGenerator jwtTokenGenerator)
 {
     _manager             = manager;
     _httpContextAccessor = httpContextAccessor;
     _userManager         = userManager;
     _jwtTokenGenerator   = jwtTokenGenerator;
 }
        public TimelineManager(string apiBaseUrl)
        {
            var client = new FhirClient(new Uri(apiBaseUrl));

            _patientManager  = new PatientManager(client);
            _timelineBuilder = new TimelineBuilder(client);
        }
예제 #13
0
 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();
 }
예제 #15
0
 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;
 }
예제 #17
0
 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;
 }
예제 #18
0
        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);
        }
예제 #19
0
 public FrmViewPatient(Form parentForm)
 {
     _patientManager = new PatientManager();
     _doctorManager  = new DoctorManager();
     _patientList    = _patientManager.Read();
     _doctorList     = _doctorManager.Read();
     _parentForm     = parentForm;
     InitializeComponent();
 }
예제 #20
0
 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;
 }
예제 #21
0
        /// <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);
        }
예제 #22
0
 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;
 }
예제 #23
0
 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;
 }
예제 #24
0
 /// <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()
 }
		/// <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);	
		}
예제 #27
0
 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;
 }
예제 #28
0
 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;
 }
예제 #29
0
        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);
        }
예제 #31
0
        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)
		{
		}
예제 #33
0
 public Patient(IPatientManager manager)
 {
     _patientManager = manager;
 }
예제 #34
0
 public Patient(IConfiguration configuration)
 {
     _patientManager = new PatientManager(configuration);
 }
예제 #35
0
 public HomeController(ILogger <HomeController> logger, IPatientManager patientManager)
 {
     _logger         = logger;
     _patientManager = patientManager;
 }
 public void TestSetUp()
 {
     var client = new FhirClient(new Uri(BaseUrl));
     _timelineBuilder = new TimelineBuilder(client);
     _patientManager = new PatientManager(client);
 }
예제 #37
0
        public PatientController(IPatientManager iPatientManager)
        {
            IPatientManager = iPatientManager;

        }