Skip to content

Add hosted, versioned OMOP vocabularies to Groundworkers - #41

Closed
alex-omophub wants to merge 1 commit into
mainfrom
feature/groundworkers-hosted-vocabularies
Closed

alex-omophub wants to merge 1 commit into
mainfrom
feature/groundworkers-hosted-vocabularies

Conversation

@alex-omophub

@alex-omophub alex-omophub commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

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.

Written for commit 5c906b4. Summary will update on new commits.

View guided diff Turn on auto-fix

@alex-omophub

Copy link
Copy Markdown
Member Author

Superseded by the standalone plugin PR at OMOPHub/groundworkers-omophub#1. The plugin and its compatibility workflow are maintained in that repository.

@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant