From 81443e5e36351f56387de1e1a384cf457122be6c Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 17 Dec 2024 14:03:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/TrialSiteUser/DTO/DicomAEViewModel.cs | 4 ++++ IRaCIS.Core.Application/Service/Visit/PatientService.cs | 7 +++++++ IRaCIS.Core.Domain/HIR/DicomAE.cs | 3 +++ 3 files changed, 14 insertions(+) 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; } + + }