etl-to-omop-cdm
यह क्या करती है
यह स्किल क्लिनिकल नोट्स के कोडेड निष्कर्षों, जैसे बीमारियाँ, दवाएँ और लैब माप, को OHDSI विश्लेषण के लिए OMOP CDM टेबल में मैप करती है। यह उन डेटा टीमों के लिए है जो क्लिनिकल टेक्स्ट से शोध डेटाबेस बनाती हैं।
कब इस्तेमाल करें
- ✓जब आप नोट्स से निकली बीमारियाँ, दवाएँ या माप OMOP डेटाबेस में डालना चाहते हैं।
- ✓जब नोट्स के निष्कर्षों को ATLAS विश्लेषण के लिए OMOP कॉन्सेप्ट में मानकीकृत करना हो।
- ✓जब आपको पहले से मैप किए गए स्रोत कोड से OMOP क्लिनिकल इवेंट रिकॉर्ड बनाने हों।
Skill का लिंक
https://github.com/maziyarpanahi/openmed/blob/master/skills/etl-to-omop-cdm/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इन नोट्स से मैंने जो डायग्नोसिस और दवाएँ निकाली हैं, उन्हें OMOP कंडीशन और ड्रग एक्सपोज़र टेबल में डालिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट ऐसी एंटिटी लेता है जो पहले से स्रोत वोकैबुलरी में कोडेड हैं, उन्हें मानक OMOP कॉन्सेप्ट में मैप करता है, और मेल खाती क्लिनिकल टेबल में रिकॉर्ड के रूप में लिखता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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.
अक्सर पूछे जाने वाले सवाल
क्या यह स्किल एंटिटी निकालती है?
नहीं। निष्कर्षण और कोडिंग पिछले चरणों में होते हैं, और यह स्किल उसके बाद का OMOP मैपिंग चरण कवर करती है।
कौन-सा OMOP वर्शन सपोर्ट होता है?
स्किल OMOP CDM वर्शन 5.4 के लिए बनी है।
यह कौन-सी टेबल लिखती है?
यह condition occurrence, drug exposure और measurement टेबल कवर करती है।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 5.8k
- रैंकिंग में स्थान
- #14694
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
annotating-variants
5.8kआपके एजेंट को मुफ़्त सार्वजनिक एनोटेटर से जेनेटिक वेरिएंट का असर बताने, HGVS नामों को जीनोम पोज़िशन में बदलने और जनसंख्या आवृत्ति जोड़ने में मदद करती है।
ask-openmed
5.8kआपके एजेंट को क्लिनिकल टेक्स्ट अनुरोध के लिए सही OpenMed वर्कफ़्लो चुनने में मदद करती है, जहाँ मरीज़ का डेटा हो सकता है वहाँ पहले गोपनीयता जाँच से शुरू करके।
assembling-fhir-bundles
5.8kकई FHIR स्वास्थ्य रिकॉर्ड को एक ट्रांज़ैक्शन Bundle में पैक करती है, जो EHR को भेजने के लिए तैयार हो और आंतरिक संदर्भ सही जुड़े हों।
auditing-deid-leakage
5.8kडी-आइडेंटिफ़ाइड क्लिनिकल टेक्स्ट में बचे पहचानकर्ता जैसे SSN, कार्ड नंबर, ईमेल और तारीखें खोजती है, और कुछ बचा हो तो रिलीज़ रोक देती है।
मिलती-जुलती skills
discrawl
394kयह आपके एजेंट को Discord संदेशों के सेव किए गए स्थानीय आर्काइव में खोजने, उसका सारांश बनाने और उसकी ताज़गी जांचने में मदद करती है।
clickhouse-io
280kआपके एजेंट को ClickHouse databases में queries और schemas optimize करने में मदद करता है। high-performance analytical workloads के लिए best practices लागू करता है। जब analytical queries बहुत धीमी हों, तब इसका उपयोग करें।
scientific-db-pubmed-database
280kआपके एजेंट को बायोमेडिकल क्षेत्र के वैज्ञानिक लेख खोजने में मदद करता है। जिस रिसर्च में खास मेडिकल जानकारी चाहिए, उसके लिए यह काम का है।