|
@@ -6,13 +6,14 @@ import com.lantone.qc.pub.model.OutputInfo;
|
|
|
import com.lantone.qc.pub.model.doc.DeathRecordDoc;
|
|
|
import com.lantone.qc.pub.model.doc.LeaveHospitalDoc;
|
|
|
import com.lantone.qc.pub.model.label.DiagLabel;
|
|
|
+import com.lantone.qc.pub.util.StringUtil;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
- * @Description: 出院记录内容缺出院(死亡)诊断
|
|
|
+ * @Description: 出院记录内容缺出院(死亡)诊断 出院记录内容缺出院诊断
|
|
|
* @author: rengb
|
|
|
* @time: 2020/3/10 13:53
|
|
|
*/
|
|
@@ -21,22 +22,25 @@ public class LEA0154 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();
|
|
|
- if (deathRecordDoc == null || deathRecordDoc.getText() == null) {
|
|
|
- Map<String, String> structureMap = leaveHospitalDoc.getStructureMap();
|
|
|
- if(StringUtils.isNotEmpty(structureMap.get("出院诊断"))){
|
|
|
- return;
|
|
|
- }
|
|
|
- DiagLabel leaveDiagLabel = leaveHospitalDoc.getLeaveDiagLabel();
|
|
|
- if (leaveDiagLabel != null) {
|
|
|
- if (StringUtils.isBlank(leaveDiagLabel.getText())) {
|
|
|
- status.set("-1");
|
|
|
- }
|
|
|
+ if (deathRecordDoc != null) {
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ Map<String, String> structureMap = leaveHospitalDoc.getStructureMap();
|
|
|
+ if (StringUtils.isNotEmpty(structureMap.get("出院诊断"))) {
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ DiagLabel leaveDiagLabel = leaveHospitalDoc.getLeaveDiagLabel();
|
|
|
+ if (leaveDiagLabel != null) {
|
|
|
+ if (StringUtil.isNotBlank(leaveDiagLabel.getText())) {
|
|
|
+ status.set("0");
|
|
|
}
|
|
|
}
|
|
|
}
|