Browse Source

心电图

bjmzak
wxd 1 year ago
parent
commit
83bfe783de
  1. 28
      src/Shentun.Peis.Application/ImportPacsResults/ImportPacsResultAppService.cs
  2. 3
      src/Shentun.Peis.Domain.Shared/Enums/ThirdInterfaceTypeFlag.cs

28
src/Shentun.Peis.Application/ImportPacsResults/ImportPacsResultAppService.cs

@ -331,5 +331,33 @@ namespace Shentun.Peis.ImportPacsResults
} }
} }
/// <summary>
/// 导入心电图
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("api/app/ImportElectrocardiogramResult/ImportElectrocardiogramResultByPatientRegisterId")]
public async Task ImportElectrocardiogramResultByPatientRegisterIdAsync(PatientRegisterIdInputDto input)
{
var patientRegister = await _patientRegisterRepository.GetAsync(input.PatientRegisterId);
var thirdInterfaces = await _thirdInterfaceRepository.GetListAsync(o =>
o.ThirdInterfaceType == ThirdInterfaceTypeFlag.Electrocardiogram
&& o.MedicalCenterId == patientRegister.MedicalCenterId
&& o.IsActive == 'Y');
foreach (var thirdInterface in thirdInterfaces)
{
var parmValue = thirdInterface.ParmValue;
var configurationBuilder = new ConfigurationBuilder()
.AddJsonStream(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(parmValue)));
var config = configurationBuilder.Build();
var assemblyName = config.GetSection("Interface").GetSection("AssemblyName").Value;
var className = config.GetSection("Interface").GetSection("ClassName").Value;
object[] objects = new object[] { input.PatientRegisterId };
var pluginsOut = await Utilities.ReflectionHelper.InvokeAsync<ImportPacsResultPlugInsOut>(assemblyName,
className, [thirdInterface.Id], "ImportResultByPatientRegisterIdAsync", objects);
}
}
} }
} }

3
src/Shentun.Peis.Domain.Shared/Enums/ThirdInterfaceTypeFlag.cs

@ -29,5 +29,8 @@ namespace Shentun.Peis.Enums
[Description("网上预约查询")] [Description("网上预约查询")]
public const string WebAppoint = "07"; public const string WebAppoint = "07";
[Description("心电图")]
public const string Electrocardiogram = "08";
} }
} }
Loading…
Cancel
Save