|
@@ -7,6 +7,7 @@ import com.lantone.qc.kernel.client.SimilarityServiceClient;
|
|
|
import com.lantone.qc.kernel.structure.ai.process.EntityProcessClinic;
|
|
|
import com.lantone.qc.kernel.structure.ai.process.EntityProcessDiag;
|
|
|
import com.lantone.qc.kernel.structure.ai.process.EntityProcessTreatPlan;
|
|
|
+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.doc.FirstCourseRecordDoc;
|
|
@@ -45,18 +46,22 @@ public class FirstCourseRecordAI extends ModelAI {
|
|
|
//putContent(crfContent, medicalTextType.get(0), firstCourseRecordDoc.getCaseCharacteristicLabel().getText(), Content.case_feature);
|
|
|
//初步诊断
|
|
|
if (StringUtils.isNotEmpty(structureMap.get(Content.initial_diag))) {
|
|
|
- putContent(crfContent, medicalTextType.get(1), structureMap.get(Content.initial_diag), Content.initial_diag);
|
|
|
+ String initial_diag = CatalogueUtil.removeBetweenWordSpace(structureMap.get(Content.initial_diag));
|
|
|
+ putContent(crfContent, medicalTextType.get(1), initial_diag, Content.initial_diag);
|
|
|
} else if (firstCourseRecordDoc.getInitialDiagLabel() != null && StringUtil.isNotBlank(firstCourseRecordDoc.getInitialDiagLabel().getText())) {
|
|
|
- putContent(crfContent, medicalTextType.get(1), firstCourseRecordDoc.getInitialDiagLabel().getText(), Content.initial_diag);
|
|
|
+ String initial_diag = CatalogueUtil.removeBetweenWordSpace(firstCourseRecordDoc.getInitialDiagLabel().getText());
|
|
|
+ putContent(crfContent, medicalTextType.get(1), initial_diag, Content.initial_diag);
|
|
|
}
|
|
|
|
|
|
//诊断依据
|
|
|
//putContent(crfContent, medicalTextType.get(0), firstCourseRecordDoc.getDiagnosisLabel().getText(), Content.diag_basis);
|
|
|
//鉴别诊断
|
|
|
if (StringUtils.isNotEmpty(structureMap.get("鉴别诊断"))) {
|
|
|
- putContent(crfContent, medicalTextType.get(1), structureMap.get("鉴别诊断"), "鉴别诊断");
|
|
|
+ String diffDiag = CatalogueUtil.removeBetweenWordSpace(structureMap.get("鉴别诊断"));
|
|
|
+ putContent(crfContent, medicalTextType.get(1), diffDiag, "鉴别诊断");
|
|
|
} else if (firstCourseRecordDoc.getDifferentialDiagLabel() != null && StringUtil.isNotBlank(firstCourseRecordDoc.getDifferentialDiagLabel().getText())) {
|
|
|
- putContent(crfContent, medicalTextType.get(1), firstCourseRecordDoc.getDifferentialDiagLabel().getText(), "鉴别诊断");
|
|
|
+ String diffDiag = CatalogueUtil.removeBetweenWordSpace(firstCourseRecordDoc.getDifferentialDiagLabel().getText());
|
|
|
+ putContent(crfContent, medicalTextType.get(1), diffDiag, "鉴别诊断");
|
|
|
}
|
|
|
//诊疗计划
|
|
|
if (StringUtils.isNotEmpty(structureMap.get("诊疗计划")) && StringUtils.isNotEmpty(structureMap.get("需求评估"))) {
|