|
@@ -8,6 +8,7 @@ import com.lantone.qc.pub.model.InputInfo;
|
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
|
import com.lantone.qc.pub.model.entity.Diag;
|
|
|
import com.lantone.qc.pub.util.ListUtil;
|
|
|
+import com.lantone.qc.pub.util.StringUtil;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.List;
|
|
@@ -37,7 +38,14 @@ public class FIRP0175 extends QCCatalogue {
|
|
|
if (ListUtil.isEmpty(dischargeDiag) || ListUtil.isEmpty(leaveDiags)) {
|
|
|
return;
|
|
|
}
|
|
|
- String firstpageleaveDiag = dischargeDiag.get(0).get(Content.diagnoseName);
|
|
|
+ String firstpageleaveDiag = "";
|
|
|
+ for (Map<String, String> diag:dischargeDiag) {
|
|
|
+ String diagCategory = diag.get("诊断类别");
|
|
|
+ if (StringUtil.isNotBlank(diagCategory) && "主要诊断".equals(diagCategory)){
|
|
|
+ firstpageleaveDiag = diag.get(Content.diagnoseName);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
String leaveDiag = leaveDiags.get(0).getHospitalDiagName();
|
|
|
//判断是否有2型糖尿病这种病如果没有,把疾病前的数字去掉
|
|
|
if (!diags.contains(leaveDiag)) {
|