修改
This commit is contained in:
@@ -51,6 +51,26 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||
public string Answer { get; set; }
|
||||
}
|
||||
|
||||
public class GetOncologyReadingInfoOutDto
|
||||
{
|
||||
public Guid VisitTaskId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 评估结果
|
||||
/// </summary>
|
||||
public string EvaluationResult { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 评估原因
|
||||
/// </summary>
|
||||
public string EvaluationReason { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class GetOncologyReadingInfoInDto
|
||||
{
|
||||
public Guid VisitTaskId { get; set; }
|
||||
}
|
||||
|
||||
public class GetGlobalReadingInfoInDto
|
||||
{
|
||||
public Guid VisitTaskId { get; set; }
|
||||
|
||||
@@ -87,6 +87,13 @@ namespace IRaCIS.Application.Services
|
||||
this._readingQuestionTrialRepository = readingQuestionTrialRepository;
|
||||
}
|
||||
|
||||
#region 肿瘤学阅片相关
|
||||
//public async Task<GetOncologyReadingInfoOutDto> GetOncologyReadingInfo(GetOncologyReadingInfoInDto inDto)
|
||||
//{
|
||||
|
||||
//}
|
||||
#endregion
|
||||
|
||||
#region 全局阅片相关
|
||||
/// <summary>
|
||||
/// 保存全局阅片结果
|
||||
|
||||
@@ -381,6 +381,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
}
|
||||
|
||||
|
||||
public bool IsClinicalReading { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 仲裁阅片
|
||||
@@ -641,9 +642,9 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
public class SetOncologySetInDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 项目标准ID
|
||||
/// 项目ID
|
||||
/// </summary>
|
||||
public Guid TrialCriterionId { get; set; }
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 评估结果
|
||||
@@ -671,7 +672,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
|
||||
public class GetOncologySetInDto
|
||||
{
|
||||
public Guid TrialCriterionId { get; set; }
|
||||
public Guid TrialId { get; set; }
|
||||
}
|
||||
|
||||
public class GetTrialReadingInfoInDto
|
||||
|
||||
@@ -121,7 +121,7 @@ namespace IRaCIS.Core.Application
|
||||
[HttpPost]
|
||||
public async Task<GetOncologySetOutDto> GetOncologySet(GetOncologySetInDto inDto)
|
||||
{
|
||||
var trialCriterion = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == inDto.TrialCriterionId && x.IsConfirm).FirstOrDefaultAsync();
|
||||
var trialCriterion = await _readingQuestionCriterionTrialRepository.Where(x => x.TrialId == inDto.TrialId && x.IsConfirm).FirstOrDefaultAsync();
|
||||
if (trialCriterion == null)
|
||||
{
|
||||
throw new BusinessValidationFailedException("请先确认一个项目标准。");
|
||||
@@ -140,14 +140,21 @@ namespace IRaCIS.Core.Application
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task SetOncologySet(SetOncologySetInDto inDto)
|
||||
public async Task<IResponseOutput> SetOncologySet(SetOncologySetInDto inDto)
|
||||
{
|
||||
await _readingQuestionCriterionTrialRepository.UpdatePartialFromQueryAsync(inDto.TrialCriterionId, x => new ReadingQuestionCriterionTrial()
|
||||
var trialCriterion = await _readingQuestionCriterionTrialRepository.Where(x => x.TrialId == inDto.TrialId && x.IsConfirm).FirstOrDefaultAsync();
|
||||
if (trialCriterion == null)
|
||||
{
|
||||
throw new BusinessValidationFailedException("请先确认一个项目标准。");
|
||||
}
|
||||
await _readingQuestionCriterionTrialRepository.UpdatePartialFromQueryAsync(trialCriterion.Id, x => new ReadingQuestionCriterionTrial()
|
||||
{
|
||||
EvaluationResult = inDto.EvaluationResult,
|
||||
EvaluationReason = inDto.EvaluationReason,
|
||||
|
||||
});
|
||||
|
||||
var result = await _readingQuestionCriterionTrialRepository.SaveChangesAsync();
|
||||
return ResponseOutput.Ok(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user