コード例 #1
0
        //绑定数据 检查
        private void AddObsDataBing(EmsUIDTO headDo, MedSrvDO med)
        {   // 诊断
            //headDo.Emsapobs.Id_srv = med.Id_srv;  // 检查申请单主键
            //headDo.Emsapobs.Id_emsobs = "";
            // 医嘱服务id
            headDo.Emsapobs.Id_orsrv = "";
            // 医嘱医疗单
            headDo.Emsapobs.Id_or = "";
            // 服务id
            headDo.Emsapobs.Id_srv = med.Id_srv;
            // 服务名称
            headDo.Emsapobs.Name_srv = med.Name;
            // 服务类型
            headDo.Emsapobs.Id_srvtp = med.Id_srvtp;
            // 服务类型名称
            headDo.Emsapobs.Name_srvtp = med.Srvca_name;
            // 检查类型id
            headDo.Emsapobs.Id_obstp = med.Id_srv;
            // 检查类型名称
            headDo.Emsapobs.Name_obstp = med.Name;

            // headDo.Emsapobs.Des_sympsign =

            headDo.MedSrvDO.Id_freq = med.Id_freq;

            headDo.MedSrvDO.Sd_srvtp = med.Sd_srvtp;

            // 检查申请单号
            headDo.Emsapobs.No_applyobs = qryService.getOrdApObsNoapplyform();
            headDo.Emsapobs.Dt_plan     = headDo.Emsapobs.Dt_begin_ui == null?this.NowTime() : headDo.Emsapobs.Dt_begin_ui;

            // 加急标识
            headDo.Emsapobs.Fg_urgent = false;
            MedSrvRisDO medSrvRisDo = patDiagImp.getBdSrvObs(med.Id_srv);

            if (medSrvRisDo != null && medSrvRisDo.If_mp_bed != null && (bool)medSrvRisDo.If_mp_bed)
            {
                // 床旁执行标志
                headDo.Emsapobs.Fg_mp_bed = true;
                // 症状体征描述
                // headDo.Emsapobs.Des_sympsign
                // 身体部位id
                headDo.Emsapobs.Id_body = medSrvRisDo.Id_body;
                // 身体部位编码
                headDo.Emsapobs.Sd_body = medSrvRisDo.Sd_body;
                // 身体部位名称
                headDo.Emsapobs.Name_body = medSrvRisDo.Name_body;
                // 身体体位id
                headDo.Emsapobs.Id_pos = medSrvRisDo.Id_pos;
                // 身体体位编码
                headDo.Emsapobs.Sd_pos = medSrvRisDo.Sd_pos;
                // 身体体位名称
                headDo.Emsapobs.Name_pos = medSrvRisDo.Name_pos;
            }
            else
            {
                // 床旁执行标志
                headDo.Emsapobs.Fg_mp_bed = false;
            }

            // 计划检查时间
            // headDo.Emsapobs.Dt_begin_ui
            // 诊断id
            string[] diagArray = patDiagImp.getDiagArray(headDo.PatInfo.Id_ent);
            if (diagArray != null)
            {
                headDo.Emsapobs.Id_di        = diagArray[7]; //主诊断的主项目id
                headDo.Emsapobs.Id_diitm     = diagArray[3]; //主诊断id
                headDo.Emsapobs.Name_diag    = diagArray[4]; //主诊断名称
                headDo.Emsapobs.Str_code_di  = diagArray[1]; //诊断编码拼接
                headDo.Emsapobs.Str_name_di  = diagArray[0]; //诊断名称拼接
                headDo.Emsapobs.Str_id_diitm = diagArray[2]; //诊断子项目id拼接
            }

            // 检查目的编码
            UdidocDO udidoc = patDiagImp.getBdUdidocList();

            if (udidoc != null)
            {
                headDo.Emsapobs.Sd_pps = udidoc.Code;
                headDo.Emsapobs.Id_pps = udidoc.Id_udidoc;
                // 检查目的描述
                headDo.Emsapobs.Des_pps = udidoc.Name;
            }
            else
            {                                                           // todo  暂时对应 需要修改
                headDo.Emsapobs.Sd_pps = CiDictCodeConst.SD_PPS_ASSIST; // "0001AA100000000312PC";// ##????
                headDo.Emsapobs.Id_pps = CiDictCodeConst.SD_PPS_ASSIST_ID;
                // 检查目的描述
                headDo.Emsapobs.Des_pps = CiDictCodeConst.SD_PPS_ASSIST_NAME;
            }
            //临床病症及体征内容拼接,住院部门界面没有显示,所以不给赋值,移回到门诊中2017-2-27
            //headDo.Emsapobs.Clinicalzztz = LogicEx.GetInstance().diseaseDescription(headDo.PatInfo.Id_ent);
            //headDo.Emsapobs.Des_sympsign = headDo.Emsapobs.Clinicalzztz;// 病情描述与临床症状及体征 各自保存,不互相复制
        }