FHIR to OMOP FHIR IG
1.0.0 - INFORMATIVE 1 International flag

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 1.0.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

: Mapping Immunization resource to Drug Exposure OMOP Domain

Page standards status: Informative Maturity Level: 1

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@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:language [ fhir:v "en"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div [ fhir:v "<div xml:lang=\"en\" xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap ImmunizationMap</b></p><a name=\"ImmunizationMap\"> </a><a name=\"hcImmunizationMap\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Language: en</p></div><pre class=\"fml\">#xD;\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/uv/omop/StructureMap/ImmunizationMap'</span>#xD;\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'ImmunizationMap'</span>#xD;\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'Mapping Immunization resource to Drug Exposure OMOP Domain'</span>#xD;\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'draft'</span>#xD;\n#xD;\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>#xD;\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>#xD;\n#xD;\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\"> {#xD;\n</span>  src.id<span style=\"color: navy\"><b> -&gt; </b></span>tgt.drug_exposure_id = <span style=\"color: blue\">'1'</span><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">OMOP Drug Exposure ID would be a map from FHIR ID to an external key</span>#xD;\n  src.patient<span style=\"color: navy\"><b> -&gt; </b></span>tgt.person_id = <span style=\"color: blue\">'1'</span><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">OMOP Person ID would be a map from the FHIR Immunization Patient reference to an external key</span>#xD;\n  src.encounter<span style=\"color: navy\"><b> -&gt; </b></span>tgt.visit_occurrence_id = <span style=\"color: blue\">'1'</span><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">OMOP Visit Occurrence ID would be a map from the FHIR Immunization Encounter reference to an external key</span>#xD;\n  src.vaccineCode<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span><span style=\"color: maroon\">tgt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    s.coding first<b> as </b><span style=\"color: maroon\">sc</span><span style=\"color: navy\"><b> -&gt; </b></span><span style=\"color: maroon\">tgt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      sc.code<b> as </b><span style=\"color: maroon\">c</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.drug_concept_id = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">c</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'http://hl7.org/fhir/uv/omop/ConceptMap/ImmunizationVaccine'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">, </span> tgt.drug_source_value = <span style=\"color: maroon\">c</span><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n  src.doseQuantity<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span><span style=\"color: maroon\">tgt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    s.value<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.quantity = <span style=\"color: maroon\">s</span><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n  src.route<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span><span style=\"color: maroon\">tgt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    s.coding<b> as </b><span style=\"color: maroon\">sc</span><span style=\"color: navy\"><b> -&gt; </b></span><span style=\"color: maroon\">tgt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      sc.code<b> as </b><span style=\"color: maroon\">c</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.route_concept_id = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">c</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'http://hl7.org/fhir/uv/omop/ConceptMap/ImmunizationRoute'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">, </span> tgt.route_source_value = <span style=\"color: maroon\">c</span><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n  src<b> where </b>(src.informationSource.empty())<span style=\"color: navy\"><b> -&gt; </b></span>tgt.drug_type_concept_id = <span style=\"color: blue\">'32818'</span> <i>\"emptysource\"</i><span style=\"color: navy\">;</span>#xD;\n  src.informationSource<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span><span style=\"color: maroon\">tgt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    s.concept<b> as </b><span style=\"color: maroon\">concept</span><span style=\"color: navy\"><b> -&gt; </b></span><span style=\"color: maroon\">tgt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      concept.coding<b> as </b><span style=\"color: maroon\">sc</span><span style=\"color: navy\"><b> -&gt; </b></span><span style=\"color: maroon\">tgt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>        sc.code<b> as </b><span style=\"color: maroon\">c</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.drug_type_concept_id = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">c</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'http://hl7.org/fhir/uv/omop/ConceptMap/ImmunizationSource'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>#xD;\n      <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n  src.occurrence<span style=\"color: navy\"> : </span>dateTime<b> as </b><span style=\"color: maroon\">odt</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.drug_exposure_start_date = <span style=\"color: navy\">(</span>src.occurrence.toString().substring(0, 10)<span style=\"color: navy\">)</span><span style=\"color: navy\">, </span> tgt.drug_exposure_start_datetime = <span style=\"color: maroon\">odt</span><span style=\"color: navy\">, </span> tgt.drug_exposure_end_date = <span style=\"color: navy\">(</span>src.occurrence.toString().substring(0, 10)<span style=\"color: navy\">)</span><span style=\"color: navy\">, </span> tgt.drug_exposure_end_datetime = <span style=\"color: maroon\">odt</span><span style=\"color: navy\">;</span>#xD;\n  src.lotNumber<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.lot_number<span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span></pre></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-wg>     ] ;
fhir:value [
a fhir:Code ;
fhir:v "brr"     ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm>     ] ;
fhir:value [
a fhir:Integer ;
fhir:v 1 ;
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom>         ] ;
fhir:value [
a fhir:Canonical ;
fhir:v "http://hl7.org/fhir/uv/omop/ImplementationGuide/hl7.fhir.uv.omop"^^xsd:anyURI ;
fhir:l <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:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status>     ] ;
fhir:value [
a fhir:Code ;
fhir:v "informative" ;
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom>         ] ;
fhir:value [
a fhir:Canonical ;
fhir:v "http://hl7.org/fhir/uv/omop/ImplementationGuide/hl7.fhir.uv.omop"^^xsd:anyURI ;
fhir:l <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:l <http://hl7.org/fhir/uv/omop/StructureMap/ImmunizationMap>
  ] ; # 
  fhir:version [ fhir:v "1.0.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 "2026-04-02T22:51:15+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 "This mapping maps FHIR Immunization instances to OMOP Drug Exposure Table objects."] ; # 
  fhir:jurisdiction ( [
    ( fhir:coding [
fhir:system [
fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ;
fhir:l <http://unstats.un.org/unsd/methods/m49/m49.htm>       ] ;
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:l <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:l <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 "id" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "id" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "drug_exposure_id" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:String ;
fhir:v "1"           ]         ] )       ] ) ;
fhir:documentation [ fhir:v "OMOP Drug Exposure ID would be a map from FHIR ID to an external key" ]     ] [
fhir:name [ fhir:v "patient" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "patient" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "person_id" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:String ;
fhir:v "1"           ]         ] )       ] ) ;
fhir:documentation [ fhir:v "OMOP Person ID would be a map from the FHIR Immunization Patient reference to an external key" ]     ] [
fhir:name [ fhir:v "encounter" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "encounter" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "visit_occurrence_id" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:String ;
fhir:v "1"           ]         ] )       ] ) ;
fhir:documentation [ fhir:v "OMOP Visit Occurrence ID would be a map from the FHIR Immunization Encounter reference to an external key" ]     ] [
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 [
a fhir:Id ;
fhir:v "tgt"           ]         ] )       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
        ( fhir:source [
fhir:context [ fhir:v "s" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:listMode [ fhir:v "first" ] ;
fhir:variable [ fhir:v "sc" ]         ] ) ;
        ( fhir:target [
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "tgt"             ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
          ( fhir:source [
fhir:context [ fhir:v "sc" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "c" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "drug_concept_id" ] ;
fhir:transform [ fhir:v "translate" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "c"               ]             ] [
fhir:value [
a fhir:String ;
fhir:v "http://hl7.org/fhir/uv/omop/ConceptMap/ImmunizationVaccine"               ]             ] [
fhir:value [
a fhir:String ;
fhir:v "code"               ]             ] )           ] [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "drug_source_value" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "c"               ]             ] )           ] )         ] )       ] )     ] [
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 [
a fhir:Id ;
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 "copy" ] ;
          ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "s"             ]           ] )         ] )       ] )     ] [
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 [
a fhir:Id ;
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 [
a fhir:Id ;
fhir:v "tgt"             ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
          ( fhir:source [
fhir:context [ fhir:v "sc" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "c" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "route_concept_id" ] ;
fhir:transform [ fhir:v "translate" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "c"               ]             ] [
fhir:value [
a fhir:String ;
fhir:v "http://hl7.org/fhir/uv/omop/ConceptMap/ImmunizationRoute"               ]             ] [
fhir:value [
a fhir:String ;
fhir:v "code"               ]             ] )           ] [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "route_source_value" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "c"               ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "emptysource" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:condition [ fhir:v "(src.informationSource.empty())" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "drug_type_concept_id" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:String ;
fhir:v "32818"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "informationSource" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "informationSource" ] ;
fhir:variable [ fhir:v "s" ]       ] ) ;
      ( fhir:target [
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "tgt"           ]         ] )       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "concept" ] ;
        ( fhir:source [
fhir:context [ fhir:v "s" ] ;
fhir:element [ fhir:v "concept" ] ;
fhir:variable [ fhir:v "concept" ]         ] ) ;
        ( fhir:target [
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "tgt"             ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
          ( fhir:source [
fhir:context [ fhir:v "concept" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "sc" ]           ] ) ;
          ( fhir:target [
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "tgt"               ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "sc" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "c" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "drug_type_concept_id" ] ;
fhir:transform [ fhir:v "translate" ] ;
              ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "c"                 ]               ] [
fhir:value [
a fhir:String ;
fhir:v "http://hl7.org/fhir/uv/omop/ConceptMap/ImmunizationSource"                 ]               ] [
fhir:value [
a fhir:String ;
fhir:v "code"                 ]               ] )             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "occurrenceDateTime" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:type [ fhir:v "dateTime" ] ;
fhir:element [ fhir:v "occurrence" ] ;
fhir:variable [ fhir:v "odt" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "drug_exposure_start_date" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:String ;
fhir:v "src.occurrence.toString().substring(0, 10)"           ]         ] )       ] [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "drug_exposure_start_datetime" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "odt"           ]         ] )       ] [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "drug_exposure_end_date" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:String ;
fhir:v "src.occurrence.toString().substring(0, 10)"           ]         ] )       ] [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "drug_exposure_end_datetime" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:Id ;
fhir:v "odt"           ]         ] )       ] )     ] [
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" ]       ] )     ] )
  ] ) . #