Browse Source

出院记录内容缺出院注意事项/出院记录内容缺主诉(出院小结)更新

kongwz 5 years atrás
parent
commit
32cdbeccb3

+ 6 - 5
kernel/src/main/java/com/lantone/qc/kernel/catalogue/leavehospital/LEA0155.java

@@ -8,6 +8,7 @@ import com.lantone.qc.pub.model.entity.DoctorAdvice;
 import com.lantone.qc.pub.model.label.LeaveHospitalLabel;
 import com.lantone.qc.pub.util.ListUtil;
 import com.lantone.qc.pub.util.StringUtil;
+import org.apache.commons.lang3.StringUtils;
 import org.springframework.stereotype.Component;
 
 import java.util.List;
@@ -23,13 +24,13 @@ public class LEA0155 extends QCCatalogue {
     @Override
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
         status.set("0");
-        LeaveHospitalLabel leaveHospitalLabel = inputInfo.getLeaveHospitalDoc().getLeaveHospitalLabel();
-        if (leaveHospitalLabel != null) {
-            DoctorAdvice doctorAdvices = leaveHospitalLabel.getDoctorAdvices();
-            if (CatalogueUtil.isEmpty(doctorAdvices.getName())) {
+        try {
+            String leaveAdvice = inputInfo.getLeaveHospitalDoc().getStructureMap().get("出院医嘱");
+            if(StringUtils.isBlank(leaveAdvice)){
                 status.set("-1");
             }
+        }catch (Exception e){
+            e.printStackTrace();
         }
     }
-
 }

+ 9 - 10
kernel/src/main/java/com/lantone/qc/kernel/catalogue/leavehospital/LEA0156.java

@@ -7,6 +7,7 @@ import com.lantone.qc.pub.model.entity.Notes;
 import com.lantone.qc.pub.model.label.LeaveHospitalLabel;
 import com.lantone.qc.pub.util.ListUtil;
 import com.lantone.qc.pub.util.StringUtil;
+import org.apache.commons.lang3.StringUtils;
 import org.springframework.stereotype.Component;
 
 import java.util.List;
@@ -21,16 +22,14 @@ public class LEA0156 extends QCCatalogue {
 
     @Override
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
-        LeaveHospitalLabel leaveHospitalLabel = inputInfo.getLeaveHospitalDoc().getLeaveHospitalLabel();
-        if (leaveHospitalLabel != null) {
-            List<Notes> notes = leaveHospitalLabel.getNoteses();
-            if (ListUtil.isNotEmpty(notes)) {
-                long count = notes.stream().filter(i -> i != null && StringUtil.isNotBlank(i.getName())).count();
-                if (count > 0) {
-                    status.set("0");
-                }
+        status.set("0");
+        try {
+            String healthyEducation = inputInfo.getLeaveHospitalDoc().getStructureMap().get("健康教育");
+            if(StringUtils.isBlank(healthyEducation)){
+                status.set("-1");
             }
+        }catch (Exception e){
+            e.printStackTrace();
+        }
         }
     }
-
-}