|
@@ -4,9 +4,12 @@ import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
import com.lantone.qc.pub.model.doc.FirstCourseRecordDoc;
|
|
import com.lantone.qc.pub.model.doc.FirstCourseRecordDoc;
|
|
|
|
+import com.lantone.qc.pub.model.entity.Diag;
|
|
|
|
+import com.lantone.qc.pub.model.label.DiagLabel;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -21,10 +24,10 @@ public class FIRC0087 extends QCCatalogue {
|
|
status.set("0");
|
|
status.set("0");
|
|
FirstCourseRecordDoc firstCourseRecordDoc = inputInfo.getFirstCourseRecordDoc();
|
|
FirstCourseRecordDoc firstCourseRecordDoc = inputInfo.getFirstCourseRecordDoc();
|
|
if(firstCourseRecordDoc != null){
|
|
if(firstCourseRecordDoc != null){
|
|
- Map<String, String> courseRecordDocStructureMap = firstCourseRecordDoc.getStructureMap();
|
|
|
|
- if(courseRecordDocStructureMap != null){
|
|
|
|
- String tretment_plan = courseRecordDocStructureMap.get("鉴别诊断");
|
|
|
|
- if(StringUtils.isEmpty(tretment_plan)){
|
|
|
|
|
|
+ DiagLabel differentialDiagLabel = firstCourseRecordDoc.getDifferentialDiagLabel();
|
|
|
|
+ if(differentialDiagLabel != null){
|
|
|
|
+ List<Diag> diags = differentialDiagLabel.getDiags();
|
|
|
|
+ if(diags == null || diags.size()<1){
|
|
status.set("-1");
|
|
status.set("-1");
|
|
}
|
|
}
|
|
}
|
|
}
|