From 959e5c4f369e005b8ab061d60c495ac85c2bc3d2 Mon Sep 17 00:00:00 2001 From: wswarr Date: Fri, 2 Aug 2024 12:53:54 -0600 Subject: [PATCH] fix: updating age at death agetype format (#157) See [canary#276](https://github.com/nightingaleproject/canary/issues/276). Co-authored-by: Win Swarr --- projects/Canary/Models/DeathRecordFaker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/Canary/Models/DeathRecordFaker.cs b/projects/Canary/Models/DeathRecordFaker.cs index 0acf92f9..6874fb69 100644 --- a/projects/Canary/Models/DeathRecordFaker.cs +++ b/projects/Canary/Models/DeathRecordFaker.cs @@ -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() { { "value", age.ToString() }, { "unit", "a" } }; + record.AgeAtDeath = new Dictionary() { { "value", age.ToString() }, { "code", "a" } }; // Place of residence