feature: HL7 FHIR R4 Integration
This commit is contained in:
@@ -51,6 +51,8 @@ try
|
||||
builder.Services.Configure<PromotionRetryOptions>(
|
||||
builder.Configuration.GetSection(PromotionRetryOptions.Section));
|
||||
|
||||
builder.Services.Configure<FhirOptions>(builder.Configuration.GetSection(FhirOptions.Section));
|
||||
|
||||
// JWT Authentication
|
||||
var jwtOptions = builder.Configuration.GetSection(JwtOptions.Section).Get<JwtOptions>()!;
|
||||
|
||||
@@ -122,6 +124,7 @@ try
|
||||
builder.Services.AddScoped<ILiveCaptureService, LiveCaptureService>();
|
||||
builder.Services.AddScoped<IBatchEventService, BatchEventService>();
|
||||
builder.Services.AddScoped<ICoverSheetService, CoverSheetService>();
|
||||
builder.Services.AddScoped<IFhirService, FhirService>();
|
||||
|
||||
builder.Services.AddHostedService<MetricsCollectorService>();
|
||||
builder.Services.AddHostedService<PromotionRetryService>();
|
||||
@@ -143,7 +146,10 @@ try
|
||||
builder.Services.AddValidatorsFromAssemblyContaining<Program>();
|
||||
builder.Services.AddScoped<ValidationFilter>();
|
||||
builder.Services.AddControllers(options =>
|
||||
options.Filters.AddService<ValidationFilter>());
|
||||
{
|
||||
options.OutputFormatters.Insert(0, new FhirJsonOutputFormatter());
|
||||
options.Filters.AddService<ValidationFilter>();
|
||||
});
|
||||
builder.Services.AddEndpointsApiExplorer();
|
||||
builder.Services.AddVigilCareRecordsSwagger();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user