|
@@ -41,7 +41,7 @@ public class FIRC0087 extends QCCatalogue {
|
|
if (differentialDiagLabel != null) {
|
|
if (differentialDiagLabel != null) {
|
|
Map<String, String> structureMap = firstCourseRecordDoc.getStructureMap();
|
|
Map<String, String> structureMap = firstCourseRecordDoc.getStructureMap();
|
|
String diffDiagStruct = structureMap.get("鉴别诊断");
|
|
String diffDiagStruct = structureMap.get("鉴别诊断");
|
|
- if(StringUtils.isNotEmpty(diffDiagStruct)){
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(diffDiagStruct)) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
/*if (StringUtil.isNotBlank(diffDiagStruct) && (diffDiagStruct.contains("诊断明确") || diffDiagStruct.contains("无需鉴别")
|
|
/*if (StringUtil.isNotBlank(diffDiagStruct) && (diffDiagStruct.contains("诊断明确") || diffDiagStruct.contains("无需鉴别")
|
|
@@ -50,31 +50,31 @@ public class FIRC0087 extends QCCatalogue {
|
|
}*/
|
|
}*/
|
|
|
|
|
|
//List<Diag> diags = differentialDiagLabel.getDiags();
|
|
//List<Diag> diags = differentialDiagLabel.getDiags();
|
|
- String diag = initDiagLabel.getDiags().get(0).getHospitalDiagName();
|
|
|
|
- String casechar = casecharLabel.getText();
|
|
|
|
- String chief = "";
|
|
|
|
- String present = "";
|
|
|
|
- if (casechar.contains("主诉") && casechar.contains("现病史")) {
|
|
|
|
- chief = casechar.substring(casechar.indexOf("主诉") + 2, casechar.indexOf("现病史"));
|
|
|
|
- present = casechar.substring(casechar.indexOf("现病史") + 3, casechar.indexOf("既往史"));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if (StringUtils.isNotEmpty(differentialDiagLabel.getText())) {
|
|
|
|
- if (differentialDiagLabel.getText().contains("诊断明确")
|
|
|
|
- || differentialDiagLabel.getText().contains("无需鉴别")) {
|
|
|
|
- if (chief.contains("术后") || chief.contains("孕") || chief.contains("化疗")
|
|
|
|
- || chief.contains("肿瘤") || chief.contains("癌") || chief.contains("确诊")
|
|
|
|
- || chief.contains("外伤") || chief.contains("摔伤")) {
|
|
|
|
- status.set("0");
|
|
|
|
- } else if (present.contains(diag)) {
|
|
|
|
- status.set("0");
|
|
|
|
- } else {
|
|
|
|
- status.set("-1");
|
|
|
|
|
|
+ if (initDiagLabel.getDiags().size() > 0) {
|
|
|
|
+ String diag = initDiagLabel.getDiags().get(0).getHospitalDiagName();
|
|
|
|
+ String casechar = casecharLabel.getText();
|
|
|
|
+ String chief = "";
|
|
|
|
+ String present = "";
|
|
|
|
+ if (casechar.contains("主诉") && casechar.contains("现病史")) {
|
|
|
|
+ chief = casechar.substring(casechar.indexOf("主诉") + 2, casechar.indexOf("现病史"));
|
|
|
|
+ present = casechar.substring(casechar.indexOf("现病史") + 3, casechar.indexOf("既往史"));
|
|
|
|
+ }
|
|
|
|
+ if (StringUtils.isNotEmpty(differentialDiagLabel.getText())) {
|
|
|
|
+ if (differentialDiagLabel.getText().contains("诊断明确")
|
|
|
|
+ || differentialDiagLabel.getText().contains("无需鉴别")) {
|
|
|
|
+ if (chief.contains("术后") || chief.contains("孕") || chief.contains("化疗")
|
|
|
|
+ || chief.contains("肿瘤") || chief.contains("癌") || chief.contains("确诊")
|
|
|
|
+ || chief.contains("外伤") || chief.contains("摔伤")) {
|
|
|
|
+ status.set("0");
|
|
|
|
+ } else if (present.contains(diag)) {
|
|
|
|
+ status.set("0");
|
|
|
|
+ } else {
|
|
|
|
+ status.set("-1");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+ } else if (StringUtils.isEmpty(differentialDiagLabel.getText())) {
|
|
|
|
+ status.set("-1");
|
|
}
|
|
}
|
|
- } else if (StringUtils.isEmpty(differentialDiagLabel.getText())) {
|
|
|
|
- status.set("-1");
|
|
|
|
- }
|
|
|
|
/*
|
|
/*
|
|
if(diags == null || diags.size()<1){
|
|
if(diags == null || diags.size()<1){
|
|
status.set("-1");
|
|
status.set("-1");
|
|
@@ -86,8 +86,8 @@ public class FIRC0087 extends QCCatalogue {
|
|
status.set("0");
|
|
status.set("0");
|
|
}
|
|
}
|
|
*/
|
|
*/
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|