Ejemplo n.º 1
0
        /// <summary>
        /// 获取封装诊断
        /// </summary>
        /// <returns></returns>
        private bool GetValue()
        {
            this.diagProperty = new HeNanProvinceSI.Object.ExtendProperty();

            if (this.operDiag1 != null)
            {
                diagProperty.OperatorCode1 = this.operDiag1.ID;
            }

            if (this.operDiag2 != null)
            {
                diagProperty.OperatorCode2 = this.operDiag2.ID;
            }

            if (this.operDiag3 != null)
            {
                diagProperty.OperatorCode3 = this.operDiag3.ID;
            }

            if (this.mainDiag != null)
            {
                diagProperty.MainDiagnoseCode = this.mainDiag.ID;
                diagProperty.MainDiagnoseName = this.mainDiag.Name;
            }

            if (this.regDiag != null)
            {
                diagProperty.PrimaryDiagnoseCode = this.regDiag.ID;
                diagProperty.PrimaryDiagnoseName = this.regDiag.Name;
            }

            return(true);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 显示患者信息
        /// </summary>
        private void ShowPatientInfo()
        {
            if (this.patient != null)
            {
                //姓名
                this.txtName.Text = this.patient.Name;

                //性别
                this.txtSex.Text = this.patient.Sex.Name;

                //出生日期
                this.txtBrithday.Text = this.patient.Birthday.ToString(this.DateTimeFormat);

                //科室
                this.txtDept.Text = this.patient.PVisit.PatientLocation.Dept.Name;

                //入院时间
                this.txtInTime.Text = this.patient.PVisit.InTime.ToString(this.DateTimeFormat);

                //合同单位
                this.txtPact.Text = this.patient.Pact.Name;

                //医疗类别
                this.txtMedcareType.Text = this.GetInMedicalTypeName(this.patient.SIMainInfo.MedicalType.ID);

                //主码
                if (string.IsNullOrEmpty(this.patient.SIMainInfo.OutDiagnose.ID) == false)
                {
                    this.cmbMainDiag.Tag = this.patient.SIMainInfo.OutDiagnose.ID;
                    if (this.cmbMainDiag.SelectedIndex == -1)
                    {
                        this.cmbMainDiag.Tag = null;
                    }
                }

                Object.ExtendProperty diagDroperty = Process.ExtendProperty <Object.ExtendProperty>(Process.EXTEND_PROPERTY_KEY, this.patient.SIMainInfo.ExtendProperty);

                //识别码
                if (string.IsNullOrEmpty(diagDroperty.PrimaryDiagnoseCode) == false)
                {
                    this.cmbRecognitionDiag.Tag = diagDroperty.PrimaryDiagnoseCode;
                    if (this.cmbRecognitionDiag.SelectedIndex == -1)
                    {
                        this.cmbRecognitionDiag.Tag = null;
                    }
                }

                //手术1
                if (string.IsNullOrEmpty(diagDroperty.OperatorCode1) == false)
                {
                    this.cmbOperation1Diag.Tag = diagDroperty.OperatorCode1;
                    if (this.cmbOperation1Diag.SelectedIndex == -1)
                    {
                        this.cmbOperation1Diag.Tag = null;
                    }
                }

                //手术2
                if (string.IsNullOrEmpty(diagDroperty.OperatorCode2) == false)
                {
                    this.cmbOperation2Diag.Tag = diagDroperty.OperatorCode2;
                    if (this.cmbOperation2Diag.SelectedIndex == -1)
                    {
                        this.cmbOperation2Diag.Tag = null;
                    }
                }

                //手术3
                if (string.IsNullOrEmpty(diagDroperty.OperatorCode3) == false)
                {
                    this.cmbOperation3Diag.Tag = diagDroperty.OperatorCode3;
                    if (this.cmbOperation3Diag.SelectedIndex == -1)
                    {
                        this.cmbOperation3Diag.Tag = null;
                    }
                }
            }
        }