Uat_Study
he 2023-07-03 10:24:09 +08:00
parent f904ca8f11
commit d71286b265
2 changed files with 10 additions and 1 deletions

View File

@ -337,6 +337,15 @@ namespace IRaCIS.Core.Application.Service
}
if (clinicalForm.CheckDate != null)
{
if (await _readModuleRepository.AnyAsync(x => x.SubjectVisit.LatestScanDate <= clinicalForm.CheckDate && x.IsCRCConfirm))
{
throw new BusinessValidationFailedException("无法添加和修改当前日期的临床数据因为CRC已经确认");
}
}
List<ClinicalQuestionAnswer> clinicalQuestionAnswers = inDto.QuestionAnswers.Select(x => new ClinicalQuestionAnswer()
{
Answer=x.Answer,

View File

@ -27,7 +27,7 @@ namespace IRaCIS.Core.Domain.Models
/// <summary>
/// 检查日期
/// </summary>
public DateTime CheckDate { get; set; }
public DateTime? CheckDate { get; set; }
/// <summary>
/// 创建日期