|
@@ -26,6 +26,7 @@ import java.util.Objects;
|
|
|
@Component
|
|
|
@Slf4j
|
|
|
public class ADVI03254 extends QCCatalogue {
|
|
|
+ @Override
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
status.set("0");
|
|
|
|
|
@@ -61,33 +62,33 @@ public class ADVI03254 extends QCCatalogue {
|
|
|
}
|
|
|
if (temp.getOperationName().matches(".*(子宫内膜息肉|子宫息肉|宫腔息肉|子宫内膜赘生物|宫腔镜电切术|刮宫术|子宫切除术|宫腔镜手术).*")) {
|
|
|
matched = true;
|
|
|
- log.info("进行手术:"+temp.getOperationName());
|
|
|
+ log.info("进行手术:{}",temp.getOperationName());
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- if (!matched) {//手术未查到病案首页再次查找手术信息
|
|
|
+ //手术未查到病案首页再次查找手术信息
|
|
|
+ if (!matched) {
|
|
|
Map<String, Object> structureExtMap = inputInfo.getFirstPageRecordDoc().getStructureExtMap();
|
|
|
- Object operation = structureExtMap.get(Content.operative_information);//手术信息
|
|
|
+ //手术信息
|
|
|
+ Object operation = structureExtMap.get(Content.operative_information);
|
|
|
List<Map<String, String>> mapStrs = (List<Map<String, String>>) operation;
|
|
|
- if (mapStrs == null || mapStrs.isEmpty()) {//未进行手术
|
|
|
+ if (mapStrs == null || mapStrs.isEmpty()) {
|
|
|
log.info("未进行手术");
|
|
|
status.set("1");
|
|
|
return;
|
|
|
}
|
|
|
- if (mapStrs.size() > 0) {
|
|
|
- for (Map<String, String> mapStr : mapStrs) {
|
|
|
- String name = mapStr.get(Content.operative_name);//手术名称
|
|
|
- if (!StringUtil.isEmpty(name) && name.matches(".*(子宫内膜息肉|子宫息肉|宫腔息肉|子宫内膜赘生物|宫腔镜电切术|刮宫术|子宫切除术|宫腔镜手术).*")) {
|
|
|
- matched = true;
|
|
|
- log.info("进行手术:"+name);
|
|
|
- break;
|
|
|
- }
|
|
|
+ for (Map<String, String> mapStr : mapStrs) {
|
|
|
+ //手术名称
|
|
|
+ String name = mapStr.get(Content.operative_name);
|
|
|
+ if (!StringUtil.isEmpty(name) && name.matches(".*(子宫内膜息肉|子宫息肉|宫腔息肉|子宫内膜赘生物|宫腔镜电切术|刮宫术|子宫切除术|宫腔镜手术).*")) {
|
|
|
+ matched = true;
|
|
|
+ log.info("进行手术:"+name);
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (!matched) {//未进行手术
|
|
|
+ if (!matched) {
|
|
|
log.info("未进行手术");
|
|
|
status.set("1");
|
|
|
return;
|
|
@@ -109,8 +110,8 @@ public class ADVI03254 extends QCCatalogue {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- if (matched) { //确诊且进行了相关手术且相关病理检查
|
|
|
+ //确诊且进行了相关手术且相关病理检查
|
|
|
+ if (matched) {
|
|
|
status.set("1");
|
|
|
}
|
|
|
}
|