Example #1
0
        /// <summary>
        /// 绑定病人来源
        /// </summary>
        public void Bind_PatientSource(ComboBox comb_PatientSource)
        {
            BPatientSource bPatientSource = new BPatientSource();

            System.Data.DataTable dt = bPatientSource.GetList("1=1");
            comb_PatientSource.DataSource    = dt;
            comb_PatientSource.DisplayMember = dt.Columns["PATIENT_SOURCE_NAME"].ColumnName;
            comb_PatientSource.ValueMember   = dt.Columns["PATIENT_SOURCE_CODE"].ColumnName;
        }
Example #2
0
        //病人来源初始化
        private void initPatientSource()
        {
            SIS_BLL.BPatientSource bPatientSource = new BPatientSource();
            DataTable dt = bPatientSource.GetList(" 1=1");
            DataRow   dw = dt.NewRow();

            if (GetConfig.DALAndModel == "SIS")
            {
                dw["PATIENT_SOURCE_ID"] = "-1";
                dw["PATIENT_SOURCE"]    = "全部";
            }
            else
            {
                dw["PATIENT_SOURCE_CODE"] = "-1";
                dw["PATIENT_SOURCE_NAME"] = "全部";
            }
            dt.Rows.Add(dw);
            //string[] patient_Source = GetConfig.PatientSource.Split(';');
            //string[] patient_Source_Code = GetConfig.PatientSourceCode.Split(';');
            //DataTable dt = new DataTable();
            //DataColumn column;
            //DataRow row;
            //column = new DataColumn();
            //column.DataType = System.Type.GetType("System.Char");
            //column.ColumnName = "Patient_Source_Code";
            //dt.Columns.Add(column);
            //column = new DataColumn();
            //column.DataType = System.Type.GetType("System.String");
            //column.ColumnName = "Patient_Source";
            //dt.Columns.Add(column);
            //for (int i = 0; i < patient_Source.Length; i++)
            //{
            //    row = dt.NewRow();
            //    row["Patient_Source_Code"] = patient_Source_Code[i];
            //    row["Patient_Source"] = patient_Source[i];
            //    dt.Rows.Add(row);
            //}
            this.cmb_PatientSource.DataSource = dt;
            if (GetConfig.DALAndModel == "SIS")
            {
                this.cmb_PatientSource.DisplayMember = "PATIENT_SOURCE";
                this.cmb_PatientSource.ValueMember   = "PATIENT_SOURCE_ID";
            }
            else
            {
                this.cmb_PatientSource.DisplayMember = "PATIENT_SOURCE_NAME";
                this.cmb_PatientSource.ValueMember   = "PATIENT_SOURCE_CODE";
            }
            this.cmb_PatientSource.SelectedIndex = this.cmb_PatientSource.Items.Count - 1;
        }
Example #3
0
        private void WriteToStudy()
        {
            mStudy                  = new MStudy();
            mStudy.PATIENT_ID       = mWorklist.PATIENT_ID;
            mStudy.PATIENT_NAME     = mWorklist.PATIENT_NAME;
            mStudy.PATIENT_SEX      = mWorklist.PATIENT_SEX;
            mStudy.PATIENT_BIRTH    = mWorklist.PATIENT_BIRTH;
            mStudy.PATIENT_AGE      = mWorklist.PATIENT_AGE;
            mStudy.PATIENT_AGE_UNIT = mWorklist.PATIENT_AGE_UNIT;
            BPatientSource bps = new BPatientSource();
            MPatientSource mps = (MPatientSource)bps.GetModel(mWorklist.PATIENT_SOURCE);

            mStudy.PATIENT_SOURCE     = mps.PATIENT_SOURCE;
            mStudy.BIRTH_PLACE        = mWorklist.BIRTH_PLACE;
            mStudy.IDENTITY           = mWorklist.PATIENT_IDENTITY;
            mStudy.CHARGE_TYPE        = mWorklist.CHARGE_TYPE.ToString();
            mStudy.VISIT_ID           = mWorklist.VISIT_ID;
            mStudy.INP_NO             = mWorklist.INP_NO;
            mStudy.BED_NUM            = mWorklist.BED_NUM;
            mStudy.ZIP_CODE           = mWorklist.ZIP_CODE;
            mStudy.MAILING_ADDRESS    = mWorklist.MAILING_ADDRESS;
            mStudy.TELEPHONE_NUMBER   = mWorklist.TELEPHONE_NUM;
            mStudy.STUDY_ID           = mWorklist.PATIENT_LOCAL_ID;
            mStudy.STUDY_INSTANCE_UID = mWorklist.STUDY_INSTANCE_UID + ".1985.7.5";//创建
            mStudy.STUDY_DATE_TIME    = DateTime.Now;
            mStudy.SERIES_COUNT       = 0;
            mStudy.INSTANCE_COUNT     = 0;
            mStudy.MODALITY           = ILL.GetConfig.Modality; //配置文件中读取
            mStudy.FACILITY           = "";                     //登陆时取得设备名
            mStudy.REFER_DOCTOR       = mWorklist.REFER_DOCTOR;
            mStudy.REFER_DEPT         = mWorklist.REFER_DEPT;
            mStudy.REQ_MEMO           = mWorklist.REQ_MEMO;
            mStudy.REQ_DATE_TIME      = mWorklist.REQ_DATE_TIME;
            mStudy.REQ_DEPT_NAME      = mWorklist.REQ_DEPT_NAME;
            mStudy.SCHEDULED_DATE     = mWorklist.SCHEDULED_DATE;
            mStudy.SCH_OPERATOR       = mWorklist.SCH_OPERATOR;
            mStudy.EXAM_NO            = mWorklist.EXAM_NO;
            mStudy.EXAM_ACCESSION_NUM = mWorklist.EXAM_ACCESSION_NUM;
            mStudy.EXAM_CLASS         = mWorklist.EXAM_CLASS;
            mStudy.EXAM_SUB_CLASS     = mWorklist.EXAM_SUB_CLASS;
            mStudy.EXAM_ITEM          = mWorklist.EXAM_ITEMS;
            mStudy.EXAM_MODE          = mWorklist.EXAM_MODE;
            mStudy.EXAM_GROUP         = mWorklist.EXAM_GROUP;
            mStudy.EXAM_DEPT_NAME     = mWorklist.EXAM_DEPT_NAME;
            mStudy.EXAM_DOCTOR        = mWorklist.EXAM_DOCTOR;
            mStudy.EXAM_INDEX         = mWorklist.EXAM_INDEX;
            mStudy.IS_ONLINE          = 1;
            mStudy.IS_MATCHED         = 1;
            mStudy.IS_PACKPROCESS     = 1;
            mStudy.REPORT_STATUS      = 1;
            mStudy.APPROVER           = "";//报告人--登陆者
            mStudy.CLIN_DIAG          = mWorklist.CLIN_DIAG;
            mStudy.CLIN_SYMP          = mWorklist.CLIN_SYMP;
            mStudy.RELEVANT_DIAG      = mWorklist.RELEVANT_DIAG;
            mStudy.RELEVANT_LAB_TEST  = mWorklist.RELEVANT_LAB_TEST;
            mStudy.PHYS_SIGN          = mWorklist.PHYS_SIGN;
            mStudy.DEVICE             = mWorklist.DEVICE;
            if (!bStudy.Exists(mStudy))
            {
                //bStudy.Update(mStudy, " Where EXAM_ACCESSION_NUM='" + mStudy.EXAM_ACCESSION_NUM + "'");
                bStudy.Add(mStudy);
            }
            else
            {
                //bStudy.Update(mStudy, "EXAM_ACCESSION_NUM='" + mWorklist.EXAM_ACCESSION_NUM + "'");
            }
        }