/// <summary> /// 初始化。 /// </summary> /// <param name="rescueRoomInfo">源抢救室记录。</param> /// <param name="JZID">接诊ID。</param> public ItemRescueRoomInfo(RescueRoomInfo rescueRoomInfo, Guid JZID) { this.RescueRoomInfoId = rescueRoomInfo.RescueRoomInfoId; this.JZID = JZID; if (rescueRoomInfo.NextObserveRoomInfo == null) { if (rescueRoomInfo.Destination.IsGotoObserveRoom) { this.IsUsable = true; this.DisplayText = string.Empty; } else { this.IsUsable = false; this.DisplayText = "非去往留观室"; } } else { this.IsUsable = false; this.DisplayText = "已被其他记录关联"; } this.ReceiveTime = rescueRoomInfo.ReceiveTime; this.InDepartmentTime = rescueRoomInfo.InDepartmentTime; this.OutDepartmentTime = rescueRoomInfo.OutDepartmentTime.Value; this.BedNameFull = rescueRoomInfo.BedNameFull; }
/// <summary> /// Initializes a new instance of the <see cref="Item"/> class. /// </summary> /// <param name="rescueRoomInfo">原抢救室病例。</param> public Item(RescueRoomInfo rescueRoomInfo) { this.RescueRoomInfoId = rescueRoomInfo.RescueRoomInfoId; this.PatientName = rescueRoomInfo.PatientName; this.OutPatientNumber = rescueRoomInfo.OutPatientNumber; this.InDepartmentTime = rescueRoomInfo.InDepartmentTime; this.During = rescueRoomInfo.During; }
public Item(RescueRoomInfo target) { this.RescueRoomInfoId = target.RescueRoomInfoId; 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.GreenPathCategoryNameFull = target.GreenPathCategoryNameFull; this.Antibiotic = target.Antibiotic; this.Remarks = target.Remarks; this.DestinationFirstName = target.DestinationFirstName; this.DestinationSecondName = target.DestinationSecondName; }
public Item(RescueRoomInfo target) { this.RescueRoomInfoId = target.RescueRoomInfoId; 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.CriticalLevelName = target.CriticalLevel?.CriticalLevelName; this.RescueResultNameFull = target.RescueResultNameFull; this.GreenPathCategoryNameFull = target.GreenPathCategoryNameFull; this.OutDepartmentTime = target.OutDepartmentTime; this.During = target.During; this.DestinationName = target.Destination?.DestinationName; this.DiagnosisName = target.DiagnosisName; }
public static void FromEmployeeNumberToName(RescueRoomInfo rescueRoomInfo) { rescueRoomInfo.FirstNurseName = FromEmployeeNumberToName(rescueRoomInfo.FirstNurseName); rescueRoomInfo.DestinationFirstContact = FromEmployeeNumberToName(rescueRoomInfo.DestinationFirstContact); rescueRoomInfo.HandleNurse = FromEmployeeNumberToName(rescueRoomInfo.HandleNurse); }