This commit is contained in:
2023-01-10 16:39:07 +08:00
parent f59f8e214c
commit 0134c96f28
4 changed files with 7 additions and 3 deletions
@@ -138,7 +138,6 @@ namespace IRaCIS.Core.Application.ViewModel
public string UserTypeShortName { get; set; }
public bool IsClinicalDataSigned { get; set; } = false;
}
public class UserSimpleInfo
@@ -125,7 +125,7 @@ namespace IRaCIS.Core.Application.Service
.ForMember(o => o.UserName, t => t.MapFrom(u => u.DoctorUser.UserName))
.ForMember(o => o.FullName, t => t.MapFrom(u => u.DoctorUser.FullName))
.ForMember(o => o.UserTypeShortName, t => t.MapFrom(u => u.DoctorUser.UserTypeRole.UserTypeShortName))
.ForMember(o => o.IsClinicalDataSigned, t => t.MapFrom(u => u.Subject.ClinicalDataList.Any(c => c.IsSign && (c.ReadingId == u.SouceReadModuleId || c.ReadingId == u.SourceSubjectVisitId))))
//.ForMember(o => o.IsClinicalDataSigned, t => t.MapFrom(u => u.Subject.ClinicalDataList.Any(c => c.IsSign && (c.ReadingId == u.SouceReadModuleId || c.ReadingId == u.SourceSubjectVisitId))))
;