소스 검색

解决bug 5446 ----------- 术后没有连续记录3天 2318225_9 这个患者虽然有术前讨论,但是病程记录里有描述暂停手术,这个条目不应该报错。

wangfeng 5 년 전
부모
커밋
01b59afe8c
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/operationdiscussion/OPE0587.java

+ 4 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/operationdiscussion/OPE0587.java

@@ -52,7 +52,10 @@ public class OPE0587 extends QCCatalogue {
             List<String> operDateList = new ArrayList<>();
             for (OperationDoc opera : operationDocs) {
                 OperationRecordDoc operationRecordDoc = opera.getOperationRecordDoc();
-                String operDate = operationRecordDoc.getStructureMap().get("手术日期");
+                if(operationRecordDoc==null){
+                    return;
+                }
+                String operDate = operationRecordDoc.getStructureMap().get("手术日期")==null?null:operationRecordDoc.getStructureMap().get("手术日期");
                 if (StringUtil.isNotBlank(operDate)) {
                     operDateList.add(operDate);
                 }