Module ahon_knowledgebase_mcp.abbreviations

Dutch medical abbreviation lookup and English-gloss search.

Functions

def lookup_dutch_medical_abbreviation(abbreviation: str) ‑> str | None

Look up the English meaning of a Dutch medical abbreviation.

Matching is case-insensitive and ignores apostrophes, trailing dots, and hyphens vs spaces inside the abbreviation (GAG's, gtt., GH-IH / GHIH). A trailing slash on a stored key is optional in the query (a matches A/), but a slash in the query is significant (P/ does not match P). Extra tokens after the abbreviation (DIEP-flap, ZN preparaat) disambiguate homographs when they appear in a meaning; otherwise they are ignored.

Args
-----=
abbreviation
Dutch abbreviation as it appears in clinical notes.

Returns -----= The English meaning when exactly one distinct meaning matches; a markdown table with abbreviation and meaning columns when several meanings match; None when nothing matches.

def search_for_dutch_medical_abbreviations(query: str) ‑> str | None

Fuzzy-search English descriptions to find the corresponding Dutch medical abbreviations.

This searches English glosses only, not Dutch source wording and not abbreviation keys. Dutch queries such as omtrek will not match; use an English term such as girth or circumference. To resolve a known Dutch abbreviation to English, use lookup_dutch_medical_abbreviation().

Args
-----=
query
British English term or phrase to find in abbreviation explanations.

Returns -----= A markdown table with abbreviation and meaning columns, or None when nothing matches.