feature: Ward Gateway Service (Local-First Clinical Path)

This commit is contained in:
voltsrage
2026-06-23 16:45:38 +08:00
parent d8e142fffe
commit 1bf8359097
100 changed files with 5474 additions and 4 deletions
@@ -0,0 +1,18 @@
using Microsoft.EntityFrameworkCore;
public class GatewayDbContext : DbContext
{
public GatewayDbContext(DbContextOptions<GatewayDbContext> opts) : base(opts) { }
public DbSet<ReplicaPatient> Patients => Set<ReplicaPatient>();
public DbSet<ReplicaEncounter> Encounters => Set<ReplicaEncounter>();
public DbSet<ReplicaAlertThreshold> AlertThresholds => Set<ReplicaAlertThreshold>();
public DbSet<LocalObservation> Observations => Set<LocalObservation>();
public DbSet<LocalClinicalAlert> ClinicalAlerts => Set<LocalClinicalAlert>();
public DbSet<BufferedSyncItem> BufferedSyncItems => Set<BufferedSyncItem>();
public DbSet<SyncOutboxEntry> SyncOutbox => Set<SyncOutboxEntry>();
public DbSet<GatewaySyncState> SyncState => Set<GatewaySyncState>();
protected override void OnModelCreating(ModelBuilder modelBuilder) =>
modelBuilder.ApplyConfigurationsFromAssembly(typeof(GatewayDbContext).Assembly);
}