|
@@ -10,7 +10,6 @@ import com.lantone.qc.pub.model.doc.LeaveHospitalDoc;
|
|
|
import com.lantone.qc.pub.model.entity.Diag;
|
|
|
import com.lantone.qc.pub.model.label.DiagLabel;
|
|
|
import com.lantone.qc.pub.util.ListUtil;
|
|
|
-import com.lantone.qc.pub.util.StringUtil;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
@@ -32,9 +31,9 @@ public class LEA0147 extends QCCatalogue {
|
|
|
|
|
|
@Override
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
+ status.set("0");
|
|
|
LeaveHospitalDoc leaveHospitalDoc = inputInfo.getLeaveHospitalDoc();
|
|
|
if (leaveHospitalDoc == null) {
|
|
|
- status.set("0");
|
|
|
return;
|
|
|
}
|
|
|
DeathRecordDoc deathRecordDoc = inputInfo.getDeathRecordDoc();
|
|
@@ -45,15 +44,15 @@ public class LEA0147 extends QCCatalogue {
|
|
|
Map<String, Map<String, String>> hospitalDiagMap = redisUtil.getJsonStringValue(KernelConstants.HOSPITAL_DIAG_MAP);
|
|
|
if (ListUtil.isNotEmpty(diags) && hospitalDiagMap != null) {
|
|
|
List<String> diagnames = new ArrayList<>();
|
|
|
- for (Diag dg:diags) {
|
|
|
- if ("其他的".equals(dg.getHospitalDiagName())){
|
|
|
+ for (Diag dg : diags) {
|
|
|
+ if ("其他的".equals(dg.getHospitalDiagName())) {
|
|
|
continue;
|
|
|
}
|
|
|
- if (hospitalDiagMap.get(dg.getHospitalDiagName())==null) {
|
|
|
+ if (hospitalDiagMap.get(dg.getHospitalDiagName()) == null) {
|
|
|
diagnames.add(dg.getHospitalDiagName());
|
|
|
}
|
|
|
}
|
|
|
- if (diagnames.size()>0) {
|
|
|
+ if (diagnames.size() > 0) {
|
|
|
info.set(StringUtils.join(diagnames.toArray(), ","));
|
|
|
status.set("-1");
|
|
|
}
|