Merge branch '中心影像_Test环境' of http://192.168.1.2:8033/IRaCIS_Core_Api into 中心影像_Test环境
This commit is contained in:
@@ -327,7 +327,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
var tableQuestions = await _trialClinicalTableQuestionRepository.Where(x => x.TrialClinicalId == formInfo.ClinicalDataTrialSetId)
|
||||
.ProjectTo<ClinicalTablePreviewDto>(_mapper.ConfigurationProvider).ToListAsync();
|
||||
|
||||
|
||||
questions.ForEach(x => x.CreateTime = formInfo.CreateTime);
|
||||
var result = questions.Where(x => x.ClinicalQuestionType == ReadingQestionType.Group).ToList();
|
||||
|
||||
result.ForEach(x =>
|
||||
|
||||
@@ -123,7 +123,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
var tableQuestions= await _systemClinicalTableQuestionRepository.Where(x => x.SystemClinicalId == inDto.SystemClinicalId)
|
||||
.ProjectTo<ClinicalTablePreviewDto>(_mapper.ConfigurationProvider).OrderBy(x => x.ShowOrder).ToListAsync();
|
||||
|
||||
|
||||
questions.ForEach(x => x.CreateTime = null);
|
||||
var result = questions.Where(x => x.ClinicalQuestionType == ReadingQestionType.Group).ToList();
|
||||
|
||||
result.ForEach(x =>
|
||||
@@ -149,7 +149,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
var tableQuestions = await _trialClinicalTableQuestionRepository.Where(x => x.TrialClinicalId == inDto.TrialClinicalId)
|
||||
.ProjectTo<ClinicalTablePreviewDto>(_mapper.ConfigurationProvider).OrderBy(x => x.ShowOrder).ToListAsync();
|
||||
|
||||
|
||||
questions.ForEach(x => x.CreateTime = null);
|
||||
var result = questions.Where(x => x.ClinicalQuestionType == ReadingQestionType.Group).OrderBy(x => x.ShowOrder).ToList();
|
||||
|
||||
result.ForEach(x =>
|
||||
|
||||
@@ -111,6 +111,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||
|
||||
public string Answer { get; set; } = string.Empty;
|
||||
|
||||
public DateTime? CreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 子问题
|
||||
/// </summary>
|
||||
@@ -169,6 +171,16 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||
/// </summary>
|
||||
public string QuestionEnName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 分组名称
|
||||
/// </summary>
|
||||
public string? GroupName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 分组英文名称
|
||||
/// </summary>
|
||||
public string? GroupEnName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 临床问题类型(分组,单选。)
|
||||
/// </summary>
|
||||
|
||||
@@ -18,10 +18,15 @@ namespace IRaCIS.Core.Application.Service
|
||||
var isEn_Us=false;
|
||||
|
||||
#region 临床问题
|
||||
CreateMap<TrialClinicalQuestion, TrialClinicalQuestionDto>();
|
||||
CreateMap<TrialClinicalQuestion, TrialClinicalQuestionDto>()
|
||||
.ForMember(d => d.GroupName, opt => opt.MapFrom(src => src.GroupQuestin.QuestionName))
|
||||
.ForMember(d => d.GroupEnName, opt => opt.MapFrom(src => src.GroupQuestin.QuestionEnName));
|
||||
|
||||
CreateMap<TrialClinicalQuestionDto, TrialClinicalQuestion>();
|
||||
|
||||
CreateMap<SystemClinicalQuestion, SystemClinicalQuestionDto>();
|
||||
CreateMap<SystemClinicalQuestion, SystemClinicalQuestionDto>()
|
||||
.ForMember(d => d.GroupName, opt => opt.MapFrom(src => src.GroupQuestin.QuestionName))
|
||||
.ForMember(d => d.GroupEnName, opt => opt.MapFrom(src => src.GroupQuestin.QuestionEnName));
|
||||
CreateMap<SystemClinicalQuestionDto, SystemClinicalQuestion>();
|
||||
|
||||
CreateMap<SystemClinicalTableQuestion, SystemClinicalTableQuestionDto>();
|
||||
|
||||
Reference in New Issue
Block a user