|
|
@ -450,6 +450,7 @@ public class AskDiagnosisResultServiceImpl implements AskDiagnosisResultService
|
|
|
|
// 查询用户填写的治疗计划(包含处置计划和用药计划)
|
|
|
|
// 查询用户填写的治疗计划(包含处置计划和用药计划)
|
|
|
|
List<TreatmentPlanRecord> userTreatmentPlanRecordList = treatmentPlanRecordService.lambdaQuery().eq(TreatmentPlanRecord::getProcessId, process.getId()).list();
|
|
|
|
List<TreatmentPlanRecord> userTreatmentPlanRecordList = treatmentPlanRecordService.lambdaQuery().eq(TreatmentPlanRecord::getProcessId, process.getId()).list();
|
|
|
|
int userTreatmentPlanCount = userTreatmentPlanRecordList.size();
|
|
|
|
int userTreatmentPlanCount = userTreatmentPlanRecordList.size();
|
|
|
|
|
|
|
|
|
|
|
|
// 2. 查询出疾病处置计划(疾病配置的处置计划)
|
|
|
|
// 2. 查询出疾病处置计划(疾病配置的处置计划)
|
|
|
|
List<DiseaseTreatmentPlanResVo> diseaseTreatmentPlanResVos = diseaseTreatmentPlanService.queryListByDiseaseId(process.getDiseaseId());
|
|
|
|
List<DiseaseTreatmentPlanResVo> diseaseTreatmentPlanResVos = diseaseTreatmentPlanService.queryListByDiseaseId(process.getDiseaseId());
|
|
|
|
Set<String> treatmentPlanIdSet = diseaseTreatmentPlanResVos.stream().map(DiseaseTreatmentPlanResVo::getTreatmentPlanId).collect(Collectors.toSet());
|
|
|
|
Set<String> treatmentPlanIdSet = diseaseTreatmentPlanResVos.stream().map(DiseaseTreatmentPlanResVo::getTreatmentPlanId).collect(Collectors.toSet());
|
|
|
@ -457,9 +458,12 @@ public class AskDiagnosisResultServiceImpl implements AskDiagnosisResultService
|
|
|
|
// 3. 查出疾病处置计划用药(疾病配置的用药计划)
|
|
|
|
// 3. 查出疾病处置计划用药(疾病配置的用药计划)
|
|
|
|
List<DiseaseTreatmentPlanDrug> diseaseTreatmentPlanDrugList = diseaseTreatmentPlanDrugService.lambdaQuery().eq(DiseaseTreatmentPlanDrug::getDiseaseId, process.getDiseaseId()).list();
|
|
|
|
List<DiseaseTreatmentPlanDrug> diseaseTreatmentPlanDrugList = diseaseTreatmentPlanDrugService.lambdaQuery().eq(DiseaseTreatmentPlanDrug::getDiseaseId, process.getDiseaseId()).list();
|
|
|
|
Set<String> drugIdSet = diseaseTreatmentPlanDrugList.stream().map(DiseaseTreatmentPlanDrug::getDrugId).collect(Collectors.toSet());
|
|
|
|
Set<String> drugIdSet = diseaseTreatmentPlanDrugList.stream().map(DiseaseTreatmentPlanDrug::getDrugId).collect(Collectors.toSet());
|
|
|
|
// 疾病配置的治疗计划总数
|
|
|
|
|
|
|
|
|
|
|
|
// 计算总数时,只看疾病配置的处置计划(用药计划来自于处置计划)
|
|
|
|
|
|
|
|
int medicalCount = diseaseTreatmentPlanResVos.size();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 疾病配置的治疗计划ID集合,用来计算命中的数量
|
|
|
|
Collection<String> planIdSet = CollUtil.union(treatmentPlanIdSet, drugIdSet);
|
|
|
|
Collection<String> planIdSet = CollUtil.union(treatmentPlanIdSet, drugIdSet);
|
|
|
|
int medicalCount = planIdSet.size();
|
|
|
|
|
|
|
|
int hitPlanCount = 0;
|
|
|
|
int hitPlanCount = 0;
|
|
|
|
for (TreatmentPlanRecord treatmentPlanRecord : userTreatmentPlanRecordList) {
|
|
|
|
for (TreatmentPlanRecord treatmentPlanRecord : userTreatmentPlanRecordList) {
|
|
|
|
// 需要分别看是否是药物计划
|
|
|
|
// 需要分别看是否是药物计划
|
|
|
|