FHIR to OMOP FHIR IG
1.0.0-ballot - INFORMATIVE 1 - Ballot International flag

This page is part of the Vulcan FHIR to OMOP FHIR Implementation Guide (v1.0.0-ballot: INFORMATIVE 1 Ballot 1) based on FHIR (HL7® FHIR® Standard) v5.0.0. No current official version has been published yet. For a full list of available versions, see the Directory of published versions

: Mapping Procedure resource to Procedure Occurrence OMOP Domain - XML Representation

Page standards status: Informative Maturity Level: 1

Raw xml | Download


<StructureMap xmlns="http://hl7.org/fhir">
  <id value="ProcedureMap"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureMap ProcedureMap</b></p><a name="ProcedureMap"> </a><a name="hcProcedureMap"> </a><pre class="fml">
<span style="color: #cc00cc">/// <b>url</b> = </span><span style="color: blue">'http://hl7.org/fhir/uv/omop/StructureMap/ProcedureMap'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'ProcedureMap'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'Mapping Procedure resource to Procedure Occurrence OMOP Domain'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'draft'</span>

<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R5/procedure.html" title="Procedure">http://hl7.org/fhir/StructureDefinition/Procedure</a><span style="color: navy">&quot; </span><b>alias </b>Procedure <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-ProcedureOccurrence.html" title="Procedure Occurrence OMOP Table">http://hl7.org/fhir/uv/omop/StructureDefinition/ProcedureOccurrence</a><span style="color: navy">&quot; </span><b>alias </b>ProcedureTable <b>as </b><b>target</b>

<b>group </b>ProcedureOccurrence<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>Procedure, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>ProcedureTable<span style="color: navy">)</span><span style="color: navy"> {
</span>  src.code<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"> {
</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"> {
</span>      sc.code<b> as </b><span style="color: maroon">a</span><span style="color: navy"><b> -&gt; </b></span> tgt.procedure_concept_id<span style="color: navy">, </span> tgt.procedure_source_value<span style="color: navy">, </span> tgt.procedure_source_concept_id = <span style="color: maroon">a</span><span style="color: navy">;</span>
    <span style="color: navy">}</span><span style="color: navy">;</span>
  <span style="color: navy">}</span><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.id as id -&gt; tgt.procedure_occurrence_id = cast(id, &quot;integer&quot;);</span>
  src.occurrence<span style="color: navy"> : </span>dateTime<b> as </b><span style="color: maroon">edt</span><span style="color: navy"><b> -&gt; </b></span> tgt.procedure_datetime = <b>cast</b><span style="color: navy">(</span><span style="color: maroon">edt</span><span style="color: navy">, </span><span style="color: blue">'dateTime'</span><span style="color: navy">)</span><span style="color: navy">, </span> tgt.procedure_date = <span style="color: maroon">edt</span><span style="color: navy">;</span>
  src.occurrence<span style="color: navy"> : </span>Period<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"> {
</span>    s.start<b> as </b><span style="color: maroon">start</span><span style="color: navy"><b> -&gt; </b></span> tgt.procedure_datetime = <b>cast</b><span style="color: navy">(</span><span style="color: maroon">start</span><span style="color: navy">, </span><span style="color: blue">'dateTime'</span><span style="color: navy">)</span><span style="color: navy">, </span> tgt.procedure_date = <span style="color: maroon">start</span><span style="color: navy">;</span>
    s.end<b> as </b><span style="color: maroon">end</span><span style="color: navy"><b> -&gt; </b></span> tgt.procedure_end_datetime<span style="color: navy">, </span> tgt.procedure_end_date = <span style="color: maroon">end</span><span style="color: navy">;</span>
  <span style="color: navy">}</span><span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="brr"/>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="1">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
        <valueCanonical
                        value="http://hl7.org/fhir/uv/omop/ImplementationGuide/hl7.fhir.uv.omop"/>
      </extension>
    </valueInteger>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="informative">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
        <valueCanonical
                        value="http://hl7.org/fhir/uv/omop/ImplementationGuide/hl7.fhir.uv.omop"/>
      </extension>
    </valueCode>
  </extension>
  <url value="http://hl7.org/fhir/uv/omop/StructureMap/ProcedureMap"/>
  <version value="1.0.0-ballot"/>
  <name value="ProcedureMap"/>
  <title
         value="Mapping Procedure resource to Procedure Occurrence OMOP Domain"/>
  <status value="draft"/>
  <date value="2025-07-29T21:03:04+00:00"/>
  <publisher value="HL7 International / Biomedical Research and Regulation"/>
  <contact>
    <name value="HL7 International / Biomedical Research and Regulation"/>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/rcrim"/>
    </telecom>
  </contact>
  <description
               value="This mapping maps FHIR Procedure instances to OMOP Procedure Occurrence Table objects."/>
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
      <code value="001"/>
      <display value="World"/>
    </coding>
  </jurisdiction>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
    <mode value="source"/>
    <alias value="Procedure"/>
  </structure>
  <structure>
    <url
         value="http://hl7.org/fhir/uv/omop/StructureDefinition/ProcedureOccurrence"/>
    <mode value="target"/>
    <alias value="ProcedureTable"/>
  </structure>
  <group>
    <name value="ProcedureOccurrence"/>
    <input>
      <name value="src"/>
      <type value="Procedure"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="ProcedureTable"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="code"/>
      <source>
        <context value="src"/>
        <element value="code"/>
        <variable value="s"/>
      </source>
      <target>
        <transform value="copy"/>
        <parameter>
          <valueId value="tgt"/>
        </parameter>
      </target>
      <rule>
        <name value="coding"/>
        <source>
          <context value="s"/>
          <element value="coding"/>
          <variable value="sc"/>
        </source>
        <target>
          <transform value="copy"/>
          <parameter>
            <valueId value="tgt"/>
          </parameter>
        </target>
        <rule>
          <name value="code"/>
          <source>
            <context value="sc"/>
            <element value="code"/>
            <variable value="a"/>
          </source>
          <target>
            <context value="tgt"/>
            <element value="procedure_concept_id"/>
          </target>
          <target>
            <context value="tgt"/>
            <element value="procedure_source_value"/>
          </target>
          <target>
            <context value="tgt"/>
            <element value="procedure_source_concept_id"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="a"/>
            </parameter>
          </target>
        </rule>
      </rule>
      <documentation
                     value="src.id as id -&gt; tgt.procedure_occurrence_id = cast(id, &quot;integer&quot;);"/>
    </rule>
    <rule>
      <name value="occurrenceDateTime"/>
      <source>
        <context value="src"/>
        <type value="dateTime"/>
        <element value="occurrence"/>
        <variable value="edt"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="procedure_datetime"/>
        <transform value="cast"/>
        <parameter>
          <valueId value="edt"/>
        </parameter>
        <parameter>
          <valueString value="dateTime"/>
        </parameter>
      </target>
      <target>
        <context value="tgt"/>
        <element value="procedure_date"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="edt"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="occurrencePeriod"/>
      <source>
        <context value="src"/>
        <type value="Period"/>
        <element value="occurrence"/>
        <variable value="s"/>
      </source>
      <target>
        <transform value="copy"/>
        <parameter>
          <valueId value="tgt"/>
        </parameter>
      </target>
      <rule>
        <name value="start"/>
        <source>
          <context value="s"/>
          <element value="start"/>
          <variable value="start"/>
        </source>
        <target>
          <context value="tgt"/>
          <element value="procedure_datetime"/>
          <transform value="cast"/>
          <parameter>
            <valueId value="start"/>
          </parameter>
          <parameter>
            <valueString value="dateTime"/>
          </parameter>
        </target>
        <target>
          <context value="tgt"/>
          <element value="procedure_date"/>
          <transform value="copy"/>
          <parameter>
            <valueId value="start"/>
          </parameter>
        </target>
      </rule>
      <rule>
        <name value="end"/>
        <source>
          <context value="s"/>
          <element value="end"/>
          <variable value="end"/>
        </source>
        <target>
          <context value="tgt"/>
          <element value="procedure_end_datetime"/>
        </target>
        <target>
          <context value="tgt"/>
          <element value="procedure_end_date"/>
          <transform value="copy"/>
          <parameter>
            <valueId value="end"/>
          </parameter>
        </target>
      </rule>
    </rule>
  </group>
</StructureMap>