Exemple #1
0
        /// <summary>
        /// 初始化体征数据
        /// </summary>
        private void IntensiveSignRefresh()
        {
            string patientID = ExtendAppContext.Current.PatientInformationExtend.PATIENT_ID;
            int    visitID   = ExtendAppContext.Current.PatientInformationExtend.VISIT_ID;
            int    operID    = ExtendAppContext.Current.PatientInformationExtend.OPER_ID;
            string eventNo   = ExtendAppContext.Current.EventNo;

            if (_rescueTime.BeginTime.HasValue)
            {
                ProcessBeginTime = _rescueTime.BeginTime.Value;
            }
            else
            {
                ProcessBeginTime = null;
            }
            if (_rescueTime.EndTime.HasValue)
            {
                ProcessEndTime = _rescueTime.EndTime.Value;
            }
            _vitalSignList = AnesInfoService.ClientInstance.GetVitalSignData(patientID, visitID, operID, eventNo, true);
            ScheduledTimeViewModel scheduledTimeViewModel = new ScheduledTimeViewModel();
            DateTimeRangeModel     timeRange = new DateTimeRangeModel(_rescueTime.BeginTime.Value, _rescueTime.EndTime == null ? _rescueTime.BeginTime.Value.AddMinutes(20) : _rescueTime.EndTime);

            xAxisSetting = scheduledTimeViewModel.SetAxisSetting(timeRange, true);

            VitalSignViewModel vitalSign = new VitalSignViewModel(_vitalSignList, null, _vitalSignGraph, _xAxisSetting);

            Curves = vitalSign.GetVitalSignCurve(true, _rescueTime);
        }
Exemple #2
0
        protected void LoadVitalSignControl()
        {
            if (null == ExtendAppContext.Current.PatientInformationExtend)
            {
                return;
            }

            IsVitalSignsEditEnable = ExtendAppContext.Current.IsModify & ExtendAppContext.Current.IsPermission;
            string patientID = ExtendAppContext.Current.PatientInformationExtend.PATIENT_ID;
            int    visitID   = ExtendAppContext.Current.PatientInformationExtend.VISIT_ID;
            int    operID    = ExtendAppContext.Current.PatientInformationExtend.OPER_ID;
            string eventNo   = ExtendAppContext.Current.EventNo;

            _vitalSignList = AnesInfoService.ClientInstance.GetVitalSignData(patientID, visitID, operID, eventNo, false);
            _anesEventList = AnesInfoService.ClientInstance.GetAnesthesiaEventByEventNo(patientID, visitID, operID, eventNo);
            _operMaster    = AnesInfoService.ClientInstance.GetOperationMaster(patientID, visitID, operID);
            if (_operMaster.IN_DATE_TIME.HasValue)
            {
                ProcessBeginTime = _operMaster.IN_DATE_TIME;
            }
            else
            {
                ProcessBeginTime = null;
            }
            if (_operMaster.END_DATE_TIME.HasValue)
            {
                ProcessEndTime = _operMaster.OUT_DATE_TIME;
            }
            else
            {
                ProcessEndTime = null;
            }
            List <MED_OPERATION_RESCUE> operRescueList = CommonService.ClientInstance.GetOperationRescue(patientID, visitID, operID);
            List <MED_CAMERA_PICINFO>   cameraList     = CareDocService.ClientInstance.GetPicInfoList(patientID, visitID, operID);

            RescueTimeList = new List <RescueTime>();
            if (operRescueList != null && operRescueList.Count > 0)
            {
                foreach (MED_OPERATION_RESCUE row in operRescueList)
                {
                    RescueTimeList.Add(new RescueTime(row.START_DATE_TIME, row.END_DATE_TIME));
                }
            }
            if (ExtendAppContext.Current.IsOperationRescuing && ExtendAppContext.Current.OperationRescueStartTime != null && ExtendAppContext.Current.OperationRescueStartTime != DateTime.MinValue)
            {
                RescueTimeList.Add(new RescueTime(ExtendAppContext.Current.OperationRescueStartTime, null));
            }

            if (cameraList != null && cameraList.Count > 0)
            {
                foreach (MED_CAMERA_PICINFO row in cameraList)
                {
                    RescueTimeList.Add(new RescueTime(row.UPDATE_TIME));
                }
            }

            ScheduledTimeViewModel scheduledTimeViewModel = new ScheduledTimeViewModel();
            DateTimeRangeModel     pageTimeRange          = scheduledTimeViewModel.GetGraphDateTime(_vitalSignList, _anesEventList, eventNo, _operMaster);

            xAxisSetting = scheduledTimeViewModel.SetAxisSetting(pageTimeRange, false);

            VitalSignViewModel vitalSign = new VitalSignViewModel(_vitalSignList, _anesEventList, _vitalSignGraph, _xAxisSetting);

            Curves         = vitalSign.GetVitalSignCurve(false, null);
            TextMarkPoints = vitalSign.GetBloodGasItems(ExtendAppContext.Current.PatientInformationExtend.PATIENT_ID, ExtendAppContext.Current.PatientInformationExtend.VISIT_ID,
                                                        ExtendAppContext.Current.PatientInformationExtend.OPER_ID);
            EventMarkViewModel eventMark = new EventMarkViewModel(_anesEventList, _operMaster, _vitalSignGraph);

            EventMark = eventMark.GetEventMark();
            BreathParaViewModel breathViewModel = new BreathParaViewModel(_vitalSignGraph);

            BreathParam = breathViewModel.GetBreathPara();
        }