Add hosted, versioned OMOP vocabularies to Groundworkers

Draft
AL
1d ago
+1336-0

Hosted, versioned OMOP vocabularies in Groundworkers

Groundworkers users can run a study against an explicitly selected OMOPHub vocabulary release and compare a source code’s mappings across two hosted snapshots. OMOPHub maintains the vocabulary databases and indexes. A study site only needs its own API key, release identifier and Groundworkers host configuration.

For ICD-10-CM D3A.022, both hosted releases resolve source concept 45537907. On 2024.2, its active Maps to target is 760937. On 2026.2, the targets are 1244590 and 1345982. The comparison resolves the code independently on both releases, reads every mapping page, and reports the typed edges added and removed. Each read verifies the release returned by the API.

Package and documentation

  • Installable Python package under plugins/groundworkers, discovered through the upstream groundworkers.plugins entry point. Its dependencies are scoped to the plugin.
  • Nine read-only tools for release comparison, code and vocabulary lookup, relationships, descendants, FHIR Coding and CodeableConcept resolution, hosted semantic search, and similarity search.
  • Setup instructions, a minimal host configuration, a reproducible cross-release example, and an integration runner. API credentials stay in the host environment.
  • A package-specific CI workflow builds a source distribution and wheel, installs the wheel, checks dependencies, and exercises Groundworkers discovery and the offline contract tests without API credentials.

Verification

  • Built and installed the wheel in a clean Python 3.12 environment. All 12 offline tests passed, including discovery by a stock Groundworkers MCP host.
  • All 15 hosted checks passed, including the independently verified 2024.2 → 2026.2 mapping change, FHIR coding selection, and semantic and hybrid search.
  • Re-ran the original FOLFOX, family-history and ascending-colon fixtures against release 2026.2. The evidence matched the previous runs, including the documented benign-carcinoid difference from the upstream recording.

This contribution provides additional hosted tools. The existing local Groundworkers tools continue to use the site's configured resources. The publication of a PyPI release and registration in the upstream catalogue are separate maintainer actions.


Summary by cubic

Adds a Groundworkers plugin that queries hosted, release-pinned OMOP vocabulary snapshots from OMOPHub, letting studies resolve codes and compare mappings across two releases without maintaining local vocabularies.

New Features

  • Installs as a Python package under plugins/groundworkers and is discovered via Groundworkers' plugin entry point.
  • Provides nine read-only omophub_ tools for code lookup, mapping comparison, relationships, descendants, FHIR Coding/CodeableConcept resolution, and semantic/similarity search.
  • compare_mappings resolves a source code on both the baseline and configured releases, reads every mapping page, and reports added and removed typed edges.

Verification and docs

  • Includes 12 offline tests plus a live integration runner for real OMOPHub checks.
  • A CI workflow builds the wheel, installs it, and runs the offline tests without API credentials.
  • Plugin README covers setup, release pinning, and a worked example (ICD-10-CM D3A.022 mapping change).

Existing local Groundworkers tools continue to use the site's configured resources.