|
|
@@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.jeecg.common.exception.JeecgBootException;
|
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
|
+import org.jeecg.modules.medical.common.bo.DiagnosticInfoResponse;
|
|
|
import org.jeecg.modules.medical.common.bo.MedicalOrderInfoResponse;
|
|
|
import org.jeecg.modules.medical.common.bo.after.response.AfterwardsAuditDetailResponse;
|
|
|
import org.jeecg.common.util.oConvertUtils;
|
|
|
@@ -159,6 +160,9 @@ public class ViolationAnalysisServiceImpl implements IViolationAnalysisService {
|
|
|
}
|
|
|
result.setDescription(detailInfo.getDescription());
|
|
|
result.setViolationLevel(detailInfo.getReminderLevel());
|
|
|
+ result.setMedicalInsRuleInfoCode(detailInfo.getMedicalInsRuleInfoCode());
|
|
|
+ result.setMedicalInsRuleInfoName(detailInfo.getMedicalInsRuleInfoName());
|
|
|
+ result.setCreateTime(detailInfo.getCreateTime());
|
|
|
// 构建违规项目/药品明细
|
|
|
ViolationsProjectMedicinesDetail v = new ViolationsProjectMedicinesDetail();
|
|
|
v.setMedicalProjectCode(detailInfo.getMedicalInsRuleInfoCode());
|
|
|
@@ -193,8 +197,8 @@ public class ViolationAnalysisServiceImpl implements IViolationAnalysisService {
|
|
|
midAuditDoctorInfo.setFeedbackResult(detailInfo.getFeedbackResult());
|
|
|
result.setDoctorInfo(midAuditDoctorInfo);
|
|
|
// 构建诊断信息
|
|
|
-
|
|
|
-
|
|
|
+ List<DiagnosticInfoResponse> diagnosticInfoList = midIncidentAuditService.loadDiagnosticInfo(detailInfo.getMidIncidentAuditId());
|
|
|
+ result.setDiagnosticInfoList(diagnosticInfoList);
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
@@ -235,13 +239,24 @@ public class ViolationAnalysisServiceImpl implements IViolationAnalysisService {
|
|
|
result.setViolationLevel(detailInfo.getReminderLevel());
|
|
|
result.setMedicalInsRuleInfoCode(detailInfo.getMedicalInsRuleInfoCode());
|
|
|
result.setMedicalInsRuleInfoName(detailInfo.getMedicalInsRuleInfoName());
|
|
|
- List<PrescriptionDetail> prescriptionDetails = advanceWarningAuditService.listPrescriptionsByCase(detailInfo.getOutpatientNumber(), detailInfo.getTreatmentType());
|
|
|
+ result.setCreateTime(detailInfo.getCreateTime());
|
|
|
+ //构建药品信息
|
|
|
+// List<PrescriptionDetail> prescriptionDetails = advanceWarningAuditService.listPrescriptionsByCase(detailInfo.getOutpatientNumber(), detailInfo.getTreatmentType());
|
|
|
+ List<PrescriptionDetail> prescriptionDetails = advanceWarningAuditService.listPrescriptionsByCaseAndPatientId(detailInfo.getPatientId(), detailInfo.getTreatmentType());
|
|
|
if (oConvertUtils.isNotEmpty(prescriptionDetails)) {
|
|
|
+ prescriptionDetails = prescriptionDetails.stream().map(item -> {
|
|
|
+ item.setDepartment(detailInfo.getMedicalDeptName());
|
|
|
+ item.setDoctorId(detailInfo.getDoctorId());
|
|
|
+ item.setDoctorName(detailInfo.getDoctorName());
|
|
|
+ return item;
|
|
|
+ }).collect(Collectors.toList());
|
|
|
result.setPrescriptionDetail(prescriptionDetails);
|
|
|
}
|
|
|
// 构建患者信息
|
|
|
- PatientInformationResponse patientInformationResponse =
|
|
|
- midIncidentAuditDetailService.loadPatientInfoById(detailInfo.getId().toString());
|
|
|
+// PatientInformationResponse patientInformationResponse =
|
|
|
+// midIncidentAuditDetailService.loadPatientInfoById(detailInfo.getId().toString());
|
|
|
+ PatientInformationResponse patientInformationResponse = afterwardsAuditDetailService.loadPatientInfoById(detailInfo.getId(), afterwardsAuditService);
|
|
|
+ patientInformationResponse.setPatientName(detailInfo.getPatientName());
|
|
|
result.setPatientInfo(patientInformationResponse);
|
|
|
// 构建医生信息
|
|
|
MidAuditDoctorInfo midAuditDoctorInfo = new MidAuditDoctorInfo();
|
|
|
@@ -294,7 +309,7 @@ public class ViolationAnalysisServiceImpl implements IViolationAnalysisService {
|
|
|
List<ViolationsProjectMedicinesDetail> violationsProjectMedicinesDetails = new ArrayList<>();
|
|
|
violationsProjectMedicinesDetails.add(v);
|
|
|
result.setLists(violationsProjectMedicinesDetails);
|
|
|
- PatientInformationResponse patientInformationResponse = afterwardsAuditDetailService.loadPatientInfoById(detailInfo.getAfterwardsAuditId().toString(), afterwardsAuditService);
|
|
|
+ PatientInformationResponse patientInformationResponse = afterwardsAuditDetailService.loadPatientInfoById(detailInfo.getAfterwardsAuditId(), afterwardsAuditService);
|
|
|
// 构建患者信息
|
|
|
// PatientInformationResponse patientInformationResponse =
|
|
|
// midIncidentAuditDetailService.loadPatientInfoById(detailInfo.getMidIncidentAuditId().toString(), midIncidentAuditService);
|