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);
 }
Beispiel #2
0
        public OrderView(OrderServiceLayer orderServiceLayer, string patientId, OrderServiceService orderServiceService, PhysicianService physicianService)
        {
            InitializeComponent();
            _orderServiceLayer = orderServiceLayer;
            var orderListViewModel = new OrderListViewModel(_orderServiceLayer, patientId);

            DataContext = orderListViewModel;
        }
        public void AddOrderServiceTest()
        {
            var serv = new OrderServiceService(new MVCHContext());

            serv.AddOrderService(new OrderService
            {
                OrderId   = "ORD-000001",
                ServiceId = "SVC-000001",
                Quantity  = 1
            });
            serv.AddOrderService(new OrderService
            {
                OrderId   = "ORD-000002",
                ServiceId = "SVC-000002",
                Quantity  = 1
            });
            serv.AddOrderService(new OrderService
            {
                OrderId   = "ORD-000003",
                ServiceId = "SVC-000003",
                Quantity  = 1
            });
            serv.AddOrderService(new OrderService
            {
                OrderId   = "ORD-000004",
                ServiceId = "SVC-000004",
                Quantity  = 1
            });
            serv.AddOrderService(new OrderService
            {
                OrderId   = "ORD-000005",
                ServiceId = "SVC-000005",
                Quantity  = 1
            });
            serv.AddOrderService(new OrderService
            {
                OrderId   = "ORD-000001",
                ServiceId = "SVC-000001",
                Quantity  = 1
            });
            serv.AddOrderService(new OrderService
            {
                OrderId   = "ORD-000001",
                ServiceId = "SVC-000001",
                Quantity  = 1
            });
        }
Beispiel #4
0
 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();
 }