test(fhir): key the adherence fixture by medication id

This commit is contained in:
Marc-André Bombeck committed 2026-09-26 17:03:38 +02:00
1 parent 314e9c1aa3
commit d65ee42d94
1 file changed
+7 -1
@@ -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(