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

            headDo.MedSrvDO.Sd_srvtp = med.Sd_srvtp;

            try
            {
                // 检查申请单号
                headDo.Emsaplab.No_applyobs = qryService.getOrdApLabNoapplyform();
            }
            catch (Exception ex)
            {
                ex.Publish();
            }

            headDo.Emsaplab.Dt_plan = headDo.Dt_begin_ui;
            // 诊断id
            string[] diagArray = patDiagImp.getDiagArray(headDo.PatInfo.Id_ent);
            if (diagArray != null)
            {
                headDo.Emsaplab.Id_di        = diagArray[7]; //主诊断的主项目id
                headDo.Emsaplab.Id_diitm     = diagArray[3]; //主诊断id
                headDo.Emsaplab.Name_diag    = diagArray[4]; //主诊断名称
                headDo.Emsaplab.Str_code_di  = diagArray[1]; //诊断编码拼接
                headDo.Emsaplab.Str_name_di  = diagArray[0]; //诊断名称拼接
                headDo.Emsaplab.Str_id_diitm = diagArray[2]; //诊断子项目id拼接
            }
            // 加急标识
            // headDo.Emsapobs.Fg_urgent = true;
            // 床旁执行标志
            // headDo.Emsapobs.Fg_mp_bed  = true;
            // 计划检查时间
            // headDo.Emsapobs.Dt_begin_ui
            // 诊断id
            // headDo.Emsapobs.Id_di
            // 诊断
            // headDo.Emsapobs.Name_di
            // 检查目的编码
            // headDo.Emsapobs.Sd_pps
            // 检查目的描述
            // headDo.Emsapobs.Des_pps
            // 症状体征描述
            // headDo.Emsapobs.Des_sympsign
            // 身体部位id
            // headDo.Emsapobs.Id_body
            // 身体部位编码
            // headDo.Emsapobs.Sd_body
            // 身体部位名称
            // headDo.Emsapobs.Name_body
            // 身体体位id
            // headDo.Emsapobs.Id_pos
            // 身体体位编码
            //      headDo.Emsapobs.Sd_pos
            // 身体体位名称
            // headDo.Emsapobs.Name_pos
        }