增加多模态
parent
7184ea9565
commit
32aadceaac
|
@ -58,6 +58,8 @@ namespace IRaCIS.Core.Application.ViewModel
|
|||
public int PacsSearchMaxDays { get; set; }
|
||||
|
||||
public PacsType PacsTypeEnum { get; set; }
|
||||
|
||||
public bool IsSupportMutiModality { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -3078,8 +3078,7 @@ namespace IRaCIS.Application.Services
|
|||
//看当前前端有没有传递modality,有的话以前端为准,没有的话以配置为准 构造同样数量的请求
|
||||
var requestModalityList = (inQuery.ModalitiesInStudyList != null && inQuery.ModalitiesInStudyList.Count > 0) ? inQuery.ModalitiesInStudyList : find.ModalityList;
|
||||
|
||||
//支持多模态的Pacs
|
||||
var modality = string.Join($"\\", requestModalityList);
|
||||
|
||||
|
||||
|
||||
if (inQuery.TrialId == null)
|
||||
|
@ -3095,16 +3094,33 @@ namespace IRaCIS.Application.Services
|
|||
|
||||
}
|
||||
|
||||
if (find.IsSupportMutiModality)
|
||||
{
|
||||
//支持多模态的Pacs
|
||||
var modality = string.Join($"\\", requestModalityList);
|
||||
|
||||
var request = CreateStudyRequest(inQuery, modality);
|
||||
|
||||
request.OnResponseReceived += responseDelegate;
|
||||
|
||||
await client.AddRequestAsync(request);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (var modality in requestModalityList)
|
||||
{
|
||||
var cloneInQuery = inQuery.Clone();
|
||||
|
||||
var request = CreateStudyRequest(cloneInQuery, modality);
|
||||
|
||||
request.OnResponseReceived += responseDelegate;
|
||||
|
||||
await client.AddRequestAsync(request);
|
||||
}
|
||||
}
|
||||
|
||||
await client.SendAsync();
|
||||
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -3184,7 +3200,7 @@ namespace IRaCIS.Application.Services
|
|||
|
||||
|
||||
|
||||
var request = CreateStudyRequest(cloneInQuery, "");
|
||||
var request = CreateStudyRequest(cloneInQuery, find.IsSupportMutiModality ? string.Join($"\\", requestModalityList) : "");
|
||||
request.OnResponseReceived += responseDelegate;
|
||||
|
||||
await client.AddRequestAsync(request);
|
||||
|
|
|
@ -41,8 +41,8 @@ namespace IRaCIS.Core.Domain.Models
|
|||
|
||||
public int MaxStudyCount { get; set; }
|
||||
|
||||
//[Comment("是否支持多模态查询")]
|
||||
//public bool IsSupportMutiModality { get; set; }
|
||||
[Comment("是否支持多模态查询")]
|
||||
public bool IsSupportMutiModality { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
|
18765
IRaCIS.Core.Infra.EFCore/Migrations/20250325062515_addAEModality.Designer.cs
generated
Normal file
18765
IRaCIS.Core.Infra.EFCore/Migrations/20250325062515_addAEModality.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,30 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class addAEModality : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsSupportMutiModality",
|
||||
table: "DicomAE",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false,
|
||||
comment: "是否支持多模态查询");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsSupportMutiModality",
|
||||
table: "DicomAE");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -801,6 +801,10 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||
.HasMaxLength(400)
|
||||
.HasColumnType("nvarchar(400)");
|
||||
|
||||
b.Property<bool>("IsSupportMutiModality")
|
||||
.HasColumnType("bit")
|
||||
.HasComment("是否支持多模态查询");
|
||||
|
||||
b.Property<bool>("IsTestOK")
|
||||
.HasColumnType("bit");
|
||||
|
||||
|
|
Loading…
Reference in New Issue