feature: Schema, Migrations, Core CRUD, and Redis Threshold Cache

This commit is contained in:
voltsrage
2026-06-16 17:59:16 +08:00
commit 882d4af3e6
63 changed files with 3923 additions and 0 deletions
@@ -0,0 +1,17 @@
public class Encounter
{
public Guid Id { get; set; }
public Guid PatientId { get; set; }
public EncounterType EncounterType { get; set; }
public EncounterStatus Status { get; set; }
public string Department { get; set; } = null!;
public string AttendingPhysician { get; set; } = null!;
public DateTimeOffset AdmittedAt { get; set; }
public DateTimeOffset? DischargedAt { get; set; }
public DateTimeOffset CreatedAt { get; set; }
public Patient Patient { get; set; } = null!;
public ICollection<Observation> Observations { get; set; } = new List<Observation>();
public ICollection<ClinicalAlert> Alerts { get; set; } = new List<ClinicalAlert>();
public ICollection<Order> Orders { get; set; } = new List<Order>();
}