添加阅片人接口
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
200bdaccc4
commit
4cdfb60fdf
|
@ -1137,6 +1137,13 @@
|
||||||
获取项目下医生入组状态列表[Confirmation]
|
获取项目下医生入组状态列表[Confirmation]
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:IRaCIS.Core.Application.Service.DoctorListService.GetTrialDoctorList(IRaCIS.Application.Contracts.ReviewerConfirmationQueryDTO)">
|
||||||
|
<summary>
|
||||||
|
获取项目下医生列表
|
||||||
|
</summary>
|
||||||
|
<param name="inQuery"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
<member name="M:IRaCIS.Core.Application.Service.DoctorService.AddOrUpdateDoctorBasicInfo(IRaCIS.Application.Contracts.DoctorBasicInfoCommand)">
|
<member name="M:IRaCIS.Core.Application.Service.DoctorService.AddOrUpdateDoctorBasicInfo(IRaCIS.Application.Contracts.DoctorBasicInfoCommand)">
|
||||||
<summary>
|
<summary>
|
||||||
添加/更新 医生基本信息 BasicInfo
|
添加/更新 医生基本信息 BasicInfo
|
||||||
|
|
|
@ -198,6 +198,16 @@ namespace IRaCIS.Application.Contracts
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public class TrialDoctorInfo : ConfirmationReviewerDTO
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public List<string> SubspecialityList => DictionaryList.Where(t => t.ParentCode == StaticData.Subspeciality).OrderBy(t => t.ShowOrder).Select(t => t.Value).ToList();
|
||||||
|
|
||||||
|
public List<string> SubspecialityCNList => DictionaryList.Where(t => t.ParentCode == StaticData.Subspeciality).OrderBy(t => t.ShowOrder).Select(t => t.ValueCN).ToList();
|
||||||
|
}
|
||||||
|
|
||||||
public class ConfirmationReviewerDTO : DoctorOptDTO
|
public class ConfirmationReviewerDTO : DoctorOptDTO
|
||||||
{
|
{
|
||||||
public int DoctorTrialState { get; set; }
|
public int DoctorTrialState { get; set; }
|
||||||
|
|
|
@ -271,6 +271,45 @@ namespace IRaCIS.Core.Application.Service
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取项目下医生列表
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="inQuery"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpPost]
|
||||||
|
public async Task<PageOutput<TrialDoctorInfo>> GetTrialDoctorList(
|
||||||
|
ReviewerConfirmationQueryDTO inQuery)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
var doctorQuery = _enrollRepository.Where(x => x.TrialId == inQuery.TrialId && x.EnrollStatus == EnrollStatus.ConfirmIntoGroup)
|
||||||
|
.ProjectTo<TrialDoctorInfo>(_mapper.ConfigurationProvider);
|
||||||
|
|
||||||
|
var doctorPageList = await doctorQuery.ToPagedListAsync(inQuery);
|
||||||
|
|
||||||
|
var enrollStateList = await _enrollDetailRepository.Where(x => x.TrialId == inQuery.TrialId && x.EnrollStatus > EnrollStatus.InviteIntoGroup)
|
||||||
|
.ProjectTo<DoctorStateModelDTO>(_mapper.ConfigurationProvider).ToListAsync();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
doctorPageList.CurrentPageData.ToList().ForEach(u =>
|
||||||
|
{
|
||||||
|
u.DoctorTrialState = (int)EnrollStatus.InviteIntoGroup;
|
||||||
|
var opt = enrollStateList.FirstOrDefault(t => t.DoctorId == u.Id);
|
||||||
|
if (opt != null)
|
||||||
|
{
|
||||||
|
u.DoctorTrialState = opt.IntoGroupState;
|
||||||
|
u.OptTime = opt.OptTime;
|
||||||
|
u.OptUserName = opt.OptUserName;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return doctorPageList;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -182,6 +182,17 @@ namespace IRaCIS.Core.Application.Service
|
||||||
.ForMember(d => d.OptTime, u => u.MapFrom(s => s.CreateTime))
|
.ForMember(d => d.OptTime, u => u.MapFrom(s => s.CreateTime))
|
||||||
.ForMember(d => d.OptUserName, u => u.MapFrom(s => s.CreateUserRole.IdentityUser.UserName));
|
.ForMember(d => d.OptUserName, u => u.MapFrom(s => s.CreateUserRole.IdentityUser.UserName));
|
||||||
|
|
||||||
|
|
||||||
|
CreateMap<Enroll, TrialDoctorInfo>().IncludeMembers(t => t.Doctor, t => t.Doctor.Hospital)
|
||||||
|
.ForMember(o => o.DictionaryList, t => t.MapFrom(u => u.Doctor.DoctorDicRelationList.Where(t => t.KeyName == StaticData.ReadingType || t.KeyName == StaticData.Subspeciality).Select(t => t.Dictionary).OrderBy(t => t.ShowOrder)))
|
||||||
|
.ForMember(d => d.Speciality, u => u.MapFrom(s => s.Doctor.Speciality.Value))
|
||||||
|
.ForMember(d => d.SpecialityCN, u => u.MapFrom(s => s.Doctor.Speciality.ValueCN))
|
||||||
|
.ForMember(d => d.Id, u => u.MapFrom(s => s.Doctor.Id))
|
||||||
|
.ForMember(d => d.Code, u => u.MapFrom(s => s.DoctorUser.UserName));
|
||||||
|
|
||||||
|
CreateMap<Doctor, TrialDoctorInfo>();
|
||||||
|
CreateMap<Hospital, TrialDoctorInfo>();
|
||||||
|
|
||||||
CreateMap<Enroll, ConfirmationReviewerDTO>().IncludeMembers(t => t.Doctor, t => t.Doctor.Hospital)
|
CreateMap<Enroll, ConfirmationReviewerDTO>().IncludeMembers(t => t.Doctor, t => t.Doctor.Hospital)
|
||||||
.ForMember(o => o.DictionaryList, t => t.MapFrom(u => u.Doctor.DoctorDicRelationList.Where(t => t.KeyName == StaticData.ReadingType || t.KeyName == StaticData.Subspeciality).Select(t => t.Dictionary).OrderBy(t => t.ShowOrder)))
|
.ForMember(o => o.DictionaryList, t => t.MapFrom(u => u.Doctor.DoctorDicRelationList.Where(t => t.KeyName == StaticData.ReadingType || t.KeyName == StaticData.Subspeciality).Select(t => t.Dictionary).OrderBy(t => t.ShowOrder)))
|
||||||
.ForMember(d => d.Speciality, u => u.MapFrom(s => s.Doctor.Speciality.Value))
|
.ForMember(d => d.Speciality, u => u.MapFrom(s => s.Doctor.Speciality.Value))
|
||||||
|
|
Loading…
Reference in New Issue