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.


Three runtime surfaces

  • Value-set runtime
    Stable named concept ids for application logic:
    from omop_semantics.runtime.default_valuesets import runtime

  • Template/profile runtime
    Compiled semantic templates and CDM profiles via OmopSemanticEngine.

  • Fallback concepts
    Canonical unknown and default concepts with reason codes:
    from omop_semantics.unknowns import UNKNOWN


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.7.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.7.0
File Size Uploaded Provenance Actions
omop_semantics-0.7.0.tar.gz 206.0 kB With provenance Details for omop_semantics-0.7.0.tar.gz

Built distribution (wheel)

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

Total release size: 275.0 kB

Release files / omop_semantics-0.7.0.tar.gz

Download URL omop_semantics-0.7.0.tar.gz
Size 206.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f35124f96544978896680249258ed902c1eb152595d51f5c22d5c45d65ec17fd
BLAKE2b-256 checksum
How to use checksums
555949a768e457a83af3e24f311b6d31f283f6cd5249485d5c0bf85fc552a9f2
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 25, 2026.

Transparency log

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

Download URL omop_semantics-0.7.0-py3-none-any.whl
Size 69.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d48f8b7d78dfb8451ef9f53f7a62099dbc1a0dbe521d0a2dd0fbe8820bb79ac4
BLAKE2b-256 checksum
How to use checksums
87a3ceb50064e278a531f8fb5fb288a23d3f05d6404094898031bc00e6e54562
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 25, 2026.

Transparency log

Security for omop-semantics 0.7.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.7.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 25, 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.7.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