/// <summary>
        /// 初始化。
        /// </summary>
        /// <param name="observeRoomInfo">源留观室记录。</param>
        /// <param name="JZID">接诊ID。</param>
        public ItemObserveRoomInfo(ObserveRoomInfo observeRoomInfo, Guid JZID)
        {
            this.ObserveRoomInfoId = observeRoomInfo.ObserveRoomInfoId;
            this.JZID = JZID;

            if (observeRoomInfo.NextRescueRoomInfo == null)
            {
                if (observeRoomInfo.Destination.IsGotoRescueRoom)
                {
                    this.IsUsable    = true;
                    this.DisplayText = string.Empty;
                }
                else
                {
                    this.IsUsable    = false;
                    this.DisplayText = "非去往抢救室";
                }
            }
            else
            {
                this.IsUsable    = false;
                this.DisplayText = "已被其他记录关联";
            }

            this.ReceiveTime       = observeRoomInfo.ReceiveTime;
            this.InDepartmentTime  = observeRoomInfo.InDepartmentTime;
            this.OutDepartmentTime = observeRoomInfo.OutDepartmentTime.Value;
            this.BedNameFull       = observeRoomInfo.BedNameFull;
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Item"/> class.
        /// </summary>
        /// <param name="observeRoomInfo">The rescue room information.</param>
        public Item(ObserveRoomInfo observeRoomInfo)
        {
            this.ObserveRoomInfoId = observeRoomInfo.ObserveRoomInfoId;

            this.PatientName      = observeRoomInfo.PatientName;
            this.OutPatientNumber = observeRoomInfo.OutPatientNumber;
            this.InDepartmentTime = observeRoomInfo.InDepartmentTime;
            this.During           = observeRoomInfo.During;
        }
Пример #3
0
        public Item(ObserveRoomInfo target)
        {
            this.ObserveRoomInfoId = target.ObserveRoomInfoId;

            this.PatientName      = target.PatientName;
            this.OutPatientNumber = target.OutPatientNumber;
            this.Sex                   = target.Sex;
            this.ReceiveAgeName        = target.ReceiveAgeName;
            this.DiagnosisNameOrigin   = target.DiagnosisNameOrigin;
            this.InDepartmentTime      = target.InDepartmentTime;
            this.BedNameFull           = target.BedNameFull;
            this.DestinationFirstName  = target.DestinationFirstName;
            this.DestinationSecondName = target.DestinationSecondName;
        }
Пример #4
0
        public Item(ObserveRoomInfo target)
        {
            this.ObserveRoomInfoId = target.ObserveRoomInfoId;
            this.IsLeave           = target.OutDepartmentTime.HasValue;

            this.PatientName         = target.PatientName;
            this.OutPatientNumber    = target.OutPatientNumber;
            this.DiagnosisNameOrigin = target.DiagnosisNameOrigin;
            this.FirstDoctorName     = target.FirstDoctorName;
            this.InDepartmentTime    = target.InDepartmentTime;
            this.OutDepartmentTime   = target.OutDepartmentTime;
            this.During          = target.During;
            this.DestinationName = target.Destination?.DestinationName;
            this.DiagnosisName   = target.DiagnosisName;
        }
Пример #5
0
 public static void FromEmployeeNumberToName(ObserveRoomInfo observeRoomInfo)
 {
     observeRoomInfo.FirstNurseName          = FromEmployeeNumberToName(observeRoomInfo.FirstNurseName);
     observeRoomInfo.DestinationFirstContact = FromEmployeeNumberToName(observeRoomInfo.DestinationFirstContact);
     observeRoomInfo.HandleNurse             = FromEmployeeNumberToName(observeRoomInfo.HandleNurse);
 }