Define, validate, and use schema-backed semantic conventions for OMOP CDM
Project description
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 viaOmopSemanticEngine. -
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
- Usage — loading paths and code patterns
- Data Model — profiles, templates, and semantic objects
- Schema & Instances — authoring assets and file organisation
- Fallback Concepts — the shipped unknown and default concepts
- Internals — package structure and load-time behaviour
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file omop_semantics-0.2.2.tar.gz.
File metadata
- Download URL: omop_semantics-0.2.2.tar.gz
- Upload date:
- Size: 31.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b160d7d7ff4bdf91f236fd5dada8324e45f44d02d074f80e33ec05916d3c8887
|
|
| MD5 |
8330e0452a982d3783ac4ac793adec0b
|
|
| BLAKE2b-256 |
fd7ffff332b4382bbd486631b73af48bb2f70551aeee1738ba5ae7c3cd598e35
|
Provenance
The following attestation bundles were made for omop_semantics-0.2.2.tar.gz:
Publisher:
python-publish.yml on AustralianCancerDataNetwork/omop-semantics
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
omop_semantics-0.2.2.tar.gz -
Subject digest:
b160d7d7ff4bdf91f236fd5dada8324e45f44d02d074f80e33ec05916d3c8887 - Sigstore transparency entry: 1807619701
- Sigstore integration time:
-
Permalink:
AustralianCancerDataNetwork/omop-semantics@6b0a2522ad1b19b3cb9fd7a795227b0c337495ad -
Branch / Tag:
refs/tags/0.2.2 - Owner: https://github.com/AustralianCancerDataNetwork
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6b0a2522ad1b19b3cb9fd7a795227b0c337495ad -
Trigger Event:
release
-
Statement type:
File details
Details for the file omop_semantics-0.2.2-py3-none-any.whl.
File metadata
- Download URL: omop_semantics-0.2.2-py3-none-any.whl
- Upload date:
- Size: 49.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e86dd360c879e3ddbf3c7a9e06f33d7e5ea5a351bd389beb658164ce65a9e1a0
|
|
| MD5 |
da9c7002047537af8c69bb23c11cd4ed
|
|
| BLAKE2b-256 |
23a5eedd656310e33b67b9805c512ea193e2882ab99e4c3b150a227361c227bb
|
Provenance
The following attestation bundles were made for omop_semantics-0.2.2-py3-none-any.whl:
Publisher:
python-publish.yml on AustralianCancerDataNetwork/omop-semantics
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
omop_semantics-0.2.2-py3-none-any.whl -
Subject digest:
e86dd360c879e3ddbf3c7a9e06f33d7e5ea5a351bd389beb658164ce65a9e1a0 - Sigstore transparency entry: 1807619715
- Sigstore integration time:
-
Permalink:
AustralianCancerDataNetwork/omop-semantics@6b0a2522ad1b19b3cb9fd7a795227b0c337495ad -
Branch / Tag:
refs/tags/0.2.2 - Owner: https://github.com/AustralianCancerDataNetwork
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6b0a2522ad1b19b3cb9fd7a795227b0c337495ad -
Trigger Event:
release
-
Statement type: