|
@@ -1,20 +1,13 @@
|
|
|
package com.lantone.qc.kernel.catalogue.threelevelward;
|
|
|
|
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
-import com.lantone.qc.kernel.util.CatalogueUtil;
|
|
|
-import com.lantone.qc.pub.Content;
|
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
|
-import com.lantone.qc.pub.model.doc.ThreeLevelWardDoc;
|
|
|
-import com.lantone.qc.pub.model.doc.ward.AttendingDoctorWardDoc;
|
|
|
import com.lantone.qc.pub.model.doc.ward.DirectorDoctorWardDoc;
|
|
|
import com.lantone.qc.pub.model.label.ThreeLevelWardLabel;
|
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.Date;
|
|
|
-import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -27,30 +20,31 @@ import java.util.Map;
|
|
|
@Component
|
|
|
public class THR0136 extends QCCatalogue {
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
- status.set("0");
|
|
|
- if (inputInfo.getThreeLevelWardDocs().size() > 0) {
|
|
|
- List<DirectorDoctorWardDoc> directorDocs = inputInfo.getThreeLevelWardDocs().get(0).getDirectorDoctorWardDocs();
|
|
|
- if (directorDocs.size() > 0) {
|
|
|
- DirectorDoctorWardDoc firstDirectDoc = directorDocs.get(0);
|
|
|
- //先取结构化数据判断
|
|
|
- Map<String, String> firstDirectStructureMap = firstDirectDoc.getStructureMap();
|
|
|
- String conditionRecord = firstDirectStructureMap.get("病情记录");
|
|
|
- if (StringUtil.isNotBlank(conditionRecord)) {
|
|
|
- if (conditionRecord.contains("鉴别")
|
|
|
- || conditionRecord.contains("诊断明确")
|
|
|
- || conditionRecord.contains("无需鉴别")) {
|
|
|
- status.set("0");
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
- ThreeLevelWardLabel firstDirectLabel = firstDirectDoc.getThreeLevelWardLabel();
|
|
|
- if (firstDirectLabel == null) {
|
|
|
+ if (inputInfo.getThreeLevelWardDocs().size() == 0) {
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ List<DirectorDoctorWardDoc> directorDocs = inputInfo.getThreeLevelWardDocs().get(0).getDirectorDoctorWardDocs();
|
|
|
+ if (directorDocs.size() > 0) {
|
|
|
+ DirectorDoctorWardDoc firstDirectDoc = directorDocs.get(0);
|
|
|
+ //先取结构化数据判断
|
|
|
+ Map<String, String> firstDirectStructureMap = firstDirectDoc.getStructureMap();
|
|
|
+ String conditionRecord = firstDirectStructureMap.get("病情记录");
|
|
|
+ if (StringUtil.isNotBlank(conditionRecord)) {
|
|
|
+ if (conditionRecord.contains("鉴别")
|
|
|
+ || conditionRecord.contains("诊断明确")
|
|
|
+ || conditionRecord.contains("无需鉴别")) {
|
|
|
+ status.set("0");
|
|
|
return;
|
|
|
}
|
|
|
+ }
|
|
|
+ ThreeLevelWardLabel firstDirectLabel = firstDirectDoc.getThreeLevelWardLabel();
|
|
|
+ if (firstDirectLabel == null) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
- if (firstDirectLabel.getDiffDiag().size() != 0 || StringUtil.isNotBlank(firstDirectLabel.getDiffDiagText())) {
|
|
|
- status.set("0");
|
|
|
- }
|
|
|
+ if (firstDirectLabel.getDiffDiag().size() != 0 || StringUtil.isNotBlank(firstDirectLabel.getDiffDiagText())) {
|
|
|
+ status.set("0");
|
|
|
}
|
|
|
}
|
|
|
}
|