Uat_Study
parent
d3f4e024e8
commit
3898f1d63f
|
@ -239,7 +239,7 @@ namespace IRaCIS.Application.Services
|
|||
{
|
||||
var visitTaskInfo = await _visitTaskRepository.Where(x => x.Id == indto.VisitTaskId).FirstNotNullAsync();
|
||||
GetReadingToolOutDto result = new GetReadingToolOutDto();
|
||||
result.ReadingTool = await _trialRepository.Where(x => x.Id == visitTaskInfo.TrialId).Select(x => x.ReadingTool).FirstOrDefaultAsync();
|
||||
result.ReadingTool = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == visitTaskInfo.TrialReadingCriterionId).Select(x => x.ReadingTool).FirstOrDefaultAsync();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -1353,15 +1353,15 @@ namespace IRaCIS.Application.Services
|
|||
task.SubjectCode = visitTaskInfo.BlindSubjectCode.IsNullOrEmpty() ? task.SubjectCode : visitTaskInfo.BlindSubjectCode;
|
||||
|
||||
|
||||
var trialInfo = await _trialRepository.Where(x => x.Id == visitTaskInfo.TrialId).Select(x => new
|
||||
var criterionInfo = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == visitTaskInfo.TrialReadingCriterionId).Select(x => new
|
||||
{
|
||||
x.IsReadingShowPreviousResults,
|
||||
x.IsReadingShowSubjectInfo,
|
||||
x.ClinicalInformationTransmissionEnum,
|
||||
|
||||
}).FirstOrDefaultAsync();
|
||||
|
||||
task.IsReadingShowPreviousResults = trialInfo.IsReadingShowPreviousResults;
|
||||
task.IsReadingShowSubjectInfo = trialInfo.IsReadingShowSubjectInfo;
|
||||
task.IsReadingShowPreviousResults = criterionInfo.IsReadingShowPreviousResults;
|
||||
task.IsReadingShowSubjectInfo = criterionInfo.IsReadingShowSubjectInfo;
|
||||
|
||||
|
||||
|
||||
|
@ -1397,11 +1397,19 @@ namespace IRaCIS.Application.Services
|
|||
List<NoneDicomStudyView> result = await _noneDicomStudyRepository.Where(t => visitIds.Contains(t.SubjectVisitId))
|
||||
.ProjectTo<NoneDicomStudyView>(_mapper.ConfigurationProvider, new { token = _userInfo.UserToken }).ToListAsync();
|
||||
|
||||
var taskinfo=await _visitTaskRepository.Where(x=>x.Id==inDto.VisistTaskId).FirstNotNullAsync();
|
||||
|
||||
var trialInfo = await _trialRepository.Where(x => x.Id == inDto.TrialId).Select(x => new
|
||||
{
|
||||
x.ClinicalInformationTransmissionEnum,
|
||||
}).FirstOrDefaultAsync();
|
||||
|
||||
|
||||
var criterionInfo = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == taskinfo.TrialReadingCriterionId).Select(x => new
|
||||
{
|
||||
x.IsReadingShowPreviousResults,
|
||||
x.IsReadingShowSubjectInfo,
|
||||
x.ClinicalInformationTransmissionEnum,
|
||||
|
||||
}).FirstOrDefaultAsync();
|
||||
|
||||
#region 临床数据
|
||||
|
@ -1429,8 +1437,8 @@ namespace IRaCIS.Application.Services
|
|||
SubjectCode = taskInfo.BlindSubjectCode.IsNullOrEmpty() ? task.SubjectCode : taskInfo.BlindSubjectCode,
|
||||
ReadingCategory = task.ReadingCategory,
|
||||
TaskBlindName = task.TaskBlindName,
|
||||
IsReadingShowPreviousResults = trialInfo.IsReadingShowPreviousResults,
|
||||
IsReadingShowSubjectInfo = trialInfo.IsReadingShowSubjectInfo,
|
||||
IsReadingShowPreviousResults = criterionInfo.IsReadingShowPreviousResults,
|
||||
IsReadingShowSubjectInfo = criterionInfo.IsReadingShowSubjectInfo,
|
||||
IsExistsClinicalData = isExistsClinicalData,
|
||||
});
|
||||
}
|
||||
|
|
|
@ -757,14 +757,14 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
public bool IsSignSave { get; set; } = false;
|
||||
}
|
||||
|
||||
public class SetTrialReadingInfoInDto
|
||||
public class SetCriterionReadingInfoInDto
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 项目ID
|
||||
/// 项目标准ID
|
||||
/// </summary>
|
||||
public Guid TrialId { get; set; }
|
||||
public Guid TrialCriterionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 阅片工具
|
||||
|
@ -775,7 +775,7 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
/// <summary>
|
||||
/// 阅片平台
|
||||
/// </summary>
|
||||
public int ImagePlatform { get; set; } = 1;
|
||||
public ImagePlatform ImagePlatform { get; set; } = ImagePlatform.MINT;
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -312,15 +312,15 @@ namespace IRaCIS.Core.Application
|
|||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<IResponseOutput> SetTrialReadingInfo(SetTrialReadingInfoInDto inDto)
|
||||
public async Task<IResponseOutput> SetCriterionReadingInfo(SetCriterionReadingInfoInDto inDto)
|
||||
{
|
||||
await _trialRepository.UpdatePartialFromQueryAsync(inDto.TrialId, x => new Trial()
|
||||
await _readingQuestionCriterionTrialRepository.UpdatePartialFromQueryAsync(inDto.TrialCriterionId, x => new ReadingQuestionCriterionTrial()
|
||||
{
|
||||
ReadingTool=inDto.ReadingTool,
|
||||
//DigitPlaces=inDto.DigitPlaces,
|
||||
IsReadingTaskViewInOrder=inDto.IsReadingTaskViewInOrder,
|
||||
ReadingTaskViewEnum = inDto.ReadingTaskViewEnum,
|
||||
IsImageIabeled = inDto.IsImageIabeled,
|
||||
//IsImageIabeled = inDto.IsImageIabeled,
|
||||
IsReadingShowSubjectInfo = inDto.IsReadingShowSubjectInfo,
|
||||
IsReadingShowPreviousResults = inDto.IsReadingShowPreviousResults,
|
||||
ImagePlatform=inDto.ImagePlatform,
|
||||
|
|
|
@ -171,7 +171,7 @@ namespace IRaCIS.Core.Domain.Models
|
|||
public bool IsOncologyReading { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务展示访视
|
||||
/// 任务展示访视 读片任务显示是否顺序
|
||||
/// </summary>
|
||||
public bool IsReadingTaskViewInOrder { get; set; } = true;
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace IRaCIS.Core.Domain.Models
|
|||
[JsonIgnore]
|
||||
public List<TrialSiteSurvey> TrialSiteSurveyList { get; set; } = new List<TrialSiteSurvey>();
|
||||
|
||||
[JsonIgnore]
|
||||
[JsonIgnore]
|
||||
public List<TrialDocument> TrialDocumentList { get; set; }
|
||||
[JsonIgnore]
|
||||
public List<Enroll> EnrollList { get; set; } = new List<Enroll>();
|
||||
|
@ -216,33 +216,33 @@ namespace IRaCIS.Core.Domain.Models
|
|||
public bool IsSubjectSecondCodeView { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 1 Mint、2 PACS
|
||||
/// </summary>
|
||||
///// <summary>
|
||||
///// 1 Mint、2 PACS
|
||||
///// </summary>
|
||||
|
||||
public int ImagePlatform { get; set; } = 1;
|
||||
//public int ImagePlatform { get; set; } = 1;
|
||||
|
||||
//阅片方式
|
||||
public int ReadingMode { get; set; } = 1;
|
||||
|
||||
//阅片类型
|
||||
public ReadingMethod ReadingType { get; set; } = ReadingMethod.Double;
|
||||
////阅片类型
|
||||
//public ReadingMethod ReadingType { get; set; } = ReadingMethod.Double;
|
||||
|
||||
|
||||
public bool IsGlobalReading { get; set; } = true;
|
||||
//public bool IsGlobalReading { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 仲裁阅片
|
||||
/// </summary>
|
||||
public bool? IsArbitrationReading { get; set; } = true;
|
||||
///// <summary>
|
||||
///// 仲裁阅片
|
||||
///// </summary>
|
||||
//public bool? IsArbitrationReading { get; set; } = true;
|
||||
|
||||
public bool IsClinicalReading { get; set; }
|
||||
//public bool IsClinicalReading { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 仲裁规则
|
||||
/// </summary>
|
||||
public ArbitrationRule ArbitrationRule { get; set; } = ArbitrationRule.None;
|
||||
///// <summary>
|
||||
///// 仲裁规则
|
||||
///// </summary>
|
||||
//public ArbitrationRule ArbitrationRule { get; set; } = ArbitrationRule.None;
|
||||
|
||||
|
||||
public int ChangeDefalutDays { get; set; } = 5;
|
||||
|
@ -356,22 +356,22 @@ namespace IRaCIS.Core.Domain.Models
|
|||
//后续全局自动分配默认状态
|
||||
public TaskAllocateDefaultState FollowGlobalVisitAutoAssignDefaultState { get; set; } = TaskAllocateDefaultState.Allocated;
|
||||
|
||||
//读片任务显示规则
|
||||
////读片任务显示规则
|
||||
|
||||
public ReadingTaskViewMethod ReadingTaskViewEnum { get; set; }
|
||||
//public ReadingTaskViewMethod ReadingTaskViewEnum { get; set; }
|
||||
|
||||
//读片任务显示是否顺序
|
||||
public bool IsReadingTaskViewInOrder { get; set; } = true;
|
||||
////读片任务显示是否顺序
|
||||
//public bool IsReadingTaskViewInOrder { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 阅片是否显示受试者信息
|
||||
/// </summary>
|
||||
public bool IsReadingShowSubjectInfo { get; set; } = false;
|
||||
///// <summary>
|
||||
///// 阅片是否显示受试者信息
|
||||
///// </summary>
|
||||
//public bool IsReadingShowSubjectInfo { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 阅片是否显示既往结果
|
||||
/// </summary>
|
||||
public bool IsReadingShowPreviousResults { get; set; } = false;
|
||||
///// <summary>
|
||||
///// 阅片是否显示既往结果
|
||||
///// </summary>
|
||||
//public bool IsReadingShowPreviousResults { get; set; } = false;
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
@ -396,10 +396,10 @@ namespace IRaCIS.Core.Domain.Models
|
|||
/// </summary>
|
||||
public DateTime? ReadingInfoSignTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 阅片工具
|
||||
/// </summary>
|
||||
public ReadingTool? ReadingTool { get; set; }
|
||||
///// <summary>
|
||||
///// 阅片工具
|
||||
///// </summary>
|
||||
//public ReadingTool? ReadingTool { get; set; }
|
||||
|
||||
//public Guid? ReviewTypeId { get; set; } = Guid.Empty;
|
||||
|
||||
|
|
Loading…
Reference in New Issue