FHIR Cross-Version Mapping Pack
0.1.0 - Ballot for Release 5.1.0 International flag

FHIR Cross-Version Mapping Pack, published by HL7 International / FHIR Infrastructure. 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-cross-version/ and changes regularly. See the Directory of published versions

: Questionnaire Transforms: R3 to R2 - XML Representation

Page standards status: Draft Maturity Level: 1

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="Questionnaire3to2"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><pre class="fml">
<span style="color: #cc00cc">/// <b>url</b> = </span><span style="color: blue">'http://hl7.org/fhir/StructureMap/Questionnaire3to2'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'Questionnaire3to2'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'Questionnaire Transforms: R3 to R2'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>

<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/Questionnaire<span style="color: navy">&quot; </span><b>alias </b>Questionnaire <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/Questionnaire<span style="color: navy">&quot; </span><b>alias </b>QuestionnaireR2 <b>as </b><b>target</b>

<b>imports</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/StructureMap/*3to2<span style="color: navy">&quot;
</span>
<b>group </b>Questionnaire<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>Questionnaire, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>QuestionnaireR2<span style="color: navy">)</span><b> extends </b>DomainResource<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.identifier<span style="color: navy"><b> -&gt; </b></span>tgt.identifier <i>&quot;Questionnaire-identifier&quot;</i><span style="color: navy">;</span>
  src.version<span style="color: navy"><b> -&gt; </b></span>tgt.version <i>&quot;Questionnaire-version&quot;</i><span style="color: navy">;</span>
  src.status<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.status = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'http://hl7.org/fhir/ConceptMap/Questionnaire.status-R3toR2'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span> <i>&quot;Questionnaire-status&quot;</i><span style="color: navy">;</span>
  src.date<span style="color: navy"><b> -&gt; </b></span>tgt.date <i>&quot;Questionnaire-date&quot;</i><span style="color: navy">;</span>
  src.publisher<span style="color: navy"><b> -&gt; </b></span>tgt.publisher <i>&quot;Questionnaire-publisher&quot;</i><span style="color: navy">;</span>
  src.contact<b> as </b><span style="color: maroon">v</span><b> then</b><span style="color: navy"> {
</span>    v.telecom<span style="color: navy"><b> -&gt; </b></span>tgt.telecom <i>&quot;Questionnaire-telecom-inner&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;Questionnaire-telecom1&quot;</i><span style="color: navy">;</span>
  src.subjectType<span style="color: navy"><b> -&gt; </b></span>tgt.subjectType <i>&quot;Questionnaire-subjectType&quot;</i><span style="color: navy">;</span>
  src.item<b> as </b><span style="color: maroon">vs0</span><b> where </b>type = 'group'<span style="color: navy"><b> -&gt; </b></span>tgt.group<b> as </b><span style="color: maroon">vt0</span><b> then </b>qstGroup<span style="color: navy">(</span><span style="color: maroon">vs0</span><span style="color: navy">, </span><span style="color: maroon">vt0</span><span style="color: navy">)</span> <i>&quot;Questionnaire-group&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>qstGroup<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span>, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy">)</span><b> extends </b>BackboneElement<span style="color: navy"> {
</span>  src.linkId<span style="color: navy"><b> -&gt; </b></span>tgt.linkId <i>&quot;group-linkId&quot;</i><span style="color: navy">;</span>
  src.text<span style="color: navy"><b> -&gt; </b></span>tgt.title <i>&quot;group-title&quot;</i><span style="color: navy">;</span>
  src.code<span style="color: navy"><b> -&gt; </b></span>tgt.concept <i>&quot;group-concept&quot;</i><span style="color: navy">;</span>
  src.required<span style="color: navy"><b> -&gt; </b></span>tgt.required <i>&quot;group-required&quot;</i><span style="color: navy">;</span>
  src.repeats<span style="color: navy"><b> -&gt; </b></span>tgt.repeats <i>&quot;group-repeats&quot;</i><span style="color: navy">;</span>
  src.item<b> as </b><span style="color: maroon">vs0</span><b> where </b>type = 'group'<span style="color: navy"><b> -&gt; </b></span>tgt.group<b> as </b><span style="color: maroon">vt0</span><b> then </b>qstGroup<span style="color: navy">(</span><span style="color: maroon">vs0</span><span style="color: navy">, </span><span style="color: maroon">vt0</span><span style="color: navy">)</span> <i>&quot;group-group&quot;</i><span style="color: navy">;</span>
  src.item<b> as </b><span style="color: maroon">vs0</span><b> where </b>type != 'group'<span style="color: navy"><b> -&gt; </b></span>tgt.question<b> as </b><span style="color: maroon">vt0</span><b> then </b>qstQuestion<span style="color: navy">(</span><span style="color: maroon">vs0</span><span style="color: navy">, </span><span style="color: maroon">vt0</span><span style="color: navy">)</span> <i>&quot;group-question&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>qstQuestion<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span>, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy">)</span><b> extends </b>BackboneElement<span style="color: navy"> {
</span>  src.type<span style="color: navy"><b> -&gt; </b></span>tgt.type <i>&quot;question-type&quot;</i><span style="color: navy">;</span>
  src.linkId<span style="color: navy"><b> -&gt; </b></span>tgt.linkId <i>&quot;question-linkId&quot;</i><span style="color: navy">;</span>
  src.code<span style="color: navy"><b> -&gt; </b></span>tgt.concept <i>&quot;question-concept&quot;</i><span style="color: navy">;</span>
  src.text<span style="color: navy"><b> -&gt; </b></span>tgt.text <i>&quot;question-text&quot;</i><span style="color: navy">;</span>
  src.required<span style="color: navy"><b> -&gt; </b></span>tgt.required <i>&quot;question-required&quot;</i><span style="color: navy">;</span>
  src.repeats<span style="color: navy"><b> -&gt; </b></span>tgt.repeats <i>&quot;question-repeats&quot;</i><span style="color: navy">;</span>
  src.options<span style="color: navy"><b> -&gt; </b></span>tgt.options <i>&quot;question-options&quot;</i><span style="color: navy">;</span>
  src.option<b> as </b><span style="color: maroon">s</span><b> then</b><span style="color: navy"> {
</span>    s.value<b> as </b><span style="color: maroon">v</span><b> where </b>v.is(Coding)<span style="color: navy"><b> -&gt; </b></span>tgt.option = <span style="color: maroon">v</span> <i>&quot;question-option-inner&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;question-option&quot;</i><span style="color: navy">;</span>
  src.item<b> as </b><span style="color: maroon">vs0</span><b> where </b>type = 'group'<span style="color: navy"><b> -&gt; </b></span>tgt.group<b> as </b><span style="color: maroon">vt0</span><b> then </b>qstGroup<span style="color: navy">(</span><span style="color: maroon">vs0</span><span style="color: navy">, </span><span style="color: maroon">vt0</span><span style="color: navy">)</span> <i>&quot;question-group&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="fhir"/>
  </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/extensions/ImplementationGuide/hl7.fhir.uv.xver"/>
      </extension>
    </valueInteger>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="draft">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
        <valueCanonical
                        value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"/>
      </extension>
    </valueCode>
  </extension>
  <url value="http://hl7.org/fhir/StructureMap/Questionnaire3to2"/>
  <version value="0.1.0"/>
  <name value="Questionnaire3to2"/>
  <title value="Questionnaire Transforms: R3 to R2"/>
  <status value="active"/>
  <date value="2024-02-22T03:16:50+00:00"/>
  <publisher value="HL7 International / FHIR Infrastructure"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/fiwg"/>
    </telecom>
  </contact>
  <description value="QuestionnaireTransformsR3toR2"/>
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
      <code value="001"/>
    </coding>
  </jurisdiction>
  <structure>
    <url value="http://hl7.org/fhir/3.0/Questionnaire"/>
    <mode value="source"/>
    <alias value="Questionnaire"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/Questionnaire"/>
    <mode value="target"/>
    <alias value="QuestionnaireR2"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*3to2"/>
  <group>
    <name value="Questionnaire"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="Questionnaire"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="QuestionnaireR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="Questionnaire-identifier"/>
      <source>
        <context value="src"/>
        <element value="identifier"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="identifier"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="Questionnaire-version"/>
      <source>
        <context value="src"/>
        <element value="version"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="version"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="Questionnaire-status"/>
      <source>
        <context value="src"/>
        <element value="status"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="status"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString
                       value="http://hl7.org/fhir/ConceptMap/Questionnaire.status-R3toR2"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="Questionnaire-date"/>
      <source>
        <context value="src"/>
        <element value="date"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="date"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="Questionnaire-publisher"/>
      <source>
        <context value="src"/>
        <element value="publisher"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="publisher"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="Questionnaire-telecom1"/>
      <source>
        <context value="src"/>
        <element value="contact"/>
        <variable value="v"/>
      </source>
      <rule>
        <name value="Questionnaire-telecom-inner"/>
        <source>
          <context value="v"/>
          <element value="telecom"/>
          <variable value="vvv"/>
        </source>
        <target>
          <context value="tgt"/>
          <element value="telecom"/>
          <variable value="vvv"/>
          <transform value="create"/>
        </target>
        <dependent>
          <name value="DefaultMappingGroupAnonymousAlias"/>
          <parameter>
            <valueId value="vvv"/>
          </parameter>
          <parameter>
            <valueId value="vvv"/>
          </parameter>
        </dependent>
      </rule>
    </rule>
    <rule>
      <name value="Questionnaire-subjectType"/>
      <source>
        <context value="src"/>
        <element value="subjectType"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="subjectType"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="Questionnaire-group"/>
      <source>
        <context value="src"/>
        <element value="item"/>
        <variable value="vs0"/>
        <condition value="type = 'group'"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="group"/>
        <variable value="vt0"/>
      </target>
      <dependent>
        <name value="qstGroup"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="qstGroup"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="group-linkId"/>
      <source>
        <context value="src"/>
        <element value="linkId"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="linkId"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="group-title"/>
      <source>
        <context value="src"/>
        <element value="text"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="title"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="group-concept"/>
      <source>
        <context value="src"/>
        <element value="code"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="concept"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="group-required"/>
      <source>
        <context value="src"/>
        <element value="required"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="required"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="group-repeats"/>
      <source>
        <context value="src"/>
        <element value="repeats"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="repeats"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="group-group"/>
      <source>
        <context value="src"/>
        <element value="item"/>
        <variable value="vs0"/>
        <condition value="type = 'group'"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="group"/>
        <variable value="vt0"/>
      </target>
      <dependent>
        <name value="qstGroup"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="group-question"/>
      <source>
        <context value="src"/>
        <element value="item"/>
        <variable value="vs0"/>
        <condition value="type != 'group'"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="question"/>
        <variable value="vt0"/>
      </target>
      <dependent>
        <name value="qstQuestion"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="qstQuestion"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="question-type"/>
      <source>
        <context value="src"/>
        <element value="type"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="type"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="question-linkId"/>
      <source>
        <context value="src"/>
        <element value="linkId"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="linkId"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="question-concept"/>
      <source>
        <context value="src"/>
        <element value="code"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="concept"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="question-text"/>
      <source>
        <context value="src"/>
        <element value="text"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="text"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="question-required"/>
      <source>
        <context value="src"/>
        <element value="required"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="required"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="question-repeats"/>
      <source>
        <context value="src"/>
        <element value="repeats"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="repeats"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="question-options"/>
      <source>
        <context value="src"/>
        <element value="options"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="options"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="question-option"/>
      <source>
        <context value="src"/>
        <element value="option"/>
        <variable value="s"/>
      </source>
      <rule>
        <name value="question-option-inner"/>
        <source>
          <context value="s"/>
          <element value="value"/>
          <variable value="v"/>
          <condition value="v.is(Coding)"/>
        </source>
        <target>
          <context value="tgt"/>
          <element value="option"/>
          <transform value="copy"/>
          <parameter>
            <valueId value="v"/>
          </parameter>
        </target>
      </rule>
    </rule>
    <rule>
      <name value="question-group"/>
      <source>
        <context value="src"/>
        <element value="item"/>
        <variable value="vs0"/>
        <condition value="type = 'group'"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="group"/>
        <variable value="vt0"/>
      </target>
      <dependent>
        <name value="qstGroup"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
  </group>
</StructureMap>