public EditPatientView(CombinedPatientViewModel originalModel, CombinedPatientViewModel patientModel, PatientService patientService, PersonService personService, WardService wardService, BedService bedService, VisitService visitService, TreatmentService treatmentService, ProcedureService procedureService, PhysicianService physicianService, DiagnosisService diagnosisService, ConditionService conditionService, VitalRecordService vitalRecordService, EmployeeService nurseService, OrderServiceLayer orderServiceLayer, OrderServiceService orderServiceService, PatientOrderService patientOrderService, OrderItemService orderItemService) { InitializeComponent(); InfoTab.Content = new PatientInfoView(originalModel, patientModel, patientService, personService, wardService, bedService, visitService); TreatmentTab.Content = new TreatmentView(treatmentService, originalModel.PatientModel.PersonId, procedureService, physicianService); DiagnosisTab.Content = new DiagnosisView(diagnosisService, originalModel.PatientModel.PersonId, conditionService, physicianService); VitalRecordTab.Content = new VitalRecordView(vitalRecordService, originalModel.PatientModel.PersonId, nurseService); OrderTab.Content = new OrderView(orderServiceLayer, originalModel.PatientModel.PersonId, orderServiceService, physicianService); PatientOrderTab.Content = new PatientOrderView(patientOrderService, originalModel.PatientModel.PersonId, orderItemService); }
public AddPatientView(PatientListViewModel patientListViewModel, PatientService patientService, DiagnosisService diagnosisService, PersonService personService, EmployeeService employeeService, WardService wardService, BedService bedService, PhysicianService physicianService, VitalRecordService vitalRecordService, ConditionService conditionService) { _toAddPatient = new AddPatientViewModel(patientListViewModel, patientService, personService, diagnosisService, physicianService, employeeService, wardService, bedService, vitalRecordService, conditionService); DataContext = _toAddPatient; InitializeComponent(); InsuranceCheckBox.IsChecked = true; }
public VitalRecordView(VitalRecordService vitalRecordService, string patientId, EmployeeService nurseService) { InitializeComponent(); _vitalRecordService = vitalRecordService; var vitalRecordListViewModel = new VitalRecordListViewModel(_vitalRecordService, patientId); DataContext = vitalRecordListViewModel; }
public void AddVitalRecordTest() { var serv = new VitalRecordService(new MVCHContext()); serv.AddVitalRecord(new VitalRecord { Value = "5 feet 9 inches", DateTime = DateTime.Now, VitalId = "VTL-000001", PatientId = "PER-000021", NurseId = "PER-000031" }); serv.AddVitalRecord(new VitalRecord { Value = "76 kg", DateTime = DateTime.Now, VitalId = "VTL-000002", PatientId = "PER-000021", NurseId = "PER-000031" }); serv.AddVitalRecord(new VitalRecord { Value = "120/80", DateTime = DateTime.Now, VitalId = "VTL-000003", PatientId = "PER-000021", NurseId = "PER-000031" }); serv.AddVitalRecord(new VitalRecord { Value = "120 bpm", DateTime = DateTime.Now, VitalId = "VTL-000004", PatientId = "PER-000021", NurseId = "PER-000031" }); serv.AddVitalRecord(new VitalRecord { Value = "36.2 C", DateTime = DateTime.Now, VitalId = "VTL-000005", PatientId = "PER-000021", NurseId = "PER-000031" }); }
public AddPatientViewModel(PatientListViewModel patientListViewModel, PatientService patientService, PersonService personService, DiagnosisService diagnosisService, PhysicianService physicianService, EmployeeService employeeService, WardService wardService, BedService bedService, VitalRecordService vitalRecordService, ConditionService conditionService) { _patientListViewModel = patientListViewModel; _patientService = patientService; _personService = personService; _diagnosisService = diagnosisService; _physicianService = physicianService; _employeeService = employeeService; _wardService = wardService; _bedService = bedService; _vitalRecordService = vitalRecordService; _conditionService = conditionService; ContactPersons = new ObservableCollection <Person>(_personService.GetPersons() .Where(c => c.Discriminator == "Person")); SubscriberPersons = new ObservableCollection <Person>(_personService.GetPersons() .Where(c => c.Discriminator == "Person")); Nurses = new ObservableCollection <Nurse>(_employeeService.GetNurses()); Physicians = new ObservableCollection <Physician>(_physicianService.GetPhysicians()); Wards = new ObservableCollection <Ward>(_wardService.GetWards() .Include(c => c.FacilityLink)); Beds = new ObservableCollection <Bed>(_bedService.GetBeds() .Include(c => c.WorkUnitLink)); Conditions = new ObservableCollection <Condition>(_conditionService.GetConditions()); PatientModel.BirthDate = DateTime.Now; PatientModel.DateOfContact = DateTime.Now; InpatientModel.DateAdmitted = DateTime.Now; InpatientModel.DischargeDate = DateTime.Now; }
public PatientView() { _patientService = new PatientService(new MVCHContext()); _patientListViewModel = new PatientListViewModel(_patientService); _diagnosisService = new DiagnosisService(new MVCHContext()); _personService = new PersonService(new MVCHContext()); _employeeService = new EmployeeService(new MVCHContext()); _wardService = new WardService(new MVCHContext()); _bedService = new BedService(new MVCHContext()); _physicianService = new PhysicianService(new MVCHContext()); _vitalRecordService = new VitalRecordService(new MVCHContext()); _conditionService = new ConditionService(new MVCHContext()); _visitService = new VisitService(new MVCHContext()); _treatmentService = new TreatmentService(new MVCHContext()); _procedureService = new ProcedureService(new MVCHContext()); _orderServiceLayer = new OrderServiceLayer(new MVCHContext()); _orderServiceService = new OrderServiceService(new MVCHContext()); _patientOrderService = new PatientOrderService(new MVCHContext()); _orderItemService = new OrderItemService(new MVCHContext()); DataContext = _patientListViewModel; InitializeComponent(); }