/// <summary> /// 数据复用 /// </summary> /// <param name="p_objSelectedPatient"></param> protected override void m_mthDataShare(clsPatient p_objSelectedPatient) { clsInPatientCaseHisoryDefaultValue[] objInPatientCaseDefaultValue = new clsInPatientCaseHisoryDefaultDomain().lngGetAllInPatientCaseHisoryDefault(p_objSelectedPatient.m_StrInPatientID, p_objSelectedPatient.m_DtmSelectedInDate.ToString()); if (objInPatientCaseDefaultValue != null && objInPatientCaseDefaultValue.Length > 0) { this.m_txtInHospitalDiagnose.Text = objInPatientCaseDefaultValue[0].m_strPrimaryDiagnose; } }
/// <summary> /// 设置打印信息 /// </summary> /// <param name="p_objPatient">病人</param> /// <param name="p_dtmInPatientDate">入院日期</param> /// <param name="p_dtmOpenDate">OpenDate,如果是一次打印多次记录表单的类型(如病案记录),忽略OpenDate</param> public void m_mthSetPrintInfo(clsPatient p_objPatient, DateTime p_dtmInPatientDate, DateTime p_dtmOpenDate) { m_objPrintInfo = null; m_objPatient = p_objPatient; m_dtmInPatientDate = p_dtmInPatientDate; m_dtmOpenDate = p_dtmOpenDate; m_blnWantInit = true; }
/// <summary> /// 获取记录 /// </summary> /// <param name="p_objSelectedPatient"></param> /// <param name="p_strOpenDate"></param> /// <returns></returns> public override clsTrackRecordContent m_objGetRecordContent(clsPatient p_objSelectedPatient, string p_strOpenDate) { clsTrackRecordContent objContent; //获取记录 m_objDiseaseTrackDomain.m_lngGetRecordContent(p_objSelectedPatient.m_StrRegisterId, p_strOpenDate, out objContent); return(objContent); }
/// <summary> /// 设置打印信息(当从数据库读取时要首先调用.) /// </summary> /// <param name="p_objPatient">病人</param> /// <param name="p_dtmInPatientDate">入院日期</param> /// <param name="p_dtmOpenDate">OpenDate,本类忽略OpenDate</param> public void m_mthSetPrintInfo(clsPatient p_objPatient, System.DateTime p_dtInPateintDate, System.DateTime p_dtOpenDate) { m_objPrintRecordTool = new com.digitalwave.Utility.Controls.ctlBornScheduleRecordPrintTool(); m_objPrintRecordTool.m_StrWoman = p_objPatient.m_StrName; m_objPrintRecordTool.m_StrBedNo = p_objPatient.m_strBedCode; m_objPrintRecordTool.m_StrAge = p_objPatient.m_ObjPeopleInfo.m_StrAge; m_objPrintRecordTool.m_StrHospitalName = clsSystemContext.s_ObjCurrentContext.m_ObjHospitalInfo.m_StrHospitalTitle; }
public void NotesMin() { clsPatient TestPatient = new clsPatient(); string SomeNotes = "C"; string ExpectedReturnMsg = ""; string NotesErrMsg = TestPatient.ValidateNotes(SomeNotes); Assert.AreEqual(NotesErrMsg, ExpectedReturnMsg); }
private void m_lsvInPatientList_SelectedIndexChanged(object sender, System.EventArgs e) { if (m_lsvInPatientList.SelectedItems.Count <= 0) { return; } m_objSelecttPatient = m_lsvInPatientList.SelectedItems[0].Tag as clsPatient; m_mthLoadAllRecord(m_objSelecttPatient); }
/// <summary> /// 数据复用 /// </summary> /// <param name="p_objSelectedPatient"></param> protected override void m_mthDataShare(clsPatient p_objSelectedPatient) { // clsInPatientCaseHisoryDefaultValue [] objInPatientCaseDefaultValue = new clsInPatientCaseHisoryDefaultDomain().lngGetAllInPatientCaseHisoryDefault(p_objSelectedPatient.m_StrInPatientID,p_objSelectedPatient.m_DtmLastInDate.ToString()); // if(objInPatientCaseDefaultValue !=null && objInPatientCaseDefaultValue.Length >0) // { // this.m_txtOriginalDiagnose.Text = objInPatientCaseDefaultValue[0].m_strPrimaryDiagnose; // this.m_txtCurrentDiagnose.Text = objInPatientCaseDefaultValue[0].m_strPrimaryDiagnose; // } }
/// <summary> /// 设置病人表单信息,必须覆盖 /// </summary> /// <param name="p_objSelectedPatient">病人</param> protected override void m_mthSetPatientFormInfo(clsPatient p_objSelectedPatient) { this.m_dtpInpatientDate.Value = p_objSelectedPatient.m_DtmLastInDate; clsBedCardValue objBedCardValue = new clsBedCardValue(); objBedCardValue.m_strInPatientID = p_objSelectedPatient.m_StrInPatientID; objBedCardValue.m_strInPatientDate = p_objSelectedPatient.m_DtmLastInDate.ToString("yyyy-MM-dd HH:mm:ss"); long lngRes = m_objBedCardDomain.m_lngGetBedCardValue(ref objBedCardValue); if (lngRes <= 0 || string.IsNullOrEmpty(objBedCardValue.m_strDoc_ManageBed)) { string strDoctor = null; m_objBedCardDomain.m_lngGetManageDocWithBedID(p_objSelectedPatient.m_ObjInBedInfo.m_ObjLastBedInfo.m_ObjBed.m_StrBedID, out strDoctor); if (strDoctor != null) { //clsEmployee objemp = new clsEmployee(strDoctor.Trim()); //this.m_txtManageDoc.Text = objemp.m_StrLastName; //this.m_txtManageDoc.Tag = objemp; clsEmrEmployeeBase_VO objEmpVO1 = new clsEmrEmployeeBase_VO(); objEmployeeSign.m_lngGetEmpByID(strDoctor.Trim(), out objEmpVO1); if (objEmpVO1 != null) { m_txtManageDoc.Tag = objEmpVO1; m_txtManageDoc.Text = objEmpVO1.m_strLASTNAME_VCHR; } } } else { clsEmrEmployeeBase_VO objEmpVO2 = new clsEmrEmployeeBase_VO(); objEmployeeSign.m_lngGetEmpByID(objBedCardValue.m_strDoc_ManageBed, out objEmpVO2); if (objEmpVO2 != null) { this.m_txtManageDoc.Text = objEmpVO2.m_strLASTNAME_VCHR; this.m_txtManageDoc.Tag = objEmpVO2; } } if (string.IsNullOrEmpty(objBedCardValue.m_strDoc_InCharge)) { this.m_txtChargeDoc.Text = string.Empty; this.m_txtChargeDoc.Tag = null; } else { clsEmrEmployeeBase_VO objEmpVO3 = new clsEmrEmployeeBase_VO(); objEmployeeSign.m_lngGetEmpByID(objBedCardValue.m_strDoc_InCharge, out objEmpVO3); if (objEmpVO3 != null) { this.m_txtChargeDoc.Text = objEmpVO3.m_strLASTNAME_VCHR; this.m_txtChargeDoc.Tag = objEmpVO3; } } this.m_cboStatus.SelectedIndex = ((objBedCardValue.m_intState < -1 || objBedCardValue.m_intState > 3)? -1 :objBedCardValue.m_intState); }
/// <summary> /// 设置打印信息(当从数据库读取时要首先调用.) /// </summary> /// <param name="p_objPatient">病人</param> /// <param name="p_dtmInPatientDate">入院日期</param> /// <param name="p_dtmOpenDate">OpenDate,如果是一次打印多次记录表单的类型(如病案记录),忽略OpenDate</param> public void m_mthSetPrintInfo(clsPatient p_objPatient, DateTime p_dtmInPatientDate, DateTime p_dtmOpenDate) { m_objPatient = p_objPatient; m_dtInHos = p_dtmInPatientDate; //从主表中获取所有没删除的数据 com.digitalwave.clsRecordsService.clsQuickeningTutelar_AcadService objServ = (com.digitalwave.clsRecordsService.clsQuickeningTutelar_AcadService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsQuickeningTutelar_AcadService)); objServ.m_lngGetAllMainRecord(p_objPatient.m_StrInPatientID, p_dtmInPatientDate.ToString(), out m_objResultArr); }
// 获取病人的已经被删除记录时间列表。 public long m_lngGetDeleteRecordTimeList(string p_strInPatientID, string p_strInPatientDate, clsPatient p_strDeleteUserID, out string[] p_strCreateRecordTimeArr, out string[] p_strOpenRecordTimeArr) { p_strCreateRecordTimeArr = null; p_strOpenRecordTimeArr = null; return((long)enmOperationResult.DB_Succeed); }
private void m_lsvRecordList_DoubleClick(object sender, EventArgs e) { if (m_lsvRecordList.Items.Count > 0 && m_lsvRecordList.SelectedItems.Count > 0) { clsPatient objPa = new clsPatient(m_lsvRecordList.SelectedItems[0].SubItems[1].Text.Trim()); frmInHospitalMainRecord_GXForCH frmRecord = new frmInHospitalMainRecord_GXForCH(); frmRecord.MdiParent = this.MdiParent; frmRecord.Show(); frmRecord.m_mthSetSelectedPatient(objPa); } }
protected override void m_mthSetPatientInHospitalDate(clsPatient p_objSelectedPatient) { //判断病人信息是否为null,如果是,直接返回。 if (p_objSelectedPatient == null) { return; } //记录病人信息 m_objCurrentPatient = p_objSelectedPatient; //m_lblInHospitalTime.Text=m_objCurrentPatient.m_DtmSelectedHISInDate.ToString("yyyy年MM月dd日"); }
/// <summary> /// 设置打印信息(当从数据库读取时要首先调用.) /// </summary> /// <param name="p_objPatient">病人</param> /// <param name="p_dtmInPatientDate">入院日期</param> /// <param name="p_dtmOpenDate">OpenDate,如果是一次打印多次记录表单的类型(如病案记录),忽略OpenDate</param> public void m_mthSetPrintInfo(clsPatient p_objPatient, DateTime p_dtmInPatientDate, DateTime p_dtmOpenDate) { m_objPatient = p_objPatient; if (isOutPrint == true) { //从主表中获取指定CheckDate的记录 com.digitalwave.clsRecordsService.clsVeinSpecialUseDrug_MainService m_objMainSvc = (com.digitalwave.clsRecordsService.clsVeinSpecialUseDrug_MainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsVeinSpecialUseDrug_MainService)); m_objMainSvc.m_lngGetCheckDateRecord(p_objPatient.m_StrInPatientID, p_dtmInPatientDate.ToString(), p_dtmOpenDate, out m_objResultArr); } }
// Method to display the patient on the form void DisplayPatient(Int32 PatientID) { //create an an instance of the class clsPatientColllection clsPatientCollection MyPatient = new clsPatientCollection(); // create an instance of the class clsPatient clsPatient PatientToEdit = new clsPatient(); // get the data for this record PatientToEdit = MyPatient.FindPatient(PatientID); // display all the patient's data found on the form txtPatientID.Text = Convert.ToString(PatientToEdit.PatientID); ddlTitle.SelectedValue = Convert.ToString(PatientToEdit.Title); // take value of the Title and match it to the selected value of the ddlTitle txtFirstName.Text = PatientToEdit.FirstName; // put the value of the PatientToEdit FirstName and put it in the textbox txtFirstName txtLastName.Text = PatientToEdit.LastName; txtDateOfBirth.Text = Convert.ToString(PatientToEdit.DateOfBirth); ddlGender.SelectedValue = Convert.ToString(PatientToEdit.Gender); txtStreet.Text = PatientToEdit.Street; txtTown.Text = PatientToEdit.Town; txtCounty.Text = PatientToEdit.County; txtPostCode.Text = PatientToEdit.PostCode; txtLandlineNo.Text = PatientToEdit.LandlineNo; txtMobileNo.Text = PatientToEdit.MobileNo; txtOccupation.Text = PatientToEdit.Occupation; txtNextOfKinName.Text = PatientToEdit.NextOfKin; txtNextOfKinPhoneNo.Text = PatientToEdit.NextOfKinPhoneNo; txtDateAdmitted.Text = Convert.ToString(PatientToEdit.DateAdmitted); txtDateDischarged.Text = Convert.ToString(PatientToEdit.DateDischarged); // take the values from the PatientToEdit and put them in the ddl selected values ddlMaritalStatus.SelectedValue = Convert.ToString(PatientToEdit.MaritalStatus); ddlSexualOrientation.SelectedValue = Convert.ToString(PatientToEdit.SexualOrientation); ddlEthnicity.SelectedValue = Convert.ToString(PatientToEdit.Ethnicity); ddlTitle.SelectedValue = Convert.ToString(PatientToEdit.Title); ddlReligion.SelectedValue = Convert.ToString(PatientToEdit.Religion); ddlFirstLanguage.SelectedValue = Convert.ToString(PatientToEdit.FirstLanguage); txtGPDetails.Text = PatientToEdit.GPDetails; txtNotes.Text = PatientToEdit.Notes; // foreign keys data // take the converted integer value of the PatientToEdit WardNo //and put it as the index number of the ddlWard so it displays the selected value of that index in the ddlWard ddlWard.SelectedIndex = Convert.ToInt32(PatientToEdit.WardNo); // take the converted integer value of the PatientToEdit TreatmentID //and put it as the index number of the ddlMedicalCondition so it displays the selectedvalue of that index in the ddlMedicalCondition ddlMedicalCondition.SelectedIndex = Convert.ToInt32(PatientToEdit.TreatmentID); }
/// <summary> /// 设置打印信息(当从数据库读取时要首先调用.) /// </summary> /// <param name="p_objPatient">病人</param> /// <param name="p_dtmInPatientDate">入院日期</param> /// <param name="p_dtmOpenDate">OpenDate,如果是一次打印多次记录表单的类型(如病案记录),忽略OpenDate</param> public void m_mthSetPrintInfo(clsPatient p_objPatient, DateTime p_dtmInPatientDate, DateTime p_dtmOpenDate) { m_objPatient = p_objPatient; m_dtInHos = p_dtmInPatientDate; //从主表中获取所有没删除的数据 com.digitalwave.clsRecordsService.clsWaitLayRecord_AcadService m_objInRoomSvc = (com.digitalwave.clsRecordsService.clsWaitLayRecord_AcadService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsWaitLayRecord_AcadService)); m_objInRoomSvc.m_lngGetAllMainRecord(p_objPatient.m_StrInPatientID, p_dtmInPatientDate.ToString(), out m_objResultArr); //clsRecordsDomain m_objRecordDomain = new clsRecordsDomain(enmRecordsType.WaitLayRecord_Acad); //m_objRecordDomain.m_lngGetTransDataInfoArr(p_objPatient.m_StrInPatientID, p_dtmInPatientDate.ToString(), out m_objResultArr); }
/// <summary> /// 设置打印信息(当从数据库读取时要首先调用.) /// </summary> /// <param name="p_objPatient">病人</param> /// <param name="p_dtmInPatientDate">入院日期</param> /// <param name="p_dtmOpenDate">OpenDate,如果是一次打印多次记录表单的类型(如病案记录),忽略OpenDate</param> public void m_mthSetPrintInfo(clsPatient p_objPatient, DateTime p_dtmInPatientDate, DateTime p_dtmOpenDate) { m_objPatient = p_objPatient; m_dtInHos = p_dtmInPatientDate; com.digitalwave.clsRecordsService.clsPostartumSeeRecordMainService objServ = (com.digitalwave.clsRecordsService.clsPostartumSeeRecordMainService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.clsRecordsService.clsPostartumSeeRecordMainService)); //从主表中获取所有没删除的数据 clsTransDataInfo[] objAr = null; objServ.m_lngGetTransDataInfoArr(null, p_objPatient.m_StrRegisterId, out objAr); m_mthSetPrintContent(objAr); }
/// <summary> /// 提取表头基本信息 /// </summary> /// <returns></returns> private string m_strGetHeaderText() { if (m_objRecordContent == null) { return(""); } clsOutHospitalRecordContent objContent = ((clsOutHospitalRecordContent)m_objRecordContent); string strText; strText = objContent.m_dtmCreateDate.ToString(MDIParent.s_ObjRecordDateTimeInfo.m_strGetRecordTimeFormat("frmOutHospital")) + " " + "出院记录\n"; clsPatient objPatient = new clsPatient(objContent.m_strInPatientID); if (objPatient != null && objPatient.m_ObjPeopleInfo != null) { strText += " " + objPatient.m_ObjPeopleInfo.m_StrFirstName + "," + objPatient.m_ObjPeopleInfo.m_StrSex + "," + objPatient.m_ObjPeopleInfo.m_IntAge.ToString() + "岁,"; } else { strText += " 病人信息不详,"; } string strInHospitalReason = ""; #region 入院原因(主诉) clsInPatientCaseHisoryDefaultValue[] objInPatientCaseHisoryDefaultValueArr = new clsInPatientCaseHisoryDefaultDomain().lngGetAllInPatientCaseHisoryDefault(objContent.m_strInPatientID, objContent.m_dtmInPatientDate.ToString("yyyy-MM-dd HH:mm:ss")); if (objInPatientCaseHisoryDefaultValueArr != null && objInPatientCaseHisoryDefaultValueArr.Length > 0) { strInHospitalReason = objInPatientCaseHisoryDefaultValueArr[0].m_strMainDescription; } #endregion 入院原因(主诉) string strLastChar = ""; if (strInHospitalReason != null && strInHospitalReason.Length > 0) { strLastChar = strInHospitalReason.Substring(strInHospitalReason.Length - 1, 1); } if (strLastChar == "." || strLastChar == "," || strLastChar == "," || strLastChar == "。") //去掉最后的标点 { strInHospitalReason = strInHospitalReason.Substring(0, strInHospitalReason.Length - 1); } if (strInHospitalReason != "") { strInHospitalReason = "因" + strInHospitalReason + ","; } TimeSpan ts = objContent.m_dtmOutHospitalDate - objContent.m_dtmInPatientDate; //MM月->01月,M月->1月 只认英文字符 strText += strInHospitalReason + objContent.m_dtmInPatientDate.ToString("yyyy年MM月dd日") + "入院," + objContent.m_dtmOutHospitalDate.ToString("yyyy年MM月dd日") + "出院,共住院" + (ts.Days + 1).ToString() + "天。"; return(strText); }
private void m_mthSetPatientToLsv(clsPatient[] objPatientArr, bool p_blnIsRecord) { if (objPatientArr != null && objPatientArr.Length > 0) { m_lsvInPatientList.Items.Clear(); for (int i = 0; i < objPatientArr.Length; i++) { int intCount = objPatientArr[i].m_ObjInBedInfo.m_intGetSessionCount(); if (intCount == 1) { ListViewItem item = new ListViewItem(); if (p_blnIsRecord) { item = new ListViewItem(new string[] { objPatientArr[i].m_StrInPatientID, objPatientArr[i].m_StrName, objPatientArr[i].m_DtmLastInDate.ToString("yyyy年MM月dd日"), objPatientArr[i].m_DtmLastOutDate.ToString("yyyy年MM月dd日") }); } else { item = new ListViewItem(new string[] { objPatientArr[i].m_StrInPatientID, objPatientArr[i].m_StrName, objPatientArr[i].m_DtmLastInDate.ToString("yyyy年MM月dd日"), objPatientArr[i].m_IntRevisitTimes.ToString() }); } item.Tag = objPatientArr[i]; m_lsvInPatientList.Items.Add(item); } else { for (int j = 0; j < intCount; j++) { clsInBedSessionInfo objSessionInfo = objPatientArr[i].m_ObjInBedInfo.m_objGetSessionByIndex(j); clsPatient objPatient = objPatientArr[i]; objPatient.m_DtmSelectedInDate = objSessionInfo.m_DtmInDate; objPatient.m_DtmSelectedOutDate = objSessionInfo.m_DtmOutDate; ListViewItem item2 = new ListViewItem(); if (p_blnIsRecord) { item2 = new ListViewItem(new string[] { objPatientArr[i].m_StrInPatientID, objPatientArr[i].m_StrName, objSessionInfo.m_DtmInDate.ToString("yyyy年MM月dd日"), objSessionInfo.m_DtmOutDate.ToString("yyyy年MM月dd日") }); } else { item2 = new ListViewItem(new string[] { objPatientArr[i].m_StrInPatientID, objPatientArr[i].m_StrName, objSessionInfo.m_DtmInDate.ToString("yyyy年MM月dd日"), objPatientArr[i].m_IntRevisitTimes.ToString() }); } item2.Tag = objPatient; m_lsvInPatientList.Items.Add(item2); } } } } else { m_lsvInPatientList.Items.Clear(); } }
/// <summary> /// 打开选中的会诊记录 /// </summary> private void m_mthOpenConsultationRecord() { if (m_lsvResult.SelectedItems == null || m_lsvResult.SelectedItems.Count != 1) { return; } DataRowView objRow = m_lsvResult.SelectedItems[0].Tag as DataRowView; if (objRow == null) { return; } #region 设置当前病人 //设置当前病人 clsPatient objPatient = new clsPatient(objRow["inpatientid"].ToString(), objRow["HISINPATIENTID_CHR"].ToString(), null); objPatient.m_DtmSelectedHISInDate = Convert.ToDateTime(objRow["HISINPATIENTDATE"]); objPatient.m_DtmSelectedInDate = Convert.ToDateTime(objRow["inpatientdate"]); //将选中病人设置为全局可见 MDIParent.s_ObjCurrentPatient = objPatient; Exp::clsHospitalManagerDomain objDomain = new Exp::clsHospitalManagerDomain(); iCareData.clsEmrDept_VO objDeptNew; objDomain.m_lngGetSpecialDeptInfo(objRow["ASKCONSULTATIONDEPTID"].ToString(), out objDeptNew); if (objDeptNew != null) { MDIParent.m_objCurrentDepartment = objDeptNew; com.digitalwave.emr.BEDExplorer.frmHRPExplorer.objpCurrentDepartment = objDeptNew; objPatient.m_strDeptNewID = objDeptNew.m_strDEPTID_CHR; } clsPatientInBedInfo objNewBed = new clsPatientInBedInfo(objPatient); if (objNewBed != null && objNewBed.m_ObjLastSessionInfo != null) { if (objNewBed.m_ObjLastRoomInfo.m_intGetBedCount() > 0) { objPatient.m_strBedCode = objNewBed.m_ObjLastRoomInfo.m_objGetBedByIndex(0).m_ObjBed.m_StrBedName; } } #endregion //打开会诊记录 frmConsultation frmRecord = new frmConsultation(); frmRecord.MdiParent = clsEMRLogin.s_FrmMDI; frmRecord.WindowState = FormWindowState.Maximized; frmRecord.Show(); objPatient.m_IntCharacter = 1; frmRecord.m_mthSetPatient(objPatient); MDIParent.s_ObjSaveCue.m_mthRemoveForm(frmRecord); }
private void m_trvPatient_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e) { if (m_trvPatient.SelectedNode == null) { return; } if ((m_trvPatient.SelectedNode.Tag is clsInPatientArea || m_trvPatient.SelectedNode.Tag is clsDepartment) && m_trvPatient.SelectedNode.Nodes.Count > 0) { m_lsvDitail.BeginUpdate(); m_lsvDitail.Visible = true; m_lstDetail.Visible = false; m_lsvDitail.Items.Clear(); foreach (TreeNode node in m_trvPatient.SelectedNode.Nodes) { clsCaseGradeValue objGradeValue = node.Tag as clsCaseGradeValue; if (objGradeValue == null) { continue; } clsPatient objPatient = new clsPatient(objGradeValue.m_strInPatientID); string strGrade = ""; // string strCount = ""; for (int i = 0; i < objGradeValue.m_objItemValueArr.Length; i++) { if (objGradeValue.m_objItemValueArr[i].m_strItemID == "m_txtAllResult") { strGrade = objGradeValue.m_objItemValueArr[i].m_strItemContent; break; } } clsBedCardValue objBedCardValue = new clsBedCardValue(); objBedCardValue.m_strInPatientID = objGradeValue.m_strInPatientID; objBedCardValue.m_strInPatientDate = objGradeValue.m_strInPatientDate; new clsBedCardManageDomain().m_lngGetBedCardValue(ref objBedCardValue); string strChargeDoc = objBedCardValue.m_strDoc_InCharge == null?"":new clsEmployee(objBedCardValue.m_strDoc_InCharge.Trim()).m_StrFirstName; ListViewItem item = new ListViewItem(new string[] { objGradeValue.m_strInPatientID, objPatient.m_StrName, objPatient.m_ObjInBedInfo.m_objGetSessionByInDate(DateTime.Parse(objGradeValue.m_strInPatientDate)).m_ObjInBedInfo.m_ObjLastBedInfo.m_ObjBed.m_StrBedName, objGradeValue.m_strInPatientDate, strChargeDoc, strGrade }); item.Tag = objGradeValue; m_lsvDitail.Items.Add(item); } m_lsvDitail.EndUpdate(); } else if (m_trvPatient.SelectedNode.Tag is clsCaseGradeValue) { clsCaseGradeValue objGradeValue2 = m_trvPatient.SelectedNode.Tag as clsCaseGradeValue; m_mthSetItem(objGradeValue2); } }
/// <summary> /// 得到已被删除的记录相关信息,Jacky-2003-4-1 /// </summary> public long m_lngGetIDandTimeOfDeletedRecord(clsPatient p_objPatient, string p_strInPatientDate, out clsQCRecordInfo p_objMainInfo) { string strXML = ""; int intRows = 0; clsQCRecordService m_objQCRecordServ = (clsQCRecordService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsQCRecordService)); long lngRes = 0; try { lngRes = m_objQCRecordServ.m_lngGetIDandTimeOfDeletedRecord(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_objPatient.m_StrInPatientID, p_strInPatientDate, ref strXML, ref intRows); } finally { //m_objQCRecordServ.Dispose(); } if (lngRes > 0 && intRows == 1) { XmlTextReader objReader = new XmlTextReader(strXML, XmlNodeType.Element, m_objXmlParser); objReader.WhitespaceHandling = WhitespaceHandling.None; while (objReader.Read()) { switch (objReader.NodeType) { case XmlNodeType.Element: if (objReader.HasAttributes) { p_objMainInfo = new clsQCRecordInfo(); // p_objMainInfo.m_strInPatientID = objReader.GetAttribute("INPATIENTID"); // p_objMainInfo.m_strInPatientDate = objReader.GetAttribute("INPATIENTDATE"); // p_objMainInfo.m_strOpenDate = objReader.GetAttribute("OPENDATE"); // p_objMainInfo.m_strCreateID = objReader.GetAttribute("CREATEID"); p_objMainInfo.m_strDeActivedDate = objReader.GetAttribute("DEACTIVEDDATE"); p_objMainInfo.m_strDeActivedOperatorID = objReader.GetAttribute("DEACTIVEDOPERATORID"); return(1); } break; } } } p_objMainInfo = null; return(0); }
public override string m_strMakerPatientDetailDesc(clsPatient p_objPatient, iCare.RecordSearch.clsRecordSearchDomain.clsPatientList p_objPatientList) { clsOperationRecordDoctorPrintTool objPrintRec = new clsOperationRecordDoctorPrintTool(); objPrintRec.m_mthSetPrintInfo(p_objPatient, DateTime.Parse(p_objPatientList.m_strInPatientDate), DateTime.Parse(p_objPatientList.m_strOpenDate)); objPrintRec.m_mthInitPrintContent(); iCareData.clsPrintInfo_OperationRecordDoctor objRecordInfo = (iCareData.clsPrintInfo_OperationRecordDoctor)objPrintRec.m_objGetPrintInfo(); System.Text.StringBuilder sbdTemp = new System.Text.StringBuilder(1000); sbdTemp.Append(p_objPatient.m_StrName + " " + p_objPatient.m_StrSex + " " + p_objPatient.m_ObjPeopleInfo.m_StrAge + "\r\n"); sbdTemp.Append(p_objPatient.m_ObjPeopleInfo.m_StrNationality + " " + p_objPatient.m_ObjPeopleInfo.m_StrNativePlace + " " + p_objPatient.m_ObjPeopleInfo.m_StrOccupation + "\r\n"); sbdTemp.Append("入院日期:" + objRecordInfo.m_dtmInPatientDate.ToString("yyyy年MM月dd日") + "\r\n\r\n"); sbdTemp.Append("手术开始时间:" + DateTime.Parse(objRecordInfo.m_objSelectOperationRecordContent.m_strOperationBeginDate).ToString("yyyy年MM月dd日 HH:mm") + "\r\n"); sbdTemp.Append("手术名称:" + objRecordInfo.m_objSelectOperationRecordContent.m_strOperationName + "\r\n\r\n"); //数据库没有赋值 string strTemp = ""; if (objRecordInfo.m_objSelectDoctorSign.m_strOperationDoctorNameArr != null) { for (int i = 0; i < objRecordInfo.m_objSelectDoctorSign.m_strOperationDoctorNameArr.Length; i++) { strTemp = strTemp + objRecordInfo.m_objSelectDoctorSign.m_strOperationDoctorNameArr[i]; if (i < objRecordInfo.m_objSelectDoctorSign.m_strOperationDoctorNameArr.Length - 1) { strTemp += ","; } } } sbdTemp.Append("手术医师:" + strTemp + "\r\n"); strTemp = ""; if (objRecordInfo.m_objSelectDoctorSign.m_strAssistantNameArr != null) { for (int i = 0; i < objRecordInfo.m_objSelectDoctorSign.m_strAssistantNameArr.Length; i++) { strTemp = strTemp + objRecordInfo.m_objSelectDoctorSign.m_strAssistantNameArr[i]; if (i < objRecordInfo.m_objSelectDoctorSign.m_strAssistantNameArr.Length - 1) { strTemp += ","; } } } sbdTemp.Append("助手:" + strTemp + "\r\n\r\n"); sbdTemp.Append("记录者:" + p_objPatientList.m_strCreateUserName + "\r\n记录日期:" + DateTime.Parse(objRecordInfo.m_objSelectOperationRecord.m_strCreateDate).ToString(MDIParent.s_ObjRecordDateTimeInfo.m_strGetRecordTimeFormat("frmOperationRecordDoctor"))); return(sbdTemp.ToString()); }
/// <summary> /// 显示影像 /// </summary> /// <param name="p_objPatient">病人</param> /// <param name="p_frmCaller">调用影像的窗体</param> public static void s_mthShowPACS(clsPatient p_objPatient, Form p_frmCaller) { StreamWriter objSW = null; try { objSW = new StreamWriter("c:\\veepacs\\Img_Temp.txt", false); //I:住院号;P:门诊卡号;C:过往检验号(可能多个) objSW.WriteLine("I:" + p_objPatient.m_StrInPatientID); if (p_objPatient.m_ObjPeopleInfo.m_Strhic_no != null && p_objPatient.m_ObjPeopleInfo.m_Strhic_no != "") { objSW.WriteLine("P:" + p_objPatient.m_ObjPeopleInfo.m_Strhic_no); } // objSW.WriteLine(""); objSW.Flush(); } catch { if (objSW != null) { objSW.Close(); } return; } if (objSW != null) { objSW.Close(); } System.Threading.Thread.Sleep(500); try { Process objPacsImg = Process.Start("c:\\veepacs\\Img.exe"); // p_frmCaller.WindowState = FormWindowState.Minimized;//解决标题重复的问题 // p_frmCaller.MdiParent.ShowInTaskbar = false; // p_frmCaller.MdiParent.Visible = false; // objPacsImg.WaitForExit(); // p_frmCaller.MdiParent.ShowInTaskbar = true; // p_frmCaller.MdiParent.Visible = true; // p_frmCaller.WindowState = FormWindowState.Maximized;//解决标题重复的问题 } catch { clsPublicFunction.ShowInformationMessageBox("调用影像查询出错,请检查是否已经安装。"); } }
public void m_mthSetPrintInfo(clsPatient p_objPatient, DateTime p_dtmInPatientDate, DateTime p_dtmOpenDate) { if (p_objPatient != null) { m_strPatientName = p_objPatient.m_StrName; m_strRegisterId = p_objPatient.m_StrRegisterId; m_strDeptName = p_objPatient.m_ObjInBedInfo.m_objGetSessionByInDate(p_dtmInPatientDate).m_ObjLastDept.m_ObjLastArea.m_ObjArea.m_StrAreaName; m_strBedNo = p_objPatient.m_ObjInBedInfo.m_ObjLastBedInfo.m_ObjBed.m_StrBedName; m_strPatientAge = p_objPatient.m_ObjPeopleInfo.m_StrAge; m_strInPatientId = p_objPatient.m_StrHISInPatientID; m_strPatientSex = p_objPatient.m_ObjPeopleInfo.m_StrSex; m_strOcupy = p_objPatient.m_ObjPeopleInfo.m_StrOccupation; m_strNation = p_objPatient.m_ObjPeopleInfo.m_StrNation; m_strNativePlace = p_objPatient.m_ObjPeopleInfo.m_StrNativePlace; } }
public void m_mthSetForm(frmHRPBaseForm p_objBaseForm, clsPatient p_objPatient) { if (p_objPatient != null) { this.m_mthSetPatient(p_objPatient); m_mthSetIfCanSelectPatient(false); //m_cboDept.Enabled = false; //m_cboArea.Enabled = false; //m_txtBedNO.Enabled = false; //m_txtPatientName.Enabled = false; //txtInPatientID.Enabled = false; } m_mthSetForm(p_objBaseForm); }
public void m_mthSetPrintInfo(clsPatient p_objPatient, DateTime p_dtmInPatientDate, DateTime p_dtmOpenDate) { // m_blnIsFromDataSource = true;//表明是从数据库读取 m_objPatient = p_objPatient; m_objPrintInfo = new clsPrintInfo_bloodsugarwatch(); m_objPrintInfo.m_strInPatentID = m_objPatient != null ? m_objPatient.m_StrInPatientID : ""; m_objPrintInfo.m_strPatientName = m_objPatient != null ? m_objPatient.m_ObjPeopleInfo.m_StrFirstName : ""; m_objPrintInfo.m_strSex = m_objPatient != null ? m_objPatient.m_ObjPeopleInfo.m_StrSex : ""; m_objPrintInfo.m_strAge = m_objPatient != null ? m_objPatient.m_ObjPeopleInfo.m_StrAge : ""; m_objPrintInfo.m_strBedName = m_objPatient != null ? m_objPatient.m_ObjInBedInfo.m_ObjLastBedInfo.m_ObjBed.m_StrBedName : ""; m_objPrintInfo.m_strDeptName = m_objPatient != null?m_objPatient.m_ObjInBedInfo.m_objGetSessionByInDate(p_dtmInPatientDate).m_ObjLastDept.m_ObjDept.m_StrDeptName : ""; m_objPrintInfo.m_dtmInPatientDate = p_dtmInPatientDate; m_objPrintInfo.m_strHISInPatientID = m_objPatient != null ? m_objPatient.m_StrHISInPatientID : ""; m_objPrintInfo.m_dtmHISInPatientDate = m_objPatient != null ? m_objPatient.m_DtmSelectedHISInDate : DateTime.MinValue; }
public void m_mthSetPrintInfo(clsPatient p_objPatient, DateTime p_dtmInPatientDate, DateTime p_dtmOpenDate) { if (m_objPrintMainInfo == null) { m_objPrintMainInfo = new clsPrintInfo_clsAYQBabyAssessmentRecord(); } m_objPrintMainInfo.m_strHISInPatientID = p_objPatient.m_StrHISInPatientID; m_objPrintMainInfo.m_strInPatentID = p_objPatient.m_StrInPatientID; m_objPrintMainInfo.m_strPatientName = p_objPatient.m_StrName; m_objPrintMainInfo.m_dtmHISInPatientDate = p_dtmInPatientDate; m_objPrintMainInfo.m_strAge = p_objPatient.m_ObjPeopleInfo.m_StrAge; m_objPrintMainInfo.m_strSex = p_objPatient.m_StrSex; m_objPrintMainInfo.m_strBedName = p_objPatient.m_strBedCode; m_objPrintMainInfo.m_dtmOpenDate = p_dtmOpenDate; }
/// <summary> /// 病人标识KeyDown事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void m_txtPatientID_KeyDown(object sender, KeyEventArgs e) { if (m_txtPatientID.Text.Trim() == string.Empty) { return; } if (e.KeyCode == Keys.Enter) { clsCaseHistorySearchDomain objDomain = new clsCaseHistorySearchDomain(); try { this.Cursor = Cursors.WaitCursor; m_objCurrentPatient = new clsPatient(m_txtPatientID.Text.Trim()); if (m_objCurrentPatient == null) { m_mthClearUI(); return; } m_lblPatientName.Text = m_objCurrentPatient.m_StrName; m_lblPatientSex.Text = m_objCurrentPatient.m_StrSex; if (m_objCurrentPatient.m_ObjPeopleInfo.m_DtmBirth != DateTime.MaxValue && m_objCurrentPatient.m_ObjPeopleInfo.m_DtmBirth != new DateTime(1900, 1, 1)) { m_dtpBirthDate.Value = m_objCurrentPatient.m_ObjPeopleInfo.m_DtmBirth; m_dtpBirthDate.Visible = true; } else { m_dtpBirthDate.Visible = false; } DataTable dtResult = null; long lngRes = objDomain.m_lngGetInAndOutInfo(m_objCurrentPatient.m_StrInPatientID, out dtResult); if (lngRes > 0 && dtResult != null && dtResult.Rows.Count > 0) { m_mthSetInAndOutInfoToUI(dtResult); } } finally { this.Cursor = Cursors.Default; } } }
private void m_mthLoadAllRecord(clsPatient p_objSelectedPatient) { if (p_objSelectedPatient == null) { return; } m_mthResetRecordList(); m_mthClearRecordInfo(); clsOutPatientRevisitRecord_VO[] objContentArr = null; m_objDomain.m_lngGetRecordContentByInPatient(p_objSelectedPatient.m_StrInPatientID, p_objSelectedPatient.m_DtmSelectedInDate, out objContentArr); if (objContentArr != null && objContentArr.Length > 0) { m_cboRecordList.AddRangeItems(objContentArr); } }
/// <summary> /// 设置打印信息(当从数据库读取时要首先调用.) /// </summary> /// <param name="p_objPatient">病人</param> /// <param name="p_dtmInPatientDate">入院日期</param> /// <param name="p_dtmOpenDate">OpenDate,如果是一次打印多次记录表单的类型(如病案记录),忽略OpenDate</param> public void m_mthSetPrintInfo(clsPatient p_objPatient, clsFetalCustodialRecordContent p_objContent, DateTime p_dtmInPatientDate, DateTime p_dtmOpenDate) { m_blnIsFromDataSource = true;//表明是从数据库读取 m_objPrintInfo = new clsFetalCustodialRecordPrintInfo(); m_objPrintInfo.m_objRecordContent = p_objContent; m_objPrintInfo.m_strAreaName = p_objPatient.m_ObjInBedInfo.m_objGetSessionByInDate(p_dtmInPatientDate).m_ObjLastDept.m_ObjLastArea.m_ObjArea.m_StrAreaName; m_objPrintInfo.m_strInPatentID = p_objPatient != null ? p_objPatient.m_StrInPatientID : ""; m_objPrintInfo.m_strInPatentID = p_objPatient != null ? p_objPatient.m_Str_OutPatientID : ""; m_objPrintInfo.m_strPatientName = p_objPatient != null ? p_objPatient.m_StrName : ""; m_objPrintInfo.m_strAge = p_objPatient != null ? p_objPatient.m_ObjPeopleInfo.m_StrAge : ""; m_objPrintInfo.m_strSex = p_objPatient != null ? p_objPatient.m_ObjPeopleInfo.m_StrSex : ""; m_objPrintInfo.m_dtmInPatientDate = p_dtmInPatientDate; m_objPrintInfo.m_dtmOpenDate = p_dtmOpenDate; m_objPrintInfo.m_dtmHISInDate = p_objPatient != null ? p_objPatient.m_DtmSelectedHISInDate : DateTime.MinValue; m_objPrintInfo.m_strHISInPatientID = p_objPatient != null ? p_objPatient.m_StrHISInPatientID : ""; m_objPrintInfo.m_strBedName = p_objPatient != null ? p_objPatient.m_strBedCode : ""; m_mthGetPrintMarkConfig(); }