diff --git a/IRaCIS.Core.Application/Service/TrialSiteUser/DTO/DicomAEViewModel.cs b/IRaCIS.Core.Application/Service/TrialSiteUser/DTO/DicomAEViewModel.cs index a5da9a971..cab9b5992 100644 --- a/IRaCIS.Core.Application/Service/TrialSiteUser/DTO/DicomAEViewModel.cs +++ b/IRaCIS.Core.Application/Service/TrialSiteUser/DTO/DicomAEViewModel.cs @@ -51,6 +51,10 @@ namespace IRaCIS.Core.Application.ViewModel public List ModalityList { get; set; } public string Description { get; set; } = string.Empty; + public int MaxStudyCount { get; set; } + + public int PacsSearchMaxDays { get; set; } + public PacsType PacsTypeEnum { get; set; } } diff --git a/IRaCIS.Core.Application/Service/Visit/PatientService.cs b/IRaCIS.Core.Application/Service/Visit/PatientService.cs index d17d56c6c..20418e724 100644 --- a/IRaCIS.Core.Application/Service/Visit/PatientService.cs +++ b/IRaCIS.Core.Application/Service/Visit/PatientService.cs @@ -2922,8 +2922,10 @@ namespace IRaCIS.Application.Services var find = await _dicomAEReposiotry.FirstOrDefaultAsync(t => t.Id == inQuery.PacsDicomAEId); + if (find != null) { + var maxStudyCount = find.MaxStudyCount > 0 ? find.MaxStudyCount : 50; var client = DicomClientFactory.Create(find.IP, find.Port, false, "HIRSCUAE", find.CalledAE); @@ -2964,6 +2966,11 @@ namespace IRaCIS.Application.Services StudyDescription = response.Dataset?.GetSingleValueOrDefault(DicomTag.StudyDescription, ""), StudyInstanceUID = response.Dataset?.GetSingleValueOrDefault(DicomTag.StudyInstanceUID, "") }); + + if (result.Count == maxStudyCount) + { + + } } }; diff --git a/IRaCIS.Core.Domain/HIR/DicomAE.cs b/IRaCIS.Core.Domain/HIR/DicomAE.cs index f71ff683b..b697a530e 100644 --- a/IRaCIS.Core.Domain/HIR/DicomAE.cs +++ b/IRaCIS.Core.Domain/HIR/DicomAE.cs @@ -39,6 +39,9 @@ namespace IRaCIS.Core.Domain.Models public int PacsSearchMaxDays { get; set; } + public int MaxStudyCount { get; set; } + + }