|
@@ -21,7 +21,11 @@ import java.util.List;
|
|
|
public class BEH0073 extends QCCatalogue {
|
|
|
@Override
|
|
|
protected void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
- if (inputInfo.getBeHospitalizedDoc() != null && inputInfo.getBeHospitalizedDoc().getFamilyLabel() != null) {
|
|
|
+ if (inputInfo.getBeHospitalizedDoc() == null) {
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (inputInfo.getBeHospitalizedDoc().getFamilyLabel() != null) {
|
|
|
FamilyLabel familyLabel = inputInfo.getBeHospitalizedDoc().getFamilyLabel();
|
|
|
List<Family> families = familyLabel.getFamilies();
|
|
|
for (Family family : families) {
|
|
@@ -39,8 +43,9 @@ public class BEH0073 extends QCCatalogue {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if (inputInfo.getBeHospitalizedDoc().getPastLabel().getText().contains("肝炎")
|
|
|
- || inputInfo.getBeHospitalizedDoc().getPastLabel().getText().contains("结核")) {
|
|
|
+ if (inputInfo.getBeHospitalizedDoc().getPastLabel() != null &&
|
|
|
+ (inputInfo.getBeHospitalizedDoc().getPastLabel().getText().contains("肝炎")
|
|
|
+ || inputInfo.getBeHospitalizedDoc().getPastLabel().getText().contains("结核"))) {
|
|
|
status.set("0");
|
|
|
}
|
|
|
}
|