|
@@ -3,10 +3,16 @@ package com.lantone.qc.kernel.catalogue.leavehospital;
|
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
|
+import com.lantone.qc.pub.model.entity.DoctorAdvice;
|
|
|
+import com.lantone.qc.pub.model.label.LeaveHospitalLabel;
|
|
|
+import com.lantone.qc.pub.util.ListUtil;
|
|
|
+import com.lantone.qc.pub.util.StringUtil;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
- * @Description:
|
|
|
+ * @Description: 出院记录内容缺出院医嘱
|
|
|
* @author: rengb
|
|
|
* @time: 2020/3/10 13:53
|
|
|
*/
|
|
@@ -15,7 +21,16 @@ public class LEA0155 extends QCCatalogue {
|
|
|
|
|
|
@Override
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
-
|
|
|
+ LeaveHospitalLabel leaveHospitalLabel = inputInfo.getLeaveHospitalDoc().getLeaveHospitalLabel();
|
|
|
+ if (leaveHospitalLabel != null) {
|
|
|
+ List<DoctorAdvice> doctorAdvices = leaveHospitalLabel.getDoctorAdvices();
|
|
|
+ if (ListUtil.isNotEmpty(doctorAdvices)) {
|
|
|
+ long count = doctorAdvices.stream().filter(i -> i != null && StringUtil.isNotBlank(i.getName())).count();
|
|
|
+ if (count > 0) {
|
|
|
+ status = "0";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|