|
@@ -22,8 +22,8 @@ import java.util.Map;
|
|
|
@Component
|
|
|
public class THR0126 extends QCCatalogue {
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
- status.set("0");
|
|
|
if (inputInfo.getThreeLevelWardDocs().size() == 0) {
|
|
|
+ status.set("0");
|
|
|
return;
|
|
|
}
|
|
|
if (inputInfo.getLeaveHospitalDoc() != null && inputInfo.getLeaveHospitalDoc().getStructureMap() != null
|
|
@@ -42,15 +42,16 @@ public class THR0126 extends QCCatalogue {
|
|
|
}
|
|
|
ThreeLevelWardDoc threeLevelWardDoc = inputInfo.getThreeLevelWardDocs().get(0);
|
|
|
List<AttendingDoctorWardDoc> attendingDoctorWardDocs = threeLevelWardDoc.getAttendingDoctorWardDocs();
|
|
|
- if (attendingDoctorWardDocs.size() == 0) {
|
|
|
- status.set("0");
|
|
|
- return;
|
|
|
- }
|
|
|
- AttendingDoctorWardDoc firstAttending = attendingDoctorWardDocs.get(0);
|
|
|
- String wardDateStr = firstAttending.getStructureMap().get("查房日期");
|
|
|
- if (!CatalogueUtil.compareTime(StringUtil.parseDateTime(admisTime), StringUtil.parseDateTime(wardDateStr), (long) (48 * 60))) {
|
|
|
- status.set("0");
|
|
|
+ if (attendingDoctorWardDocs.size() > 0) {
|
|
|
+ AttendingDoctorWardDoc firstAttending = attendingDoctorWardDocs.get(0);
|
|
|
+ String wardDateStr = firstAttending.getStructureMap().get("查房日期");
|
|
|
+ if (!CatalogueUtil.compareTime(StringUtil.parseDateTime(admisTime), StringUtil.parseDateTime(wardDateStr), (long) (48 * 60))) {
|
|
|
+ status.set("0");
|
|
|
+ }
|
|
|
}
|
|
|
+ } else {
|
|
|
+ //没有出院小结,这条直接不报错
|
|
|
+ status.set("0");
|
|
|
}
|
|
|
}
|
|
|
}
|