代码提交
							parent
							
								
									46980e6b50
								
							
						
					
					
						commit
						f39ef0d799
					
				| 
						 | 
					@ -507,6 +507,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public Guid TrialId { get; set; }
 | 
					        public Guid TrialId { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					          /// <summary>
 | 
				
			||||||
 | 
					        /// 分组分类
 | 
				
			||||||
 | 
					        /// </summary>
 | 
				
			||||||
 | 
					        public List<GroupClassify>? GroupClassifyList { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// 问题分类
 | 
					        /// 问题分类
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -341,6 +341,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
        public QuestionClassify? QuestionClassify { get; set; }
 | 
					        public QuestionClassify? QuestionClassify { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        /// <summary>
 | 
				
			||||||
 | 
					        /// 分组分类
 | 
				
			||||||
 | 
					        /// </summary>
 | 
				
			||||||
 | 
					        public GroupClassify? GroupClassify { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// 单位
 | 
					        /// 单位
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
| 
						 | 
					@ -450,6 +455,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
        public QuestionClassify? QuestionClassify { get; set; }
 | 
					        public QuestionClassify? QuestionClassify { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        /// <summary>
 | 
				
			||||||
 | 
					        /// 分组分类
 | 
				
			||||||
 | 
					        /// </summary>
 | 
				
			||||||
 | 
					        public GroupClassify? GroupClassify { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// 数据来源
 | 
					        /// 数据来源
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
| 
						 | 
					@ -999,6 +1009,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
        public QuestionClassify? QuestionClassify { get; set; }
 | 
					        public QuestionClassify? QuestionClassify { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        /// <summary>
 | 
				
			||||||
 | 
					        /// 分组分类
 | 
				
			||||||
 | 
					        /// </summary>
 | 
				
			||||||
 | 
					        public GroupClassify? GroupClassify { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// 单位
 | 
					        /// 单位
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
| 
						 | 
					@ -1068,6 +1083,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
        public QuestionClassify? QuestionClassify { get; set; }
 | 
					        public QuestionClassify? QuestionClassify { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        /// <summary>
 | 
				
			||||||
 | 
					        /// 分组分类
 | 
				
			||||||
 | 
					        /// </summary>
 | 
				
			||||||
 | 
					        public GroupClassify? GroupClassify { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public List<string> ParentTriggerValueList { get; set; } = new List<string>();
 | 
					        public List<string> ParentTriggerValueList { get; set; } = new List<string>();
 | 
				
			||||||
        public List<string> RelevanceValueList { get; set; } = new List<string>();
 | 
					        public List<string> RelevanceValueList { get; set; } = new List<string>();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1593,6 +1613,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
        public QuestionClassify? QuestionClassify { get; set; }
 | 
					        public QuestionClassify? QuestionClassify { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        /// <summary>
 | 
				
			||||||
 | 
					        /// 分组分类
 | 
				
			||||||
 | 
					        /// </summary>
 | 
				
			||||||
 | 
					        public GroupClassify? GroupClassify { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// 限制编辑
 | 
					        /// 限制编辑
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
| 
						 | 
					@ -1957,6 +1982,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
        public QuestionClassify? QuestionClassify { get; set; }
 | 
					        public QuestionClassify? QuestionClassify { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        /// <summary>
 | 
				
			||||||
 | 
					        /// 分组分类
 | 
				
			||||||
 | 
					        /// </summary>
 | 
				
			||||||
 | 
					        public GroupClassify? GroupClassify { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// 数据来源
 | 
					        /// 数据来源
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -23,7 +23,7 @@ namespace IRaCIS.Core.Application.Contracts
 | 
				
			||||||
        Task<GetGlobalReadingInfoOutDto> GetGlobalReadingInfo(GetGlobalReadingInfoInDto inDto);
 | 
					        Task<GetGlobalReadingInfoOutDto> GetGlobalReadingInfo(GetGlobalReadingInfoInDto inDto);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        Task<List<DicomReadingQuestionAnswer>> GetReadingQuestion(Guid trialReadingCriterionId, Guid? visitTaskId,QuestionClassify? questionClassify);
 | 
					        Task<List<DicomReadingQuestionAnswer>> GetReadingQuestion(Guid trialReadingCriterionId, Guid? visitTaskId,QuestionClassify? questionClassify, List<GroupClassify>? groupClassifyList);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        Task<GetReadingTableQuestionOutDto> GetReadingTableQuestion(GetReadingTableQuestionOrAnswerInDto inDto);
 | 
					        Task<GetReadingTableQuestionOutDto> GetReadingTableQuestion(GetReadingTableQuestionOrAnswerInDto inDto);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -704,7 +704,7 @@ namespace IRaCIS.Application.Services
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            //await AddDefaultValueToTask(inDto.VisitTaskId);
 | 
					            //await AddDefaultValueToTask(inDto.VisitTaskId);
 | 
				
			||||||
            var taskInfo = await _visitTaskRepository.Where(x => x.Id == inDto.VisitTaskId).FirstNotNullAsync();
 | 
					            var taskInfo = await _visitTaskRepository.Where(x => x.Id == inDto.VisitTaskId).FirstNotNullAsync();
 | 
				
			||||||
            var result = await GetReadingQuestion(taskInfo.TrialReadingCriterionId, taskInfo.Id, inDto.QuestionClassify);
 | 
					            var result = await GetReadingQuestion(taskInfo.TrialReadingCriterionId, taskInfo.Id, inDto.QuestionClassify,inDto.GroupClassifyList);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -722,7 +722,7 @@ namespace IRaCIS.Application.Services
 | 
				
			||||||
        /// <param name="visitTaskId"></param>
 | 
					        /// <param name="visitTaskId"></param>
 | 
				
			||||||
        /// <returns></returns>
 | 
					        /// <returns></returns>
 | 
				
			||||||
        [NonDynamicMethod]
 | 
					        [NonDynamicMethod]
 | 
				
			||||||
        public async Task<List<DicomReadingQuestionAnswer>> GetReadingQuestion(Guid trialReadingCriterionId, Guid? visitTaskId, QuestionClassify? questionClassify)
 | 
					        public async Task<List<DicomReadingQuestionAnswer>> GetReadingQuestion(Guid trialReadingCriterionId, Guid? visitTaskId, QuestionClassify? questionClassify, List<GroupClassify>? groupClassifyList)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -776,7 +776,9 @@ namespace IRaCIS.Application.Services
 | 
				
			||||||
            //排除表格问题 同时排除组问题
 | 
					            //排除表格问题 同时排除组问题
 | 
				
			||||||
            var groupids = questions.Where(x => x.Type != ReadingQestionType.Group).Select(x => x.GroupId).ToList();
 | 
					            var groupids = questions.Where(x => x.Type != ReadingQestionType.Group).Select(x => x.GroupId).ToList();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            var result = questions.Where(x => x.Type == ReadingQestionType.Group && groupids.Contains(x.Id)).ToList();
 | 
					            var result = questions.Where(x => x.Type == ReadingQestionType.Group && groupids.Contains(x.Id))
 | 
				
			||||||
 | 
					                .WhereIf(groupClassifyList!=null,x=>x.GroupClassify!=null&& groupClassifyList.Contains(x.GroupClassify.Value))
 | 
				
			||||||
 | 
					                .ToList();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            foreach (var item in result)
 | 
					            foreach (var item in result)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -67,6 +67,18 @@ namespace IRaCIS.Core.Domain.Share
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /// <summary>
 | 
				
			||||||
 | 
					    /// 分组分类
 | 
				
			||||||
 | 
					    /// </summary>
 | 
				
			||||||
 | 
					    public enum GroupClassify
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					       /// <summary>
 | 
				
			||||||
 | 
					       /// 质量问题
 | 
				
			||||||
 | 
					       /// </summary>
 | 
				
			||||||
 | 
					       QualityProblem = 1,
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /// <summary>
 | 
					    /// <summary>
 | 
				
			||||||
    /// 临床表格问题标识
 | 
					    /// 临床表格问题标识
 | 
				
			||||||
    /// </summary>
 | 
					    /// </summary>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -203,10 +203,15 @@ namespace IRaCIS.Core.Domain.Models
 | 
				
			||||||
		/// </summary>
 | 
							/// </summary>
 | 
				
			||||||
		public string? FileType { get; set; }
 | 
							public string? FileType { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
		/// 问题分类
 | 
					        /// 分组分类
 | 
				
			||||||
		/// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
		public QuestionClassify? QuestionClassify { get; set; }
 | 
					        public GroupClassify? GroupClassify { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        /// <summary>
 | 
				
			||||||
 | 
					        /// 问题分类
 | 
				
			||||||
 | 
					        /// </summary>
 | 
				
			||||||
 | 
					        public QuestionClassify? QuestionClassify { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		[JsonIgnore]
 | 
							[JsonIgnore]
 | 
				
			||||||
		[ForeignKey("GroupId")]
 | 
							[ForeignKey("GroupId")]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -271,6 +271,13 @@ namespace IRaCIS.Core.Domain.Models
 | 
				
			||||||
		/// </summary>
 | 
							/// </summary>
 | 
				
			||||||
		public Guid? GroupId { get; set; }
 | 
							public Guid? GroupId { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							/// <summary>
 | 
				
			||||||
 | 
							/// 分组分类
 | 
				
			||||||
 | 
							/// </summary>
 | 
				
			||||||
 | 
							public GroupClassify? GroupClassify { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// 问题分类
 | 
					        /// 问题分类
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue