Uat_Study
parent
711fc43008
commit
5359e61c81
|
@ -253,6 +253,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
public Guid RowId { get; set; }
|
public Guid RowId { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class ReadClinicalDataInDto
|
||||||
|
{
|
||||||
|
[NotDefault]
|
||||||
|
public Guid VisitTaskId { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
public class GetReadingToolInDto
|
public class GetReadingToolInDto
|
||||||
{
|
{
|
||||||
|
|
|
@ -114,6 +114,20 @@ namespace IRaCIS.Application.Services
|
||||||
this._trialEmailNoticeConfigService = trialEmailNoticeConfigService;
|
this._trialEmailNoticeConfigService = trialEmailNoticeConfigService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 阅读临床数据
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="inDto"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpPost]
|
||||||
|
public async Task ReadClinicalData(ReadClinicalDataInDto inDto)
|
||||||
|
{
|
||||||
|
await _visitTaskRepository.UpdatePartialFromQueryAsync(inDto.VisitTaskId, x => new VisitTask
|
||||||
|
{
|
||||||
|
IsReadClinicalData = true
|
||||||
|
});
|
||||||
|
await _visitTaskRepository.SaveChangesAsync();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 添加默认值到任务里面
|
/// 添加默认值到任务里面
|
||||||
|
@ -1097,7 +1111,19 @@ namespace IRaCIS.Application.Services
|
||||||
|
|
||||||
await _readingCalculateService.VerifyVisitTaskQuestions(inDto);
|
await _readingCalculateService.VerifyVisitTaskQuestions(inDto);
|
||||||
|
|
||||||
//await _readingCalculateService.VerifyVisitTaskQuestions(inDto);
|
if ((await _readingClinicalDataService.GetClinicalDataList(new GetReadingOrTaskClinicalDataListInDto()
|
||||||
|
{
|
||||||
|
|
||||||
|
SubjectId = taskInfo.SubjectId,
|
||||||
|
TrialId = taskInfo.TrialId,
|
||||||
|
VisitTaskId = taskInfo.Id,
|
||||||
|
})).Count() > 0 && !taskInfo.IsReadClinicalData)
|
||||||
|
{
|
||||||
|
throw new BusinessValidationFailedException($"临床数据未阅读!");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return ResponseOutput.Ok(true);
|
return ResponseOutput.Ok(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -169,6 +169,11 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool? IsGlobalHaveUpdate { get; set; }
|
public bool? IsGlobalHaveUpdate { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 是否阅读临床数据
|
||||||
|
/// </summary>
|
||||||
|
public bool IsReadClinicalData { get; set; } = false;
|
||||||
|
|
||||||
|
|
||||||
#region 裁判任务特有
|
#region 裁判任务特有
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue