feature: Corrections and Supersession

This commit is contained in:
voltsrage
2026-06-26 16:33:31 +08:00
parent 706318e5d2
commit f232761fd7
35 changed files with 4907 additions and 75 deletions
@@ -0,0 +1,14 @@
public class LiveEncounter
{
public Guid Id { get; set; }
public Guid PatientId { get; set; }
public DateTimeOffset AdmissionDate { get; set; }
public Department? Department { get; set; }
public string? RoomBed { get; set; }
public string? AdmissionReason { get; set; }
public string? DischargeDiagnosis { get; set; }
public string Status { get; set; } = "active";
public DateTimeOffset CreatedAt { get; set; }
public ICollection<LiveObservation> Observations { get; set; } = new List<LiveObservation>();
}
@@ -0,0 +1,20 @@
public class LiveObservation
{
public Guid Id { get; set; }
public Guid EncounterId { get; set; }
public Guid? PatientId { get; set; }
public Guid SourceBatchId { get; set; }
public string ObservationCode { get; set; } = null!;
public decimal Value { get; set; }
public string Unit { get; set; } = null!;
public DateTimeOffset RecordedAt { get; set; }
public string? Note { get; set; }
public DateTimeOffset CreatedAt { get; set; }
// Phase 5: Supersession fields
public bool IsSuperseded { get; set; }
public Guid? SupersededByBatchId { get; set; }
public DateTimeOffset? SupersededAt { get; set; }
public LiveEncounter Encounter { get; set; } = null!;
}