|
@@ -7,6 +7,7 @@ import com.lantone.qc.pub.model.entity.Notes;
|
|
|
import com.lantone.qc.pub.model.label.LeaveHospitalLabel;
|
|
|
import com.lantone.qc.pub.util.ListUtil;
|
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.List;
|
|
@@ -21,16 +22,14 @@ public class LEA0156 extends QCCatalogue {
|
|
|
|
|
|
@Override
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
- LeaveHospitalLabel leaveHospitalLabel = inputInfo.getLeaveHospitalDoc().getLeaveHospitalLabel();
|
|
|
- if (leaveHospitalLabel != null) {
|
|
|
- List<Notes> notes = leaveHospitalLabel.getNoteses();
|
|
|
- if (ListUtil.isNotEmpty(notes)) {
|
|
|
- long count = notes.stream().filter(i -> i != null && StringUtil.isNotBlank(i.getName())).count();
|
|
|
- if (count > 0) {
|
|
|
- status.set("0");
|
|
|
- }
|
|
|
+ status.set("0");
|
|
|
+ try {
|
|
|
+ String healthyEducation = inputInfo.getLeaveHospitalDoc().getStructureMap().get("健康教育");
|
|
|
+ if(StringUtils.isBlank(healthyEducation)){
|
|
|
+ status.set("-1");
|
|
|
}
|
|
|
+ }catch (Exception e){
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-}
|