Browse Source

[新增] 住院病历查询-专业检索

zdl 1 year ago
parent
commit
666d1e5f55
1 changed files with 139 additions and 75 deletions
  1. 139 75
      src/views/search/index.vue

+ 139 - 75
src/views/search/index.vue

@@ -262,7 +262,126 @@
           </div>
           </div>
           <!-- 专业检索 -->
           <!-- 专业检索 -->
           <div v-if="choice == 2">
           <div v-if="choice == 2">
-            专业检索
+            <!-- 患者信息 -->
+            <div v-if="item.patient_info">
+              <el-descriptions title="患者信息">
+                <el-descriptions-item label="住院号" v-if="item.patient_info.AAA28">
+                  <span v-html="item.patient_info.AAA28"></span>
+                </el-descriptions-item>
+                <el-descriptions-item label="出院科室" v-if="item.patient_info.AAC11N">
+                  <span v-html="item.patient_info.AAC11N"></span>
+                </el-descriptions-item>
+                <el-descriptions-item label="出院时间" v-if="item.patient_info.AAC01">
+                  <span v-html="item.patient_info.AAC01"></span>
+                </el-descriptions-item>
+                <el-descriptions-item label="姓名" v-if="item.patient_info.AAA01">
+                  <span v-html="item.patient_info.AAA01"></span>
+                </el-descriptions-item>
+                <el-descriptions-item label="性别" v-if="item.patient_info.AAA02C">
+                  <span v-html="item.patient_info.AAA02C"></span>
+                </el-descriptions-item>
+                <el-descriptions-item label="入院时间" v-if="item.patient_info.AAB01">
+                  <span v-html="item.patient_info.AAB01"></span>
+                </el-descriptions-item>
+                <el-descriptions-item label="住院天数" v-if="item.patient_info.AAC04">
+                  <span v-html="item.patient_info.AAC04"></span>
+                </el-descriptions-item>
+                <el-descriptions-item label="年龄" v-if="item.patient_info.AAA04 || item.patient_info.AAA40">
+                  <span v-html="item.patient_info.AAA04 ? item.patient_info.AAA04 : item.patient_info.AAA40 "></span>
+                </el-descriptions-item>
+              </el-descriptions>
+            </div>
+            <!-- 入院记录 -->
+            <div v-if="item.ryjl">
+              <el-descriptions title="入院记录">
+                <el-descriptions-item label="整体" v-if="item.ryjl.RYJL_HJNR">
+                  <span v-html="item.ryjl.RYJL_HJNR"></span>
+                </el-descriptions-item>
+                <el-descriptions-item label="主诉" v-if="item.ryjl.RYJL_ZHS">
+                  <span v-html="item.ryjl.RYJL_ZHS"></span>
+                </el-descriptions-item>
+                <el-descriptions-item label="现病史" v-if="item.ryjl.RYJL_XBS">
+                  <span v-html="item.ryjl.RYJL_XBS"></span>
+                </el-descriptions-item>
+                <el-descriptions-item label="既往史" v-if="item.ryjl.RYJL_JWS">
+                  <span v-html="item.ryjl.RYJL_JWS"></span>
+                </el-descriptions-item>
+                <el-descriptions-item label="个人史" v-if="item.ryjl.RYJL_GRS">
+                  <span v-html="item.ryjl.RYJL_GRS"></span>
+                </el-descriptions-item>
+                <el-descriptions-item label="月经及婚育史+婚育史" v-if="item.ryjl.RYJL_YJJHYS">
+                  <span v-html="item.ryjl.RYJL_YJJHYS"></span>
+                </el-descriptions-item>
+                <el-descriptions-item label="家族史" v-if="item.ryjl.RYJL_JZS">
+                  <span v-html="item.ryjl.RYJL_JZS"></span>
+                </el-descriptions-item>
+                <el-descriptions-item label="体格检查" v-if="item.ryjl.RYJL_TGJC">
+                  <span v-html="item.ryjl.RYJL_TGJC"></span>
+                </el-descriptions-item>
+                <el-descriptions-item label="专科检查" v-if="item.ryjl.RYJL_ZHUANKE">
+                  <span v-html="item.ryjl.RYJL_ZHUANKE"></span>
+                </el-descriptions-item>
+                <el-descriptions-item label="辅助检查" v-if="item.ryjl.RYJL_FZJC.length">
+                  <span v-for="(aItem, aIndex) of item.ryjl.RYJL_FZJC" :key="aIndex">
+                    <span v-if="aIndex">;</span>
+                    <span v-html="aItem"></span>
+                  </span>
+                </el-descriptions-item>
+                <el-descriptions-item label="初步诊断" v-if="item.ryjl.RYJL_CBZD.length">
+                  <span v-for="(aItem, aIndex) of item.ryjl.RYJL_CBZD" :key="aIndex">
+                    <span v-if="aIndex">;</span>
+                    <span v-html="aItem"></span>
+                  </span>
+                </el-descriptions-item>
+                <el-descriptions-item label="第一初步诊断" v-if="item.ryjl.RYJL_CBZB.length">
+                  <span v-html="item.ryjl.RYJL_CBZB"></span>
+                </el-descriptions-item>
+              </el-descriptions>
+            </div>
+            <!-- 病程记录 -->
+            <div v-if="item.bcjl_scbc">
+              <el-descriptions title="病程记录">
+                <el-descriptions-item label="整体" v-if="item.bcjl_scbc.BCJL_SCBC_HJNR">
+                  <span v-html="item.bcjl_scbc.BCJL_SCBC_HJNR"></span>
+                </el-descriptions-item>
+                <el-descriptions-item label="病历特点" v-if="item.bcjl_scbc.BCJL_SCBC_BLTD">
+                  <span v-html="item.bcjl_scbc.BCJL_SCBC_BLTD"></span>
+                </el-descriptions-item>
+                <el-descriptions-item label="第一初步诊断" v-if="item.bcjl_scbc.BCJL_SCBC_CBZD_ONE">
+                  <span v-html="item.bcjl_scbc.BCJL_SCBC_CBZD_ONE"></span>
+                </el-descriptions-item>
+                <el-descriptions-item label="其他初步诊断" v-if="item.bcjl_scbc.BCJL_SCBC_CBZD_OTHER.length">
+                  <span v-for="(aItem, aIndex) of item.bcjl_scbc.BCJL_SCBC_CBZD_OTHER" :key="aIndex">
+                    <span v-if="aIndex">;</span>
+                    <span v-html="aItem"></span>
+                  </span>
+                </el-descriptions-item>
+                <el-descriptions-item label="诊断依据" v-if="item.bcjl_scbc.BCJL_SCBC_ZDYJ.length">
+                  <span v-for="(aItem, aIndex) of item.bcjl_scbc.BCJL_SCBC_ZDYJ" :key="aIndex">
+                    <span v-if="aIndex">;</span>
+                    <span v-html="aItem"></span>
+                  </span>
+                </el-descriptions-item>
+                <el-descriptions-item label="鉴别诊断" v-if="item.bcjl_scbc.BCJL_SCBC_JBZD.length">
+                  <span v-for="(aItem, aIndex) of item.bcjl_scbc.BCJL_SCBC_JBZD" :key="aIndex">
+                    <span v-if="aIndex">;</span>
+                    <span v-html="aItem"></span>
+                  </span>
+                </el-descriptions-item>
+                <el-descriptions-item label="鉴别诊断名称" v-if="item.bcjl_scbc.BCJL_SCBC_JBZDMC.length">
+                  <span v-for="(aItem, aIndex) of item.bcjl_scbc.BCJL_SCBC_JBZDMC" :key="aIndex">
+                    <span v-if="aIndex">;</span>
+                    <span v-html="aItem"></span>
+                  </span>
+                </el-descriptions-item>
+                <el-descriptions-item label="诊疗记录" v-if="item.bcjl_scbc.BCJL_SCBC_ZLJH.length">
+                  <span v-for="(aItem, aIndex) of item.bcjl_scbc.BCJL_SCBC_ZLJH" :key="aIndex">
+                    <span v-if="aIndex">;</span>
+                    <span v-html="aItem"></span>
+                  </span>
+                </el-descriptions-item>
+              </el-descriptions>
+            </div>
           </div>
           </div>
         </div>
         </div>
       </div>
       </div>
@@ -644,81 +763,26 @@ export default {
     },
     },
     // 专业检索
     // 专业检索
     handleProfessionSearch(params) {
     handleProfessionSearch(params) {
-      const res = {
-        data: {
-          total: 70,
-          list: [
-            {
-              AAA28: '00248061',
-              ZYH: 767053,
-              AAB01: '2022-12-29 13:31:00',
-              AAC01: '2023-01-11 11:00:00',
-              AAA04: 96,
-              AAC11N: '内分泌代谢病科',
-            },
-            {
-              AAA28: '00066452',
-              ZYH: 768823,
-              AAB01: '2023-01-06 17:16:00',
-              AAC01: '2023-01-15 11:20:00',
-              AAA04: 81,
-              AAC11N: '呼吸与危重症医学科2',
-            },
-          ],
-          detail: [
-            {
-              ryjl: {
-                RYJL_ZHS: "发热、<font color='red'>咳</font><font color='red'>嗽</font>1周。",
-                RYJL_YJJHYS: "患者高龄,听力减退,月经史不详,<font color='red'>已</font><font color='red'>婚</font>,育有1子3女,子女体健。",
-                RYJL_CBZD: ["<font color='red'>肺</font><font color='red'>炎</font>", '帕金森病', '左肺占位', '便秘'],
-              },
-              bcjl_scbc: {
-                BCJL_SCBC_ZLJH: [
-                  "患者入院诊断为<font color='red'>肺</font><font color='red'>炎</font>,请示金勇君主任医师,制定诊疗计划如下:\r",
-                  '1.护理计划:内科护理常规,一级护理,普通饮食,吸氧,监测血压;\r',
-                  '2.检查计划:完善相关辅助检查,进一步协助诊治,包括肝功、肾功、甲功等,给予呼吸科会诊,协助诊治;胸外科会诊,指导占位诊治。\r',
-                  "3.治疗计划:口服莫沙比利促进胃肠动力,首荟通便胶囊改善便秘;待呼吸科会诊意见,指导<font color='red'>肺</font><font color='red'>炎</font>用药。\r",
-                  '4.健康知识宣教:饮食宣教,心理疏导。',
-                ],
-              },
-              patient_info: {
-                AAA28: '00248061',
-                AAC01: '2023-01-11 11:00:00',
-              },
-            },
-            {
-              ryjl: {
-                RYJL_ZHS: "发热伴<font color='red'>咳</font><font color='red'>嗽</font>5天。",
-                RYJL_YJJHYS: "<font color='red'>已</font><font color='red'>婚</font>,育有子女3人,配偶及子女体健。",
-                RYJL_CBZD: ["社区获得性<font color='red'>肺</font><font color='red'>炎</font>", '高血压病?'],
-              },
-              bcjl_scbc: {
-                BCJL_SCBC_ZLJH: [
-                  '1.护理计划:呼吸内科护理常规,一级护理,半流质饮食,留陪人,吸氧,监测血压;\r',
-                  '2.检查计划:完善血气��析、血分析、CRP、降钙素原、肝肾功能、呼吸道感染病原体、血培养、白介素、粪便、尿液分析等相关辅助检查,协助诊治;\r',
-                  "3.治疗计划:给予地塞米松磷酸钠注射液抗病毒,低分子肝素钙注射液抗凝,盐酸氨溴索注射液化痰,抽取血培养+药敏,为覆盖<font color='red'>肺</font><font color='red'>炎</font>链球菌、流感嗜血杆菌注等,给予头孢哌酮钠舒巴坦钠抗感染治疗。                             \r",
-                  '4.健康知识宣教:卫生宣教,心理治疗。\r',
-                  "5.患者诊断<font color='red'>肺</font><font color='red'>炎</font>,纳入临床路径。",
-                ],
-              },
-              patient_info: {
-                AAA28: '00066452',
-                AAC01: '2023-01-15 11:20:00',
-              },
-            },
-          ],
-        },
-      };
-
-      this.tableData = res.data.list || [];
-      this.tableDataDetails = res.data.detail || [];
-      this.paginationData.total = res.data.total;
-      // this.$axios3.post('/bl/serach', params).then(res => {
-      //   this.tableData = res.data.list || [];
-      //   this.tableDataDetails = res.data.detail || [];
-      //   this.paginationData.total = res.data.total;
-      // });
+      this.$axios3.post('/bl/serach', params).then(res => {
+        this.tableData = res.data.list || [];
+        this.tableDataDetails = res.data.detail || [];
+        this.paginationData.total = res.data.total;
+      });
     },
     },
+    // 判断对象是否为空
+    isObject(form){
+      let a = 0
+      for(let key in form){
+        if(!!form[key]){
+          a++
+        }
+      }
+      if (a) {
+        return false
+      } else {
+        return true
+      } 
+    }
   },
   },
 };
 };
 </script>
 </script>