Procházet zdrojové kódy

宁海第一人民医院:页面调试

wangsy před 4 roky
rodič
revize
3f2f5bedb7

+ 20 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/beilun/threelevelward/THR0128.java

@@ -134,10 +134,12 @@ public class THR0128 extends QCCatalogue {
                     int indicationsNum = CatalogueUtil.appearNumber(roundRecordEveryWeek.get(j).split(","), Content.attend);
                     //三级医师查房算一次主治查房
                     int threeDoctorNum = CatalogueUtil.appearNumber(roundRecordEveryWeek.get(j).split(","), "三级");
+                    //北仑内分泌科(主任携主任代主治)
+                    int endocrinologyTitleNum = endocrinologyTitleNum(roundRecordEveryWeek.get(j).split(","));
                     if (j == 0 && firstRecordAttendExist) { //如果首程中医师签名为主治医师,第一周查房记录也要加上
                         indicationsNum += 1;
                     }
-                    if (indicationsNum + threeDoctorNum < 3) {
+                    if (indicationsNum + threeDoctorNum + endocrinologyTitleNum < 3) {
                         //每周无3次主治医师查房记录
                         status.set("-1");
                         resultInfos.add(lastWardDateRangeList.get(j));
@@ -151,6 +153,23 @@ public class THR0128 extends QCCatalogue {
         }
     }
 
+    /**
+     * 北仑内分泌科主任主治处理
+     *
+     * @param srcText
+     * @return
+     */
+    private int endocrinologyTitleNum(String[] srcText) {
+        int count = 0;
+        for (String title : srcText) {
+            String regex = ".*主任.*主任.*主治.*";
+            if (title.matches(regex)) {
+                count++;
+            }
+        }
+        return count;
+    }
+
     private Date getLastRecordDate(List<ThreeLevelWardDoc> allDoctorWradDocs) {
         ThreeLevelWardDoc threeLevelWardDoc = allDoctorWradDocs.get(allDoctorWradDocs.size() - 1);
         Map<String, String> lastWardDocStructureMap = threeLevelWardDoc.getStructureMap();

+ 2 - 1
trans/src/main/java/com/lantone/qc/trans/ninghaiyiyi/NingHaiYiYiLeaveHospitalDocTrans.java

@@ -85,7 +85,8 @@ public class NingHaiYiYiLeaveHospitalDocTrans extends ModelDocTrans {
             "其它=其他",
             "出生年月=出生日期",
             "床位=床号",
-            "时间=记录时间"
+            "时间=记录时间",
+            "转归情况=治疗结果"
     );
 
 }

+ 1 - 1
trans/src/main/java/com/lantone/qc/trans/ninghaiyiyi/util/NingHaiYiYiCriticallyIllNoticeHtmlAnalysis.java

@@ -38,7 +38,7 @@ public class NingHaiYiYiCriticallyIllNoticeHtmlAnalysis implements NingHaiYiYiHt
                 if (htmlContent.contains("宁海县第一医院重、危病员通知单(交患方)")) {
                     htmlContent = htmlContent.substring(0, htmlContent.indexOf("宁海县第一医院重、危病员通知单(交患方)"));
                 }
-                htmlContent = htmlContent.replaceAll("[   ]", " ");
+                htmlContent = htmlContent.replaceAll("[   ]", " ").replace("-", "");
                 CommonAnalysisUtil.html2StructureMap(titles, htmlContent, structureMap);
             }
             CommonAnalysisUtil.extractDateByTitle(structureMap, "告知时间");