修改一版
parent
1a5c2806e0
commit
50527d9c33
|
@ -270,12 +270,15 @@ namespace IRaCIS.Application.Contracts
|
||||||
|
|
||||||
public List<TrialCriterionReadingCategory> CriterionReadingCategoryList { get; set; }
|
public List<TrialCriterionReadingCategory> CriterionReadingCategoryList { get; set; }
|
||||||
|
|
||||||
|
public List<CriterionFile> CriterionFileList { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public List<CriterionReadingCategory> CriterionCategoryList =>
|
public List<CriterionReadingCategory> CriterionCategoryList =>
|
||||||
TrialReadingCriterionList.Select(t =>
|
TrialReadingCriterionList.Select(t =>
|
||||||
new CriterionReadingCategory()
|
new CriterionReadingCategory()
|
||||||
{
|
{
|
||||||
EnrollId = EnrollId,
|
EnrollId = EnrollId,
|
||||||
|
CriterionFileList= CriterionFileList.Where(x=>x.CriterionType==t.CriterionType).ToList(),
|
||||||
TrialReadingCriterionId = t.TrialReadingCriterionId,
|
TrialReadingCriterionId = t.TrialReadingCriterionId,
|
||||||
ReadingCategorys = CriterionReadingCategoryList.Where(c => c.TrialReadingCriterionId == t.TrialReadingCriterionId).Select(t => t.ReadingCategory).OrderBy(c => c).ToList()
|
ReadingCategorys = CriterionReadingCategoryList.Where(c => c.TrialReadingCriterionId == t.TrialReadingCriterionId).Select(t => t.ReadingCategory).OrderBy(c => c).ToList()
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
@ -317,12 +320,52 @@ namespace IRaCIS.Application.Contracts
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public class CriterionFile
|
||||||
|
{
|
||||||
|
|
||||||
|
public Guid Id { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 文件名称
|
||||||
|
/// </summary>
|
||||||
|
public string FileName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 文件路径
|
||||||
|
/// </summary>
|
||||||
|
public string FilePath { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 标准类型
|
||||||
|
/// </summary>
|
||||||
|
public CriterionType CriterionType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 医生Id
|
||||||
|
/// </summary>
|
||||||
|
public Guid DoctorId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 备注
|
||||||
|
/// </summary>
|
||||||
|
public string Remark { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 文件类型
|
||||||
|
/// </summary>
|
||||||
|
public CriterionFileType FileType { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public class CriterionReadingCategory
|
public class CriterionReadingCategory
|
||||||
{
|
{
|
||||||
public Guid EnrollId { get; set; }
|
public Guid EnrollId { get; set; }
|
||||||
public Guid TrialReadingCriterionId { get; set; }
|
public Guid TrialReadingCriterionId { get; set; }
|
||||||
|
|
||||||
|
public List<CriterionFile> CriterionFileList { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public List<ReadingCategory> ReadingCategorys { get; set; } = new List<ReadingCategory>();
|
public List<ReadingCategory> ReadingCategorys { get; set; } = new List<ReadingCategory>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -207,8 +207,16 @@ namespace IRaCIS.Application.Services
|
||||||
IsEnable = allocateRule.IsEnable,
|
IsEnable = allocateRule.IsEnable,
|
||||||
|
|
||||||
TrialReadingCriterionList = intoGroup.Trial.ReadingQuestionCriterionTrialList.Where(t=>t.IsConfirm).Select(t=>new TrialReadingCriterionDto() { TrialReadingCriterionId=t.Id,TrialReadingCriterionName=t.CriterionName,CriterionType=t.CriterionType,IsOncologyReading=t.IsOncologyReading,IsArbitrationReading=t.IsArbitrationReading,IsGlobalReading=t.IsGlobalReading,ReadingInfoSignTime=t.ReadingInfoSignTime,ReadingType=t.ReadingType}).ToList(),
|
TrialReadingCriterionList = intoGroup.Trial.ReadingQuestionCriterionTrialList.Where(t=>t.IsConfirm).Select(t=>new TrialReadingCriterionDto() { TrialReadingCriterionId=t.Id,TrialReadingCriterionName=t.CriterionName,CriterionType=t.CriterionType,IsOncologyReading=t.IsOncologyReading,IsArbitrationReading=t.IsArbitrationReading,IsGlobalReading=t.IsGlobalReading,ReadingInfoSignTime=t.ReadingInfoSignTime,ReadingType=t.ReadingType}).ToList(),
|
||||||
|
CriterionFileList= doctor.CriterionFileList.Select(x=> new CriterionFile() {
|
||||||
CriterionReadingCategoryList=intoGroup.EnrollReadingCategoryList.Select(t=>new TrialCriterionReadingCategory() { EnrollId=t.EnrollId,ReadingCategory=t.ReadingCategory, TrialReadingCriterionId = t.TrialReadingCriterionId }).ToList(),
|
CriterionType=x.CriterionType,
|
||||||
|
DoctorId=x.DoctorId,
|
||||||
|
FileName=x.FileName,
|
||||||
|
FilePath=x.FilePath,
|
||||||
|
FileType=x.FileType,
|
||||||
|
Remark=x.Remark,
|
||||||
|
Id=x.Id
|
||||||
|
}).ToList(),
|
||||||
|
CriterionReadingCategoryList =intoGroup.EnrollReadingCategoryList.Select(t=>new TrialCriterionReadingCategory() { EnrollId=t.EnrollId,ReadingCategory=t.ReadingCategory, TrialReadingCriterionId = t.TrialReadingCriterionId }).ToList(),
|
||||||
|
|
||||||
DoctorId = doctor.Id,
|
DoctorId = doctor.Id,
|
||||||
Code = doctor.ReviewerCode,
|
Code = doctor.ReviewerCode,
|
||||||
|
|
|
@ -185,6 +185,8 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public virtual Dictionary Position { get; set; }
|
public virtual Dictionary Position { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public List<Attachment> AttachmentList { get; set; }
|
public List<Attachment> AttachmentList { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
|
public List<DoctorCriterionFile> CriterionFileList { get; set; }
|
||||||
|
|
||||||
public bool IsVirtual { get; set; }
|
public bool IsVirtual { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,10 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime CreateTime { get; set; }
|
public DateTime CreateTime { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("DoctorId")]
|
||||||
|
public Doctor Doctor { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue