mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
test(fhir): key the adherence fixture by medication id
This commit is contained in:
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(
|
||||
|
||||
Reference in new issue
Block a user