Uat_Study
parent
030703019e
commit
fbc2c6bd28
|
@ -174,8 +174,16 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
public string ValueCN { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class GetSystemGlobalInfoOutDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 是否必须全局阅片
|
||||
/// </summary>
|
||||
public bool IsMustGlobalReading { get; set; } = false;
|
||||
|
||||
public List<CriterionDictionaryInfo> DictionaryList { get; set; }
|
||||
}
|
||||
public class GetSystemOncologyInfoOutDto
|
||||
{
|
||||
public bool IsOncologyReading { get; set; }
|
||||
|
@ -183,6 +191,16 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
public List<CriterionDictionaryInfo> DictionaryList { get; set; }
|
||||
}
|
||||
|
||||
public class SetSystemGlobalInfoInDto
|
||||
{
|
||||
[NotDefault]
|
||||
public Guid SystemCriterionId { get; set; }
|
||||
|
||||
public bool IsMustGlobalReading { get; set; }
|
||||
|
||||
public List<Guid> DictionaryIds { get; set; }
|
||||
}
|
||||
|
||||
public class SetSystemOncologyInfoInDto
|
||||
{
|
||||
[NotDefault]
|
||||
|
|
|
@ -71,6 +71,55 @@ namespace IRaCIS.Core.Application.Service.RC
|
|||
return ResponseOutput.Ok();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置系统全局阅片阅片信息
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<IResponseOutput> SetSystemGlobalInfo(SetSystemGlobalInfoInDto inDto)
|
||||
{
|
||||
|
||||
await _readingCriterionDictionaryRepository.BatchDeleteNoTrackingAsync(x => x.CriterionId == inDto.SystemCriterionId && x.ParentCode == ReadingCommon.CriterionDictionary.GlobalAssess);
|
||||
|
||||
await _readingCriterionDictionaryRepository.AddRangeAsync(inDto.DictionaryIds.Select(x => new ReadingCriterionDictionary
|
||||
{
|
||||
CriterionId = inDto.SystemCriterionId,
|
||||
DictionaryId = x,
|
||||
IsSystemCriterion = true,
|
||||
ParentCode = ReadingCommon.CriterionDictionary.GlobalAssess
|
||||
}));
|
||||
|
||||
await _readingQuestionCriterionSystemRepository.UpdatePartialFromQueryAsync(inDto.SystemCriterionId, x => new ReadingQuestionCriterionSystem()
|
||||
{
|
||||
IsMustGlobalReading = inDto.IsMustGlobalReading
|
||||
|
||||
});
|
||||
|
||||
var result = await _readingQuestionCriterionTrialRepository.SaveChangesAsync();
|
||||
|
||||
return ResponseOutput.Ok(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取系统全局阅片信息
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<GetSystemGlobalInfoOutDto> GetSystemGlobalInfo(GetSystemOncologyInfoInDto inDto)
|
||||
{
|
||||
GetSystemGlobalInfoOutDto result = new GetSystemGlobalInfoOutDto()
|
||||
{
|
||||
IsMustGlobalReading = await _readingQuestionCriterionSystemRepository.Where(x => x.Id == inDto.SystemCriterionId).Select(x => x.IsMustGlobalReading).FirstOrDefaultAsync(),
|
||||
DictionaryList = await _readingCriterionDictionaryRepository.AsQueryable().Where(x => x.CriterionId == inDto.SystemCriterionId && x.ParentCode == ReadingCommon.CriterionDictionary.OncologyAssess)
|
||||
.ProjectTo<CriterionDictionaryInfo>(_mapper.ConfigurationProvider).OrderBy(x => x.ShowOrder).ToListAsync()
|
||||
|
||||
};
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取系统肿瘤信息
|
||||
/// </summary>
|
||||
|
|
|
@ -697,6 +697,12 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 是否必须全局阅片
|
||||
/// </summary>
|
||||
public bool IsMustGlobalReading { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 修约小数点
|
||||
/// </summary>
|
||||
|
|
|
@ -392,8 +392,7 @@ namespace IRaCIS.Core.Application
|
|||
result.TrialCriterionId = trialCriterion.Id;
|
||||
result.FormType = trialCriterion.FormType;
|
||||
result.IsFromSystem = trialCriterion.ReadingQuestionCriterionSystemId != null;
|
||||
|
||||
|
||||
result.IsMustGlobalReading = trialCriterion.IsMustGlobalReading;
|
||||
result.IsSystemCriterion = trialCriterion.ReadingQuestionCriterionSystemId != null;
|
||||
};
|
||||
|
||||
|
|
|
@ -65,6 +65,11 @@ namespace IRaCIS.Core.Domain.Models
|
|||
/// </summary>
|
||||
public bool IsOncologyReading { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 是否必须全局阅片
|
||||
/// </summary>
|
||||
public bool IsMustGlobalReading { get; set; } = false;
|
||||
|
||||
[JsonIgnore]
|
||||
public List<ReadingQuestionSystem> ReadingQuestionSystemList { get; set; } = new List<ReadingQuestionSystem>();
|
||||
|
||||
|
|
|
@ -210,6 +210,11 @@ namespace IRaCIS.Core.Domain.Models
|
|||
/// </summary>
|
||||
public DateTime? ReadingInfoSignTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否必须全局阅片
|
||||
/// </summary>
|
||||
public bool IsMustGlobalReading { get; set; } = false;
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue