|
@@ -22,9 +22,18 @@ import java.util.Map;
|
|
|
public class THR0601 extends QCCatalogue {
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
status.set("0");
|
|
|
- if (inputInfo.getThreeLevelWardDocs().size() == 0) {
|
|
|
+ if (inputInfo.getLeaveHospitalDoc() == null || inputInfo.getThreeLevelWardDocs().size() == 0) {
|
|
|
return;
|
|
|
}
|
|
|
+ Map<String, String> leaveHospitalStructureMap = inputInfo.getLeaveHospitalDoc().getStructureMap();
|
|
|
+ String lengthOfStay = leaveHospitalStructureMap.get("住院天数");
|
|
|
+ if (StringUtil.isNotBlank(lengthOfStay) && CatalogueUtil.numbersOnly(lengthOfStay)) {
|
|
|
+ //如果住院天数小于2天则不判断该条规则
|
|
|
+ if (Integer.parseInt(lengthOfStay) <= 2) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
List<ThreeLevelWardDoc> allDoctorWradDocs = inputInfo.getThreeLevelWardDocs().get(0).getAllDoctorWradDocs();//查房记录
|
|
|
String title, record;
|
|
|
boolean findIndications = false;
|