Skip to content
Back to skills

Create Definitions From Ohdsi

ASecurity

Generate dismech definitions from OHDSI/ATLAS cohort definitions or other computable phenotype logic. Use when converting OMOP cohort JSON, drafting PheKB-/OHDSI-style phenotype algorithms, or mapping FHIR/CQL/OMOP rules into dismech `definitions` blocks.

  • 75 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 9, 2026
ai-agentspythongobashexpressrailsapi

Works with

  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add monarch-initiative/dismech --skill create-definitions-from-ohdsi --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Create Definitions From Ohdsi?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Create Definitions From Ohdsi
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/monarch-initiative-create-definitions-from-ohdsi/badge)](https://www.skillsdirectory.com/skills/monarch-initiative-create-definitions-from-ohdsi)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: create-definitions-from-ohdsi
description: Generate dismech definitions from OHDSI/ATLAS cohort definitions or other computable phenotype logic. Use when converting OMOP cohort JSON, drafting PheKB-/OHDSI-style phenotype algorithms, or mapping FHIR/CQL/OMOP rules into dismech `definitions` blocks.
---

# Create Definitions From OHDSI

Use this skill to convert OHDSI/ATLAS cohort definitions into dismech `definitions` blocks and to map FHIR/CQL logic into the same structure.

## Quick start

1. Export an ATLAS/WebAPI cohort definition JSON.
2. Generate a YAML fragment:

```bash
uv run python .claude/skills/create-definitions-from-ohdsi/scripts/ohdsi_cohort_to_definition.py /path/to/cohort.json --wrap
```

3. Paste the fragment into the target disorder file under `definitions`.
4. Normalize to dismech norms (add evidence snippets, scope, criteria set names, and any available term objects).
5. Validate:

```bash
just validate kb/disorders/<Disease>.yaml
```

## Workflow guardrails

- Keep logic concise: express cohort entry, inclusion rules, and exit criteria in `criteria_sets`.
- Use `minimum_required` for numeric logic; put temporal logic in `description`.
- Add evidence snippets from abstracts when the algorithm is derived from a publication.
- Only add `term` objects when the CURIE is in a configured prefix (ICD10CM, NCIT, HP, etc.).

## References

- Mapping guide: `references/model-mapping.md` (FHIR/OHDSI/CQL to dismech)

## Scripts

- `scripts/ohdsi_cohort_to_definition.py`: Convert ATLAS/WebAPI cohort JSON to a dismech definition fragment.
  - Use `--wrap` to emit a top-level `definitions` key.

Files in this skill

  • SKILL.md1.6 KB
  • references/model-mapping.md2.3 KB
  • scripts/ohdsi_cohort_to_definition.py4.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.