|
@@ -25,11 +25,16 @@ import java.util.Map;
|
|
public class THR0125 extends QCCatalogue {
|
|
public class THR0125 extends QCCatalogue {
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
status.set("0");
|
|
status.set("0");
|
|
- if (inputInfo.getBeHospitalizedDoc() != null && inputInfo.getBeHospitalizedDoc().getStructureMap() != null
|
|
|
|
|
|
+ if (inputInfo.getLeaveHospitalDoc() != null && inputInfo.getLeaveHospitalDoc().getStructureMap() != null
|
|
&& inputInfo.getThreeLevelWardDocs().size() > 0) {
|
|
&& inputInfo.getThreeLevelWardDocs().size() > 0) {
|
|
- Map<String, String> beHospitalStructureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
|
|
|
|
- String admisTime = beHospitalStructureMap.get(Content.admisDate);
|
|
|
|
- if (CatalogueUtil.isEmpty(admisTime)) {
|
|
|
|
|
|
+ Map<String, String> getLeaveHospitalStructureMap = inputInfo.getLeaveHospitalDoc().getStructureMap();
|
|
|
|
+ String admisTime = getLeaveHospitalStructureMap.get(Content.admisTime);
|
|
|
|
+ String dischargeTime = getLeaveHospitalStructureMap.get(Content.dischargeTime);
|
|
|
|
+ if (CatalogueUtil.isEmpty(admisTime) || CatalogueUtil.isEmpty(dischargeTime)) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ //如果住院天数小于3天则不判断该条规则
|
|
|
|
+ if (!CatalogueUtil.compareTime(StringUtil.parseDateTime(admisTime), StringUtil.parseDateTime(dischargeTime), (long) (72 * 60))) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
List<ThreeLevelWardDoc> threeLevelWardDocs = inputInfo.getThreeLevelWardDocs();
|
|
List<ThreeLevelWardDoc> threeLevelWardDocs = inputInfo.getThreeLevelWardDocs();
|