增加多模态
parent
7184ea9565
commit
32aadceaac
|
@ -58,6 +58,8 @@ namespace IRaCIS.Core.Application.ViewModel
|
||||||
public int PacsSearchMaxDays { get; set; }
|
public int PacsSearchMaxDays { get; set; }
|
||||||
|
|
||||||
public PacsType PacsTypeEnum { get; set; }
|
public PacsType PacsTypeEnum { get; set; }
|
||||||
|
|
||||||
|
public bool IsSupportMutiModality { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -136,11 +136,11 @@ namespace IRaCIS.Application.Services
|
||||||
var exp2 = new EntityVerifyExp<HIRHospital>()
|
var exp2 = new EntityVerifyExp<HIRHospital>()
|
||||||
{
|
{
|
||||||
VerifyExp = h => h.HospitalCode.Equals(addOrEditHIRHospital.HospitalCode) ||
|
VerifyExp = h => h.HospitalCode.Equals(addOrEditHIRHospital.HospitalCode) ||
|
||||||
h.HospitalName.Equals(addOrEditHIRHospital.HospitalName)||
|
h.HospitalName.Equals(addOrEditHIRHospital.HospitalName) ||
|
||||||
h.HospitalAliasName.Equals(addOrEditHIRHospital.HospitalAliasName),
|
h.HospitalAliasName.Equals(addOrEditHIRHospital.HospitalAliasName),
|
||||||
|
|
||||||
//医院编码、名称不能重复
|
//医院编码、名称不能重复
|
||||||
VerifyMsg = _localizer["Patient_RepeatHospitalCodeOrName"]
|
VerifyMsg = _localizer["Patient_RepeatHospitalCodeOrName"]
|
||||||
};
|
};
|
||||||
|
|
||||||
var entity = await _hIRHospitalRepository.InsertOrUpdateAsync(addOrEditHIRHospital, true, exp, exp2);
|
var entity = await _hIRHospitalRepository.InsertOrUpdateAsync(addOrEditHIRHospital, true, exp, exp2);
|
||||||
|
@ -3078,8 +3078,7 @@ namespace IRaCIS.Application.Services
|
||||||
//看当前前端有没有传递modality,有的话以前端为准,没有的话以配置为准 构造同样数量的请求
|
//看当前前端有没有传递modality,有的话以前端为准,没有的话以配置为准 构造同样数量的请求
|
||||||
var requestModalityList = (inQuery.ModalitiesInStudyList != null && inQuery.ModalitiesInStudyList.Count > 0) ? inQuery.ModalitiesInStudyList : find.ModalityList;
|
var requestModalityList = (inQuery.ModalitiesInStudyList != null && inQuery.ModalitiesInStudyList.Count > 0) ? inQuery.ModalitiesInStudyList : find.ModalityList;
|
||||||
|
|
||||||
//支持多模态的Pacs
|
|
||||||
var modality = string.Join($"\\", requestModalityList);
|
|
||||||
|
|
||||||
|
|
||||||
if (inQuery.TrialId == null)
|
if (inQuery.TrialId == null)
|
||||||
|
@ -3095,16 +3094,33 @@ namespace IRaCIS.Application.Services
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var request = CreateStudyRequest(inQuery, modality);
|
if (find.IsSupportMutiModality)
|
||||||
|
{
|
||||||
|
//支持多模态的Pacs
|
||||||
|
var modality = string.Join($"\\", requestModalityList);
|
||||||
|
|
||||||
request.OnResponseReceived += responseDelegate;
|
var request = CreateStudyRequest(inQuery, modality);
|
||||||
|
|
||||||
await client.AddRequestAsync(request);
|
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();
|
await client.SendAsync();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
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;
|
request.OnResponseReceived += responseDelegate;
|
||||||
|
|
||||||
await client.AddRequestAsync(request);
|
await client.AddRequestAsync(request);
|
||||||
|
|
|
@ -41,8 +41,8 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
public int MaxStudyCount { get; set; }
|
public int MaxStudyCount { get; set; }
|
||||||
|
|
||||||
//[Comment("是否支持多模态查询")]
|
[Comment("是否支持多模态查询")]
|
||||||
//public bool IsSupportMutiModality { get; set; }
|
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)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
|
b.Property<bool>("IsSupportMutiModality")
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasComment("是否支持多模态查询");
|
||||||
|
|
||||||
b.Property<bool>("IsTestOK")
|
b.Property<bool>("IsTestOK")
|
||||||
.HasColumnType("bit");
|
.HasColumnType("bit");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue