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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

omop_semantics-0.5.0.tar.gz (45.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

omop_semantics-0.5.0-py3-none-any.whl (66.2 kB view details)

Uploaded Python 3

File details

Details for the file omop_semantics-0.5.0.tar.gz.

File metadata

  • Download URL: omop_semantics-0.5.0.tar.gz
  • Upload date:
  • Size: 45.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for omop_semantics-0.5.0.tar.gz
Algorithm Hash digest
SHA256 bca66c6d5e4705029df26780debaff4cdd9e9bd0121af88863ec402904ddb8d7
MD5 f28ec677e95b21289ba3219254ad5ae3
BLAKE2b-256 7db07bb5727f5dc38fc09f735a5a3b1e4c9023915671ce39927c06852e4639b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for omop_semantics-0.5.0.tar.gz:

Publisher: python-publish.yml on AustralianCancerDataNetwork/omop-semantics

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file omop_semantics-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: omop_semantics-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 66.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for omop_semantics-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e298546b4a4ca0ac991620418b9d8b1abd5b76c4c94b47040057736e0ae9dc4d
MD5 5ebb07af07b669e132889ea46581b606
BLAKE2b-256 187b43910f583455b6e338234437e7f2d4a9b1d8b7425a2669582bef464a282f

See more details on using hashes here.

Provenance

The following attestation bundles were made for omop_semantics-0.5.0-py3-none-any.whl:

Publisher: python-publish.yml on AustralianCancerDataNetwork/omop-semantics

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.6.0

2 files

This release

0.5.0 This release

2 files

0.4.0

2 files

0.3.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.15

2 files

0.1.14

2 files

0.1.13

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 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