S-97 添加分组
parent
7a383a3fa5
commit
36cb770a86
|
@ -171,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>();
|
||||
|
|
|
@ -143,7 +143,14 @@ namespace IRaCIS.Core.Domain.Models
|
|||
/// </summary>
|
||||
public string CalculateQuestions { get; set; } = "[]";
|
||||
|
||||
[NotMapped]
|
||||
/// <summary>
|
||||
/// 分组
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[ForeignKey("GroupId")]
|
||||
public SystemClinicalQuestion GroupQuestin { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public List<CalculateInfo> CalculateQuestionList
|
||||
{
|
||||
get
|
||||
|
|
|
@ -133,6 +133,13 @@ namespace IRaCIS.Core.Domain.Models
|
|||
/// </summary>
|
||||
public ClinicalCalculateMark? CustomCalculateMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分组
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
[ForeignKey("GroupId")]
|
||||
public TrialClinicalQuestion GroupQuestin { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 自定义计算问题
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in New Issue