diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index d585f0a84..520d5bab0 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -1735,6 +1735,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common var sCPStudy = await _dbContext.SCPStudy.Where(x => x.Id == entity.SCPStudyId).FirstOrDefaultAsync(); + await InsertInspection(item.Entity as SCPStudySubjectVisit, type, x => new InspectionConvertDTO() { ObjectRelationParentId = x.SubjectId, @@ -1746,6 +1747,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common }, new { + PatientIdStr = sCPStudy != null ? sCPStudy.PatientIdStr : null, StudyTime = sCPStudy != null ? sCPStudy.StudyTime : null, });