Skip to main content

omop-semantics

omop-semantics is a Python library for defining and managing semantic conventions on top of OMOP CDM.

It gives you a structured, versioned, portable layer for describing which OMOP concepts are valid in a given context, how they map to CDM row shapes, and what fallback concepts to use when a mapping cannot be completed. Conventions are authored in YAML, validated against schemas, and exposed as typed Python objects — not scattered across ETL code, SQL, or documentation.


Runtime contract owners

Contract Public API
Named concepts and value sets omop_semantics.runtime.default_valuesets.runtime
Compiled semantic templates and CDM profiles omop_semantics.runtime.OmopSemanticEngine
Fallback concepts and reason codes omop_semantics.unknowns
CDM 5.4.2 event-field links omop_semantics.links exports LINK_MECHANISMS, LinkMechanism, and field_concept_id

Key properties

  • Portable — no database or vocabulary graph required
  • Versionable — conventions are tracked in git alongside code
  • Extensible — add project-specific definitions on top of the shipped ones
  • Integrates with pipelines — drives ETL logic, validation, and documentation from a single source

When to use this

Use omop-semantics if you:

  • have project-specific rules about which OMOP concepts are valid,
  • need consistent concept groupings across ETL and analytics,
  • want semantic conventions to be explicit, testable, and versioned,
  • are working in domains like oncology where OMOP alone is too permissive.

Docs

Metadata

Release files for omop-semantics 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for omop-semantics 0.9.0
File Size Uploaded Provenance Actions
omop_semantics-0.9.0.tar.gz 208.7 kB With provenance Details for omop_semantics-0.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for omop-semantics 0.9.0
File Interpreter ABI Platform Actions
omop_semantics-0.9.0-py3-none-any.whl Python 3 none any Details for omop_semantics-0.9.0-py3-none-any.whl

Total release size: 280.6 kB

Release files / omop_semantics-0.9.0.tar.gz

Download URL omop_semantics-0.9.0.tar.gz
Size 208.7 kB
Tags Source
SHA-256 checksum
How to use checksums
06cc636b14b07411feaeebfd7f4120b455f64ebd588e9d8becf470345d807a21
BLAKE2b-256 checksum
How to use checksums
735bc9c625f21e2d79e22cce250487552488719bc9606faedac8d27fc145a65f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / omop_semantics-0.9.0-py3-none-any.whl

Download URL omop_semantics-0.9.0-py3-none-any.whl
Size 71.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e8e8a803202c75bd7a92fb3b22fad4273760b0f9c9419296473d7c483c4c747
BLAKE2b-256 checksum
How to use checksums
31070e0f01f20a4fe1b270fb01c1c5b834fed1630c5db15e4772acf8ae2453e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for omop-semantics 0.9.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for omop_semantics-0.9.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page