etl-to-omop-cdm
Was er macht
Dieser Skill ordnet kodierte Befunde aus klinischen Notizen, etwa Diagnosen, Arzneimittel und Laborwerte, in OMOP-CDM-Tabellen für OHDSI-Analysen ein. Er ist für Datenteams gedacht, die Forschungsdatenbanken aus klinischem Text aufbauen.
Wann du ihn nutzt
- ✓Wenn du aus Notizen abgeleitete Diagnosen, Arzneimittel oder Messwerte in eine OMOP-Datenbank laden willst.
- ✓Wenn Befunde aus Notizen auf OMOP-Konzepte standardisiert werden müssen, damit sie in ATLAS ausgewertet werden können.
- ✓Wenn du klinische OMOP-Ereignisse aus bereits zugeordneten Quellcodes erstellen musst.
Link zum Skill
https://github.com/maziyarpanahi/openmed/blob/master/skills/etl-to-omop-cdm/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Lade die Diagnosen und Medikamente, die ich aus diesen Notizen extrahiert habe, in die OMOP-Tabellen für Diagnosen und Arzneimittelexposition.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent übernimmt Entitäten, die bereits einem Quellvokabular zugeordnet sind, ordnet sie standardisierten OMOP-Konzepten zu und schreibt sie als Datensätze in die passenden klinischen Tabellen.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
ETL to OMOP CDM
The OMOP Common Data Model (CDM) is the OHDSI standard for observational health
data. This skill maps OpenMed-derived clinical facts — entities from
analyze_text that you have already linked to a source terminology — into the
OMOP clinical event tables condition_occurrence, drug_exposure, and
measurement. The NLP runs on-device; OMOP loading is a downstream,
deterministic transform.
When to use this skill
After you have (a) extracted entities with OpenMed and (b) coded them to a source vocabulary (ICD-10-CM / SNOMED for conditions, RxNorm for drugs, LOINC for labs — see the linking skills). Use this skill to turn those coded facts into OMOP rows. It is not a clinical NER skill and not a code-linking skill; it assumes both are done.
Quick start
import openmed
note = "Assessment: type 2 diabetes mellitus. Started metformin 500 mg PO BID. HbA1c 8.2%."
result = openmed.analyze_text(note, output_format="dict")
# result["entities"] -> [{text,label,confidence,start,end}, ...]
# You then code each entity to a SOURCE concept using the OHDSI vocabulary you
# downloaded (see linking-umls-concepts / normalizing-rxnorm / mapping-loinc),
# and map SOURCE -> STANDARD via CONCEPT_RELATIONSHIP ('Maps to').
fact = {
"person_id": 1001,
"domain": "Condition",
"source_code": "E11.9", # ICD-10-CM, from your coding step
"source_vocabulary": "ICD10CM",
"source_concept_id": 45533010, # OHDSI CONCEPT for E11.9 (lookup)
"standard_concept_id": 201826, # 'Maps to' -> SNOMED 'Type 2 diabetes mellitus'
"start_date": "2024-03-12", # from building-patient-timelines
"char_span": (fact_start, fact_end),
}
OpenMed never ships UMLS/SNOMED/RxNorm/LOINC content. You supply the OHDSI vocabulary bundle (Athena download) and do the lookups under your own license. OpenMed provides the spans and labels.
The source → standard pattern (the heart of OMOP)
Every clinical event row carries two concept ids:
*_source_concept_id— the OHDSI CONCEPT for your original code (e.g. the ICD-10-CM or RxNorm code your linking step produced).*_concept_id— the standard concept, obtained by followingCONCEPT_RELATIONSHIP.relationship_id = 'Maps to'from the source concept. Conditions standardize to SNOMED, drugs to RxNorm, measurements to LOINC. If no mapping exists, set the standard id to0.
Domain → table → fields
See references/omop_cdm_v5_4_fields.md for the full per-table field list. Core
mapping by OpenMed entity domain:
| OpenMed entity domain | OMOP table | Standard vocab | Key date / value fields |
|---|---|---|---|
| Disease / Condition | condition_occurrence |
SNOMED | condition_start_date, optional condition_end_date |
| Drug / Medication | drug_exposure |
RxNorm | drug_exposure_start_date, drug_exposure_end_date, quantity, sig |
| Lab / Measurement | measurement |
LOINC | measurement_date, value_as_number, unit_concept_id, value_as_concept_id |
Type concepts: mark rows as NLP-derived
Every event row needs a *_type_concept_id recording provenance. For facts
derived from clinical text, OHDSI uses the type concept 32831 "EHR episode
record" / "Note" family — specifically prefer a "...from note" /
"NLP"-flavored standard type concept from the Type Concept vocabulary in
your bundle. Do not invent ids; resolve the type concept against the vocabulary
you loaded so cohort builders can filter NLP-derived rows.
Workflow
- Extract & code.
analyze_text→ entities; link each to a source code (linking skills). Resolvesource_concept_idand the'Maps to'standard concept from your Athena vocabulary. - Resolve dates. Attach start (and end, where known) dates per
building-patient-timelines. OMOP date fields areDATE; keep the matching*_datetimeonly if you truly have a time. - Assign
person_id. Join to yourpersontable by an internal key — not by any PHI string. De-identify upstream. - Build rows with required keys, the source+standard concept pair, the
NLP type concept, and a unique surrogate
*_occurrence_id/*_exposure_id/measurement_id. - Stage
*_source_value(the raw surface string, after de-id) for QA traceability — but never put raw PHI there. - Conform & validate. Run OHDSI Achilles/DataQualityDashboard on the loaded CDM before analytics.
Häufige Fragen
Extrahiert dieser Skill die Entitäten?
Nein. Extraktion und Kodierung finden in früheren Schritten statt. Dieser Skill übernimmt die OMOP-Zuordnung, die danach folgt.
Welche OMOP-Version wird unterstützt?
Der Skill zielt auf OMOP CDM Version 5.4.
Welche Tabellen schreibt er?
Er deckt die Tabellen für Diagnosen-Vorkommen, Arzneimittelexposition und Messungen ab.
Details
Originalbeschreibung des Autors
Map OpenMed-extracted, terminology-coded conditions, drugs, and measurements into OMOP CDM v5.4 clinical tables (condition_occurrence, drug_exposure, measurement) for OHDSI/ATLAS analytics. Use when the user wants to load NLP-derived facts into an OMOP database, build an OHDSI ETL from clinical notes, populate condition_occurrence or drug_exposure from text, or standardize note-derived findings to OMOP standard concepts. Covers the source-to-standard concept mapping pattern, required vs optional CDM fields, type concepts for NLP-derived rows, and the user-supplied OHDSI vocabulary (CONCEPT/CON
repo: maziyarpanahi/openmed
Beliebtheit
- GitHub-Sterne
- 5.8k
- Platz im Ranking
- #14694
- Lizenz
- Apache-2.0
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
annotating-variants
5.8kHilft deinem Agenten vorherzusagen, was eine genetische Variante bewirkt, HGVS-Namen in Genompositionen umzuwandeln und Populationshäufigkeiten anzufügen, mit kostenlosen öffentlichen Annotatoren.
ask-openmed
5.8kHilft deinem Agenten, für eine klinische Textanfrage den richtigen OpenMed-Ablauf zu wählen, beginnend mit einer Datenschutzprüfung, sobald Patientendaten enthalten sein könnten.
assembling-fhir-bundles
5.8kBündelt mehrere FHIR-Gesundheitsdatensätze in ein Transaktions-Bundle, das an ein KIS gesendet werden kann, mit korrekt verknüpften internen Verweisen.
auditing-deid-leakage
5.8kPrüft pseudonymisierte klinische Texte auf übrig gebliebene Kennungen wie SSN, Kartennummern, E-Mail-Adressen und Daten und blockiert die Freigabe, wenn noch welche da sind.
Ähnliche Skills
discrawl
394kLässt deinen Agenten ein gespeichertes lokales Archiv von Discord-Nachrichten durchsuchen und zusammenfassen, dessen Aktualität prüfen und Direktnachrichten lesen.
clickhouse-io
280kHilft deinem Agenten, Abfragen und Schemas in ClickHouse zu optimieren. Nutzt Best Practices für schnelle Analyse-Workloads. Ideal, wenn Auswertungen zu langsam laufen.
scientific-db-pubmed-database
280kHilft deinem Agenten, wissenschaftliche Artikel im biomedizinischen Bereich zu suchen. Nützlich für Recherchen mit speziellen medizinischen Informationen.