Skip to content

v0.2.3: PCS complete-code browse, non-blank input validation, compound-term search recall

Latest

Choose a tag to compare

@cyanheads cyanheads released this 13 Jul 22:19
v0.2.3
e0729c7

PCS complete-code browse, non-blank input validation, compound-term search recall

Three correctness fixes: a wrong browse-hierarchy error, unvalidated
whitespace input, and dropped billable search matches.

Fixed:

  • medcode_browse_hierarchy returns empty axes with a notice for a
    complete, existing ICD-10-PCS code instead of unknown_node; a
    genuinely absent code still throws unknown_node (#13)
  • Whitespace-only required strings (map_codes.from,
    search_codes.query, check_code.code, get_code.codes[],
    browse_hierarchy.node) are now rejected via a shared
    nonBlankString Zod helper, closing the name_to_rxcui LIKE
    '%%' arbitrary-match case (#14)
  • medcode_search_codes recovers single-token compound/inflected
    matches (mono-/polyneuropathy for a "neuropathy" query) via a
    substring-match tier alongside the existing prefix-FTS tier, still
    paginating as one ordered set (#6)

129 tests pass; bun run devcheck clean.

CHANGELOG v0.2.3