private void InitSize() { try { string config = DS_SqlService.GetConfigValueByKey("EmrSetting"); if (!string.IsNullOrEmpty(config)) { XmlDocument doc = new XmlDocument(); doc.LoadXml(config); XmlNodeList initList = doc.GetElementsByTagName("DailyPreViewInitHeight"); if (null != initList && initList.Count > 0) { string initValue = null == initList[0].InnerText ? "" : initList[0].InnerText.Trim(); if (!string.IsNullOrEmpty(initValue) && Tool.IsNumeric(initValue)) { FirstHeight = int.Parse(initValue); } } XmlNodeList defaultList = doc.GetElementsByTagName("DailyPreViewDefaultHeight"); if (null != defaultList && defaultList.Count > 0) { string defaultValue = null == defaultList[0].InnerText ? "" : defaultList[0].InnerText.Trim(); if (!string.IsNullOrEmpty(defaultValue) && Tool.IsNumeric(defaultValue)) { DefaultHeight = int.Parse(defaultValue); } } } } catch (Exception ex) { throw ex; } }
/// <summary> /// 设置编辑器的编辑模式 /// </summary> private void SetEmrDocumentModel() { try { if (CurrentForm != null) { CurrentForm.CurrentEditorControl.EMRDoc.Info.DocumentModel = DrectSoft.Library.EmrEditor.Src.Document.DocumentModel.Clear;//默认不显示修改痕迹 CurrentForm.CurrentEditorControl.EMRDoc.Info.ShowParagraphFlag = false; } //m_PatUtil = new PatRecUtil(); //根据系统参数配置控制,历史病历展示界面的病历是否可以插入和复制 add by ywk 2012年12月7日10:58:56 string IsShowExportHistory = DS_SqlService.GetConfigValueByKey(("IsShowExportHistory")); if (IsShowExportHistory == "0") { barLargeButtonItemInsert.Visibility = BarItemVisibility.Never; barLargeButtonItemCopy.Visibility = BarItemVisibility.Never; } else { barLargeButtonItemInsert.Visibility = BarItemVisibility.Always; barLargeButtonItemCopy.Visibility = BarItemVisibility.Always; } } catch (Exception) { throw; } }
/// <summary> /// 根据传进来的KEY返回是否显示此模块相关按钮 /// add by ywk 2013年6月6日 11:24:45 /// 针对文书录入主体的控制是否显示LIS PACS 医嘱信息 /// </summary> /// 二次更改(新增一个参数,配置名称+键名称)ywk 2013年6月13日 10:04:09 /// <returns></returns> public static bool IsShowThisMD(string configkeyname, string showkey) { bool IsShowthismoudle = true; string configvalue = DS_SqlService.GetConfigValueByKey(configkeyname); Dictionary <string, string> myDic = new Dictionary <string, string>(); if (!string.IsNullOrEmpty(configvalue)) { string[] value = configvalue.Split('-'); if (value.Length > 0) { for (int i = 0; i < value.Length; i++) { myDic.Add(value[i].Substring(0, value[i].ToString().IndexOf(',')), value[i].Substring(value[i].ToString().IndexOf(',') + 1, value[i].ToString().Length - value[i].ToString().IndexOf(',') - 1)); } foreach (string item in myDic.Keys) { if (item == showkey && myDic[showkey].ToString() == "0") { IsShowthismoudle = false; break; } else { IsShowthismoudle = true; } } } } return(IsShowthismoudle); }
private void InitCheckEdit() { try { //checkEditIsShowDailyEmrPreView.Visible = false; //labelControlShowDailyEmrPreView.Visible = false; //Add By wwj 2013-04-27 Dictionary <string, UCEmrInputPreView> collection = m_UCEmrInputBody.TempDailyPreViewCollection; //判断该病历对应的病程预览区有没有保存在TempDailyPreViewCollection,如果已经在集合中保存则不显示 if (collection.ContainsKey(m_EmrModel.DeptChangeID)) { checkEditIsShowDailyEmrPreView.Visible = false; labelControlShowDailyEmrPreView.Visible = false; } else { string config = DS_SqlService.GetConfigValueByKey("EmrSetting"); XmlDocument doc = new XmlDocument(); doc.LoadXml(config); XmlNode node = doc.SelectSingleNode("Emr/IsShowDailyPreViewWhenNewDailyEmr"); string isCheck = null != node ? node.InnerText : string.Empty; if (!string.IsNullOrEmpty(isCheck.Trim()) && isCheck == "1") { checkEditIsShowDailyEmrPreView.Checked = true; } } } catch (Exception) { throw; } }
/// <summary> /// 设置入院日期为入院时间还是入科日期(依据配置) /// </summary> /// <auth>Yanqiao.Cai</auth> /// <date>2013-03-14</date> public void SetInHosOrInWardDate() { try { string config = DS_SqlService.GetConfigValueByKey("EmrInputConfig"); if (!string.IsNullOrEmpty(config)) { XmlDocument doc = new XmlDocument(); doc.LoadXml(config); XmlNodeList nodeList = doc.GetElementsByTagName("InHosTimeType"); if (null != nodeList && nodeList.Count > 0) { string cfgValue = null == nodeList[0].InnerText ? "" : nodeList[0].InnerText.Trim(); if (cfgValue == "1") {//入科 gridViewInpatientFail.Columns[9].FieldName = "INWARDDATE"; } else {//入院 gridViewInpatientFail.Columns[9].FieldName = "ADMITDATE"; } } } } catch (Exception ex) { throw ex; } }
/// <summary> /// 是否开放三级检诊功能 /// </summary> /// 公开,供调用 edit by ywk /// <returns></returns> public bool IsOpenThreeLevelAudit() { try { //edit by cyq 2012-12-03 //string emrConfig = BasicSettings.GetStringConfig("EmrSetting"); string emrConfig = DS_SqlService.GetConfigValueByKey("EmrSetting"); XmlDocument doc = new XmlDocument(); doc.LoadXml(emrConfig); XmlNodeList nodeList = doc.GetElementsByTagName("OpenThreeLevelAudit"); if (nodeList.Count > 0) { XmlElement ele = nodeList[0] as XmlElement; if (ele.InnerText.Trim() == "0") { return(false); } else { return(true); } } return(false); } catch (Exception ex) { throw new Exception(ex.Message); } }
private void QualityMedicalRecord_Load(object sender, EventArgs e) { try { InitUCPoint(); RegisterEvent(); InitDepartment(); InitStatus(); //AddQCForm(); string config = DS_SqlService.GetConfigValueByKey("IsNewUcInput"); if (null != config && config.Trim() == "1") { AddEmrInputNew(); } else { AddEmrInput(); } InitInTime(); SetLookDeptEditor(); Search(); this.InitQCManager(); xtraTabControlEmrInfo.SelectedTabPage = xtraTabPage4; } catch (Exception ex) { DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(1, ex); } }
private void XtraFormPatientInfo_Load(object sender, EventArgs e) { try { string sqlEmr = " select patnoofhis from inpatient where noofinpat = '{0}' "; string patnoofhis = m_app.SqlHelper.ExecuteScalar(string.Format(sqlEmr, m_NoOfInpat)).ToString(); DataTable dt = new DataTable(); //从his查病人信息功能 if (DS_SqlService.GetConfigValueByKey("GetInpatientForHis") == "1") { IDataAccess sqlHelper = DataAccessFactory.GetSqlDataAccess("HISDB"); if (sqlHelper == null) { m_app.CustomMessageBox.MessageShow("无法连接到HIS", CustomMessageBoxKind.ErrorOk); return; } string sqlHis = " select * from zc_inpatient where zc_inpatient.patnoofhis = '{0}' "; dt = sqlHelper.ExecuteDataTable(string.Format(sqlHis, patnoofhis), CommandType.Text); } else { dt = m_app.SqlHelper.ExecuteDataTable(string.Format(" select * from inpatient where noofinpat = '{0}' ", m_NoOfInpat), CommandType.Text); } InitPatientInfo(dt); } catch (Exception ex) { string ErrorMessage = ex.Message; m_app.CustomMessageBox.MessageShow("调用HIS时出错,请联系管理员!", CustomMessageBoxKind.ErrorOk); } }
/// <summary> /// tabcontrol切换事件 /// Add xlb 2013-03-04 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void xtraTabControl1_SelectedPageChanged(object sender, TabPageChangedEventArgs e) { try { if (xtraTabControl1.SelectedTabPage == xtraEmrInpat) { string config = DS_SqlService.GetConfigValueByKey("IsNewUcInput"); if (null != config && config.Trim() == "1") { AddEmrInputNew(); } else { AddEmrInput(); LoadEmrContent(); } } else if (xtraTabControl1.SelectedTabPage == xtraRecord) { if (consultZDR == ConsultRecordForWrite.MultiEmployee) { InitData(); } } } catch (Exception ex) { MyMessageBox.Show(1, ex); } }
/// <summary> /// 查询方法 /// Add by xlb 2013-04-08 /// </summary> private void Search() { try { //存储过程名称 string procedureName = DS_SqlService.GetConfigValueByKey("MadeOrderProcedure"); string IsView = DS_SqlService.GetConfigValueByKey("MadeOrderIsView");; if (string.IsNullOrEmpty(procedureName)) { procedureName = "usp_GetDoctorAdvice"; } DS_SqlHelper.CreateSqlHelperByDBName("HISDB"); CheckConnectHIS(); if (IsView == "1") { GetDateTable(); } else { GetDateTableByPrc(procedureName); } gridView1.Columns.Clear(); gridControlOrder.DataSource = dtOrder; for (int i = 0; i < gridView1.Columns.Count; i++) { //列头居中 gridView1.Columns[i].AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; if (gridView1.Columns[i].FieldName.Trim() == "医嘱内容") { gridView1.Columns[i].Width = 200; } else { gridView1.Columns[i].Width = (gridControlOrder.Width - 200) / gridView1.Columns.Count - 1; } //RepositoryItem repository = new RepositoryItemMemoEdit(); //gridView1.Columns[i].ColumnEdit = repository; } gridView1.OptionsCustomization.AllowColumnMoving = false; gridView1.OptionsCustomization.AllowColumnResizing = true; gridView1.OptionsCustomization.AllowRowSizing = false; gridView1.OptionsCustomization.AllowQuickHideColumns = false; gridView1.OptionsCustomization.AllowFilter = false; gridView1.OptionsCustomization.AllowSort = false; //禁掉自带排序 gridView1.OptionsBehavior.Editable = false; //不可编辑 DS_SqlHelper.CreateSqlHelper(); } catch (Exception ex) { DS_SqlHelper.CreateSqlHelper(); throw ex; } }
/// <summary> /// 、二次修改捞取诊断数据源的修改 /// add by ywk 2013年3月19日9:57:05 /// </summary> /// <param name="lueInfo"></param> /// <param name="queryType"></param> private void BindLueData(LookUpEditor lueInfo, Decimal queryType) { try { LookUpWindow lupInfo = new LookUpWindow(); lupInfo.SqlHelper = m_App.SqlHelper; //判断诊断的捞取数据源 add by ywk 2013年3月19日9:48:23 DataTable dataTable = null; string getdiagtype = DS_SqlService.GetConfigValueByKey("GetDiagnosisType") == "" ? "0" : DS_SqlService.GetConfigValueByKey("GetDiagnosisType"); //string getdiagtype = "1"; if (getdiagtype == "0")//EMR { dataTable = GetEditroData(queryType); } if (getdiagtype == "1")//HIS { try { using (OracleConnection conn = new OracleConnection(DataAccessFactory.GetSqlDataAccess("HISDB").GetDbConnection().ConnectionString)) { if (conn.State != ConnectionState.Open) { conn.Open(); } dataTable = new DataTable(); OracleCommand cmd = conn.CreateCommand(); cmd.CommandType = CommandType.Text; cmd.CommandText = " SELECT NAME, py , WB, memo, icd as ID FROM yd_diagnosis "; OracleDataAdapter myoadapt = new OracleDataAdapter(cmd.CommandText, conn); myoadapt.Fill(dataTable); //MessageBox.Show("诊断取的HIS"); } } catch (Exception ex)//进异常,说明可能HIS那边没有此视图 就取EMR的 { dataTable = GetEditroData(queryType); //MessageBox.Show("出异常,诊断取自EMR"+ex.Message); } } //DataTable dataTable = GetEditroData(queryType); dataTable.Columns["ID"].Caption = "诊断编码"; dataTable.Columns["NAME"].Caption = "诊断名称"; Dictionary <string, int> columnwidth = new Dictionary <String, Int32>(); columnwidth.Add("ID", 90); columnwidth.Add("NAME", 210); SqlWordbook sqlWordBook = new SqlWordbook("ID", dataTable, "ID", "NAME", columnwidth, "ID//NAME//PY//WB"); lueInfo.SqlWordbook = sqlWordBook; lueInfo.ListWindow = lupInfo; } catch (Exception ex) { throw new Exception(ex.Message); } }
/// <summary> /// 二次更改,中心医院手术要取自HIS视图 /// edit by ywk 2013年7月22日 11:42:33 /// </summary> /// <param name="lueInfo"></param> /// <param name="queryType"></param> private void BindLueData(LookUpEditor lueInfo, Decimal queryType) { LookUpWindow lupInfo = new LookUpWindow(); lupInfo.SqlHelper = m_App.SqlHelper; //判断手术信息的捞取数据源 add by ywk 2013年7月22日 11:43:30 DataTable dataTable = null; //DataTable dataTable = GetEditroData(queryType); string getopertype = DS_SqlService.GetConfigValueByKey("GetOperationType") == "" ? "0" : DS_SqlService.GetConfigValueByKey("GetOperationType"); //只有手术从his中取 其他还是从emr中取 if (queryType == 20) { if (getopertype == "0")//EMR { dataTable = GetEditroData(queryType); } if (getopertype == "1")//HIS { try { using (OracleConnection conn = new OracleConnection(DataAccessFactory.GetSqlDataAccess("HISDB").GetDbConnection().ConnectionString)) { if (conn.State != ConnectionState.Open) { conn.Open(); } dataTable = new DataTable(); OracleCommand cmd = conn.CreateCommand(); cmd.CommandType = CommandType.Text; cmd.CommandText = " SELECT ID, NAME, py , WB, name 名称 FROM yd_operation "; OracleDataAdapter myoadapt = new OracleDataAdapter(cmd.CommandText, conn); myoadapt.Fill(dataTable); //MessageBox.Show("诊断取的HIS"); } } catch (Exception ex)//进异常,说明可能HIS那边没有此视图 就取EMR的 { dataTable = GetEditroData(queryType); //MessageBox.Show("出异常,诊断取自EMR"+ex.Message); } } } else { dataTable = GetEditroData(queryType); } Dictionary <string, int> columnwidth = new Dictionary <String, Int32>(); columnwidth.Add("名称", lueInfo.Width); SqlWordbook sqlWordBook = new SqlWordbook("ID", dataTable, "ID", "Name", columnwidth, true); lueInfo.SqlWordbook = sqlWordBook; lueInfo.ListWindow = lupInfo; }
public FormOrderForInpat() { try { InitializeComponent(); IsSortByDepartment = DS_SqlService.GetConfigValueByKey("IsSortByDepartment"); } catch (Exception ex) { throw ex; } }
private void InitlueMorpho() // add by jxh 绑定lueMorpho控件值 { try { LookUpWindow lupInfo1 = new LookUpWindow(); lupInfo1.SqlHelper = m_SqlHelper; string morphosource = DS_SqlService.GetConfigValueByKey("MorphologySource"); DataTable m_DataTableMor = new DataTable(); if (morphosource == "0")//取自EMR { string sql = string.Format(@"select * from diagnosis_xt a where a.valid = 1"); m_DataTableMor = m_SqlHelper.ExecuteDataTable(sql); } else { //形态学编码从HIS捞取 try { using (OracleConnection conn = new OracleConnection(DataAccessFactory.GetSqlDataAccess("HISDB").GetDbConnection().ConnectionString)) { if (conn.State != ConnectionState.Open) { conn.Open(); } OracleCommand cmd = conn.CreateCommand(); cmd.CommandType = CommandType.Text; cmd.CommandText = " SELECT MarkId as ID, NAME, py , WB, memo, icd FROM yd_morphologh "; OracleDataAdapter myoadapt = new OracleDataAdapter(cmd.CommandText, conn); myoadapt.Fill(m_DataTableMor); } } catch (Exception ex) { m_App.CustomMessageBox.MessageShow("从HIS取诊断学编码有误" + ex.Message); } } m_DataTableMor.Columns["NAME"].Caption = "名称"; Dictionary <string, int> cols = new Dictionary <string, int>(); cols.Add("ICD", 80); cols.Add("NAME", 160); SqlWordbook deptWordBook = new SqlWordbook("querybook", m_DataTableMor, "ICD", "NAME", cols, "ICD//NAME//PY//WB"); lueMorpho.SqlWordbook = deptWordBook; lueMorpho.ListWindow = lupInfo1; } catch (Exception ex) { m_App.CustomMessageBox.MessageShow("绑定诊断学编码有误" + ex.Message); } }
/// <summary> /// 初始化 /// </summary> private void Init(EmrModel model, DateTime?firstDailyTime, List <EmrModel> list) { try { string titleName = model.IsShowFileName == "1" ? (string.IsNullOrEmpty(model.FileName.Trim()) ? model.Description.Trim() : model.FileName.Trim()) : string.Empty; if (null == firstDailyTime) { DataTable dt = DS_SqlService.GetInpatientByID((int)m_app.CurrentPatientInfo.NoOfFirstPage, 2); if (null != dt && dt.Rows.Count > 0) { string config = DS_SqlService.GetConfigValueByKey("EmrInputConfig"); if (!string.IsNullOrEmpty(config)) { XmlDocument doc = new XmlDocument(); doc.LoadXml(config); XmlNodeList nodeList = doc.GetElementsByTagName("InHosTimeType"); if (null != nodeList && nodeList.Count > 0) { string cfgValue = null == nodeList[0].InnerText ? "" : nodeList[0].InnerText.Trim(); if (cfgValue == "0" && !string.IsNullOrEmpty(dt.Rows[0]["admitdate"].ToString().Trim())) {//入院 m_BeginTime = DateTime.Parse(dt.Rows[0]["admitdate"].ToString()); } else if (!string.IsNullOrEmpty(dt.Rows[0]["inwarddate"].ToString().Trim())) {//入科 m_BeginTime = DateTime.Parse(dt.Rows[0]["inwarddate"].ToString()); } } else { m_BeginTime = (null != dt.Rows[0]["inwarddate"] && dt.Rows[0]["inwarddate"].ToString().Trim() != "") ? DateTime.Parse(dt.Rows[0]["inwarddate"].ToString()) : DateTime.Parse(dt.Rows[0]["admitdate"].ToString()); } } this.labelControl_Info.Text = "病程时间应大于入院时间 " + m_BeginTime.ToString("yyyy-MM-dd HH:mm:ss"); } } else { m_BeginTime = (DateTime)firstDailyTime; this.labelControl_Info.Text = "病程时间应大于首次病程时间 " + m_BeginTime.ToString("yyyy-MM-dd HH:mm:ss"); } dateEdit_Date.DateTime = DateTime.Now.Date; timeEdit_Time.Time = DateTime.Now; textEdit_Name.Text = titleName; } catch (Exception ex) { throw ex; } }
/// <summary> /// 获取需要选中的病程数目 /// </summary> private void GetNeedCheckItemCount() { try { string cnt = DS_SqlService.GetConfigValueByKey("PreViewEmrCount"); if (null != cnt && !string.IsNullOrEmpty(cnt.Trim()) && cnt.Split('|').Length == 2) { m_NeedCheckItemCount = Convert.ToInt32(cnt.Split('|')[0]); } } catch (Exception ex) { throw ex; } }
/// <summary> /// 获取入院时间(系统配置) /// </summary> /// <param name="noofinpat"></param> /// <returns></returns> public static DateTime GetInHostTime(int noofinpat) { try { DataTable dt = DS_SqlService.GetInpatientByID(noofinpat, 2); if (null != dt && dt.Rows.Count > 0) { string config = DS_SqlService.GetConfigValueByKey("EmrInputConfig"); if (!string.IsNullOrEmpty(config)) { XmlDocument doc = new XmlDocument(); doc.LoadXml(config); XmlNodeList nodeList = doc.GetElementsByTagName("InHosTimeType"); if (null != nodeList && nodeList.Count > 0) { string cfgValue = null == nodeList[0].InnerText ? "" : nodeList[0].InnerText.Trim(); if (cfgValue == "0") {//入院 if (!string.IsNullOrEmpty(dt.Rows[0]["admitdate"].ToString().Trim())) { return(DateTime.Parse(dt.Rows[0]["admitdate"].ToString())); } else if (!string.IsNullOrEmpty(dt.Rows[0]["inwarddate"].ToString().Trim())) { return(DateTime.Parse(dt.Rows[0]["inwarddate"].ToString())); } } else if (cfgValue == "1") {//入科 if (!string.IsNullOrEmpty(dt.Rows[0]["inwarddate"].ToString().Trim())) { return(DateTime.Parse(dt.Rows[0]["inwarddate"].ToString())); } else if (!string.IsNullOrEmpty(dt.Rows[0]["admitdate"].ToString().Trim())) { return(DateTime.Parse(dt.Rows[0]["admitdate"].ToString())); } } } } } return(DateTime.MinValue); } catch (Exception ex) { throw ex; } }
/// <summary> /// 通过配置项来设置默认值 /// Add by xlb 2013-04-08 /// </summary> private void GetConfig() { try { string defaultValue = DS_SqlService.GetConfigValueByKey("IemrOrderDefault"); if (string.IsNullOrEmpty(defaultValue)) { defaultValue = "0,1,-10"; } config = defaultValue.Split(','); } catch (Exception ex) { throw ex; } }
private void xtraTabControl1_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e) { if (xtraTabControl1.SelectedTabPage == xtraTabPageEmrContent) { string config = DS_SqlService.GetConfigValueByKey("IsNewUcInput"); if (null != config && config.Trim() == "1") { AddEmrInputNew(); } else { AddEmrInput(); LoadEmrContent(); } } }
/// <summary> /// 窗体加载事件 /// Add by xlb 2013-03-11 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void FrmConsultForReview_Load(object sender, EventArgs e) { try { string config = DS_SqlService.GetConfigValueByKey("IsNewUcInput"); if (null != config && config.Trim() == "1") { AddEmrInputNew(); } else { AddEmrInput(); } } catch (Exception ex) { MyMessageBox.Show(1, ex); } }
private void EmrBrowser_Load(object sender, EventArgs e) { try { string config = DS_SqlService.GetConfigValueByKey("IsNewUcInput"); if (null != config && config.Trim() == "1") { AddEmrInputNew(); } else { AddEmrInput(); } } catch (Exception ex) { DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(1, ex); } }
private void xtraTabControlApprove_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e) { if (xtraTabControlApprove.SelectedTabPage == xtraTabPageEmrContent) { string config = DS_SqlService.GetConfigValueByKey("IsNewUcInput"); if (null != config && config.Trim() == "1") { AddEmrInputNew(); } else { AddEmrInput(); LoadEmrContent(); } } if (this.xtraTabControlApprove.SelectedTabPage == xtraTabPage1) { this.ActiveControl = memoEditSuggestion; } }
/// <summary> /// 获取文书录入路径 /// </summary> /// <returns></returns> public static string GetUCEmrInputPath() { try { string config = DS_SqlService.GetConfigValueByKey("IsNewUcInput"); string path = string.Empty; if (null != config && config.Trim() == "1") { path = "DrectSoft.Core.MainEmrPad.New.MainFormNew"; } else { path = "DrectSoft.Core.MainEmrPad.MainForm"; } return(path); } catch (Exception ex) { throw ex; } }
/// <summary> /// 窗体加载事件 /// Modify by xlb 2013-04-01 /// Appcfg表添加该控制项"ConsultationInstruction"用于更改说明文档 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ConsultationStateForm_Load(object sender, EventArgs e) { try { string state = DS_SqlService.GetConfigValueByKey("ConsultationInstruction"); #region 注销 by xlb 流程说明加入配置表 方便更改 //string state = "1.主治医师以上级别医师都有会诊审核的权限。默认各科室主任有会诊审核人配置权限,可针对本科室医师配置各自的会诊审核医师。\n\r"; //state += "2.各管床医生可针对科室内在院患者发出会诊申请,会诊邀请时间可选择一个定点时间,会诊邀请人可指定到受邀科室的主治医师或主治以上级别医师或指定到个人。填写会诊申请后,会诊状态会在医生工作站主界面右侧会诊信息栏显示。 \n\r"; //state += "3.会诊申请发出后经上级医师审核,上级医师有否决、通过权力。否决后会诊取消,若要会诊需再次发会诊申请。会诊通过审核后,会诊状态显示在邀请医生界面、邀请科室护士站界面、受邀医生界面、受邀科室护士站界面,并且邀请医师、受邀医生首次登陆时会弹出会诊提示框,护士也可直接控制提示框向受邀医生发出提醒。\n\r"; //state += "4.受邀科室护士站打印出会诊记录单交会诊医师,打印时间作为护士已通知到医生会诊的时间,若是因为护士打印不及时而导致延误,电子病历系统中可追溯。医师可手录会诊记录单中会诊意见或在电子病历系统中直接录入会诊意见。(病历系统中的会诊记录单会诊意见可为空,由医师手写的替代)\n\r"; //state += "5.受邀医师到达邀请科室后,先到护士站确认参加会诊,确认时间作为会诊到达时间,与邀请会诊时间做对比,作为是否按时会诊依据。护士确认后开始作收费处理。会诊完成后由邀请医生确认会诊完成,若会诊前未到护士站确认参加会诊,会诊完成时间即作为会诊到达时间,与邀请会诊时间、护士通知会诊时间做对比,作为是否按时会诊依据。 \n\r"; //state += "6.会诊完成后状态传送到护士站,若会诊前未到护士站确认参加会诊,未作收费处理,提醒护士完成收费。 \n\r"; //state += "7.超过会诊申请单上申请的会诊时间,会诊申请不自动关闭。受邀医师在超过会诊时间后可继续参加会诊,电子病历系统可追溯。邀请医生也可手动取消会诊申请。"; #endregion richTextBoxState.Text = state; } catch (Exception ex) { MyMessageBox.Show(1, ex); } }
/// <summary> /// tabControl切换事件 /// Add xlb 2013-02-21 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void xtraTabControl1_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e) { try { if (xtraTabControl1.SelectedTabPage == xtraEmrInfo) { string config = DS_SqlService.GetConfigValueByKey("IsNewUcInput"); if (null != config && config.Trim() == "1") { LoadEmrContentNew(); } else { LoadEmrContent(); } } } catch (Exception ex) { MyMessageBox.Show(1, ex); } }
private void frmChild_Load(object sender, EventArgs e) { try { string config = DS_SqlService.GetConfigValueByKey("IsNewUcInput"); if (null != config && config.Trim() == "1") { AddEmrInputNew(); } else { AddEmrInput(); } } catch (Exception ex) { MyMessageBox.Show(1, ex); } finally { DS_Common.HideWaitDialog(m_WaitDialog); } }
/// <summary> /// 窗体加载事件 /// <auth>Yanqiao.Cai</auth> /// <date>2012-12-28</date> /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SetAttendDoctorForm_Load(object sender, EventArgs e) { try { //初始化科室 InitDepartment(); //设置默认科室 this.lookUpEditorDepartment.CodeValue = DS_Common.currentUser.CurrentDeptId; //导入历史数据按钮是否显示 string config = DS_SqlService.GetConfigValueByKey("ImportDiseasesGroupHistoryData"); XmlDocument doc = new XmlDocument(); if (!string.IsNullOrEmpty(config)) { doc.LoadXml(config); } XmlNodeList nodeList = doc.GetElementsByTagName("btnflag"); string btnflag = string.Empty; if (null != nodeList && nodeList.Count > 0) { btnflag = nodeList[0].InnerText; } if (!string.IsNullOrEmpty(btnflag) && btnflag.Trim() == "1") { this.btn_importData.Visible = true; } else { this.btn_importData.Visible = false; } this.ActiveControl = this.txt_userName; } catch (Exception ex) { DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(1, ex); } }
/// <summary> /// 判断用户是否为病案室人员 /// <auth>Yanqiao.Cai</auth> /// <date>2012-12-06</date> /// <param name="userID">用户ID</param> /// <returns></returns> public static bool CheckIfQuatityControlPerson(string userID) { try { bool boo = false; if (!string.IsNullOrEmpty(userID)) { string config = DS_SqlService.GetConfigValueByKey("PersonOfRecordRoom"); if (!string.IsNullOrEmpty(config)) { List <string> str = GetMaxLengthUserList(config.Split(',')); if (null != str && str.Count > 0) { boo = str.Contains(userID); } } } return(boo); } catch (Exception ex) { throw new Exception(ex.Message); } }
private void xtraTabControl1_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e) { try { if (xtraTabControl1.SelectedTabPage == xtraTabPageEmrContent) { string config = DS_SqlService.GetConfigValueByKey("IsNewUcInput"); if (null != config && config.Trim() == "1") { AddEmrInputNew(); } else { AddEmrInput(); LoadEmrContent(); } } this.xtraTabControl1.SelectedTabPage.Controls[0].Focus(); } catch (Exception ex) { DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(1, ex); } }
/// <summary> /// 打印事件 /// edit by Yanqiao.Cai 2012-11-12 /// add try ... catch /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void barLargeButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { if (string.IsNullOrEmpty(CurrentReprotCard.m_Noofinpat)) { m_App.CustomMessageBox.MessageShow("请选择一条传染病上报记录", CustomMessageBoxKind.InformationOk); return; } //宜昌中心医院打印 string configVal = DS_SqlService.GetConfigValueByKey("YiChangChuangRangBin"); if (configVal == "1" || string.IsNullOrEmpty(configVal)) { #region 暂时作废 //m_ZymosisReportEntity = new ZymosisReportEntity(); //if (CurrentReprotCard.m_ZymosisReportEntity == null) //{ // m_ZymosisReportEntity.ReportId = 0; // m_ZymosisReportEntity.ReportNo = ""; // m_ZymosisReportEntity.ReportType = ""; // m_ZymosisReportEntity.Noofinpat = ""; // m_ZymosisReportEntity.Patid = ""; // m_ZymosisReportEntity.Name = ""; // m_ZymosisReportEntity.Parentname = ""; // m_ZymosisReportEntity.Idno = ""; // m_ZymosisReportEntity.Sex = ""; // m_ZymosisReportEntity.Birth = "1900-01-01"; // m_ZymosisReportEntity.Age = ""; // m_ZymosisReportEntity.AgeUnit = ""; // m_ZymosisReportEntity.Organization = ""; // m_ZymosisReportEntity.Officeplace = ""; // m_ZymosisReportEntity.Officetel = ""; // m_ZymosisReportEntity.Addresstype = ""; // m_ZymosisReportEntity.Hometown = ""; // m_ZymosisReportEntity.Address = ""; // m_ZymosisReportEntity.Jobid = ""; // m_ZymosisReportEntity.Recordtype1 = ""; // m_ZymosisReportEntity.Recordtype2 = ""; // m_ZymosisReportEntity.Attackdate = ""; // m_ZymosisReportEntity.Diagdate = ""; // m_ZymosisReportEntity.Diedate = ""; // m_ZymosisReportEntity.Diagicd10 = ""; // m_ZymosisReportEntity.Diagname = ""; // m_ZymosisReportEntity.InfectotherFlag = ""; // m_ZymosisReportEntity.Memo = ""; // m_ZymosisReportEntity.CorrectFlag = ""; // m_ZymosisReportEntity.CorrectName = ""; // m_ZymosisReportEntity.CancelReason = ""; // m_ZymosisReportEntity.Reportdeptcode = ""; // m_ZymosisReportEntity.Reportdeptname = ""; // m_ZymosisReportEntity.Reportdoccode = ""; // m_ZymosisReportEntity.Reportdocname = ""; // m_ZymosisReportEntity.Doctortel = ""; // m_ZymosisReportEntity.ReportDate = ""; // m_ZymosisReportEntity.State = ""; // m_ZymosisReportEntity.CreateDate = ""; // m_ZymosisReportEntity.CreateUsercode = ""; // m_ZymosisReportEntity.CreateUsername = ""; // m_ZymosisReportEntity.CreateDeptcode = ""; // m_ZymosisReportEntity.CreateDeptname = ""; // m_ZymosisReportEntity.ModifyDate = ""; // m_ZymosisReportEntity.ModifyUsercode = ""; // m_ZymosisReportEntity.ModifyUsername = ""; // m_ZymosisReportEntity.ModifyDeptcode = ""; // m_ZymosisReportEntity.ModifyDeptname = ""; // m_ZymosisReportEntity.AuditDate = ""; // m_ZymosisReportEntity.AuditUsercode = ""; // m_ZymosisReportEntity.AuditUsername = ""; // m_ZymosisReportEntity.AuditDeptcode = ""; // m_ZymosisReportEntity.AuditDeptname = ""; // m_ZymosisReportEntity.OtherDiag = ""; //} //else //{ // m_ZymosisReportEntity = CurrentReprotCard.m_ZymosisReportEntity; //} //Drawingform drawingform = GetDrawingform(m_ZymosisReportEntity); //PrintFroms printForm = new PrintFroms(drawingform); //printForm.ShowDialog(); #endregion if (xtraTabPageCardInfo.Controls.Count > 0 && xtraTabPageCardInfo.Controls[0] is UCReportCard)//if (panelControl2.Controls.Count > 0 && panelControl2.Controls[0] is UCReportCard) { PageSetupDialog pageSetupDialog = new PageSetupDialog(); pageSetupDialog.Document = m_PrintDocument; PaperSize p = new PaperSize("16K", 275, 457);//默认16K的纸 foreach (PaperSize ps in pageSetupDialog.Document.PrinterSettings.PaperSizes) { if (ps.PaperName.Equals("A4"))//这里设置纸张大小,但必须是定义好的 { p = ps; } } pageSetupDialog.Document.DefaultPageSettings.Margins = new Margins(0, 0, 0, 0); m_PrintDocument.PrintPage += new PrintPageEventHandler(m_PrintDocument_PrintPage); m_PrintDocument.Print(); } } else { if (CurrentReprotCard.m_ZymosisReportEntity == null || CurrentReprotCard.m_ZymosisReportEntity.ReportId <= 0) { MyMessageBox.Show("请先保存数据"); return; } PrintFormExt printFormExt = new PrintFormExt(CurrentReprotCard.m_ZymosisReportEntity.ReportId.ToString(), CurrentReprotCard.fukatype); printFormExt.Show(); } } catch (Exception ex) { MyMessageBox.Show(1, ex); } }