From d65ee42d941fdf17c26b7e1b1729b82bbcaf2746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sat, 26 Sep 2026 17:03:38 +0200 Subject: [PATCH] test(fhir): key the adherence fixture by medication id --- src/lib/fhir/__tests__/terminology-displays.test.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/fhir/__tests__/terminology-displays.test.ts b/src/lib/fhir/__tests__/terminology-displays.test.ts index f712fb2e0..70ede4b70 100644 --- a/src/lib/fhir/__tests__/terminology-displays.test.ts +++ b/src/lib/fhir/__tests__/terminology-displays.test.ts @@ -74,7 +74,13 @@ describe("LOINC displays accepted by the validator", () => { it("names medication adherence as LOINC does", () => { const all = codings({ compliance: { - "Example Drug": { total: 10, taken: 9, skipped: 1, missed: 0 }, + "med-1": { + name: "Example Drug", + total: 10, + taken: 9, + skipped: 1, + missed: 0, + }, }, }); expect(all.find((c) => c.code === "71799-1")?.display).toBe(