|
@@ -35,6 +35,7 @@ import com.diagbot.vo.GetEntryDefectImproveVO;
|
|
import com.diagbot.vo.GetQcClickInnerPageVO;
|
|
import com.diagbot.vo.GetQcClickInnerPageVO;
|
|
import com.diagbot.vo.GetQcClickVO;
|
|
import com.diagbot.vo.GetQcClickVO;
|
|
import com.diagbot.vo.MedClickInfoVO;
|
|
import com.diagbot.vo.MedClickInfoVO;
|
|
|
|
+import org.apache.commons.collections4.MapUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Qualifier;
|
|
import org.springframework.beans.factory.annotation.Qualifier;
|
|
@@ -121,7 +122,7 @@ public class DataAnalysisFacade {
|
|
StringBuilder sbFir = new StringBuilder();
|
|
StringBuilder sbFir = new StringBuilder();
|
|
for (QcresultDetail qcresultDetail : list) {
|
|
for (QcresultDetail qcresultDetail : list) {
|
|
if (1 == qcresultDetail.getGradeType()) {
|
|
if (1 == qcresultDetail.getGradeType()) {
|
|
- if (null != qcresultDetail.getCasesEntryId()) {
|
|
|
|
|
|
+ if (null != qcresultDetail.getCasesEntryId() && 0L != qcresultDetail.getCasesEntryId()) {
|
|
sbFir.append(qcresultDetail.getCasesEntryId() + "、");
|
|
sbFir.append(qcresultDetail.getCasesEntryId() + "、");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -298,11 +299,13 @@ public class DataAnalysisFacade {
|
|
for (BehospitalCodeInfo behospitalCodeInfo : behospitalCodeInfoList) {
|
|
for (BehospitalCodeInfo behospitalCodeInfo : behospitalCodeInfoList) {
|
|
//病历下
|
|
//病历下
|
|
List<QcResultDetailInfo> qcResultDetailInfos = behospitalCodeInfo.getQcResultDetailInfos();
|
|
List<QcResultDetailInfo> qcResultDetailInfos = behospitalCodeInfo.getQcResultDetailInfos();
|
|
- //获取多病历多质控质控缺陷总量
|
|
|
|
- totalMap = getEntryTotalMap(qcResultDetailInfos, totalMap);
|
|
|
|
- //获取多病历多质控质控缺陷待改善总量
|
|
|
|
- QcResultDetailInfo qcResultDetailInfo = qcResultDetailInfos.get(qcResultDetailInfos.size() - 1);
|
|
|
|
- improveleMap = getEntryImproveleMap(qcResultDetailInfo, improveleMap);
|
|
|
|
|
|
+ //获取多病历多质控质控缺陷总量
|
|
|
|
+ totalMap = getEntryTotalMap(qcResultDetailInfos, totalMap);
|
|
|
|
+ if (MapUtils.isNotEmpty(totalMap)) {
|
|
|
|
+ //获取多病历多质控质控缺陷待改善总量
|
|
|
|
+ QcResultDetailInfo qcResultDetailInfo = qcResultDetailInfos.get(qcResultDetailInfos.size() - 1);
|
|
|
|
+ improveleMap = getEntryImproveleMap(qcResultDetailInfo, improveleMap);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -446,9 +449,12 @@ public class DataAnalysisFacade {
|
|
public static Map getEntryTotalMap(List<QcResultDetailInfo> qcResultDetailInfos, Map<String, Long> totalMap) {
|
|
public static Map getEntryTotalMap(List<QcResultDetailInfo> qcResultDetailInfos, Map<String, Long> totalMap) {
|
|
Set<String> totalSet = new HashSet<String>();
|
|
Set<String> totalSet = new HashSet<String>();
|
|
for (QcResultDetailInfo qcResultDetailInfo : qcResultDetailInfos) {
|
|
for (QcResultDetailInfo qcResultDetailInfo : qcResultDetailInfos) {
|
|
- //质控下获取科室下总缺陷
|
|
|
|
- String casesEntryIds = qcResultDetailInfo.getCasesEntryIds();
|
|
|
|
- totalSet = getSetEntry(casesEntryIds, totalSet);
|
|
|
|
|
|
+ //质控下获取科室下总缺陷
|
|
|
|
+ String casesEntryIds = qcResultDetailInfo.getCasesEntryIds();
|
|
|
|
+ totalSet = getSetEntry(casesEntryIds, totalSet);
|
|
|
|
+ }
|
|
|
|
+ if (null == totalSet && totalSet.size() == 0) {
|
|
|
|
+ return totalMap;
|
|
}
|
|
}
|
|
totalMap = getSetEntryCount(totalMap, totalSet);
|
|
totalMap = getSetEntryCount(totalMap, totalSet);
|
|
return totalMap;
|
|
return totalMap;
|
|
@@ -477,12 +483,14 @@ public class DataAnalysisFacade {
|
|
}
|
|
}
|
|
|
|
|
|
public static Map getSetEntryCount(Map<String, Long> map, Set<String> sets) {
|
|
public static Map getSetEntryCount(Map<String, Long> map, Set<String> sets) {
|
|
|
|
+ if (null != sets && sets.size() > 0) {
|
|
for (String set : sets) {
|
|
for (String set : sets) {
|
|
if (map.containsKey(set)) {
|
|
if (map.containsKey(set)) {
|
|
long count = map.get(set) + 1l;
|
|
long count = map.get(set) + 1l;
|
|
map.put(set, count);
|
|
map.put(set, count);
|
|
} else {
|
|
} else {
|
|
map.put(set, 1L);
|
|
map.put(set, 1L);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return map;
|
|
return map;
|
|
@@ -693,6 +701,15 @@ public class DataAnalysisFacade {
|
|
}
|
|
}
|
|
|
|
|
|
private void entryDefectInnerSet(GetEntryDefectImproveInnerVO getEntryDefectImproveInnerVO) {
|
|
private void entryDefectInnerSet(GetEntryDefectImproveInnerVO getEntryDefectImproveInnerVO) {
|
|
|
|
+ if(StringUtils.isNotBlank(getEntryDefectImproveInnerVO.getPatName())){
|
|
|
|
+ getEntryDefectImproveInnerVO.setPatName(transferredMeaning(getEntryDefectImproveInnerVO.getPatName()));
|
|
|
|
+ }
|
|
|
|
+ if(StringUtils.isNotBlank(getEntryDefectImproveInnerVO.getDoctorId())){
|
|
|
|
+ getEntryDefectImproveInnerVO.setDoctorId(transferredMeaning(getEntryDefectImproveInnerVO.getDoctorId()));
|
|
|
|
+ }
|
|
|
|
+ if(StringUtils.isNotBlank(getEntryDefectImproveInnerVO.getDoctorName())){
|
|
|
|
+ getEntryDefectImproveInnerVO.setDoctorName(transferredMeaning(getEntryDefectImproveInnerVO.getDoctorName()));
|
|
|
|
+ }
|
|
getEntryDefectImproveInnerVO.setCurrent(1L);
|
|
getEntryDefectImproveInnerVO.setCurrent(1L);
|
|
getEntryDefectImproveInnerVO.setSize(Long.MAX_VALUE);
|
|
getEntryDefectImproveInnerVO.setSize(Long.MAX_VALUE);
|
|
//入参验证
|
|
//入参验证
|