修改一版
parent
06c87a50da
commit
026e8d29f9
|
@ -467,6 +467,16 @@
|
||||||
排序字段
|
排序字段
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.GetSubjectReadVisitsInDto.ReadingSetType">
|
||||||
|
<summary>
|
||||||
|
阅片配置的类型
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.GetSubjectReadVisitsInDto.SubjectId">
|
||||||
|
<summary>
|
||||||
|
受试者ID
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.ReadModuleAddDto.ExpirationDate">
|
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.ReadModuleAddDto.ExpirationDate">
|
||||||
<summary>
|
<summary>
|
||||||
截止日期
|
截止日期
|
||||||
|
@ -492,6 +502,11 @@
|
||||||
名称
|
名称
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.ReadModuleAddDto.ReadingSetType">
|
||||||
|
<summary>
|
||||||
|
阅片配置的类型
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.VisitFinishReadingAddReadModuleInDto.TrialId">
|
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.VisitFinishReadingAddReadModuleInDto.TrialId">
|
||||||
<summary>
|
<summary>
|
||||||
项目ID
|
项目ID
|
||||||
|
@ -3108,6 +3123,13 @@
|
||||||
<param name="dto"></param>
|
<param name="dto"></param>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:IRaCIS.Application.Services.ReadModuleService.GetSubjectReadVisits(IRaCIS.Core.Application.Service.Reading.Dto.GetSubjectReadVisitsInDto)">
|
||||||
|
<summary>
|
||||||
|
添加阅片的时候 获取访视
|
||||||
|
</summary>
|
||||||
|
<param name="inDto"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
<member name="M:IRaCIS.Application.Services.ReadModuleService.AddReadModule(IRaCIS.Core.Application.Service.Reading.Dto.ReadModuleAddDto)">
|
<member name="M:IRaCIS.Application.Services.ReadModuleService.AddReadModule(IRaCIS.Core.Application.Service.Reading.Dto.ReadModuleAddDto)">
|
||||||
<summary>
|
<summary>
|
||||||
添加阅片期
|
添加阅片期
|
||||||
|
|
|
@ -128,6 +128,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string ReadingPeriodName { get; set; }
|
public string ReadingPeriodName { get; set; }
|
||||||
|
|
||||||
|
public string SubjectVisitName { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ReadingPeriodSetView
|
public class ReadingPeriodSetView
|
||||||
|
@ -183,11 +185,12 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid CreateUserId { get; set; }
|
public Guid CreateUserId { get; set; }
|
||||||
|
|
||||||
|
public string? SubjectVisitName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 备注
|
/// 阅片配置的类型
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Remark { get; set; } = String.Empty;
|
public ReadingSetType ReadingSetType { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 中心Id
|
/// 中心Id
|
||||||
|
|
|
@ -176,24 +176,27 @@ namespace IRaCIS.Application.Services
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
/// 添加阅片的时候 获取访视
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="inDto"></param>
|
/// <param name="inDto"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
//public async Task<List<GetSubjectReadVisitsOutDto>> GetSubjectReadVisits(GetSubjectReadVisitsInDto inDto)
|
public async Task<List<GetSubjectReadVisitsOutDto>> GetSubjectReadVisits(GetSubjectReadVisitsInDto inDto)
|
||||||
//{
|
{
|
||||||
// var visitquery = _subjectVisitRepository.Where(x => x.SubjectId == inDto.SubjectId && x.LatestScanDate != null);
|
var visitquery = _subjectVisitRepository.Where(x => x.SubjectId == inDto.SubjectId && x.LatestScanDate != null);
|
||||||
|
|
||||||
// var finalVisitNum = await visitquery.Where(x => x.IsFinalVisit).Select(x => x.VisitNum).FirstOrDefaultAsync();
|
var finalVisitNum = await visitquery.Where(x => x.IsFinalVisit).Select(x => x.VisitNum).FirstOrDefaultAsync();
|
||||||
|
|
||||||
|
|
||||||
// var readModulequery = _readModuleRepository.AsQueryable();
|
var readModulequery = _readModuleRepository.AsQueryable();
|
||||||
// //visitquery = visitquery.WhereIf(finalVisitNum != null, x => x.VisitNum < finalVisitNum)
|
return await visitquery.WhereIf(finalVisitNum != null, x => x.VisitNum < finalVisitNum)
|
||||||
// // .Where(x => readModulequery.Where(y => y.SubjectVisitId == x.Id && y.ReadingSetType == inDto.ReadingSetType).Count() == 0).OrderBy(x => finalVisitNum)
|
.Where(x => readModulequery.Where(y => y.SubjectVisitId == x.Id && y.ReadingSetType == inDto.ReadingSetType).Count() == 0).OrderBy(x => finalVisitNum)
|
||||||
// // .Select(x=>new GetSubjectReadVisitsOutDto() {
|
.Select(x => new GetSubjectReadVisitsOutDto()
|
||||||
|
{
|
||||||
// // } )
|
SubjectVisitId = x.Id,
|
||||||
//}
|
VisitName = x.VisitName,
|
||||||
|
VisitNum = x.VisitNum,
|
||||||
|
}).ToListAsync();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 添加阅片期
|
/// 添加阅片期
|
||||||
|
|
|
@ -109,6 +109,7 @@ namespace IRaCIS.Application.Services
|
||||||
ReadingPeriodSetId=readset.Id,
|
ReadingPeriodSetId=readset.Id,
|
||||||
SubjectCode=x.Subject.Code,
|
SubjectCode=x.Subject.Code,
|
||||||
SubjectId=x.SubjectId,
|
SubjectId=x.SubjectId,
|
||||||
|
SubjectVisitName=x.VisitName,
|
||||||
//Remark= readset.Remark
|
//Remark= readset.Remark
|
||||||
}).ToList();
|
}).ToList();
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
|
|
||||||
|
|
||||||
CreateMap<ReadingPeriodSet, ReadingPeriodSetView>()
|
CreateMap<ReadingPeriodSet, ReadingPeriodSetView>()
|
||||||
|
.ForMember(d => d.SubjectVisitName, u => u.MapFrom(s => s.VisitStage==null?string.Empty: s.VisitStage.VisitName))
|
||||||
.ForMember(d => d.SiteIds, u => u.MapFrom(s => s.ReadingPeriodSites.Select(x => x.SiteId)))
|
.ForMember(d => d.SiteIds, u => u.MapFrom(s => s.ReadingPeriodSites.Select(x => x.SiteId)))
|
||||||
.ForMember(d => d.SiteCodes, u => u.MapFrom(s => s.ReadingPeriodSites.Select(x => x.TrialSite.TrialSiteCode)));
|
.ForMember(d => d.SiteCodes, u => u.MapFrom(s => s.ReadingPeriodSites.Select(x => x.TrialSite.TrialSiteCode)));
|
||||||
|
|
||||||
|
|
|
@ -47,9 +47,15 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public Guid? VisitStageId { get; set; }
|
public Guid? VisitStageId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否生效
|
/// 访视模板
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int? IsTakeEffect { get; set; }
|
[ForeignKey("VisitStageId")]
|
||||||
|
public VisitStage? VisitStage { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 是否生效
|
||||||
|
/// </summary>
|
||||||
|
public int? IsTakeEffect { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 创建时间
|
/// 创建时间
|
||||||
|
|
Loading…
Reference in New Issue