Skip to main content

Add your description here

Project description

omop_semantics

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

It lets you describe conventions in code

  • which OMOP concepts you want to have on hand as named key concepts to improve ergonomics in analytic code,
  • how they are grouped,
  • what roles they play
  • and provide profiles to render these targets uniformly into CDM tables.

The goal is to make these conventions explicit, versioned, and reusable, instead of being buried in code, SQL, or documentation. They are also extensible so that you can add opinionated layers on top of default specifications that may be relevant in a domain-specific context only.


Key ideas

  • Human-authored
    Semantic rules and concept groups are written in YAML and validated with schemas.

  • Portable
    No database or graph store required.

  • Versionable
    Conventions can evolve over time and be tracked in git.

  • Integrates with pipelines
    Can drive ETL logic, validation, and documentation so they stay in sync.


Typical workflow

  1. Define a schema
    Describes what kinds of semantic objects and roles exist (e.g. staging, modifiers).

  2. Write YAML instances
    Lists actual OMOP concepts and groups used in your project.

  3. Load a runtime registry
    This gives you a programmatic API to query concepts, groups, and relationships.

  4. Use it in code
    For validation, cohort logic, ETL constraints, or documentation.


When should you 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.

Project details


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.1.14.tar.gz (40.6 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.1.14-py3-none-any.whl (65.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: omop_semantics-0.1.14.tar.gz
  • Upload date:
  • Size: 40.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for omop_semantics-0.1.14.tar.gz
Algorithm Hash digest
SHA256 c7ff11ce4b2a4f2cf8f27ee47e63f963856305188969d2f585fd9a6603c8e475
MD5 91b7aacb94d1847c20942fef23642ff7
BLAKE2b-256 4840082f5b6c6e4405aba1d4b8e73e90d648ef56553c7b8f17ce1bd8d9d2fc72

See more details on using hashes here.

Provenance

The following attestation bundles were made for omop_semantics-0.1.14.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.1.14-py3-none-any.whl.

File metadata

  • Download URL: omop_semantics-0.1.14-py3-none-any.whl
  • Upload date:
  • Size: 65.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for omop_semantics-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 2ffe965802104e2c8dd70b6ad562621a7c9525d4e2ba3cb93f74b00ca51ee8a4
MD5 dc876273c5a37e35c5d934fce85f7676
BLAKE2b-256 20116dc09259a6cbd137eb7817e67803c077cbf16bbd2ee3f5f1adb313eef3d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for omop_semantics-0.1.14-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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page