FHIR Extensions Pack
5.1.0-ballot1 - Ballot for Release 5.1.0 International flag

This page is part of the FHIR Core Extensions Registry (v5.1.0-ballot: Releases Ballot 4) based on FHIR (HL7® FHIR® Standard) v5.0.0. The current version which supersedes this version is 1.0.0. For a full list of available versions, see the Directory of published versions

: FML Conversion for Questionnaire: R5 to R4 - XML Representation

Page standards status: Trial-use Maturity Level: 1

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="Questionnaire5to4"/>
  <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/Questionnaire5to4'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'Questionnaire5to4'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for Questionnaire: R5 to R4'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>

<b>conceptmap</b><span style="color: navy"> &quot;</span>EnableWhenBehavior<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R5/codesystem-questionnaire-enable-behavior.html" title="Enable When Behavior">http://hl7.org/fhir/questionnaire-enable-behavior</a><span style="color: navy">&quot;
</span><b>  prefix </b>t<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4/codesystem-questionnaire-enable-behavior.html" title="EnableWhenBehavior">http://hl7.org/fhir/4.0/questionnaire-enable-behavior</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>all <b>-</b> t<span style="color: navy">:</span>all
  s<span style="color: navy">:</span>any <b>-</b> t<span style="color: navy">:</span>any
<span style="color: navy">}

</span><b>conceptmap</b><span style="color: navy"> &quot;</span>PublicationStatus<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R5/codesystem-publication-status.html" title="PublicationStatus">http://hl7.org/fhir/publication-status</a><span style="color: navy">&quot;
</span><b>  prefix </b>t<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4/codesystem-publication-status.html" title="PublicationStatus">http://hl7.org/fhir/4.0/publication-status</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>draft <b>-</b> t<span style="color: navy">:</span>draft
  s<span style="color: navy">:</span>active <b>-</b> t<span style="color: navy">:</span>active
  s<span style="color: navy">:</span>retired <b>-</b> t<span style="color: navy">:</span>retired
  s<span style="color: navy">:</span>unknown <b>-</b> t<span style="color: navy">:</span>unknown
<span style="color: navy">}

</span><b>conceptmap</b><span style="color: navy"> &quot;</span>QuestionnaireItemOperator<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R5/codesystem-questionnaire-enable-operator.html" title="Questionnaire Item Operator">http://hl7.org/fhir/questionnaire-enable-operator</a><span style="color: navy">&quot;
</span><b>  prefix </b>t<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4/codesystem-questionnaire-enable-operator.html" title="QuestionnaireItemOperator">http://hl7.org/fhir/4.0/questionnaire-enable-operator</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>exists <b>-</b> t<span style="color: navy">:</span>exists
  s<span style="color: navy">:</span>&quot;=&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>=<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>&quot;!=&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>!=<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>&quot;&gt;&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>&gt;<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>&quot;&lt;&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>&lt;<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>&quot;&gt;=&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>&gt;=<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>&quot;&lt;=&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>&lt;=<span style="color: navy">&quot;</span>
<span style="color: navy">}

</span><b>conceptmap</b><span style="color: navy"> &quot;</span>QuestionnaireItemType<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R5/codesystem-item-type.html" title="Questionnaire Item Type">http://hl7.org/fhir/item-type</a><span style="color: navy">&quot;
</span><b>  prefix </b>t<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4/codesystem-item-type.html" title="QuestionnaireItemType">http://hl7.org/fhir/4.0/item-type</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>group <b>-</b> t<span style="color: navy">:</span>group
  s<span style="color: navy">:</span>display <b>-</b> t<span style="color: navy">:</span>display
  s<span style="color: navy">:</span>question <b>-</b> t<span style="color: navy">:</span>question
  s<span style="color: navy">:</span>boolean <b>-</b> t<span style="color: navy">:</span>boolean
  s<span style="color: navy">:</span>decimal <b>-</b> t<span style="color: navy">:</span>decimal
  s<span style="color: navy">:</span>integer <b>-</b> t<span style="color: navy">:</span>integer
  s<span style="color: navy">:</span>date <b>-</b> t<span style="color: navy">:</span>date
  s<span style="color: navy">:</span>dateTime <b>-</b> t<span style="color: navy">:</span>dateTime
  s<span style="color: navy">:</span>time <b>-</b> t<span style="color: navy">:</span>time
  s<span style="color: navy">:</span>string <b>-</b> t<span style="color: navy">:</span>string
  s<span style="color: navy">:</span>text <b>-</b> t<span style="color: navy">:</span>text
  s<span style="color: navy">:</span>url <b>-</b> t<span style="color: navy">:</span>url
  s<span style="color: navy">:</span>coding <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>open-choice<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>attachment <b>-</b> t<span style="color: navy">:</span>attachment
  s<span style="color: navy">:</span>reference <b>-</b> t<span style="color: navy">:</span>reference
  s<span style="color: navy">:</span>quantity <b>-</b> t<span style="color: navy">:</span>quantity
<span style="color: navy">}

</span><b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R5/questionnaire.html" title="Questionnaire">http://hl7.org/fhir/StructureDefinition/Questionnaire</a><span style="color: navy">&quot; </span><b>alias </b>QuestionnaireR5 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R4/questionnaire.html" title="Questionnaire">http://hl7.org/fhir/4.0/StructureDefinition/Questionnaire</a><span style="color: navy">&quot; </span><b>alias </b>QuestionnaireR4 <b>as </b><b>target</b>

<b>imports</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/StructureMap/*5to4<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>QuestionnaireR5, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>QuestionnaireR4<span style="color: navy">)</span><b> extends </b>DomainResource<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.url<span style="color: navy"><b> -&gt; </b></span>tgt.url<span style="color: navy">;</span>
  src.identifier<span style="color: navy"><b> -&gt; </b></span>tgt.identifier<span style="color: navy">;</span>
  src.version<span style="color: navy"><b> -&gt; </b></span>tgt.version<span style="color: navy">;</span>
  src.name<span style="color: navy"><b> -&gt; </b></span>tgt.name<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.versionAlgorithm : string -&gt; tgt.versionAlgorithm;</span>
  src.title<span style="color: navy"><b> -&gt; </b></span>tgt.title<span style="color: navy">;</span>
  src.derivedFrom<span style="color: navy"><b> -&gt; </b></span>tgt.derivedFrom<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">'#PublicationStatus'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.experimental<span style="color: navy"><b> -&gt; </b></span>tgt.experimental<span style="color: navy">;</span>
  src.subjectType<span style="color: navy"><b> -&gt; </b></span>tgt.subjectType<span style="color: navy">;</span>
  src.date<span style="color: navy"><b> -&gt; </b></span>tgt.date<span style="color: navy">;</span>
  src.publisher<span style="color: navy"><b> -&gt; </b></span>tgt.publisher<span style="color: navy">;</span>
  src.contact<span style="color: navy"><b> -&gt; </b></span>tgt.contact<span style="color: navy">;</span>
  src.description<span style="color: navy"><b> -&gt; </b></span>tgt.description<span style="color: navy">;</span>
  src.useContext<span style="color: navy"><b> -&gt; </b></span>tgt.useContext<span style="color: navy">;</span>
  src.jurisdiction<span style="color: navy"><b> -&gt; </b></span>tgt.jurisdiction<span style="color: navy">;</span>
  src.purpose<span style="color: navy"><b> -&gt; </b></span>tgt.purpose<span style="color: navy">;</span>
  src.copyright<span style="color: navy"><b> -&gt; </b></span>tgt.copyright<span style="color: navy">;</span>
  src.approvalDate<span style="color: navy"><b> -&gt; </b></span>tgt.approvalDate<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.copyrightLabel -&gt; tgt.copyrightLabel;</span>
  src.lastReviewDate<span style="color: navy"><b> -&gt; </b></span>tgt.lastReviewDate<span style="color: navy">;</span>
  src.effectivePeriod<span style="color: navy"><b> -&gt; </b></span>tgt.effectivePeriod<span style="color: navy">;</span>
  src.code<span style="color: navy"><b> -&gt; </b></span>tgt.code<span style="color: navy">;</span>
  src.item<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.item<b> as </b><span style="color: maroon">t</span><b> then </b>QuestionnaireItem<span style="color: navy">(</span><span style="color: maroon">s</span><span style="color: navy">, </span><span style="color: maroon">t</span><span style="color: navy">)</span><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>QuestionnaireItem<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<span style="color: navy">;</span>
  src.definition<span style="color: navy"><b> -&gt; </b></span>tgt.definition<span style="color: navy">;</span>
  src.code<span style="color: navy"><b> -&gt; </b></span>tgt.code<span style="color: navy">;</span>
  src.prefix<span style="color: navy"><b> -&gt; </b></span>tgt.prefix<span style="color: navy">;</span>
  src.text<span style="color: navy"><b> -&gt; </b></span>tgt.text<span style="color: navy">;</span>
  src.type<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.type = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#QuestionnaireItemType'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.enableWhen<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.enableWhen<b> as </b><span style="color: maroon">t</span><b> then </b>QuestionnaireItemEnableWhen<span style="color: navy">(</span><span style="color: maroon">s</span><span style="color: navy">, </span><span style="color: maroon">t</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.enableBehavior<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.enableBehavior = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#EnableWhenBehavior'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.required<span style="color: navy"><b> -&gt; </b></span>tgt.required<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.disabledDisplay as v -&gt; tgt.disabledDisplay = translate(v, '#DisabledDisplay', 'code');</span>
  src.repeats<span style="color: navy"><b> -&gt; </b></span>tgt.repeats<span style="color: navy">;</span>
  src.readOnly<span style="color: navy"><b> -&gt; </b></span>tgt.readOnly<span style="color: navy">;</span>
  src.maxLength<span style="color: navy"><b> -&gt; </b></span>tgt.maxLength<span style="color: navy">;</span>
  src.answerConstraint<b> as </b><span style="color: maroon">v</span><b> where </b>answerConstraint = 'optionsOnly'<span style="color: navy"><b> -&gt; </b></span> tgt.type<b> as </b><span style="color: maroon">t</span><span style="color: navy">, </span> t.value = <span style="color: blue">'choice'</span><span style="color: navy">;</span>
  src.answerConstraint<b> as </b><span style="color: maroon">v</span><b> where </b>answerConstraint = 'optionsOrType'<span style="color: navy"><b> -&gt; </b></span> tgt.type<b> as </b><span style="color: maroon">t</span><span style="color: navy">, </span> t.value = <span style="color: blue">'open-choice'</span><span style="color: navy">;</span>
  src.answerConstraint<b> as </b><span style="color: maroon">v</span><b> where </b>answerConstraint = 'optionsOrString'<span style="color: navy"><b> -&gt; </b></span> tgt.type<b> as </b><span style="color: maroon">t</span><span style="color: navy">, </span> t.value = <span style="color: blue">'open-choice'</span><span style="color: navy">;</span>
  src.answerValueSet<span style="color: navy"><b> -&gt; </b></span>tgt.answerValueSet<span style="color: navy">;</span>
  src.answerOption<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.answerOption<b> as </b><span style="color: maroon">t</span><b> then </b>QuestionnaireItemAnswerOption<span style="color: navy">(</span><span style="color: maroon">s</span><span style="color: navy">, </span><span style="color: maroon">t</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.initial<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.initial<b> as </b><span style="color: maroon">t</span><b> then </b>QuestionnaireItemInitial<span style="color: navy">(</span><span style="color: maroon">s</span><span style="color: navy">, </span><span style="color: maroon">t</span><span style="color: navy">)</span><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>QuestionnaireItemEnableWhen<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.question<span style="color: navy"><b> -&gt; </b></span>tgt.question<span style="color: navy">;</span>
  src.operator<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.operator = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#QuestionnaireItemOperator'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.answer<span style="color: navy"> : </span>boolean<span style="color: navy"><b> -&gt; </b></span>tgt.answer<span style="color: navy">;</span>
  src.answer<span style="color: navy"> : </span>decimal<span style="color: navy"><b> -&gt; </b></span>tgt.answer<span style="color: navy">;</span>
  src.answer<span style="color: navy"> : </span>integer<span style="color: navy"><b> -&gt; </b></span>tgt.answer<span style="color: navy">;</span>
  src.answer<span style="color: navy"> : </span>date<span style="color: navy"><b> -&gt; </b></span>tgt.answer<span style="color: navy">;</span>
  src.answer<span style="color: navy"> : </span>dateTime<span style="color: navy"><b> -&gt; </b></span>tgt.answer<span style="color: navy">;</span>
  src.answer<span style="color: navy"> : </span>time<span style="color: navy"><b> -&gt; </b></span>tgt.answer<span style="color: navy">;</span>
  src.answer<span style="color: navy"> : </span>string<span style="color: navy"><b> -&gt; </b></span>tgt.answer<span style="color: navy">;</span>
  src.answer<span style="color: navy"> : </span>Coding<span style="color: navy"><b> -&gt; </b></span>tgt.answer<span style="color: navy">;</span>
  src.answer<span style="color: navy"> : </span>Quantity<span style="color: navy"><b> -&gt; </b></span>tgt.answer<span style="color: navy">;</span>
  src.answer<span style="color: navy"> : </span>Reference<span style="color: navy"><b> -&gt; </b></span>tgt.answer<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>QuestionnaireItemAnswerOption<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.value<span style="color: navy"> : </span>integer<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
  src.value<span style="color: navy"> : </span>date<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
  src.value<span style="color: navy"> : </span>time<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
  src.value<span style="color: navy"> : </span>string<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
  src.value<span style="color: navy"> : </span>Coding<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
  src.value<span style="color: navy"> : </span>Reference<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
  src.initialSelected<span style="color: navy"><b> -&gt; </b></span>tgt.initialSelected<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>QuestionnaireItemInitial<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.value<span style="color: navy"> : </span>boolean<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
  src.value<span style="color: navy"> : </span>decimal<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
  src.value<span style="color: navy"> : </span>integer<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
  src.value<span style="color: navy"> : </span>date<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
  src.value<span style="color: navy"> : </span>dateTime<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
  src.value<span style="color: navy"> : </span>time<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
  src.value<span style="color: navy"> : </span>string<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
  src.value<span style="color: navy"> : </span>uri<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
  src.value<span style="color: navy"> : </span>Attachment<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
  src.value<span style="color: navy"> : </span>Coding<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
  src.value<span style="color: navy"> : </span>Quantity<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
  src.value<span style="color: navy"> : </span>Reference<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <contained>
    <ConceptMap>
      <id value="EnableWhenBehavior"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/questionnaire-enable-behavior"/>
        <target
                value="http://hl7.org/fhir/4.0/questionnaire-enable-behavior"/>
        <element>
          <code value="all"/>
          <target>
            <code value="all"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="any"/>
          <target>
            <code value="any"/>
            <relationship value="related-to"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="PublicationStatus"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/publication-status"/>
        <target value="http://hl7.org/fhir/4.0/publication-status"/>
        <element>
          <code value="draft"/>
          <target>
            <code value="draft"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="active"/>
          <target>
            <code value="active"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="retired"/>
          <target>
            <code value="retired"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="unknown"/>
          <target>
            <code value="unknown"/>
            <relationship value="related-to"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="QuestionnaireItemOperator"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/questionnaire-enable-operator"/>
        <target
                value="http://hl7.org/fhir/4.0/questionnaire-enable-operator"/>
        <element>
          <code value="exists"/>
          <target>
            <code value="exists"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="="/>
          <target>
            <code value="="/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="!="/>
          <target>
            <code value="!="/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="&gt;"/>
          <target>
            <code value="&gt;"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="&lt;"/>
          <target>
            <code value="&lt;"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="&gt;="/>
          <target>
            <code value="&gt;="/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="&lt;="/>
          <target>
            <code value="&lt;="/>
            <relationship value="related-to"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="QuestionnaireItemType"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/item-type"/>
        <target value="http://hl7.org/fhir/4.0/item-type"/>
        <element>
          <code value="group"/>
          <target>
            <code value="group"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="display"/>
          <target>
            <code value="display"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="question"/>
          <target>
            <code value="question"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="boolean"/>
          <target>
            <code value="boolean"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="decimal"/>
          <target>
            <code value="decimal"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="integer"/>
          <target>
            <code value="integer"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="date"/>
          <target>
            <code value="date"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="dateTime"/>
          <target>
            <code value="dateTime"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="time"/>
          <target>
            <code value="time"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="string"/>
          <target>
            <code value="string"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="text"/>
          <target>
            <code value="text"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="url"/>
          <target>
            <code value="url"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="coding"/>
          <target>
            <code value="open-choice"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="attachment"/>
          <target>
            <code value="attachment"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="reference"/>
          <target>
            <code value="reference"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="quantity"/>
          <target>
            <code value="quantity"/>
            <relationship value="related-to"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <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.extensions"/>
      </extension>
    </valueInteger>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
        <valueCanonical
                        value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"/>
      </extension>
    </valueCode>
  </extension>
  <url value="http://hl7.org/fhir/StructureMap/Questionnaire5to4"/>
  <version value="5.1.0-ballot1"/>
  <name value="Questionnaire5to4"/>
  <title value="FML Conversion for Questionnaire: R5 to R4"/>
  <status value="active"/>
  <date value="2023-12-19T08:40:03+11: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="FMLConversionforQuestionnaireR5toR4"/>
  <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/StructureDefinition/Questionnaire"/>
    <mode value="source"/>
    <alias value="QuestionnaireR5"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/4.0/StructureDefinition/Questionnaire"/>
    <mode value="target"/>
    <alias value="QuestionnaireR4"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*5to4"/>
  <group>
    <name value="Questionnaire"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="QuestionnaireR5"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="QuestionnaireR4"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="url"/>
      <source>
        <context value="src"/>
        <element value="url"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="url"/>
        <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="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="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="name"/>
      <source>
        <context value="src"/>
        <element value="name"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="name"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
      <documentation
                     value="src.versionAlgorithm : string -&gt; tgt.versionAlgorithm;"/>
    </rule>
    <rule>
      <name value="title"/>
      <source>
        <context value="src"/>
        <element value="title"/>
        <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="derivedFrom"/>
      <source>
        <context value="src"/>
        <element value="derivedFrom"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="derivedFrom"/>
        <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="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="#PublicationStatus"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="experimental"/>
      <source>
        <context value="src"/>
        <element value="experimental"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="experimental"/>
        <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="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="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="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="contact"/>
      <source>
        <context value="src"/>
        <element value="contact"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="contact"/>
        <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="description"/>
      <source>
        <context value="src"/>
        <element value="description"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="description"/>
        <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="useContext"/>
      <source>
        <context value="src"/>
        <element value="useContext"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="useContext"/>
        <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="jurisdiction"/>
      <source>
        <context value="src"/>
        <element value="jurisdiction"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="jurisdiction"/>
        <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="purpose"/>
      <source>
        <context value="src"/>
        <element value="purpose"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="purpose"/>
        <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="copyright"/>
      <source>
        <context value="src"/>
        <element value="copyright"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="copyright"/>
        <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="approvalDate"/>
      <source>
        <context value="src"/>
        <element value="approvalDate"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="approvalDate"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
      <documentation value="src.copyrightLabel -&gt; tgt.copyrightLabel;"/>
    </rule>
    <rule>
      <name value="lastReviewDate"/>
      <source>
        <context value="src"/>
        <element value="lastReviewDate"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="lastReviewDate"/>
        <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="effectivePeriod"/>
      <source>
        <context value="src"/>
        <element value="effectivePeriod"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="effectivePeriod"/>
        <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="code"/>
      <source>
        <context value="src"/>
        <element value="code"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="code"/>
        <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="item"/>
      <source>
        <context value="src"/>
        <element value="item"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="item"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="QuestionnaireItem"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="QuestionnaireItem"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="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="definition"/>
      <source>
        <context value="src"/>
        <element value="definition"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="definition"/>
        <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="code"/>
      <source>
        <context value="src"/>
        <element value="code"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="code"/>
        <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="prefix"/>
      <source>
        <context value="src"/>
        <element value="prefix"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="prefix"/>
        <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="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="type"/>
      <source>
        <context value="src"/>
        <element value="type"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="type"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#QuestionnaireItemType"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="enableWhen"/>
      <source>
        <context value="src"/>
        <element value="enableWhen"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="enableWhen"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="QuestionnaireItemEnableWhen"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="enableBehavior"/>
      <source>
        <context value="src"/>
        <element value="enableBehavior"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="enableBehavior"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#EnableWhenBehavior"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="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>
      <documentation
                     value="src.disabledDisplay as v -&gt; tgt.disabledDisplay = translate(v, '#DisabledDisplay', 'code');"/>
    </rule>
    <rule>
      <name value="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="readOnly"/>
      <source>
        <context value="src"/>
        <element value="readOnly"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="readOnly"/>
        <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="maxLength"/>
      <source>
        <context value="src"/>
        <element value="maxLength"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="maxLength"/>
        <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="answerConstraint"/>
      <source>
        <context value="src"/>
        <element value="answerConstraint"/>
        <variable value="v"/>
        <condition value="answerConstraint = 'optionsOnly'"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="type"/>
        <variable value="t"/>
      </target>
      <target>
        <context value="t"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="choice"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="answerConstraint"/>
      <source>
        <context value="src"/>
        <element value="answerConstraint"/>
        <variable value="v"/>
        <condition value="answerConstraint = 'optionsOrType'"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="type"/>
        <variable value="t"/>
      </target>
      <target>
        <context value="t"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="open-choice"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="answerConstraint"/>
      <source>
        <context value="src"/>
        <element value="answerConstraint"/>
        <variable value="v"/>
        <condition value="answerConstraint = 'optionsOrString'"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="type"/>
        <variable value="t"/>
      </target>
      <target>
        <context value="t"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="open-choice"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="answerValueSet"/>
      <source>
        <context value="src"/>
        <element value="answerValueSet"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="answerValueSet"/>
        <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="answerOption"/>
      <source>
        <context value="src"/>
        <element value="answerOption"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="answerOption"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="QuestionnaireItemAnswerOption"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="initial"/>
      <source>
        <context value="src"/>
        <element value="initial"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="initial"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="QuestionnaireItemInitial"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="QuestionnaireItemEnableWhen"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="question"/>
      <source>
        <context value="src"/>
        <element value="question"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="question"/>
        <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="operator"/>
      <source>
        <context value="src"/>
        <element value="operator"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="operator"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#QuestionnaireItemOperator"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="answerBoolean"/>
      <source>
        <context value="src"/>
        <type value="boolean"/>
        <element value="answer"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="answer"/>
        <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="answerDecimal"/>
      <source>
        <context value="src"/>
        <type value="decimal"/>
        <element value="answer"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="answer"/>
        <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="answerInteger"/>
      <source>
        <context value="src"/>
        <type value="integer"/>
        <element value="answer"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="answer"/>
        <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="answerDate"/>
      <source>
        <context value="src"/>
        <type value="date"/>
        <element value="answer"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="answer"/>
        <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="answerDateTime"/>
      <source>
        <context value="src"/>
        <type value="dateTime"/>
        <element value="answer"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="answer"/>
        <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="answerTime"/>
      <source>
        <context value="src"/>
        <type value="time"/>
        <element value="answer"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="answer"/>
        <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="answerString"/>
      <source>
        <context value="src"/>
        <type value="string"/>
        <element value="answer"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="answer"/>
        <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="answerCoding"/>
      <source>
        <context value="src"/>
        <type value="Coding"/>
        <element value="answer"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="answer"/>
        <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="answerQuantity"/>
      <source>
        <context value="src"/>
        <type value="Quantity"/>
        <element value="answer"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="answer"/>
        <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="answerReference"/>
      <source>
        <context value="src"/>
        <type value="Reference"/>
        <element value="answer"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="answer"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="QuestionnaireItemAnswerOption"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="valueInteger"/>
      <source>
        <context value="src"/>
        <type value="integer"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <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="valueDate"/>
      <source>
        <context value="src"/>
        <type value="date"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <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="valueTime"/>
      <source>
        <context value="src"/>
        <type value="time"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <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="valueString"/>
      <source>
        <context value="src"/>
        <type value="string"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <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="valueCoding"/>
      <source>
        <context value="src"/>
        <type value="Coding"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <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="valueReference"/>
      <source>
        <context value="src"/>
        <type value="Reference"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <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="initialSelected"/>
      <source>
        <context value="src"/>
        <element value="initialSelected"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="initialSelected"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="QuestionnaireItemInitial"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="valueBoolean"/>
      <source>
        <context value="src"/>
        <type value="boolean"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <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="valueDecimal"/>
      <source>
        <context value="src"/>
        <type value="decimal"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <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="valueInteger"/>
      <source>
        <context value="src"/>
        <type value="integer"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <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="valueDate"/>
      <source>
        <context value="src"/>
        <type value="date"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <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="valueDateTime"/>
      <source>
        <context value="src"/>
        <type value="dateTime"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <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="valueTime"/>
      <source>
        <context value="src"/>
        <type value="time"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <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="valueString"/>
      <source>
        <context value="src"/>
        <type value="string"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <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="valueUri"/>
      <source>
        <context value="src"/>
        <type value="uri"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <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="valueAttachment"/>
      <source>
        <context value="src"/>
        <type value="Attachment"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <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="valueCoding"/>
      <source>
        <context value="src"/>
        <type value="Coding"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <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="valueQuantity"/>
      <source>
        <context value="src"/>
        <type value="Quantity"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <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="valueReference"/>
      <source>
        <context value="src"/>
        <type value="Reference"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
  </group>
</StructureMap>