Skip to content

Commit

Permalink
fix: updating age at death agetype format (#157)
Browse files Browse the repository at this point in the history
See
[canary#276](nightingaleproject/canary#276).

Co-authored-by: Win Swarr <[email protected]>
  • Loading branch information
wswarr and Win Swarr authored Aug 2, 2024
1 parent 6ee907c commit 959e5c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/Canary/Models/DeathRecordFaker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public override DeathRecord Generate(bool simple = false)
record.DateOfDeath = deathUtc.ToString("yyyy-MM-dd");
int age = death.Year - birth.Year;
if (birthUtc > deathUtc.AddYears(-age)) age--;
record.AgeAtDeath = new Dictionary<string, string>() { { "value", age.ToString() }, { "unit", "a" } };
record.AgeAtDeath = new Dictionary<string, string>() { { "value", age.ToString() }, { "code", "a" } };

// Place of residence

Expand Down

0 comments on commit 959e5c4

Please sign in to comment.