FHIR to OMOP FHIR IG, published by HL7 International / Biomedical Research and Regulation. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-omop-ig/ and changes regularly. See the Directory of published versions
Page standards status: Draft | Maturity Level: 1 |
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
a fhir:StructureMap ;
fhir:nodeRole fhir:treeRoot ;
fhir:id [ fhir:v "ImmunizationMap"] ; #
fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap ImmunizationMap</b></p><a name=\"ImmunizationMap\"> </a><a name=\"hcImmunizationMap\"> </a><a name=\"ImmunizationMap-en-US\"> </a><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/uv/omop/StructureMap/ImmunizationMap'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'ImmunizationMap'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'Mapping Immunization resource to Drug Exposure OMOP Domain'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'draft'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/immunization.html\" title=\"Immunization\">http://hl7.org/fhir/StructureDefinition/Immunization</a><span style=\"color: navy\">" </span><b>alias </b>Immunization <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"StructureDefinition-DrugExposure.html\" title=\"Drug Exposure OMOP Table\">http://hl7.org/fhir/uv/omop/StructureDefinition/DrugExposure</a><span style=\"color: navy\">" </span><b>alias </b>DrugExposureTable <b>as </b><b>target</b>\r\n\r\n<b>group </b>DrugExposure<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>Immunization, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>DrugExposureTable<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> src.vaccineCode<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span><span style=\"color: maroon\">tgt</span><b> then</b><span style=\"color: navy\"> {\r\n</span> s.coding<b> as </b><span style=\"color: maroon\">sc</span><span style=\"color: navy\"><b> -> </b></span><span style=\"color: maroon\">tgt</span><b> then</b><span style=\"color: navy\"> {\r\n</span> sc.code<span style=\"color: navy\"><b> -> </b></span> tgt.drug_concept_id<span style=\"color: navy\">, </span> tgt.drug_source_value<span style=\"color: navy\">, </span> tgt.drug_source_concept_id<span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n src.patient<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span><span style=\"color: maroon\">tgt</span><b> then</b><span style=\"color: navy\"> {\r\n</span> s.reference<span style=\"color: navy\"><b> -> </b></span>tgt.person_id<span style=\"color: navy\">;</span>\r\n s.identifier<b> as </b><span style=\"color: maroon\">sid</span><span style=\"color: navy\"><b> -> </b></span><span style=\"color: maroon\">tgt</span><b> then</b><span style=\"color: navy\"> {\r\n</span> sid.value<span style=\"color: navy\"><b> -> </b></span>tgt.person_id<span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n src.doseQuantity<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span><span style=\"color: maroon\">tgt</span><b> then</b><span style=\"color: navy\"> {\r\n</span> s.value<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgt.quantity = <b>cast</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'decimal'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n s.code<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgt.dose_unit_source_value = <b>cast</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'string'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n src.route<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span><span style=\"color: maroon\">tgt</span><b> then</b><span style=\"color: navy\"> {\r\n</span> s.text<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgt.route_source_value = <b>cast</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'string'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n s.coding<b> as </b><span style=\"color: maroon\">sc</span><span style=\"color: navy\"><b> -> </b></span><span style=\"color: maroon\">tgt</span><b> then</b><span style=\"color: navy\"> {\r\n</span> sc.code<span style=\"color: navy\"><b> -> </b></span> tgt.route_concept_id<span style=\"color: navy\">, </span> tgt.route_source_value<span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n src.occurrence<span style=\"color: navy\"> : </span>dateTime<span style=\"color: navy\"><b> -> </b></span> tgt.drug_exposure_start_date<span style=\"color: navy\">, </span> tgt.drug_exposure_start_datetime<span style=\"color: navy\">, </span> tgt.drug_exposure_end_date<span style=\"color: navy\">, </span> tgt.drug_exposure_end_datetime<span style=\"color: navy\">;</span>\r\n src.encounter<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span><span style=\"color: maroon\">tgt</span><b> then</b><span style=\"color: navy\"> {\r\n</span> s.reference<span style=\"color: navy\"><b> -> </b></span>tgt.visit_occurrence_id<span style=\"color: navy\">;</span>\r\n s.identifier<b> as </b><span style=\"color: maroon\">sid</span><span style=\"color: navy\"><b> -> </b></span><span style=\"color: maroon\">tgt</span><b> then</b><span style=\"color: navy\"> {\r\n</span> sid.value<span style=\"color: navy\"><b> -> </b></span>tgt.visit_occurrence_id<span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n src.lotNumber<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgt.lot_number = <b>cast</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'string'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
] ; #
fhir:extension ( [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ] ;
fhir:value [ fhir:v "brr" ]
] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm"^^xsd:anyURI ] ;
fhir:value [
fhir:v "1"^^xsd:integer ;
( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom"^^xsd:anyURI ] ;
fhir:value [
fhir:v "http://hl7.org/fhir/uv/omop/ImplementationGuide/hl7.fhir.uv.omop"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/omop/ImplementationGuide/hl7.fhir.uv.omop> ] ] ) ]
] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"^^xsd:anyURI ] ;
fhir:value [
fhir:v "draft" ;
( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom"^^xsd:anyURI ] ;
fhir:value [
fhir:v "http://hl7.org/fhir/uv/omop/ImplementationGuide/hl7.fhir.uv.omop"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/omop/ImplementationGuide/hl7.fhir.uv.omop> ] ] ) ]
] ) ; #
fhir:url [ fhir:v "http://hl7.org/fhir/uv/omop/StructureMap/ImmunizationMap"^^xsd:anyURI] ; #
fhir:version [ fhir:v "0.1.0"] ; #
fhir:name [ fhir:v "ImmunizationMap"] ; #
fhir:title [ fhir:v "Mapping Immunization resource to Drug Exposure OMOP Domain"] ; #
fhir:status [ fhir:v "draft"] ; #
fhir:date [ fhir:v "2024-08-21T19:54:58+00:00"^^xsd:dateTime] ; #
fhir:publisher [ fhir:v "HL7 International / Biomedical Research and Regulation"] ; #
fhir:contact ( [
fhir:name [ fhir:v "HL7 International / Biomedical Research and Regulation" ] ;
( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "http://www.hl7.org/Special/committees/rcrim" ] ] )
] ) ; #
fhir:description [ fhir:v "MappingImmunizationresourcetoDrugExposureOMOPDomain"] ; #
fhir:jurisdiction ( [
( fhir:coding [
fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ] ;
fhir:code [ fhir:v "001" ] ;
fhir:display [ fhir:v "World" ] ] )
] ) ; #
fhir:structure ( [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/Immunization"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Immunization> ] ;
fhir:mode [ fhir:v "source" ] ;
fhir:alias [ fhir:v "Immunization" ]
] [
fhir:url [
fhir:v "http://hl7.org/fhir/uv/omop/StructureDefinition/DrugExposure"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/omop/StructureDefinition/DrugExposure> ] ;
fhir:mode [ fhir:v "target" ] ;
fhir:alias [ fhir:v "DrugExposureTable" ]
] ) ; #
fhir:group ( [
fhir:name [ fhir:v "DrugExposure" ] ;
( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "Immunization" ] ;
fhir:mode [ fhir:v "source" ] ] [
fhir:name [ fhir:v "tgt" ] ;
fhir:type [ fhir:v "DrugExposureTable" ] ;
fhir:mode [ fhir:v "target" ] ] ) ;
( fhir:rule [
fhir:name [ fhir:v "vaccineCode" ] ;
( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "vaccineCode" ] ;
fhir:variable [ fhir:v "s" ] ] ) ;
( fhir:target [
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "tgt" ] ] ) ] ) ;
( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
( fhir:source [
fhir:context [ fhir:v "s" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "sc" ] ] ) ;
( fhir:target [
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "tgt" ] ] ) ] ) ;
( fhir:rule [
fhir:name [ fhir:v "code" ] ;
( fhir:source [
fhir:context [ fhir:v "sc" ] ;
fhir:element [ fhir:v "code" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "drug_concept_id" ] ] [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "drug_source_value" ] ] [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "drug_source_concept_id" ] ] ) ] ) ] ) ] [
fhir:name [ fhir:v "patient" ] ;
( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "patient" ] ;
fhir:variable [ fhir:v "s" ] ] ) ;
( fhir:target [
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "tgt" ] ] ) ] ) ;
( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
( fhir:source [
fhir:context [ fhir:v "s" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:variable [ fhir:v "vvv" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "person_id" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ] ] ) ;
( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
( fhir:parameter [
fhir:value [ fhir:v "vvv" ] ] [
fhir:value [ fhir:v "vvv" ] ] ) ] ) ] [
fhir:name [ fhir:v "identifier" ] ;
( fhir:source [
fhir:context [ fhir:v "s" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "sid" ] ] ) ;
( fhir:target [
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "tgt" ] ] ) ] ) ;
( fhir:rule [
fhir:name [ fhir:v "value" ] ;
( fhir:source [
fhir:context [ fhir:v "sid" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "vvv" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "person_id" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ] ] ) ;
( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
( fhir:parameter [
fhir:value [ fhir:v "vvv" ] ] [
fhir:value [ fhir:v "vvv" ] ] ) ] ) ] ) ] ) ] [
fhir:name [ fhir:v "doseQuantity" ] ;
( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "doseQuantity" ] ;
fhir:variable [ fhir:v "s" ] ] ) ;
( fhir:target [
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "tgt" ] ] ) ] ) ;
( fhir:rule [
fhir:name [ fhir:v "value" ] ;
( fhir:source [
fhir:context [ fhir:v "s" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "s" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "quantity" ] ;
fhir:transform [ fhir:v "cast" ] ;
( fhir:parameter [
fhir:value [ fhir:v "s" ] ] [
fhir:value [ fhir:v "decimal" ] ] ) ] ) ] [
fhir:name [ fhir:v "code" ] ;
( fhir:source [
fhir:context [ fhir:v "s" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "s" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "dose_unit_source_value" ] ;
fhir:transform [ fhir:v "cast" ] ;
( fhir:parameter [
fhir:value [ fhir:v "s" ] ] [
fhir:value [ fhir:v "string" ] ] ) ] ) ] ) ] [
fhir:name [ fhir:v "route" ] ;
( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "route" ] ;
fhir:variable [ fhir:v "s" ] ] ) ;
( fhir:target [
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "tgt" ] ] ) ] ) ;
( fhir:rule [
fhir:name [ fhir:v "text" ] ;
( fhir:source [
fhir:context [ fhir:v "s" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:variable [ fhir:v "s" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "route_source_value" ] ;
fhir:transform [ fhir:v "cast" ] ;
( fhir:parameter [
fhir:value [ fhir:v "s" ] ] [
fhir:value [ fhir:v "string" ] ] ) ] ) ] [
fhir:name [ fhir:v "coding" ] ;
( fhir:source [
fhir:context [ fhir:v "s" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "sc" ] ] ) ;
( fhir:target [
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "tgt" ] ] ) ] ) ;
( fhir:rule [
fhir:name [ fhir:v "code" ] ;
( fhir:source [
fhir:context [ fhir:v "sc" ] ;
fhir:element [ fhir:v "code" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "route_concept_id" ] ] [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "route_source_value" ] ] ) ] ) ] ) ] [
fhir:name [ fhir:v "occurrenceDateTime" ] ;
( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:type [ fhir:v "dateTime" ] ;
fhir:element [ fhir:v "occurrence" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "drug_exposure_start_date" ] ] [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "drug_exposure_start_datetime" ] ] [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "drug_exposure_end_date" ] ] [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "drug_exposure_end_datetime" ] ] ) ] [
fhir:name [ fhir:v "encounter" ] ;
( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "encounter" ] ;
fhir:variable [ fhir:v "s" ] ] ) ;
( fhir:target [
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "tgt" ] ] ) ] ) ;
( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
( fhir:source [
fhir:context [ fhir:v "s" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:variable [ fhir:v "vvv" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "visit_occurrence_id" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ] ] ) ;
( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
( fhir:parameter [
fhir:value [ fhir:v "vvv" ] ] [
fhir:value [ fhir:v "vvv" ] ] ) ] ) ] [
fhir:name [ fhir:v "identifier" ] ;
( fhir:source [
fhir:context [ fhir:v "s" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "sid" ] ] ) ;
( fhir:target [
fhir:transform [ fhir:v "copy" ] ;
( fhir:parameter [
fhir:value [ fhir:v "tgt" ] ] ) ] ) ;
( fhir:rule [
fhir:name [ fhir:v "value" ] ;
( fhir:source [
fhir:context [ fhir:v "sid" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "vvv" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "visit_occurrence_id" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ] ] ) ;
( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
( fhir:parameter [
fhir:value [ fhir:v "vvv" ] ] [
fhir:value [ fhir:v "vvv" ] ] ) ] ) ] ) ] ) ] [
fhir:name [ fhir:v "lotNumber" ] ;
( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "lotNumber" ] ;
fhir:variable [ fhir:v "s" ] ] ) ;
( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "lot_number" ] ;
fhir:transform [ fhir:v "cast" ] ;
( fhir:parameter [
fhir:value [ fhir:v "s" ] ] [
fhir:value [ fhir:v "string" ] ] ) ] ) ] )
] ) . #
IG © 2023+ HL7 International / Biomedical Research and Regulation. Package hl7.fhir.uv.omop#0.1.0 based on FHIR 5.0.0. Generated 2024-08-21
Links: Table of Contents |
QA Report
| Version History |
|
Propose a change