/// <summary> /// 病历控件承载面板 /// </summary> /// <param name="info">病历基本信息</param> /// <param name="createNewRecord">是否创建新病历记录</param> public EMRControlPanel(Public.EMRRecordInfo info, bool createNewRecord) { InitializeComponent(); _recordInfo = info; Public.StaticVariable.CurrentRecordInfo = info; if (createNewRecord) { _oldRecord = new HIS.EMR_BLL.EmrRecord(); _oldRecord.RecordId = -1; _control = EMRRecordControlFactory.CreateEMRRecordControl(info.RecordType); _emrPrint = EMRPrintObjectFactory.CreateEMRPrintObject(info.RecordType); } else { _oldRecord = new HIS.EMR_BLL.EmrRecord(info.Patid, info.PatListid, Public.PublicStaticFunction.GetEMRTypeCode(info.RecordType)); _control = EMRRecordControlFactory.CreateEMRRecordControl(info.RecordType, _oldRecord.RecordContentXml); _emrPrint = EMRPrintObjectFactory.CreateEMRPrintObject(info.RecordType, _oldRecord.RecordContentXml); } this._control.BorderStyle = BorderStyle.Fixed3D; this.Controls.Clear(); this.Controls.Add(_control); this.Controls.Add(this.plBottom); this.btSaveEMRRecord.Enabled = this._oldRecord.UpdateFlag == 0; }
/// <summary> /// 病历控件承载面板 /// </summary> /// <param name="info">病历基本信息</param> /// <param name="recordId">病历记录ID</param> public EMRControlPanel(Public.EMRRecordInfo info, int recordId) { InitializeComponent(); _recordInfo = info; Public.StaticVariable.CurrentRecordInfo = info; _oldRecord = new HIS.EMR_BLL.EmrRecord(recordId); _control = EMRRecordControlFactory.CreateEMRRecordControl(info.RecordType, _oldRecord.RecordContentXml); _emrPrint = EMRPrintObjectFactory.CreateEMRPrintObject(info.RecordType, _oldRecord.RecordContentXml); this._control.BorderStyle = BorderStyle.Fixed3D; this.Controls.Clear(); this.Controls.Add(_control); this.Controls.Add(this.plBottom); this.btSaveEMRRecord.Enabled = this._oldRecord.UpdateFlag == 0; }
/// <summary> /// 获得病人的病程记录列表 /// </summary> /// <param name="info"></param> /// <returns></returns> public static DataTable GetDiseaseCourseRecord(EMRRecordInfo info) { DataTable table = new DataTable(); table.Columns.Add("Name", Type.GetType("System.String")); table.Columns.Add("Value", Type.GetType("System.String")); DataTable tmpTable = HIS.EMR_BLL.OP_EmrRecord.GetDiseaseCourseRecord(info.Patid, info.PatListid, Public.PublicStaticFunction.GetEMRTypeCode(info.RecordType)); if (tmpTable != null) { foreach (DataRow row in tmpTable.Rows) { DataRow newRow = table.NewRow(); newRow["Name"] = row["RECORDCREATEDATE"]; newRow["Value"] = row["RECORDID"]; table.Rows.Add(newRow); } } return(table); }
/// <summary> /// 添加病历记录 /// </summary> /// <param name="info">病历信息</param> /// <returns></returns> public static Control AddEMRRecord(EMRRecordInfo info) { PublicStaticFunction.CurrentEmployeeId = info.CreateEmpId; PublicStaticFunction.CurrentDeptId = info.CreateDeptId; return(new EMRControlPanel(info, true)); }
public static Control GetEMRRecord(EMRRecordInfo info, string recordTag) { PublicStaticFunction.CurrentEmployeeId = info.CreateEmpId; PublicStaticFunction.CurrentDeptId = info.CreateDeptId; return(new EMRControlPanel(info, Convert.ToInt32(recordTag))); }