feature: PHI Column Encryption + Access Logging

This commit is contained in:
voltsrage
2026-06-22 23:43:48 +08:00
parent 46db694820
commit 1824e4eef1
15 changed files with 1832 additions and 11 deletions
+8
View File
@@ -216,6 +216,7 @@ try
builder.Services.AddHostedService<SepsisBundleMonitorService>();
builder.Services.AddHostedService<GcsScoringService>();
builder.Services.AddHostedService<SofaScoringService>();
builder.Services.AddHostedService<PatientPhiMigrationService>();
builder.Services.AddHealthChecks()
.AddDbContextCheck<AppDbContext>("postgresql", tags: new[] { "ready" })
@@ -343,6 +344,13 @@ try
app.MapMetrics("/metrics");
app.MapControllers();
if (args.Contains("encrypt-phi"))
{
await EncryptPhiCommand.RunAsync(app.Services);
return;
}
app.Run();
}