profiles / StructureDefinition
OMOP-Convertible Medication → drug_exposure (vocabulary linkage)
Vocabulary-linkage profile. The FHIR Medication resource is not directly converted to a drug_exposure row; instead, when an event resource (MedicationRequest / Dispense / Administration / Statement) carries a medicationReference, the referenced Medication.code is resolved into drug_concept_id / drug_source_value. This profile defines the canonical code shape: a CodeableConcept in the OMOP Drug domain (RxNorm / NDC / SNOMED CT product).
Routing key — code binding
omop-drug-codes
OMOP domain: Drug
If Medication.code resolves to a concept in this ValueSet, the resource converts to drug_exposure.
| Path | Card | Type | Binding / Fixed | Comment |
|---|---|---|---|---|
| Medication.code | 1..* MS | CodeableConcept | omop-drug-codes required |
Raw JSON
{
"resourceType": "StructureDefinition",
"id": "omop-medication-drug-exposure",
"url": "https://fhir2omop.health-samurai.io/StructureDefinition/omop-medication-drug-exposure",
"version": "0.1.0",
"name": "OmopMedicationDrugExposure",
"title": "OMOP-Convertible Medication → drug_exposure (vocabulary linkage)",
"status": "draft",
"experimental": true,
"description": "Vocabulary-linkage profile. The FHIR Medication resource is not directly converted to a drug_exposure row; instead, when an event resource (MedicationRequest / Dispense / Administration / Statement) carries a medicationReference, the referenced Medication.code is resolved into drug_concept_id / drug_source_value. This profile defines the canonical code shape: a CodeableConcept in the OMOP Drug domain (RxNorm / NDC / SNOMED CT product).",
"fhirVersion": "4.0.1",
"kind": "resource",
"abstract": false,
"type": "Medication",
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Medication",
"derivation": "constraint",
"extension": [
{
"url": "https://fhir2omop.health-samurai.io/StructureDefinition/omop-target-table",
"valueString": "drug_exposure"
},
{
"url": "https://fhir2omop.health-samurai.io/StructureDefinition/omop-edge",
"valueString": "Medication__drug_exposure"
}
],
"differential": {
"element": [
{
"id": "Medication.code",
"path": "Medication.code",
"min": 1,
"mustSupport": true,
"type": [
{
"code": "CodeableConcept"
}
],
"binding": {
"strength": "required",
"valueSet": "https://fhir2omop.health-samurai.io/ValueSet/omop-drug-codes",
"description": "Routing key for any event resource that references this Medication. Code must be in the OMOP Drug domain (RxNorm / NDC / SNOMED CT product)."
}
}
]
},
"targetTable": "drug_exposure",
"edgeKey": "Medication__drug_exposure"
}