Ejemplo n.º 1
0
 /// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="patModel">患者信息实体</param>
 /// <param name="eventNo">软件类型:麻醉=0,复苏=1</param>
 public BloodGasAnalysisViewModel(MED_PAT_INFO medPatInfo, string eventNo)
 {
     this.outDateTime = medPatInfo.OUT_DATE_TIME;// 获取患者当前的出手术室时间
     this.eventNo     = eventNo;
     this.medPatInfo  = medPatInfo;
     this.RegisterCommand();
     this.RefreshMasterData();
     this.DelButtonIsEnabled  = this.MedBloodGasMaster.Count > 0;
     this.EditButtonIsEnabled = this.MedBloodGasMaster.Count > 0;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 构造方法
 /// </summary>
 public PacsInterfaceViewModel(MED_PAT_INFO patModel)
 {
     if (patModel != null)
     {
         this.CurPatientModel = PatientModel.CreateModel(patModel);
         this.GetSyncPacsNoAndType();
         // 注册按钮命令
         this.RegisterCommand();
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 构造方法
 /// </summary>
 public OperationRescueViewModel(MED_PAT_INFO patModel, DateTime startDateTime, DateTime endDateTime, Grid grid)
 {
     if (patModel != null)
     {
         this.CurPatientModel = PatientModel.CreateModel(patModel);
         this.StartDateTime   = startDateTime;
         this.EndDateTime     = endDateTime;
         this.mainGrid        = grid;
         // 注册按钮命令
         this.RegisterCommand();
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 构造方法
 /// </summary>
 public OperationScreenViewModel(MED_PAT_INFO patModel, RichTextBox rtb)
 {
     if (patModel != null)
     {
         this.CurPatientModel = PatientModel.CreateModel(patModel);
         this.rtbOtherMesInfo = rtb;
         // 设置列表信息
         this.ResetOperScreenTypeList("家属呼叫");
         // 注册按钮命令
         this.RegisterCommand();
     }
 }
Ejemplo n.º 5
0
 /// <summary>
 /// 构造方法
 /// </summary>
 public ChangeOperRoomNoViewModel(MED_PAT_INFO patModel)
 {
     if (patModel != null)
     {
         this.CurPatientModel      = PatientModel.CreateModel(patModel);
         this.MedOperatingRoomDict = DictService.ClientInstance.GetOperatingRoomList().Where(x => x.DEPT_CODE.Equals(ExtendAppContext.Current.OperDeptCode) &&
                                                                                             x.BED_TYPE.Equals(ExtendAppContext.Current.EventNo)).ToList();
         this.CbOperatingRoomSourceList = new List <MED_OPERATING_ROOM>(this.MedOperatingRoomDict);
         //this.CbOperatingRoomSourceList = this.MedOperatingRoomDict.Where(x => x.BED_TYPE == ExtendAppContext.Current.EventNo && (x.PATIENT_ID == null || string.IsNullOrEmpty(x.PATIENT_ID)))
         //    .OrderBy(t => t.SORT_NO).ToList();
         // 注册按钮命令
         this.RegisterCommand();
     }
 }
Ejemplo n.º 6
0
 /// <summary>
 /// 构造方法
 /// </summary>
 public OperationCanceledViewModel(MED_PAT_INFO patModel, RichTextBox rtb)
 {
     if (patModel != null)
     {
         this.CurPatientModel      = PatientModel.CreateModel(patModel);
         this.MedOperatingRoomDict = DictService.ClientInstance.GetOperatingRoomList().Where(x => x.DEPT_CODE.Equals(ExtendAppContext.Current.OperDeptCode) &&
                                                                                             x.BED_TYPE.Equals(ExtendAppContext.Current.EventNo)).ToList();
         this.OperRoomNo = ExtendAppContext.Current.OperRoomNo;
         this.rtbResaon  = rtb;
         // 设置列表信息
         this.ResetOperCancelTypeList("医院因素");
         // 注册按钮命令
         this.RegisterCommand();
     }
 }
Ejemplo n.º 7
0
        public static int GetMaxEventItemNo(MED_PAT_INFO patientContext)
        {
            int maxItemNo = 0;
            List <MED_ANESTHESIA_EVENT> anesEvent = AnesInfoService.ClientInstance.GetAnesthesiaEventList(patientContext.PATIENT_ID, patientContext.VISIT_ID, patientContext.OPER_ID);

            if (anesEvent != null && anesEvent.Count > 0)
            {
                anesEvent.ForEach(row =>
                {
                    if (row.ITEM_NO > maxItemNo)
                    {
                        maxItemNo = row.ITEM_NO;
                    }
                });
            }
            return(maxItemNo);
        }
Ejemplo n.º 8
0
        /// <summary>
        /// 刷新界面数据
        /// </summary>
        public void RefreshData()
        {
            // 在刷新数据时可能是定时器刷新也可能是消息指令刷新,为了防止数据冲突,使用对象锁
            lock (this.locker)
            {
                try
                {
                    // 每次刷新时从数据库中获取患者信息
                    MED_PAT_INFO patInfo = PatInfoService.ClientInstance.GetCurPatientInfo(ExtendAppContext.Current.OperDeptCode, ExtendAppContext.Current.OperRoomNo);
                    this.CurPatientModel = PatientModel.CreateModel(patInfo);

                    if (null != this.CurPatientModel)
                    {
                        this.IsSelectedBorderVisibility = Visibility.Visible;
                        ExtendAppContext.Current.PatientInformationExtend = this.CurPatientModel.Med_Pat_Info;
                        //设置状态灯亮
                        int lightIndex = OperationStatusHelper.GetOperStatusIndex(ExtendAppContext.Current.PatientInformationExtend.OPER_STATUS_CODE);
                        KeyBoardStateCache.KeyBoard.OpenSecondKeyBoardAllLed(lightIndex);
                        // 刷新患者的体征数据
                        this.RefreshVitalSignList();
                        // 刷新监护仪和麻醉机的图标显示
                        this.RefreshMonitor();
                    }
                    else
                    {
                        this.IsSelectedBorderVisibility = Visibility.Collapsed;
                        ExtendAppContext.Current.PatientInformationExtend = null;
                        //关闭状态灯
                        if (KeyBoardStateCache.KeyBoard != null)
                        {
                            KeyBoardStateCache.KeyBoard.CloseSecondKeyBoardAllLed();
                        }
                    }

                    // 设置图片显示或隐藏
                    this.SetOperationVisibility();
                    // 刷新手术时长信息
                    this.RefreshOperationLength();
                }
                catch (Exception ex)
                {
                    Logger.Error("获取术中信息异常", ex);
                    this.ShowMessageBox("获取术中信息发生异常。", MessageBoxButton.OK, MessageBoxImage.Error);
                }
            }
        }
Ejemplo n.º 9
0
 /// <summary>
 /// 构造方法
 /// </summary>
 public OperationJumpViewModel(MED_PAT_INFO patModel, RichTextBox rtb)
 {
     if (patModel != null)
     {
         this.CurPatientModel      = PatientModel.CreateModel(patModel);
         OperStatus                = OperationStatusHelper.OperationStatusToString(OperationStatus.IsReady);
         this.MedOperatingRoomDict = DictService.ClientInstance.GetOperatingRoomList().Where(x => x.DEPT_CODE.Equals(ExtendAppContext.Current.OperDeptCode) &&
                                                                                             x.BED_TYPE.Equals(ExtendAppContext.Current.EventNo)).ToList();
         this.CbOperatingRoomSourceList = this.MedOperatingRoomDict.Where(x => x.BED_TYPE == ExtendAppContext.Current.EventNo && (x.PATIENT_ID == null || string.IsNullOrEmpty(x.PATIENT_ID))).ToList();
         this.rtbResaon  = rtb;
         this.OperRoomNo = CurPatientModel.OperRoomNo;
         this.LoadOperStatusList();
         // 注册按钮命令
         this.RegisterCommand();
         // 设置界面显示的警告消息
         this.ResetWarningMessage();
     }
 }
Ejemplo n.º 10
0
        /// <summary>
        /// 单个患者的PDF归档
        /// </summary>
        private void SignPatientPostPDF(object par)
        {
            MED_PAT_INFO curPat = ExtendAppContext.Current.PatientInformationExtend;

            try
            {
                MED_POSTPDF_SHOW temp = par as MED_POSTPDF_SHOW;

                // 加载文书时涉及到全局缓存,需要重新设置
                ExtendAppContext.Current.PatientInformationExtend = new MED_PAT_INFO()
                {
                    PATIENT_ID = temp.PATIENT_ID, VISIT_ID = temp.VISIT_ID, OPER_ID = temp.OPER_ID
                };

                if (string.IsNullOrEmpty(temp.NO_EXIST_DOCNAMES))
                {
                    return;
                }

                List <string> noExistPostDocnames = temp.NO_EXIST_DOCNAMES.Split(new char[] { ',' },
                                                                                 StringSplitOptions.RemoveEmptyEntries).ToList();

                if (this.ProBarMaximum == 0)
                {
                    this.ProBarMaximum = noExistPostDocnames.Count;
                }

                foreach (string item in noExistPostDocnames)
                {
                    // 等待刷新界面
                    ExtendAppContext.Current.Sleep(1000);
                    this.PostPDF(item);
                }
            }
            catch
            {
            }
            finally
            {
                ExtendAppContext.Current.PatientInformationExtend = curPat;
            }
        }
Ejemplo n.º 11
0
        public static MED_ANESTHESIA_EVENT CopyAnesthesiaEventRow(List <MED_ANESTHESIA_EVENT> anesthestaEventDataTable
                                                                  , MED_PAT_INFO patientContext, string eventNo, MED_ANESTHESIA_EVENT sourceRow)
        {
            MED_ANESTHESIA_EVENT row = NewAnesthesiaEventRow(anesthestaEventDataTable, patientContext, eventNo);

            row.EVENT_CLASS_CODE   = sourceRow.EVENT_CLASS_CODE;
            row.EVENT_ITEM_NAME    = sourceRow.EVENT_ITEM_NAME;
            row.EVENT_ITEM_SPEC    = sourceRow.EVENT_ITEM_SPEC;
            row.EVENT_ITEM_CODE    = sourceRow.EVENT_ITEM_CODE;
            row.ADMINISTRATOR      = sourceRow.ADMINISTRATOR;
            row.CONCENTRATION      = sourceRow.CONCENTRATION;
            row.CONCENTRATION_UNIT = sourceRow.CONCENTRATION_UNIT;
            row.DOSAGE             = sourceRow.DOSAGE;
            row.DOSAGE_UNITS       = sourceRow.DOSAGE_UNITS;
            row.PERFORM_SPEED      = sourceRow.PERFORM_SPEED;
            row.SPEED_UNIT         = sourceRow.SPEED_UNIT;
            row.PERFORM_SPEED      = sourceRow.PERFORM_SPEED;
            row.EVENT_ATTR         = sourceRow.EVENT_ATTR;
            return(row);
        }
Ejemplo n.º 12
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public AnesFreeViewModel(MED_PAT_INFO patModel)
        {
            this.RegisterCommand();
            this.CurPatientModel = PatientModel.CreateModel(patModel);
            _patientID           = ExtendAppContext.Current.PatientInformationExtend.PATIENT_ID;
            _visitID             = ExtendAppContext.Current.PatientInformationExtend.VISIT_ID;
            _operID  = ExtendAppContext.Current.PatientInformationExtend.OPER_ID;
            _eventNo = "0";
            // 计算麻醉时长
            if (this.CurPatientModel.AnesStartTime != DateTime.MinValue && this.CurPatientModel.AnesEndTime != DateTime.MinValue)
            {
                TimeSpan ts = this.CurPatientModel.AnesEndTime - this.CurPatientModel.AnesStartTime;
                this.StrAnesTimeLength = string.Format("{0}小时{1}分", ts.Hours, ts.Minutes);
            }
            BillDict          = ApplicationModel.Instance.AllDictList.BillItemClassDictList.Where(x => x.TYPE == "0").ToList();
            ValuationItemList = ChargeInfoService.ClientInstance.GetValuationItemList();
            vitalSignTitle    = AnesInfoService.ClientInstance.GetVitalSignTitles(_patientID, _visitID, _operID, _eventNo, ExtendAppContext.Current.PatientInformationExtend.OPER_ROOM_NO);
            List <MED_ANES_VALUATION_LIST> lists = ChargeInfoService.ClientInstance.GetValuationList(_patientID, _visitID, _operID);

            foreach (MED_ANES_VALUATION_LIST row in lists)
            {
                row.ITEM_CLASS_NAME = billDict.Where(x => x.BILL_CLASS_CODE == row.ITEM_CLASS).FirstOrDefault().BILL_CLASS_NAME;
            }
            valuationList      = new ObservableCollection <MED_ANES_VALUATION_LIST>(lists);
            tmpValuationList   = valuationList;
            this.ValuationList = new ObservableCollection <MED_ANES_VALUATION_LIST>(valuationList);
            if (this.ValuationList.Count > 0)
            {
                IsAddEnabled = true;
            }
            foreach (MED_ANES_VALUATION_LIST row in ValuationList)
            {
                if (row.STATUS.HasValue && row.STATUS == 2)
                {
                    IsInsertEnabled = false; IsAddEnabled = false;
                }
            }
        }
Ejemplo n.º 13
0
        public static MED_ANESTHESIA_EVENT CopyAnesthesiaEventRow(List <MED_ANESTHESIA_EVENT> anesthestaEventDataTable, MED_PAT_INFO patientContext, string eventNo, int index)
        {
            MED_ANESTHESIA_EVENT sourceRow = anesthestaEventDataTable[index];

            return(CopyAnesthesiaEventRow(anesthestaEventDataTable, patientContext, eventNo, sourceRow));
        }
Ejemplo n.º 14
0
        public static MED_ANESTHESIA_EVENT NewAnesthesiaEventRow(List <MED_ANESTHESIA_EVENT> anesthestaEventDataTable, MED_PAT_INFO patientContext, string eventNo)
        {
            int      maxItemNo = 0;
            DateTime dt        = DateTime.MaxValue;

            if (anesthestaEventDataTable != null && anesthestaEventDataTable.Count > 0)
            {
                anesthestaEventDataTable.ForEach(dataRow =>
                {
                    if (dataRow.ITEM_NO > maxItemNo)
                    {
                        maxItemNo = dataRow.ITEM_NO;
                    }
                    if (dataRow.START_TIME.HasValue && dataRow.START_TIME.Value < dt)
                    {
                        dt = dataRow.START_TIME.Value;
                    }
                });
            }
            if (dt == DateTime.MaxValue)
            {
                dt = DateTime.Now;
            }
            maxItemNo++;
            MED_ANESTHESIA_EVENT row = new MED_ANESTHESIA_EVENT();

            row.PATIENT_ID = patientContext.PATIENT_ID;
            row.VISIT_ID   = patientContext.VISIT_ID;
            row.OPER_ID    = patientContext.OPER_ID;
            row.EVENT_NO   = eventNo;
            row.ITEM_NO    = maxItemNo;
            DateTime dt1 = DateTime.Now;

            row.START_TIME = new DateTime(dt.Year, dt.Month, dt.Day, dt1.Hour, dt1.Minute, 0);
            dt             = new DateTime(dt.Year, dt.Month, dt.Day, dt.Hour, dt.Minute, 0);
            if (row.START_TIME < dt)
            {
                row.START_TIME = row.START_TIME.Value.AddDays(1);
            }
            return(row);
        }
Ejemplo n.º 15
0
        public RequestResult <MED_PAT_INFO> GetPatInfoByIds(string patient_id, decimal visit_id, decimal oper_id)
        {
            MED_PAT_INFO list = this.patInfoService.GetPatInfoByIds(patient_id, visit_id, oper_id);

            return(Success(list));
        }
Ejemplo n.º 16
0
        /// <summary>
        /// 注册搜索事件
        /// </summary>
        private void RegisterMessage()
        {
            this.SearchCommand = new RelayCommand <string>(key =>
            {
                this.Search(key);
            });

            this.SearchTextChangedCommand = new RelayCommand <string>(key =>
            {
                this.ResetWorkList(key);
            });

            this.SwitchWorkListCommand = new RelayCommand <object>(key =>
            {
                SetTodayWorkList(key);
            });


            this.TomorrowSurgeryWorkListCommand = new RelayCommand <string>(key =>
            {
                this.SwitchWorkList(key);
            });

            this.WeekSurgeryWorkListCommand = new RelayCommand <string>(key =>
            {
                this.SwitchWorkList(key);
            });

            // 急症登记按钮
            this.EmergencyRegisterControl = new RelayCommand <object>(key =>
            {
                this.ShowEmergencyRegister();
            });

            // 还原命令
            this.SpreadCommand = new RelayCommand <string>(key =>
            {
                this.SpreadVisibility = System.Windows.Visibility.Hidden;
                this.CurEnumDayType   = EnumDayType.Today;
                this.CurEnumWorkList  = this.beforCurEnumWorkList;
                this.SwitchWorkList(this.CurEnumWorkList.ToString());
                Messenger.Default.Send <object>(this.CurEnumWorkList, EnumMessageKey.SwitchSurgery);
            });

            // 切换选中项命令
            this.SelectionChangedCommand = new RelayCommand <object>(key =>
            {
                if (key != null && key is PatientModel)
                {
                    SelectItem = key as PatientModel;
                    ExtendAppContext.Current.PatientInformationExtend = (key as PatientModel).Med_Pat_Info;
                    ExtendAppContext.Current.IsPermission             = true;
                    this.UpdateAnesthesiaPlan();
                    Messenger.Default.Send <object>(typeof(WorkListViewModel.WordListViewModel), EnumMessageKey.RefreshSelectedCurPatientInfoBorder);
                }
            });

            // 双击术后病人,直接进入术中界面
            this.MouseDoubleClickCommand = new RelayCommand <object>(key =>
            {
                if (key != null && key is PatientModel)
                {
                    MED_PAT_INFO patient = (key as PatientModel).Med_Pat_Info;
                    if (patient.OPER_STATUS_CODE >= 35)
                    {
                        Messenger.Default.Send <object>(this, EnumMessageKey.ShowInOperationWindow);
                    }
                }
            });

            // 刷新工作列表界面,不能使用异步
            Messenger.Default.Register <object>(this, EnumMessageKey.RefreshWordList, msg =>
            {
                this.RefreshData();
            });

            // 刷新选中项边框是否显示
            Messenger.Default.Register <object>(this, EnumMessageKey.RefreshWorkListSelectedCurPatientInfoBorder, action =>
            {
                if (!(bool)action)
                {
                    this.RefreshData();
                }
            });
        }
Ejemplo n.º 17
0
 /// <summary>
 /// 构造方法
 /// </summary>
 public AddBloodGasMasterViewModel(MED_PAT_INFO curPatInfo)
 {
     this.curPatInfo  = curPatInfo;
     this.medHisUsers = ApplicationModel.Instance.AllDictList.HisUsersList;
 }
Ejemplo n.º 18
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public AssayReportViewModel(MED_PAT_INFO patModel)
 {
     this.medPatInfo = patModel;
     this.RegisterCommand();
     this.SyncMedLab();
 }
Ejemplo n.º 19
0
        /// <summary>
        /// 根据MED_OPERATION_MASTER 转换成 PatientModel
        /// </summary>
        public static PatientModel CreateModel(MED_PAT_INFO patInfo)
        {
            PatientModel patModel = null;

            if (null != patInfo)
            {
                patModel = new PatientModel();
                //patModel.Age = DateDiff.CalAge((DateTime)patInfo.DATE_OF_BIRTH, DateTime.Now);
                patModel.Age                       = DateDiff.CalAge((DateTime)patInfo.DATE_OF_BIRTH, patInfo.SCHEDULED_DATE_TIME.Value);
                patModel.AnesDoctor                = patInfo.ANES_DOCTOR;
                patModel.AnesEndTime               = patInfo.ANES_END_TIME == null ? DateTime.MinValue : (DateTime)patInfo.ANES_END_TIME;
                patModel.AnesMethod                = patInfo.ANES_METHOD;
                patModel.AnesStartTime             = patInfo.ANES_START_TIME == null ? DateTime.MinValue : (DateTime)patInfo.ANES_START_TIME;
                patModel.AsaGrade                  = patInfo.ASA_GRADE;
                patModel.BedNo                     = patInfo.BED_NO + "床";
                patModel.CPBDoctor                 = patInfo.CPB_DOCTOR;
                patModel.DeptCode                  = patInfo.DEPT_CODE;
                patModel.DiagAfterOperation        = patInfo.DIAG_AFTER_OPERATION;
                patModel.DiagBeforeOperation       = patInfo.DIAG_BEFORE_OPERATION;
                patModel.EndDateTime               = patInfo.END_DATE_TIME == null ? DateTime.MinValue : (DateTime)patInfo.END_DATE_TIME;
                patModel.FirstAnesAssistant        = patInfo.FIRST_ANES_ASSISTANT;
                patModel.FirstCPBAssistant         = patInfo.FIRST_CPB_ASSISTANT;
                patModel.FirstOperAssistant        = patInfo.FIRST_OPER_ASSISTANT;
                patModel.FirstOperNurse            = patInfo.FIRST_OPER_NURSE;
                patModel.FirstSupplyNurse          = patInfo.FIRST_SUPPLY_NURSE;
                patModel.FourthOperAssistant       = patInfo.FOURTH_OPER_ASSISTANT;
                patModel.InDateTime                = patInfo.IN_DATE_TIME == null ? DateTime.MinValue : (DateTime)patInfo.IN_DATE_TIME;
                patModel.InPacuDateTime            = patInfo.IN_PACU_DATE_TIME == null ? DateTime.MinValue : (DateTime)patInfo.IN_PACU_DATE_TIME;
                patModel.OperationName             = patInfo.OPERATION_NAME;
                patModel.OperClass                 = patInfo.OPER_CLASS;
                patModel.OperDeptCode              = patInfo.OPER_DEPT_CODE;
                patModel.OperID                    = patInfo.OPER_ID;
                patModel.OperPosition              = patInfo.OPER_POSITION;
                patModel.OperRoom                  = patInfo.OPER_ROOM;
                patModel.OperRoomNo                = patInfo.OPER_ROOM_NO;
                patModel.OperScale                 = patInfo.OPER_SCALE;
                patModel.OperStatusCode            = (OperationStatus)patInfo.OPER_STATUS_CODE;
                patModel.OperStatusCodeDescription = ApplicationModel.Instance.GetEnumDescription <OperationStatus>(patModel.OperStatusCode);
                patModel.OutDateTime               = patInfo.OUT_DATE_TIME == null ? DateTime.MinValue : (DateTime)patInfo.OUT_DATE_TIME;
                patModel.OutPacuDateTime           = patInfo.OUT_PACU_DATE_TIME == null ? DateTime.MinValue : (DateTime)patInfo.OUT_PACU_DATE_TIME;
                patModel.PACUDoctor                = patInfo.PACU_DOCTOR;
                patModel.PatientCondition          = patInfo.PATIENT_CONDITION;
                patModel.PatientID                 = patInfo.PATIENT_ID;
                patModel.PatWhereaborts            = patInfo.PAT_WHEREABORTS;
                patModel.ReqDateTime               = patInfo.REQ_DATE_TIME == null ? DateTime.MinValue : (DateTime)patInfo.REQ_DATE_TIME;
                patModel.ScheduledDateTime         = patInfo.SCHEDULED_DATE_TIME == null ? DateTime.MinValue : (DateTime)patInfo.SCHEDULED_DATE_TIME;
                patModel.SecondAnesAssistant       = patInfo.SECOND_ANES_ASSISTANT;
                patModel.SecondOperAssistant       = patInfo.SECOND_OPER_ASSISTANT;
                patModel.SecondOperNurse           = patInfo.SECOND_OPER_NURSE;
                patModel.SecondSupplyNurse         = patInfo.SECOND_SUPPLY_NURSE;
                patModel.Sequence                  = patInfo.SEQUENCE.ToString();
                patModel.StartDateTime             = patInfo.START_DATE_TIME == null ? DateTime.MinValue : (DateTime)patInfo.START_DATE_TIME;
                patModel.Surgeon                   = patInfo.SURGEON;
                patModel.ThirdOperAssistant        = patInfo.THIRD_OPER_ASSISTANT;
                patModel.VisitID                   = patInfo.VISIT_ID;
                patModel.WoundType                 = patInfo.WOUND_TYPE;
                patModel.Name                      = patInfo.NAME;
                patModel.Sex                       = patInfo.SEX;
                patModel.DateOfBirth               = patInfo.DATE_OF_BIRTH;
                patModel.InpNo                     = patInfo.INP_NO;
                patModel.SurgeonAndAss             = "术者:" + patModel.SurgeonName + (string.IsNullOrEmpty(patModel.FirstOperAssistantName) ? string.Empty : "," + patModel.FirstOperAssistantName);
                patModel.AnesDocAndAss             = "主麻:" + patModel.AnesDoctorName + (string.IsNullOrEmpty(patModel.FirstAnesAssistantName) ? string.Empty : "," + patModel.FirstAnesAssistantName);
                patModel.RadiateInd                = null == patInfo.RADIATE_IND ? 0 : (int)patInfo.RADIATE_IND;
                patModel.IsolationInd              = null == patInfo.ISOLATION_IND ? 0 : (int)patInfo.ISOLATION_IND;
                patModel.EmergencyInd              = null == patInfo.EMERGENCY_IND ? 0 : (int)patInfo.EMERGENCY_IND;

                if (patModel.operStatusCode >= OperationStatus.OutOperationRoom)
                {
                    patModel.StrPatInfo = patModel.InDateTime.ToString("HH:mm") + "-" + patModel.OutDateTime.ToString("HH:mm");

                    patModel.ShowColor = "#deda2d";
                }
                else if (patModel.operStatusCode >= OperationStatus.InOperationRoom)
                {
                    patModel.StrPatInfo = patModel.InDateTime.ToString("HH:mm") + "-";

                    patModel.ShowColor = "#df4932";
                }
                else
                {
                    patModel.StrPatInfo = "术前";

                    patModel.ShowColor = "#28a61a";
                }

                patModel.Med_Pat_Info = patInfo;
            }

            return(patModel);
        }
Ejemplo n.º 20
0
        public RequestResult <MED_PAT_INFO> GetCurPatientInfo(string deptCode, string operRoomNo = "")
        {
            MED_PAT_INFO list = this.patInfoService.GetCurPatientInfo(deptCode, operRoomNo);

            return(Success(list));
        }