Allergen API returns results inconsistent with the Canvas UI allergen autocomplete #1730
Replies: 1 comment
|
Hi Jayant, This is the allergen-specific follow-up I promised on the medication thread (#1728) — and is it's the same underlying story as medications, so the model you've already internalized there carries straight over. The short versionFHIR
So 1. Is
|
Uh oh!
There was an error while loading. Please reload this page.
We are programmatically searching the FHIR
/Allergenendpoint and observing results that don't match what the Canvas UI's allergen autocomplete offers for the same search term on the same instance. Two different FDB codes for the same search term, and entries the UI clearly knows about are not returned by the FHIR endpoint.Case 1 —
chocolateRequest:
Response (one entry,
total=1):{ "resource": { "resourceType": "Allergen", "id": "fdb-2-114545", "code": { "coding": [ { "system": "http://www.fdbhealth.com/", "code": "2-114545", "display": "Ex-Lax (sennosides)" }, { "system": "http://www.nlm.nih.gov/research/umls/rxnorm", "code": "217013" } ] } } }By contrast, the Canvas UI's allergen autocomplete on the same instance shows multiple chocolate-related entries when typing
chocolate— includingchocolate (ingredient),chocolate flavor (bulk) (medication),Chocolate Flavored Laxative (medication),chocolate hazelnut flav (bulk) (medication), etc. None of these are returned by/Allergen?_text=chocolate.When
chocolate (ingredient)is picked from the UI and committed to a note, the persisted coding on the allergy intolerance is:So the UI catalog has FDB code
19561for "chocolate", but the FHIR endpoint exposes a different FDB code (2-114545, "Ex-Lax (sennosides)") and never surfaces19561under any phrasing we tried (chocolate,chocolate (ingredient),chocolate ingredient).Case 2 — pluralization
The singular form returns the canonical category entry; the plural and the parenthetical-qualified form return nothing. Same clinical concept, but
_text=appears to be strict on word form.Questions for Canvas
/Allergen?_text=documented as the complete allergen catalog for an instance, or is it a deliberately filtered subset? If filtered, what's the filter (e.g. excludes "ingredient"-category entries)?19561written by the UI on note commit) and the prefixed codes (e.g.2-114545returned by FHIR) in the same code-space, or are they different identifier systems? How should an integrator map between them?_text=expected to handle inflection (singular/plural) and parenthetical qualifiers, or is it strict-match? Is there a recommended search parameter for fuzzy/lexical-variant lookup?We can share additional examples on request.
All reactions