Add health condition list, tick, and save for phase 77.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-21 11:41:25 +03:00
co-authored by Cursor
parent 76eb882285
commit 2d31a59a81
8 changed files with 440 additions and 11 deletions
+6
View File
@@ -75,6 +75,12 @@ public sealed record Person
/// </summary>
public List<OffenseRecord>? Offenses { get; set; }
/// <summary>
/// Active medical conditions. Null when healthy (empty) so people.json stays compact.
/// Needs are not replaced by this list.
/// </summary>
public List<HealthCondition>? Conditions { get; set; }
public int AgeOn(DateTime asOf) => SchoolYears.AgeYears(BirthDate, asOf);
}