FHIR IG analytics| Package | hl7.fhir.uv.omop |
| Resource Type | StructureMap |
| Id | StructureMap-ConditionMap.json |
| FHIR Version | R5 |
| Source | https://build.fhir.org/ig/HL7/fhir-omop-ig/StructureMap-ConditionMap.html |
| URL | http://hl7.org/fhir/uv/omop/StructureMap/ConditionMap |
| Version | 1.0.0 |
| Status | draft |
| Date | 2026-04-02T22:51:15+00:00 |
| Name | ConditionMap |
| Title | Mapping Condition resource to Condition Occurrence OMOP Domain |
| Realm | uv |
| Authority | hl7 |
| Description | This mapping maps FHIR Condition instances to OMOP Condition Occurence Table objects. |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
Generated Narrative: StructureMap ConditionMap
Language: en
/// url = 'http://hl7.org/fhir/uv/omop/StructureMap/ConditionMap' /// name = 'ConditionMap' /// title = 'Mapping Condition resource to Condition Occurrence OMOP Domain' /// status = 'draft' uses "http://hl7.org/fhir/StructureDefinition/Condition" alias Condition as source uses "http://hl7.org/fhir/uv/omop/StructureDefinition/ConditionOccurrence" alias ConOccTable as target group ConditionOccurrence(source src : Condition, target tgt : ConOccTable) { src.id as id -> tgt.condition_occurrence_id = '1'; // OMOP Condition ID would be a map from FHIR ID to an external key src.subject -> tgt.person_id = '1'; // OMOP Person ID would be a map from the FHIR Condition subject reference to an external key src.code as s -> tgt then { s.coding as sc -> tgt then { sc.code as a -> tgt.condition_concept_id = translate(a, 'http://hl7.org/fhir/uv/omop/ConceptMap/ConditionConcepts', 'code'); sc.display as d -> tgt.condition_source_value = d; }; }; src.recordedDate as rd -> tgt.condition_start_datetime = cast(rd, 'dateTime'), tgt.condition_start_date = rd; src.onset : dateTime as osd -> tgt.condition_start_datetime = osd, tgt.condition_start_date = cast(osd, 'date'); src.abatement : dateTime as abdt -> tgt.condition_end_datetime = adt, tgt.condition_end_date = cast(abdt, 'date'); src.clinicalStatus as s -> tgt then { s.coding as sc -> tgt then { sc.code as a -> tgt.condition_status_concept_id = translate(a, 'http://hl7.org/fhir/uv/omop/ConceptMap/ConditionStatusConcepts', 'code'), tgt.condition_status_source_value = a; }; }; src.encounter -> tgt.visit_occurrence_id = '1'; src.category -> tgt.condition_type_concept_id = '32817' "default"; }
{
"resourceType": "StructureMap",
"id": "ConditionMap",
"language": "en",
"text": {
"status": "generated",
"div": "<!-- snip (see above) -->"
},
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode": "brr"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
"valueInteger": 1,
"_valueInteger": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical": "http://hl7.org/fhir/uv/omop/ImplementationGuide/hl7.fhir.uv.omop"
}
]
}
},
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode": "informative",
"_valueCode": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical": "http://hl7.org/fhir/uv/omop/ImplementationGuide/hl7.fhir.uv.omop"
}
]
}
}
],
"url": "http://hl7.org/fhir/uv/omop/StructureMap/ConditionMap",
"version": "1.0.0",
"name": "ConditionMap",
"title": "Mapping Condition resource to Condition Occurrence OMOP Domain",
"status": "draft",
"date": "2026-04-02T22:51:15+00:00",
"publisher": "HL7 International / Biomedical Research and Regulation",
"contact": [
{
"name": "HL7 International / Biomedical Research and Regulation",
"telecom": [
{
"system": "url",
"value": "http://www.hl7.org/Special/committees/rcrim"
}
]
}
],
"description": "This mapping maps FHIR Condition instances to OMOP Condition Occurence Table objects.",
"jurisdiction": [
{
"coding": [
{
"system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code": "001",
"display": "World"
}
]
}
],
"structure": [
{
"url": "http://hl7.org/fhir/StructureDefinition/Condition",
"mode": "source",
"alias": "Condition"
},
{
"url": "http://hl7.org/fhir/uv/omop/StructureDefinition/ConditionOccurrence",
"mode": "target",
"alias": "ConOccTable"
}
],
"group": [
{
"name": "ConditionOccurrence",
"input": [
{
"name": "src",
"type": "Condition",
"mode": "source"
},
{
"name": "tgt",
"type": "ConOccTable",
"mode": "target"
}
],
"rule": [
{
"name": "id",
"source": [
{
"context": "src",
"element": "id",
"variable": "id"
}
],
"target": [
{
"context": "tgt",
"element": "condition_occurrence_id",
"transform": "copy",
"parameter": [
{
"valueString": "1"
}
]
}
],
"documentation": "OMOP Condition ID would be a map from FHIR ID to an external key"
},
{
"name": "subject",
"source": [
{
"context": "src",
"element": "subject"
}
],
"target": [
{
"context": "tgt",
"element": "person_id",
"transform": "copy",
"parameter": [
{
"valueString": "1"
}
]
}
],
"documentation": "OMOP Person ID would be a map from the FHIR Condition subject reference to an external key"
},
{
"name": "code",
"source": [
{
"context": "src",
"element": "code",
"variable": "s"
}
],
"target": [
{
"transform": "copy",
"parameter": [
{
"valueId": "tgt"
}
]
}
],
"rule": [
{
"name": "coding",
"source": [
{
"context": "s",
"element": "coding",
"variable": "sc"
}
],
"target": [
{
"transform": "copy",
"parameter": [
{
"valueId": "tgt"
}
]
}
],
"rule": [
{
"name": "code",
"source": [
{
"context": "sc",
"element": "code",
"variable": "a"
}
],
"target": [
{
"context": "tgt",
"element": "condition_concept_id",
"transform": "translate",
"parameter": [
{
"valueId": "a"
},
{
"valueString": "http://hl7.org/fhir/uv/omop/ConceptMap/ConditionConcepts"
},
{
"valueString": "code"
}
]
}
]
},
{
"name": "display",
"source": [
{
"context": "sc",
"element": "display",
"variable": "d"
}
],
"target": [
{
"context": "tgt",
"element": "condition_source_value",
"transform": "copy",
"parameter": [
{
"valueId": "d"
}
]
}
]
}
]
}
]
},
{
"name": "recordedDate",
"source": [
{
"context": "src",
"element": "recordedDate",
"variable": "rd"
}
],
"target": [
{
"context": "tgt",
"element": "condition_start_datetime",
"transform": "cast",
"parameter": [
{
"valueId": "rd"
},
{
"valueString": "dateTime"
}
]
},
{
"context": "tgt",
"element": "condition_start_date",
"transform": "copy",
"parameter": [
{
"valueId": "rd"
}
]
}
]
},
{
"name": "onsetDateTime",
"source": [
{
"context": "src",
"type": "dateTime",
"element": "onset",
"variable": "osd"
}
],
"target": [
{
"context": "tgt",
"element": "condition_start_datetime",
"transform": "copy",
"parameter": [
{
"valueId": "osd"
}
]
},
{
"context": "tgt",
"element": "condition_start_date",
"transform": "cast",
"parameter": [
{
"valueId": "osd"
},
{
"valueString": "date"
}
]
}
]
},
{
"name": "abatementDateTime",
"source": [
{
"context": "src",
"type": "dateTime",
"element": "abatement",
"variable": "abdt"
}
],
"target": [
{
"context": "tgt",
"element": "condition_end_datetime",
"transform": "copy",
"parameter": [
{
"valueId": "adt"
}
]
},
{
"context": "tgt",
"element": "condition_end_date",
"transform": "cast",
"parameter": [
{
"valueId": "abdt"
},
{
"valueString": "date"
}
]
}
]
},
{
"name": "clinicalStatus",
"source": [
{
"context": "src",
"element": "clinicalStatus",
"variable": "s"
}
],
"target": [
{
"transform": "copy",
"parameter": [
{
"valueId": "tgt"
}
]
}
],
"rule": [
{
"name": "coding",
"source": [
{
"context": "s",
"element": "coding",
"variable": "sc"
}
],
"target": [
{
"transform": "copy",
"parameter": [
{
"valueId": "tgt"
}
]
}
],
"rule": [
{
"name": "code",
"source": [
{
"context": "sc",
"element": "code",
"variable": "a"
}
],
"target": [
{
"context": "tgt",
"element": "condition_status_concept_id",
"transform": "translate",
"parameter": [
{
"valueId": "a"
},
{
"valueString": "http://hl7.org/fhir/uv/omop/ConceptMap/ConditionStatusConcepts"
},
{
"valueString": "code"
}
]
},
{
"context": "tgt",
"element": "condition_status_source_value",
"transform": "copy",
"parameter": [
{
"valueId": "a"
}
]
}
]
}
]
}
]
},
{
"name": "encounter",
"source": [
{
"context": "src",
"element": "encounter"
}
],
"target": [
{
"context": "tgt",
"element": "visit_occurrence_id",
"transform": "copy",
"parameter": [
{
"valueString": "1"
}
]
}
]
},
{
"name": "default",
"source": [
{
"context": "src",
"element": "category"
}
],
"target": [
{
"context": "tgt",
"element": "condition_type_concept_id",
"transform": "copy",
"parameter": [
{
"valueString": "32817"
}
]
}
]
}
]
}
]
}