diff --git a/IRaCIS.Core.Application/Resources/en-US.json b/IRaCIS.Core.Application/Resources/en-US.json index 35ed4b063..63ee7c8da 100644 --- a/IRaCIS.Core.Application/Resources/en-US.json +++ b/IRaCIS.Core.Application/Resources/en-US.json @@ -91,6 +91,7 @@ "ReadingMed_NoMedQ": "Medical review question has not been added yet. Please add it first before confirming", "ReadingMed_MedQNumDup": "The display number of the medical imaging review question cannot be duplicated.", "ReadingMed_ParentNumSmall": "The display number of the parent question should be smaller than that of the child question, please confirm.", + "ReadingMed_VisitQNotConfig": "This review criteria has no medical review questions for 'visit'", "ReadingMed_GlobalQNotConfig": "The global review read is enabled in the current criterion, but has not configured with medical review questions", "ReadingMed_ArbitrateQNotConfig": "Adjudication review reading is enabled in the current criterion, but has not configured with medical review questions", "ReadingMed_TumorQNotConfig": "Oncology reading is enabled in the current criterion, but the oncology medical review question has not been configured", diff --git a/IRaCIS.Core.Application/Resources/zh-CN.json b/IRaCIS.Core.Application/Resources/zh-CN.json index 81fcacdc3..30eabe946 100644 --- a/IRaCIS.Core.Application/Resources/zh-CN.json +++ b/IRaCIS.Core.Application/Resources/zh-CN.json @@ -91,6 +91,7 @@ "ReadingMed_NoMedQ": "当前未添加医学审核问题。请先添加医学审核问题,再进行确认。", "ReadingMed_MedQNumDup": "影像医学审核问题显示序号不能重复。", "ReadingMed_ParentNumSmall": "父问题的显示序号要比子问题的显示序号小,请确认。", + "ReadingMed_VisitQNotConfig": "当前标准未配置访视医学审核问题。", "ReadingMed_GlobalQNotConfig": "当前标准启用了全局阅片,但未配置全局医学审核问题", "ReadingMed_ArbitrateQNotConfig": "当前标准启用了仲裁阅片,但未配置仲裁医学审核问题", "ReadingMed_TumorQNotConfig": "当前标准启用了肿瘤学阅片,但未配置肿瘤学医学审核问题", diff --git a/IRaCIS.Core.Application/Service/Reading/MedicalAudit/ReadingMedicineQuestionService.cs b/IRaCIS.Core.Application/Service/Reading/MedicalAudit/ReadingMedicineQuestionService.cs index f903e9ff2..f3384a70f 100644 --- a/IRaCIS.Core.Application/Service/Reading/MedicalAudit/ReadingMedicineQuestionService.cs +++ b/IRaCIS.Core.Application/Service/Reading/MedicalAudit/ReadingMedicineQuestionService.cs @@ -329,9 +329,13 @@ namespace IRaCIS.Core.Application.Service + if (!readingMedicineQuestionList.Any(x => x.ReadingCategory == ReadingCategory.Visit)) + { + + throw new BusinessValidationFailedException(_localizer["ReadingMed_VisitQNotConfig"]); + } - - if (criterionInfo.IsGlobalReading && !readingMedicineQuestionList.Any(x => x.ReadingCategory == ReadingCategory.Global)) + if (criterionInfo.IsGlobalReading && !readingMedicineQuestionList.Any(x => x.ReadingCategory == ReadingCategory.Global)) { //---当前标准启用了全局阅片,但未配置全局医学审核问题 throw new BusinessValidationFailedException(_localizer["ReadingMed_GlobalQNotConfig"]); diff --git a/后端提示语.xlsx b/后端提示语.xlsx index d08783def..369ebef90 100644 Binary files a/后端提示语.xlsx and b/后端提示语.xlsx differ