1269 lines
40 KiB
C#
1269 lines
40 KiB
C#
using HelperDB;
|
||
using System;
|
||
using System.Collections;
|
||
using System.Collections.Generic;
|
||
using System.Data;
|
||
using System.Xml.Serialization;
|
||
|
||
namespace DrawGraph
|
||
{
|
||
[Serializable]
|
||
public partial class OperationRecord : EventObj
|
||
{
|
||
//患者信息
|
||
private string hISPatientId;
|
||
private string inHospitalNo;
|
||
private string medicalHistoryNo;
|
||
private int? departmentId;
|
||
private string name;
|
||
private string sex;
|
||
private DateTime? birthDay;
|
||
private string height;
|
||
private string weight;
|
||
private string identity;
|
||
private string bloodType;
|
||
private string rHBloodType;
|
||
private string fareType;
|
||
private string endemicArea;
|
||
private string bed;
|
||
private string contacts;
|
||
private string contactsPhone;
|
||
private string isFasting;
|
||
|
||
//申请信息
|
||
private string patientType;
|
||
private int? applyDepartmentId;
|
||
private string applyDepartmentName;
|
||
private string applyDepName;
|
||
private string applydiagnose;
|
||
private string applydiagnoseRemark;
|
||
private string applyoperation;
|
||
private string applyOperationRemark;
|
||
private string operationPriority;
|
||
public DateTime PlanOperationTime;
|
||
|
||
//术中信息
|
||
private int? id;
|
||
private int? patientId;
|
||
private int? operationApplyId;
|
||
private int? recoverId;
|
||
private string diagnose;
|
||
private string operation;
|
||
private int? operationLevelId;
|
||
private string operationCutId;
|
||
private string operationSiteId;
|
||
private string operationPositionId;
|
||
private string anaesthesiaMethodId;
|
||
private string contagion;
|
||
private int? isReturnOperation;
|
||
private int? isPlanReturnOperation;
|
||
private int? isNotPlanReturnOperation;
|
||
private string operationDoctor;
|
||
private string assistant1;
|
||
private string assistant2;
|
||
private string assistant3;
|
||
private string anesthesiaDoctor;
|
||
private string anesthesiaDoctorSucceed;
|
||
private DateTime? anesthesiaDoctorSucceedTime;
|
||
private string instrumentNurse;
|
||
private string instrumentNurseSucceed;
|
||
private DateTime? instrumentNurseSucceedTime;
|
||
private string tourNurse;
|
||
private string tourNurseSucceed;
|
||
private DateTime? tourNurseSucceedTime;
|
||
private string extracorporealCirculation;
|
||
private string intern;
|
||
private string other;
|
||
private int? operationRoomId;
|
||
private int? tableIndex;
|
||
private DateTime? inRoomTime;
|
||
private DateTime? outRoomTime;
|
||
private DateTime? operationBeginTime;
|
||
private DateTime? operationEndTime;
|
||
private DateTime? anesthesiaBeginTime;
|
||
private DateTime? anesthesiaEndTime;
|
||
private string state;
|
||
private string cancelReason;
|
||
private string aSALevel;
|
||
private int? nYIIA;
|
||
private string operationAnalgesiaMode;
|
||
private string specialCase;
|
||
private int? fasting;
|
||
private int? takeMedicine;
|
||
private int? parentId;
|
||
private string whereabouts;
|
||
private int? pACUBedId;
|
||
private int? printCount;
|
||
private int? isStatement;
|
||
private int? operatorId;
|
||
private DateTime? operatorTime;
|
||
private string remark;
|
||
private Decimal? allSapDose;
|
||
private Decimal? allOutputLiquidsDose;
|
||
private int? anesthesiaDoctorTimeMinute;
|
||
private int? anesthesiaDoctorSucceedTimeMinute;
|
||
private int? instrumentNurseTimeMinute;
|
||
private int? instrumentNurseSucceedTimeMinute;
|
||
private int? tourNurseTimeMinute;
|
||
private int? tourNurseSucceedTimeMinute;
|
||
private string analgesiaModeMessage;
|
||
private string oPerationRemark;
|
||
private string diagnoseRemark;
|
||
private string anesthesiaDoctorAssistant;
|
||
private string spareOne;
|
||
private string spareTwo;
|
||
private string spareThree;
|
||
private string spareFour;
|
||
private string spareFive;
|
||
private string spareSix;
|
||
private string spareSeven;
|
||
private string spareEight;
|
||
private string spareNine;
|
||
private string spareTen;
|
||
private int PageCount;
|
||
private string age;
|
||
|
||
private List<FactEvents> factEventsList;
|
||
private List<FactDrug> factDrugList;
|
||
private List<FactOutputLiquids> factOutputLiquidsList;
|
||
private List<FactBloodGasAnalysis> factBloodGasAnalysisList;
|
||
private List<AnaseDataQualityRecord> anaseDataQualityRecordList;
|
||
private OperationRecordInfo opeRecordInfo;
|
||
private OperationRecoverInInfo opeRecoverInInfo;
|
||
private OperationRecoverOutInfo opeRecoverOutInfo;
|
||
|
||
public List<string> EventListstr = new List<string>();
|
||
public List<string> DrugsListstr = new List<string>();
|
||
public List<string> AfterDrugsListstr = new List<string>();
|
||
public List<string> FluidListstr = new List<string>();
|
||
public List<string> PunctureAndIntubatio;
|
||
[NoCreatControlAttributs]
|
||
public List<PhysioDataConfig> addPhysioList;
|
||
|
||
[ClassAttributs(Description = "是否只读")]
|
||
public bool IsReadOnly = false;
|
||
[ClassAttributs(Description = "绘图开始时间")]
|
||
public DateTime sharpBegin;
|
||
[ClassAttributs(Description = "页开始时间")]
|
||
public DateTime pageBegin;
|
||
[ClassAttributs(Description = "页结束时间")]
|
||
public DateTime lastPageBegin;
|
||
[ClassAttributs(Description = "入CG时间")]
|
||
public DateTime? InCGTime;
|
||
[ClassAttributs(Description = "出CG时间")]
|
||
public DateTime? OutCGTime;
|
||
[NoCreatControlAttributs]
|
||
public string InCGType;
|
||
[NoCreatControlAttributs]
|
||
public string MedicalRecord;
|
||
|
||
[NoCreatControlAttributs]
|
||
public DataTable PhysioParamList;
|
||
|
||
[ClassAttributs(Description = "选中范围的对象")]
|
||
[NoCreatControlAttributs]
|
||
public SelectedAreaObj SAreaObj
|
||
{
|
||
get { return SelectedAreaObj.GetInstance(); }
|
||
}
|
||
|
||
[ClassAttributs(Description = "总页数")]
|
||
public int currentPage { get; set; }
|
||
[ClassAttributs(Description = "当前页数")]
|
||
public int pageCount
|
||
{
|
||
get { return PageCount; }
|
||
set { PageCount = value; }
|
||
}
|
||
|
||
[ClassAttributs(Description = "手术记录编号,自增")]
|
||
/// <summary>
|
||
/// 编号,自增
|
||
/// </summary>
|
||
public int? Id
|
||
{
|
||
get { return id; }
|
||
set { id = value; }
|
||
}
|
||
[ClassAttributs(Description = "患者编号")]
|
||
/// <summary>
|
||
/// 患者编号
|
||
/// </summary>
|
||
public int? PatientId
|
||
{
|
||
get { return patientId; }
|
||
set { patientId = value; }
|
||
}
|
||
[NoCreatControlAttributs]
|
||
/// <summary>
|
||
/// 是否是恢复室 1不是 2是
|
||
/// </summary>
|
||
public int? RecoverId
|
||
{
|
||
get { return recoverId; }
|
||
set { recoverId = value; }
|
||
}
|
||
[ClassAttributs(Description = "手术申请编号")]
|
||
/// <summary>
|
||
/// 手术申请编号
|
||
/// </summary>
|
||
public int? OperationApplyId
|
||
{
|
||
get { return operationApplyId; }
|
||
set { operationApplyId = value; }
|
||
}
|
||
[ClassAttributs(Description = "手术诊断")]
|
||
/// <summary>
|
||
/// 手术诊断,保存诊断Id,可多选,逗号分隔
|
||
/// </summary>
|
||
public string Diagnose
|
||
{
|
||
get { return diagnose; }
|
||
set { diagnose = value; }
|
||
}
|
||
[ClassAttributs(Description = "手术名称")]
|
||
/// <summary>
|
||
/// 手术名称,保存手术Id,可多选,逗号分隔
|
||
/// </summary>
|
||
public string Operation
|
||
{
|
||
get { return operation; }
|
||
set { operation = value; }
|
||
}
|
||
[ClassAttributs(Description = "手术分级编号")]
|
||
/// <summary>
|
||
/// 手术分级编号
|
||
/// </summary>
|
||
public int? OperationLevelId
|
||
{
|
||
get { return operationLevelId; }
|
||
set { operationLevelId = value; }
|
||
}
|
||
[ClassAttributs(Description = "手术切口分类")]
|
||
/// <summary>
|
||
/// 手术切口分类,保存手术切口分类Id,可多选,逗号分隔
|
||
/// </summary>
|
||
public string OperationCutId
|
||
{
|
||
get { return operationCutId; }
|
||
set { operationCutId = value; }
|
||
}
|
||
[ClassAttributs(Description = "手术体位")]
|
||
/// <summary>
|
||
/// 手术体位,保存手术体位Id,可多选,逗号分隔
|
||
/// </summary>
|
||
public string OperationSiteId
|
||
{
|
||
get { return operationSiteId; }
|
||
set { operationSiteId = value; }
|
||
}
|
||
[ClassAttributs(Description = "手术部位")]
|
||
/// <summary>
|
||
/// 手术部位,保存手术部位Id,可多选,逗号分隔
|
||
/// </summary>
|
||
public string OperationPositionId
|
||
{
|
||
get { return operationPositionId; }
|
||
set { operationPositionId = value; }
|
||
}
|
||
[ClassAttributs(Description = "麻醉方式")]
|
||
/// <summary>
|
||
/// 麻醉方式,保存麻醉Id,可多选,逗号分隔
|
||
/// </summary>
|
||
public string AnaesthesiaMethodId
|
||
{
|
||
get { return anaesthesiaMethodId; }
|
||
set { anaesthesiaMethodId = value; }
|
||
}
|
||
[ClassAttributs(Description = "传染病")]
|
||
/// <summary>
|
||
/// 传染病
|
||
/// </summary>
|
||
public string Contagion
|
||
{
|
||
get { return contagion; }
|
||
set { contagion = value; }
|
||
}
|
||
[ClassAttributs(Description = "是否重返再手术")]
|
||
/// <summary>
|
||
/// 是否重返再手术
|
||
/// </summary>
|
||
public int? IsReturnOperation
|
||
{
|
||
get { return isReturnOperation; }
|
||
set { isReturnOperation = value; }
|
||
}
|
||
[ClassAttributs(Description = "计划再次手术")]
|
||
/// <summary>
|
||
/// 计划再次手术
|
||
/// </summary>
|
||
public int? IsPlanReturnOperation
|
||
{
|
||
get { return isPlanReturnOperation; }
|
||
set { isPlanReturnOperation = value; }
|
||
}
|
||
[ClassAttributs(Description = "非计划再次手术")]
|
||
/// <summary>
|
||
/// 非计划再次手术
|
||
/// </summary>
|
||
public int? IsNotPlanReturnOperation
|
||
{
|
||
get { return isNotPlanReturnOperation; }
|
||
set { isNotPlanReturnOperation = value; }
|
||
}
|
||
[ClassAttributs(Description = "手术医生")]
|
||
/// <summary>
|
||
/// 手术医生,保存手术医生Id,可多选,逗号分隔
|
||
/// </summary>
|
||
public string OperationDoctor
|
||
{
|
||
get { return operationDoctor; }
|
||
set { operationDoctor = value; }
|
||
}
|
||
[ClassAttributs(Description = "助理1")]
|
||
/// <summary>
|
||
/// 助理1,保存手术助理医生Id,可多选,逗号分隔
|
||
/// </summary>
|
||
public string Assistant1
|
||
{
|
||
get { return assistant1; }
|
||
set { assistant1 = value; }
|
||
}
|
||
[ClassAttributs(Description = "助理2")]
|
||
/// <summary>
|
||
/// 助理2,保存手术助理医生Id,可多选,逗号分隔
|
||
/// </summary>
|
||
public string Assistant2
|
||
{
|
||
get { return assistant2; }
|
||
set { assistant2 = value; }
|
||
}
|
||
[ClassAttributs(Description = "助理3")]
|
||
/// <summary>
|
||
/// 助理3,保存手术助理医生Id,可多选,逗号分隔
|
||
/// </summary>
|
||
public string Assistant3
|
||
{
|
||
get { return assistant3; }
|
||
set { assistant3 = value; }
|
||
}
|
||
[ClassAttributs(Description = "麻醉医生")]
|
||
/// <summary>
|
||
/// 麻醉医生,保存麻醉医生Id,可多选,逗号分隔
|
||
/// </summary>
|
||
public string AnesthesiaDoctor
|
||
{
|
||
get { return anesthesiaDoctor; }
|
||
set { anesthesiaDoctor = value; }
|
||
}
|
||
[ClassAttributs(Description = "麻醉接台医生")]
|
||
/// <summary>
|
||
/// 麻醉接台医生,保存麻醉接台医生Id,可多选,逗号分隔
|
||
/// </summary>
|
||
public string AnesthesiaDoctorSucceed
|
||
{
|
||
get { return anesthesiaDoctorSucceed; }
|
||
set { anesthesiaDoctorSucceed = value; }
|
||
}
|
||
[ClassAttributs(Description = "麻醉师接台时间")]
|
||
/// <summary>
|
||
/// 麻醉师接台时间
|
||
/// </summary>
|
||
public DateTime? AnesthesiaDoctorSucceedTime
|
||
{
|
||
get { return anesthesiaDoctorSucceedTime; }
|
||
set { anesthesiaDoctorSucceedTime = value; }
|
||
}
|
||
[ClassAttributs(Description = "器械护士")]
|
||
/// <summary>
|
||
/// 器械护士,保存器械护士Id,可多选,逗号分隔
|
||
/// </summary>
|
||
public string InstrumentNurse
|
||
{
|
||
get { return instrumentNurse; }
|
||
set { instrumentNurse = value; }
|
||
}
|
||
[ClassAttributs(Description = "器械接台护士")]
|
||
/// <summary>
|
||
/// 器械接台护士,保存器械接台护士Id,可多选,逗号分隔
|
||
/// </summary>
|
||
public string InstrumentNurseSucceed
|
||
{
|
||
get { return instrumentNurseSucceed; }
|
||
set { instrumentNurseSucceed = value; }
|
||
}
|
||
[ClassAttributs(Description = "洗手护士接台时间")]
|
||
/// <summary>
|
||
/// 洗手护士接台时间
|
||
/// </summary>
|
||
public DateTime? InstrumentNurseSucceedTime
|
||
{
|
||
get { return instrumentNurseSucceedTime; }
|
||
set { instrumentNurseSucceedTime = value; }
|
||
}
|
||
[ClassAttributs(Description = "巡回护士")]
|
||
/// <summary>
|
||
/// 巡回护士,保存巡回护士Id,可多选,逗号分隔
|
||
/// </summary>
|
||
public string TourNurse
|
||
{
|
||
get { return tourNurse; }
|
||
set { tourNurse = value; }
|
||
}
|
||
[ClassAttributs(Description = "巡回接台护士")]
|
||
/// <summary>
|
||
/// 巡回接台护士,保存巡回接台护士Id,可多选,逗号分隔
|
||
/// </summary>
|
||
public string TourNurseSucceed
|
||
{
|
||
get { return tourNurseSucceed; }
|
||
set { tourNurseSucceed = value; }
|
||
}
|
||
[ClassAttributs(Description = "巡回护士接台时间")]
|
||
/// <summary>
|
||
/// 巡回护士接台时间
|
||
/// </summary>
|
||
public DateTime? TourNurseSucceedTime
|
||
{
|
||
get { return tourNurseSucceedTime; }
|
||
set { tourNurseSucceedTime = value; }
|
||
}
|
||
[ClassAttributs(Description = "麻醉医生签字")]
|
||
public string ExtracorporealCirculation
|
||
{
|
||
get { return extracorporealCirculation; }
|
||
set { extracorporealCirculation = value; }
|
||
}
|
||
[ClassAttributs(Description = "实习生")]
|
||
/// <summary>
|
||
/// 实习生
|
||
/// </summary>
|
||
public string Intern
|
||
{
|
||
get { return intern; }
|
||
set { intern = value; }
|
||
}
|
||
[ClassAttributs(Description = "其他人员")]
|
||
/// <summary>
|
||
/// 其他人员
|
||
/// </summary>
|
||
public string Other
|
||
{
|
||
get { return other; }
|
||
set { other = value; }
|
||
}
|
||
[ClassAttributs(Description = "手术间编号")]
|
||
/// <summary>
|
||
/// 手术间编号
|
||
/// </summary>
|
||
public int? OperationRoomId
|
||
{
|
||
get { return operationRoomId; }
|
||
set { operationRoomId = value; }
|
||
}
|
||
[ClassAttributs(Description = "手术台次")]
|
||
/// <summary>
|
||
/// 手术台次
|
||
/// </summary>
|
||
public int? TableIndex
|
||
{
|
||
get { return tableIndex; }
|
||
set { tableIndex = value; }
|
||
}
|
||
[ClassAttributs(Description = "入手术室时间")]
|
||
/// <summary>
|
||
/// 入手术室时间
|
||
/// </summary>
|
||
public DateTime? InRoomTime
|
||
{
|
||
get { return inRoomTime; }
|
||
set { inRoomTime = value; }
|
||
}
|
||
[ClassAttributs(Description = "出手术室时间")]
|
||
/// <summary>
|
||
/// 出手术室时间
|
||
/// </summary>
|
||
public DateTime? OutRoomTime
|
||
{
|
||
get { return outRoomTime; }
|
||
set { outRoomTime = value; }
|
||
}
|
||
[ClassAttributs(Description = "手术开始时间")]
|
||
/// <summary>
|
||
/// 手术开始时间
|
||
/// </summary>
|
||
public DateTime? OperationBeginTime
|
||
{
|
||
get { return operationBeginTime; }
|
||
set { operationBeginTime = value; }
|
||
}
|
||
[ClassAttributs(Description = "手术结束时间")]
|
||
/// <summary>
|
||
/// 手术结束时间
|
||
/// </summary>
|
||
public DateTime? OperationEndTime
|
||
{
|
||
get { return operationEndTime; }
|
||
set { operationEndTime = value; }
|
||
}
|
||
[ClassAttributs(Description = "麻醉开始时间")]
|
||
/// <summary>
|
||
/// 麻醉开始时间
|
||
/// </summary>
|
||
public DateTime? AnesthesiaBeginTime
|
||
{
|
||
get { return anesthesiaBeginTime; }
|
||
set { anesthesiaBeginTime = value; }
|
||
}
|
||
[ClassAttributs(Description = "麻醉结束时间")]
|
||
/// <summary>
|
||
/// 麻醉结束时间
|
||
/// </summary>
|
||
public DateTime? AnesthesiaEndTime
|
||
{
|
||
get { return anesthesiaEndTime; }
|
||
set { anesthesiaEndTime = value; }
|
||
}
|
||
[ClassAttributs(Description = "手术状态")]
|
||
/// <summary>
|
||
/// 手术状态
|
||
///1、术中 2、结束
|
||
/// </summary>
|
||
public string State
|
||
{
|
||
get { return state; }
|
||
set { state = value; }
|
||
}
|
||
[ClassAttributs(Description = "取消手术原因")]
|
||
/// <summary>
|
||
/// 取消手术原因
|
||
/// </summary>
|
||
public string CancelReason
|
||
{
|
||
get { return cancelReason; }
|
||
set { cancelReason = value; }
|
||
}
|
||
[ClassAttributs(Description = "ASA分级")]
|
||
/// <summary>
|
||
/// ASA分级
|
||
/// </summary>
|
||
public string ASALevel
|
||
{
|
||
get { return aSALevel; }
|
||
set { aSALevel = value; }
|
||
}
|
||
[ClassAttributs(Description = "心功能分级")]
|
||
/// <summary>
|
||
/// 心功能分级
|
||
/// </summary>
|
||
public int? NYIIA
|
||
{
|
||
get { return nYIIA; }
|
||
set { nYIIA = value; }
|
||
}
|
||
[ClassAttributs(Description = "术后镇痛方式")]
|
||
/// <summary>
|
||
/// 术后镇痛方式,保存镇痛方式Id,可多选,逗号分隔
|
||
/// </summary>
|
||
public string OperationAnalgesiaMode
|
||
{
|
||
get { return operationAnalgesiaMode; }
|
||
set { operationAnalgesiaMode = value; }
|
||
}
|
||
[ClassAttributs(Description = "特殊情况")]
|
||
/// <summary>
|
||
/// 特殊情况
|
||
/// </summary>
|
||
public string SpecialCase
|
||
{
|
||
get { return specialCase; }
|
||
set { specialCase = value; }
|
||
}
|
||
[ClassAttributs(Description = "术前8小时禁食")]
|
||
/// <summary>
|
||
/// 术前8小时禁食
|
||
/// </summary>
|
||
public int? Fasting
|
||
{
|
||
get { return fasting; }
|
||
set { fasting = value; }
|
||
}
|
||
[ClassAttributs(Description = "术晨用一小口水")]
|
||
/// <summary>
|
||
/// 术晨用一小口水(5ml)服用抗高压药物。
|
||
/// </summary>
|
||
public int? TakeMedicine
|
||
{
|
||
get { return takeMedicine; }
|
||
set { takeMedicine = value; }
|
||
}
|
||
[ClassAttributs(Description = "保存手术记录编号")]
|
||
/// <summary>
|
||
/// 保存手术记录编号,该值如不为0,表示该记录为术后恢复记录(PACU)
|
||
/// </summary>
|
||
public int? ParentId
|
||
{
|
||
get { return parentId; }
|
||
set { parentId = value; }
|
||
}
|
||
[ClassAttributs(Description = "术后去向")]
|
||
/// <summary>
|
||
/// 术后去向
|
||
/// </summary>
|
||
public string Whereabouts
|
||
{
|
||
get { return whereabouts; }
|
||
set { whereabouts = value; }
|
||
}
|
||
|
||
[ClassAttributs(Description = "PACU床位")]
|
||
/// <summary>
|
||
///
|
||
/// </summary>
|
||
public int? PACUBedId
|
||
{
|
||
get { return pACUBedId; }
|
||
set { pACUBedId = value; }
|
||
}
|
||
|
||
[ClassAttributs(Description = "麻醉单打印次数")]
|
||
/// <summary>
|
||
/// 麻醉单打印次数
|
||
/// </summary>
|
||
public int? PrintCount
|
||
{
|
||
get { return printCount; }
|
||
set { printCount = value; }
|
||
}
|
||
[ClassAttributs(Description = "是否结单")]
|
||
/// <summary>
|
||
/// 是否结单
|
||
/// </summary>
|
||
public int? IsStatement
|
||
{
|
||
get { return isStatement; }
|
||
set { isStatement = value; }
|
||
}
|
||
[ClassAttributs(Description = "操作员")]
|
||
/// <summary>
|
||
/// 操作员
|
||
/// </summary>
|
||
public int? OperatorId
|
||
{
|
||
get { return operatorId; }
|
||
set { operatorId = value; }
|
||
}
|
||
[ClassAttributs(Description = "操作时间")]
|
||
/// <summary>
|
||
/// 操作时间
|
||
/// </summary>
|
||
public DateTime? OperatorTime
|
||
{
|
||
get { return operatorTime; }
|
||
set { operatorTime = value; }
|
||
}
|
||
[ClassAttributs(Description = "备注")]
|
||
/// <summary>
|
||
/// 备注
|
||
/// </summary>
|
||
public string Remark
|
||
{
|
||
get { return remark; }
|
||
set { remark = value; }
|
||
}
|
||
[ClassAttributs(Description = "总出量")]
|
||
/// <summary>
|
||
/// 总出量
|
||
/// </summary>
|
||
public Decimal? AllOutputLiquidsDose
|
||
{
|
||
get { return allOutputLiquidsDose; }
|
||
set { allOutputLiquidsDose = value; }
|
||
}
|
||
[ClassAttributs(Description = "总液量")]
|
||
/// <summary>
|
||
/// 总液量
|
||
/// </summary>
|
||
public Decimal? AllSapDose
|
||
{
|
||
get { return allSapDose; }
|
||
set { allSapDose = value; }
|
||
}
|
||
[ClassAttributs(Description = "麻醉医生时间")]
|
||
/// <summary>
|
||
/// 麻醉医生时间(分钟)
|
||
/// </summary>
|
||
public int? AnesthesiaDoctorTimeMinute
|
||
{
|
||
get { return anesthesiaDoctorTimeMinute; }
|
||
set { anesthesiaDoctorTimeMinute = value; }
|
||
}
|
||
[ClassAttributs(Description = "麻醉接台时间")]
|
||
/// <summary>
|
||
/// 麻醉接台时间(分钟)
|
||
/// </summary>
|
||
public int? AnesthesiaDoctorSucceedTimeMinute
|
||
{
|
||
get { return anesthesiaDoctorSucceedTimeMinute; }
|
||
set { anesthesiaDoctorSucceedTimeMinute = value; }
|
||
}
|
||
[ClassAttributs(Description = "器械护士时间")]
|
||
/// <summary>
|
||
/// 器械护士时间(分钟)
|
||
/// </summary>
|
||
public int? InstrumentNurseTimeMinute
|
||
{
|
||
get { return instrumentNurseTimeMinute; }
|
||
set { instrumentNurseTimeMinute = value; }
|
||
}
|
||
[ClassAttributs(Description = "器械护士接台时间")]
|
||
/// <summary>
|
||
/// 器械护士接台时间(分钟)
|
||
/// </summary>
|
||
public int? InstrumentNurseSucceedTimeMinute
|
||
{
|
||
get { return instrumentNurseSucceedTimeMinute; }
|
||
set { instrumentNurseSucceedTimeMinute = value; }
|
||
}
|
||
[ClassAttributs(Description = "巡回护士时间")]
|
||
/// <summary>
|
||
/// 巡回护士时间(分钟)
|
||
/// </summary>
|
||
public int? TourNurseTimeMinute
|
||
{
|
||
get { return tourNurseTimeMinute; }
|
||
set { tourNurseTimeMinute = value; }
|
||
}
|
||
[ClassAttributs(Description = "阵痛信息")]
|
||
/// <summary>
|
||
/// 阵痛信息 RBT
|
||
/// </summary>
|
||
public string AnalgesiaModeMessage
|
||
{
|
||
get { return analgesiaModeMessage; }
|
||
set { analgesiaModeMessage = value; }
|
||
}
|
||
[ClassAttributs(Description = "手术备注")]
|
||
/// <summary>
|
||
/// 手术备注
|
||
/// </summary>
|
||
public string OPerationRemark
|
||
{
|
||
get { return oPerationRemark; }
|
||
set { oPerationRemark = value; }
|
||
}
|
||
[ClassAttributs(Description = "诊断备注")]
|
||
/// <summary>
|
||
/// 诊断备注
|
||
/// </summary>
|
||
public string DiagnoseRemark
|
||
{
|
||
get { return diagnoseRemark; }
|
||
set { diagnoseRemark = value; }
|
||
}
|
||
|
||
public string beforeDrugs;
|
||
[ClassAttributs(Description = "麻醉前用药")]
|
||
public string BeforeDrugs
|
||
{
|
||
get { return beforeDrugs; }
|
||
set { beforeDrugs = value; }
|
||
}
|
||
|
||
public string analgesiaModeDrugs;
|
||
[ClassAttributs(Description = "镇痛用药")]
|
||
public string AnalgesiaModeDrugs
|
||
{
|
||
get { return analgesiaModeDrugs; }
|
||
set { analgesiaModeDrugs = value; }
|
||
}
|
||
|
||
[ClassAttributs(Description = "麻醉助手")]
|
||
/// <summary>
|
||
///
|
||
/// </summary>
|
||
public string AnesthesiaDoctorAssistant
|
||
{
|
||
get { return anesthesiaDoctorAssistant; }
|
||
set { anesthesiaDoctorAssistant = value; }
|
||
}
|
||
|
||
[ClassAttributs(Description = "备用字段1")]
|
||
public string SpareOne
|
||
{
|
||
get { return spareOne; }
|
||
set { spareOne = value; }
|
||
}
|
||
[ClassAttributs(Description = "备用字段2")]
|
||
public string SpareTwo
|
||
{
|
||
get { return spareTwo; }
|
||
set { spareTwo = value; }
|
||
}
|
||
[ClassAttributs(Description = "备用字段3")]
|
||
public string SpareThree
|
||
{
|
||
get { return spareThree; }
|
||
set { spareThree = value; }
|
||
}
|
||
[ClassAttributs(Description = "备用字段4")]
|
||
public string SpareFour
|
||
{
|
||
get { return spareFour; }
|
||
set { spareFour = value; }
|
||
}
|
||
[ClassAttributs(Description = "备用字段5")]
|
||
public string SpareFive
|
||
{
|
||
get { return spareFive; }
|
||
set { spareFive = value; }
|
||
}
|
||
[ClassAttributs(Description = "备用字段6")]
|
||
public string SpareSix
|
||
{
|
||
get { return spareSix; }
|
||
set { spareSix = value; }
|
||
}
|
||
[ClassAttributs(Description = "备用字段7")]
|
||
public string SpareSeven
|
||
{
|
||
get { return spareSeven; }
|
||
set { spareSeven = value; }
|
||
}
|
||
[ClassAttributs(Description = "备用字段8")]
|
||
public string SpareEight
|
||
{
|
||
get { return spareEight; }
|
||
set { spareEight = value; }
|
||
}
|
||
[ClassAttributs(Description = "备用字段9")]
|
||
public string SpareNine
|
||
{
|
||
get { return spareNine; }
|
||
set { spareNine = value; }
|
||
}
|
||
[ClassAttributs(Description = "备用字段10")]
|
||
public string SpareTen
|
||
{
|
||
get { return spareTen; }
|
||
set { spareTen = value; }
|
||
}
|
||
|
||
|
||
[ClassAttributs(Description = "HIS编号")]
|
||
public string HISPatientId
|
||
{
|
||
get { return hISPatientId; }
|
||
set { hISPatientId = value; }
|
||
}
|
||
|
||
[ClassAttributs(Description = "住院号")]
|
||
public string InHospitalNo
|
||
{
|
||
get { return inHospitalNo; }
|
||
set { inHospitalNo = value; }
|
||
}
|
||
|
||
[ClassAttributs(Description = "病历号")]
|
||
public string MedicalHistoryNo
|
||
{
|
||
get { return medicalHistoryNo; }
|
||
set { medicalHistoryNo = value; }
|
||
}
|
||
|
||
[ClassAttributs(Description = "科室编号")]
|
||
public int? DepartmentId
|
||
{
|
||
get { return departmentId; }
|
||
set { departmentId = value; }
|
||
}
|
||
|
||
[ClassAttributs(Description = "患者姓名")]
|
||
public string Name
|
||
{
|
||
get { return name; }
|
||
set { name = value; }
|
||
}
|
||
|
||
[ClassAttributs(Description = "性别")]
|
||
public string Sex
|
||
{
|
||
get { return sex; }
|
||
set { sex = value; }
|
||
}
|
||
|
||
[ClassAttributs(Description = "出生日期")]
|
||
public DateTime? BirthDay
|
||
{
|
||
get { return birthDay; }
|
||
set { birthDay = value; }
|
||
}
|
||
[ClassAttributs(Description = "年龄")]
|
||
public string Age
|
||
{
|
||
get { return age; }
|
||
set { age = value; }
|
||
}
|
||
|
||
[ClassAttributs(Description = "身高,单位cm")]
|
||
public string Height
|
||
{
|
||
get { return height; }
|
||
set { height = value; }
|
||
}
|
||
|
||
[ClassAttributs(Description = "体重,单位kg")]
|
||
public string Weight
|
||
{
|
||
get { return weight; }
|
||
set { weight = value; }
|
||
}
|
||
|
||
[ClassAttributs(Description = "身份证号码")]
|
||
public string Identity
|
||
{
|
||
get { return identity; }
|
||
set { identity = value; }
|
||
}
|
||
|
||
[ClassAttributs(Description = "血型")]
|
||
public string BloodType
|
||
{
|
||
get { return bloodType; }
|
||
set { bloodType = value; }
|
||
}
|
||
|
||
[ClassAttributs(Description = "RH血型")]
|
||
public string RHBloodType
|
||
{
|
||
get { return rHBloodType; }
|
||
set { rHBloodType = value; }
|
||
}
|
||
|
||
[ClassAttributs(Description = "医保类别")]
|
||
public string FareType
|
||
{
|
||
get { return fareType; }
|
||
set { fareType = value; }
|
||
}
|
||
|
||
[ClassAttributs(Description = "病区")]
|
||
public string EndemicArea
|
||
{
|
||
get { return endemicArea; }
|
||
set { endemicArea = value; }
|
||
}
|
||
|
||
[ClassAttributs(Description = "病区床位")]
|
||
public string Bed
|
||
{
|
||
get { return bed; }
|
||
set { bed = value; }
|
||
}
|
||
|
||
[ClassAttributs(Description = "联系人")]
|
||
public string Contacts
|
||
{
|
||
get { return contacts; }
|
||
set { contacts = value; }
|
||
}
|
||
|
||
[ClassAttributs(Description = "联系人电话")]
|
||
public string ContactsPhone
|
||
{
|
||
get { return contactsPhone; }
|
||
set { contactsPhone = value; }
|
||
}
|
||
[ClassAttributs(Description = "是否禁食")]
|
||
public string IsFasting
|
||
{
|
||
get { return isFasting; }
|
||
set { isFasting = value; }
|
||
}
|
||
|
||
|
||
[ClassAttributs(Description = "住院门诊类型")]
|
||
public string PatientType
|
||
{
|
||
get { return patientType; }
|
||
set { patientType = value; }
|
||
}
|
||
[NoCreatControlAttributs]
|
||
public int? ApplyDepartmentId
|
||
{
|
||
get { return applyDepartmentId; }
|
||
set { applyDepartmentId = value; }
|
||
}
|
||
[ClassAttributs(Description = "申请科室")]
|
||
public string ApplyDepartmentName
|
||
{
|
||
get { return applyDepartmentName; }
|
||
set { applyDepartmentName = value; }
|
||
}
|
||
[ClassAttributs(Description = "申请科室2")]
|
||
public string ApplyDepName
|
||
{
|
||
get { return applyDepName; }
|
||
set { applyDepName = value; }
|
||
}
|
||
[ClassAttributs(Description = "术前诊断")]
|
||
public string Applydiagnose
|
||
{
|
||
get { return applydiagnose; }
|
||
set { applydiagnose = value; }
|
||
}
|
||
[ClassAttributs(Description = "术前诊断备注")]
|
||
public string ApplydiagnoseRemark
|
||
{
|
||
get { return applydiagnoseRemark; }
|
||
set { applydiagnoseRemark = value; }
|
||
}
|
||
[ClassAttributs(Description = "术前手术")]
|
||
public string Applyoperation
|
||
{
|
||
get { return applyoperation; }
|
||
set { applyoperation = value; }
|
||
}
|
||
[ClassAttributs(Description = "术前手术备注")]
|
||
public string ApplyOperationRemark
|
||
{
|
||
get { return applyOperationRemark; }
|
||
set { applyOperationRemark = value; }
|
||
}
|
||
[ClassAttributs(Description = "择期急诊")]
|
||
public string OperationPriority
|
||
{
|
||
get { return operationPriority; }
|
||
set { operationPriority = value; }
|
||
}
|
||
|
||
|
||
[NoCreatControlAttributs]
|
||
public List<FactEvents> FactEventsList
|
||
{
|
||
get
|
||
{
|
||
return factEventsList;
|
||
}
|
||
set
|
||
{
|
||
factEventsList = value;
|
||
}
|
||
}
|
||
|
||
|
||
[NoCreatControlAttributs]
|
||
public List<FactDrug> FactDrugList
|
||
{
|
||
get
|
||
{
|
||
return factDrugList;
|
||
}
|
||
set
|
||
{
|
||
factDrugList = value;
|
||
}
|
||
}
|
||
|
||
|
||
[NoCreatControlAttributs]
|
||
public List<FactOutputLiquids> FactOutputLiquidsList
|
||
{
|
||
get
|
||
{
|
||
return factOutputLiquidsList;
|
||
}
|
||
set
|
||
{
|
||
factOutputLiquidsList = value;
|
||
}
|
||
}
|
||
|
||
[NoCreatControlAttributs]
|
||
public List<FactBloodGasAnalysis> FactBloodGasAnalysisList
|
||
{
|
||
get
|
||
{
|
||
return factBloodGasAnalysisList;
|
||
}
|
||
set
|
||
{
|
||
factBloodGasAnalysisList = value;
|
||
}
|
||
}
|
||
|
||
[NoCreatControlAttributs]
|
||
public List<AnaseDataQualityRecord> AnaseDataQualityRecordList
|
||
{
|
||
get
|
||
{
|
||
return anaseDataQualityRecordList;
|
||
}
|
||
set
|
||
{
|
||
anaseDataQualityRecordList = value;
|
||
}
|
||
}
|
||
[ClassAttributs(Description = "麻醉信息类")]
|
||
public OperationRecordInfo OpeRecordInfo
|
||
{
|
||
get
|
||
{
|
||
return opeRecordInfo;
|
||
}
|
||
set
|
||
{
|
||
opeRecordInfo = value;
|
||
}
|
||
}
|
||
[ClassAttributs(Description = "入恢复信息类")]
|
||
public OperationRecoverInInfo OpeRecoverInInfo
|
||
{
|
||
get
|
||
{
|
||
return opeRecoverInInfo;
|
||
}
|
||
set
|
||
{
|
||
opeRecoverInInfo = value;
|
||
}
|
||
}
|
||
[ClassAttributs(Description = "出恢复信息类")]
|
||
public OperationRecoverOutInfo OpeRecoverOutInfo
|
||
{
|
||
get
|
||
{
|
||
return opeRecoverOutInfo;
|
||
}
|
||
set
|
||
{
|
||
opeRecoverOutInfo = value;
|
||
}
|
||
}
|
||
/// <summary>
|
||
/// 选择的药品名称和显示行索引表示的Hashtable
|
||
/// </summary>
|
||
[NoCreatControlAttributs]
|
||
[XmlIgnore]
|
||
public Hashtable hashSelectDrugs;
|
||
/// <summary>
|
||
/// 选择的输液名称和显示行索引表示的Hashtable
|
||
/// </summary>
|
||
[NoCreatControlAttributs]
|
||
[XmlIgnore]
|
||
public Hashtable hashSelectSaps;
|
||
/// <summary>
|
||
/// 选择的出量名称和显示行索引表示的Hashtable用于画图
|
||
/// </summary>
|
||
[NoCreatControlAttributs]
|
||
[XmlIgnore]
|
||
public Hashtable hashSelectFluids;
|
||
/// <summary>
|
||
/// 存储事件的哈希表
|
||
/// </summary>
|
||
[NoCreatControlAttributs]
|
||
[XmlIgnore]
|
||
public Hashtable hashEventLists;
|
||
|
||
public OperationRecord()
|
||
{
|
||
iniAddList();
|
||
|
||
SetDefaultValue();
|
||
}
|
||
/// <summary>
|
||
/// 初始化各种对象列表
|
||
/// </summary>
|
||
public void iniAddList()
|
||
{
|
||
PhysioParamList = AddOtherPhysioParamList();
|
||
FactEventsList = new List<FactEvents>();
|
||
FactDrugList = new List<FactDrug>();
|
||
FactOutputLiquidsList = new List<FactOutputLiquids>();
|
||
AnaseDataQualityRecordList = new List<AnaseDataQualityRecord>();
|
||
addPhysioList = new List<PhysioDataConfig>();
|
||
OpeRecordInfo = new OperationRecordInfo();
|
||
opeRecoverInInfo = new OperationRecoverInInfo();
|
||
opeRecoverOutInfo = new OperationRecoverOutInfo();
|
||
FactBloodGasAnalysisList = new List<FactBloodGasAnalysis>();
|
||
}
|
||
|
||
private void SetDefaultValue()
|
||
{
|
||
EventListstr = new List<string>();
|
||
DrugsListstr = new List<string>();
|
||
FluidListstr = new List<string>();
|
||
PunctureAndIntubatio = new List<string>();
|
||
BeforeDrugs = "";
|
||
AnalgesiaModeDrugs = "";
|
||
}
|
||
/// <summary>
|
||
/// 清除各种对象数据
|
||
/// </summary>
|
||
/// <param name="frm"></param>
|
||
public void ClearEventstr(ZedGraphControl zgc)
|
||
{
|
||
if (zgcAnas == null || zgcAnas != zgc) zgcAnas = zgc;
|
||
for (int i = 0; i <= 67; i++)
|
||
{
|
||
delAddObj("RemarkRow" + i);
|
||
delAddObj("PunctureAndIntubatio" + i);
|
||
}
|
||
delAddObj("allOutputLiquidsDose");
|
||
delAddObj("allOutputLiquidsDoseDate");
|
||
delAddObj("allSapDose");
|
||
delAddObj("allSapDosedate");
|
||
}
|
||
|
||
public DataTable AddOtherPhysioParamList()
|
||
{
|
||
string strSql = "SELECT pc.Id, pc.Name, pc.Color, pc.imgPath, pc.HighLimit, pc.LowLimit,pc.IsValid" +
|
||
" FROM PhysioDataConfig pc WHERE pc.NAME IN ('入室','麻醉开始','手术开始','手术结束','麻醉完成','出室','插管','拔管')";
|
||
DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql);
|
||
return dt;
|
||
}
|
||
public static DateTime getOpeMaxTime(OperationRecord myOpeRecord)
|
||
{
|
||
try
|
||
{
|
||
DateTime dts = lastMaxOperationDate(myOpeRecord.patientId.Value);
|
||
DateTime nowDate = DateTime.Now;
|
||
TimeSpan tsp = nowDate - dts;
|
||
if (tsp.TotalHours <= 12 && tsp.TotalDays <= 1 && dts < nowDate)//&& IsReview == false
|
||
{
|
||
dts = nowDate;
|
||
}
|
||
if (dts.ToString("yyyy-MM-dd HH:mm") == myOpeRecord.pageBegin.AddMinutes(240).ToString("yyyy-MM-dd HH:mm"))
|
||
{
|
||
dts = myOpeRecord.pageBegin.AddMinutes(240);
|
||
}
|
||
if (myOpeRecord.OutRoomTime != null)
|
||
{
|
||
DateTime outRoomTime = DateTime.Parse(myOpeRecord.OutRoomTime.ToString());
|
||
if (DateTime.Compare(dts, outRoomTime) > 0)
|
||
{
|
||
dts = outRoomTime;
|
||
}
|
||
}
|
||
return dts;
|
||
}
|
||
catch (Exception)
|
||
{
|
||
return DateTime.Now;
|
||
}
|
||
}
|
||
/// <summary>
|
||
/// 得到手术的最大时间点
|
||
/// </summary>
|
||
/// <param name="doOpeInfo"></param>
|
||
/// <returns></returns>
|
||
public static DateTime lastMaxOperationDate(int PatientId)
|
||
{
|
||
string sqlStr = "select top 1 * from (SELECT s.PatientId , s.EventEndTime etime FROM FactEvents s WHERE s.PatientId = " + PatientId + " union all SELECT s.PatientId , s.DrugEndTime FROM[dbo].[FactDrug] s WHERE s.PatientId = " + PatientId + " ) a order by a.etime desc";
|
||
DataTable dt = DBHelper.GetDataTable(sqlStr);
|
||
return DateTime.Parse(dt.Rows[0][1].ToString());
|
||
}
|
||
|
||
}
|
||
}
|