Uat_Study
parent
50527d9c33
commit
bc3d2c0f71
|
@ -716,6 +716,52 @@ namespace IRaCIS.Application.Contracts
|
||||||
public CriterionFileType FileType { get; set; }
|
public CriterionFileType FileType { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public class GetDoctorCriterionFileOutDto
|
||||||
|
{
|
||||||
|
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; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// CreateUserId
|
||||||
|
/// </summary>
|
||||||
|
public Guid CreateUserId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// CreateTime
|
||||||
|
/// </summary>
|
||||||
|
public DateTime CreateTime { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
public class GetDoctorCriterionFileInDto
|
public class GetDoctorCriterionFileInDto
|
||||||
{
|
{
|
||||||
public Guid DoctorId { get; set; }
|
public Guid DoctorId { get; set; }
|
||||||
|
|
|
@ -507,6 +507,7 @@ namespace IRaCIS.Application.Services
|
||||||
var result = await _doctorCriterionFileRepository.Where(x => x.DoctorId == inDto.DoctorId)
|
var result = await _doctorCriterionFileRepository.Where(x => x.DoctorId == inDto.DoctorId)
|
||||||
.WhereIf(inDto.CriterionType != null, x => x.CriterionType == inDto.CriterionType)
|
.WhereIf(inDto.CriterionType != null, x => x.CriterionType == inDto.CriterionType)
|
||||||
.WhereIf(inDto.FileType != null, x => x.FileType == inDto.FileType)
|
.WhereIf(inDto.FileType != null, x => x.FileType == inDto.FileType)
|
||||||
|
.ProjectTo<DoctorCriterionFile>(_mapper.ConfigurationProvider)
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
CreateMap<ReviewerAckDTO, Attachment>().EqualityComparison((odto, o) => odto.Id == o.Id);
|
CreateMap<ReviewerAckDTO, Attachment>().EqualityComparison((odto, o) => odto.Id == o.Id);
|
||||||
|
|
||||||
CreateMap<AddDoctorCriterionFileDto, DoctorCriterionFile>();
|
CreateMap<AddDoctorCriterionFileDto, DoctorCriterionFile>();
|
||||||
|
CreateMap<DoctorCriterionFile, GetDoctorCriterionFileOutDto>();
|
||||||
CreateMap<Doctor, DoctorBasicInfoCommand>();
|
CreateMap<Doctor, DoctorBasicInfoCommand>();
|
||||||
CreateMap<Education, EducationInfoViewModel>();
|
CreateMap<Education, EducationInfoViewModel>();
|
||||||
|
|
||||||
|
|
|
@ -270,6 +270,9 @@ namespace IRaCIS.Application.Contracts
|
||||||
|
|
||||||
public List<TrialCriterionReadingCategory> CriterionReadingCategoryList { get; set; }
|
public List<TrialCriterionReadingCategory> CriterionReadingCategoryList { get; set; }
|
||||||
|
|
||||||
|
//任务阅片状态
|
||||||
|
public List<ReadingTaskState> ReadingTaskStateList { get; set; }
|
||||||
|
|
||||||
public List<CriterionFile> CriterionFileList { get; set; }
|
public List<CriterionFile> CriterionFileList { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
@ -278,6 +281,8 @@ namespace IRaCIS.Application.Contracts
|
||||||
new CriterionReadingCategory()
|
new CriterionReadingCategory()
|
||||||
{
|
{
|
||||||
EnrollId = EnrollId,
|
EnrollId = EnrollId,
|
||||||
|
ToDoQuantity= ReadingTaskStateList.Where(x=>x!=ReadingTaskState.HaveSigned).Count(),
|
||||||
|
CompletionQuantity = ReadingTaskStateList.Where(x => x == ReadingTaskState.HaveSigned).Count(),
|
||||||
CriterionFileList = CriterionFileList.Where(x=>x.CriterionType==t.CriterionType).ToList(),
|
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()
|
||||||
|
@ -363,6 +368,13 @@ namespace IRaCIS.Application.Contracts
|
||||||
public Guid EnrollId { get; set; }
|
public Guid EnrollId { get; set; }
|
||||||
public Guid TrialReadingCriterionId { get; set; }
|
public Guid TrialReadingCriterionId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 待办数量
|
||||||
|
/// </summary>
|
||||||
|
public int ToDoQuantity { get; set; }
|
||||||
|
|
||||||
|
public int CompletionQuantity { get; set; }
|
||||||
|
|
||||||
public List<CriterionFile> CriterionFileList { get; set; }
|
public List<CriterionFile> CriterionFileList { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -217,7 +217,7 @@ namespace IRaCIS.Application.Services
|
||||||
Id=x.Id
|
Id=x.Id
|
||||||
}).ToList(),
|
}).ToList(),
|
||||||
CriterionReadingCategoryList =intoGroup.EnrollReadingCategoryList.Select(t=>new TrialCriterionReadingCategory() { EnrollId=t.EnrollId,ReadingCategory=t.ReadingCategory, TrialReadingCriterionId = t.TrialReadingCriterionId }).ToList(),
|
CriterionReadingCategoryList =intoGroup.EnrollReadingCategoryList.Select(t=>new TrialCriterionReadingCategory() { EnrollId=t.EnrollId,ReadingCategory=t.ReadingCategory, TrialReadingCriterionId = t.TrialReadingCriterionId }).ToList(),
|
||||||
|
ReadingTaskStateList=doctor.VisitTaskList.Where(x=>x.TaskState==TaskState.Effect&&x.TrialId== trialId).Select(x=>x.ReadingTaskState).ToList(),
|
||||||
DoctorId = doctor.Id,
|
DoctorId = doctor.Id,
|
||||||
Code = doctor.ReviewerCode,
|
Code = doctor.ReviewerCode,
|
||||||
FirstName = doctor.FirstName,
|
FirstName = doctor.FirstName,
|
||||||
|
|
|
@ -188,6 +188,10 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public List<DoctorCriterionFile> CriterionFileList { get; set; }
|
public List<DoctorCriterionFile> CriterionFileList { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public List<VisitTask> VisitTaskList { get; set; }
|
||||||
|
|
||||||
public bool IsVirtual { get; set; }
|
public bool IsVirtual { get; set; }
|
||||||
|
|
||||||
public string BlindName { get; set; } = string.Empty;
|
public string BlindName { get; set; } = string.Empty;
|
||||||
|
|
Loading…
Reference in New Issue