|
@@ -47,6 +47,27 @@ public class THR03325 extends QCCatalogue {
|
|
|
if (beHospitalizedDoc == null || threeLevelWardDocs == null) {
|
|
|
return;
|
|
|
}
|
|
|
+ //获取入院记录婚育史中孕产次
|
|
|
+ String PPT = "";
|
|
|
+ //获取婚育史
|
|
|
+ Map<String, String> MaritalStructureMap = beHospitalizedDoc.getStructureMap();
|
|
|
+ if (MaritalStructureMap == null) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ String marital = MaritalStructureMap.get("婚育史");
|
|
|
+ if (StringUtil.isBlank(marital)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ Pattern p = Pattern.compile("([0-9])-([0-9])-([0-9])-([0-9])");
|
|
|
+ Matcher matcherMarital = p.matcher(marital);
|
|
|
+ if (matcherMarital.find()) {
|
|
|
+ PPT = matcherMarital.group();
|
|
|
+ }
|
|
|
+ if (StringUtil.isEmpty(PPT)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
//创建存储能匹配疾病的集合
|
|
|
List<String> diagList = new ArrayList<>();
|
|
|
//存放孕次A
|
|
@@ -59,6 +80,12 @@ public class THR03325 extends QCCatalogue {
|
|
|
for (ThreeLevelWardDoc threeLevelWard : allDoctorWradDocs) {
|
|
|
Map<String, String> structureMap = threeLevelWard.getStructureMap();
|
|
|
String record = structureMap.get("病情记录");
|
|
|
+ if (StringUtil.isEmpty(record)) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ if (record.contains(PPT)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
Pattern pattern = Pattern.compile(".*[Gg孕][^1-9]?([1-9])[^1-9]?[Pp产][^1-9]?([0-9])[^1-9].*");
|
|
|
Matcher matcher = pattern.matcher(record);
|
|
|
if (matcher.find()) {
|
|
@@ -81,27 +108,6 @@ public class THR03325 extends QCCatalogue {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- //获取入院记录婚育史中孕产次
|
|
|
- String PPT = "";
|
|
|
- //获取婚育史
|
|
|
- MaritalLabel maritalLabel = beHospitalizedDoc.getMaritalLabel();
|
|
|
- if (maritalLabel == null) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- Fertility fertility = maritalLabel.getFertility();
|
|
|
- if (fertility == null) {
|
|
|
- return;
|
|
|
- }
|
|
|
- String name = fertility.getName();
|
|
|
- Pattern p = Pattern.compile("([0-9])-([0-9])-([0-9])-([0-9])");
|
|
|
- Matcher matcher = p.matcher(name);
|
|
|
- if (matcher.find()) {
|
|
|
- PPT = matcher.group();
|
|
|
- }
|
|
|
- if (StringUtil.isEmpty(PPT)) {
|
|
|
- return;
|
|
|
- }
|
|
|
//[孕次A】==a+b+c+1,且【产次B】==a+b+c
|
|
|
String[] split = PPT.split("-");
|
|
|
try {
|
|
@@ -120,4 +126,5 @@ public class THR03325 extends QCCatalogue {
|
|
|
private int strConvertInt(String str) {
|
|
|
return Integer.parseInt(str);
|
|
|
}
|
|
|
+
|
|
|
}
|