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.6.2

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.6.2
File Size Uploaded
omop_semantics-0.6.2.tar.gz 202.2 kB Details

Built distribution (wheel)

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

Total release size: 269.0 kB

Release files / omop_semantics-0.6.2.tar.gz

Download URL omop_semantics-0.6.2.tar.gz
Size 202.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ba01bf589cbd7c68163390c07dfefd960780251635773d80a5a9f8243b2be8f5
BLAKE2b-256 checksum
How to use checksums
c4c889354f4c627a54490aa8d68175665f9f860c65be424e1efdffd16776adc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 7, 2026.

Transparency log

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

Download URL omop_semantics-0.6.2-py3-none-any.whl
Size 66.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a9ac1dd8ae2f31c8ee150b8fb9e644ee21d287b071e1d11b4258f6954bd91bb
BLAKE2b-256 checksum
How to use checksums
0aa39b71a40c0a269dffb6188f38cc908e13e2d6290f92201587d45b2bafaf8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.6.2 This release

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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