Browse Source

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

wangfeng 5 years ago
parent
commit
01b59afe8c

+ 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);
                 }