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

: CarePlan Transforms: R3 to R2 - XML Representation

Page standards status: Draft Maturity Level: 1

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="CarePlan3to2"/>
  <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/CarePlan3to2'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'CarePlan3to2'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'CarePlan 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/CarePlan<span style="color: navy">&quot; </span><b>alias </b>CarePlan <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/1.0/CarePlan<span style="color: navy">&quot; </span><b>alias </b>CarePlanR2 <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>CarePlan<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>CarePlan, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>CarePlanR2<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;CarePlan-identifier&quot;</i><span style="color: navy">;</span>
  src.subject<span style="color: navy"><b> -&gt; </b></span>tgt.subject <i>&quot;CarePlan-subject&quot;</i><span style="color: navy">;</span>
  src.status<span style="color: navy"><b> -&gt; </b></span>tgt.status <i>&quot;CarePlan-status&quot;</i><span style="color: navy">;</span>
  src.context<span style="color: navy"><b> -&gt; </b></span>tgt.context <i>&quot;CarePlan-context&quot;</i><span style="color: navy">;</span>
  src.period<span style="color: navy"><b> -&gt; </b></span>tgt.period <i>&quot;CarePlan-period&quot;</i><span style="color: navy">;</span>
  src.author<span style="color: navy"><b> -&gt; </b></span>tgt.author <i>&quot;CarePlan-author&quot;</i><span style="color: navy">;</span>
  src.extension<b> as </b><span style="color: maroon">e</span><b> where </b>e.url = 'http://hl7.org/fhir/CarePlan-r2-modified'<span style="color: navy"><b> -&gt; </b></span>tgt.modified = <span style="color: navy">(</span>e.value<span style="color: navy">)</span> <i>&quot;CarePlan-modified&quot;</i><span style="color: navy">;</span>
  src.category<span style="color: navy"><b> -&gt; </b></span>tgt.category <i>&quot;CarePlan-category&quot;</i><span style="color: navy">;</span>
  src.description<span style="color: navy"><b> -&gt; </b></span>tgt.description <i>&quot;CarePlan-description&quot;</i><span style="color: navy">;</span>
  src.addresses<span style="color: navy"><b> -&gt; </b></span>tgt.addresses <i>&quot;CarePlan-addresses&quot;</i><span style="color: navy">;</span>
  src.supportingInfo<span style="color: navy"><b> -&gt; </b></span>tgt.support <i>&quot;CarePlan-support&quot;</i><span style="color: navy">;</span>
  src.basedOn<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span> tgt.relatedPlan<b> as </b><span style="color: maroon">rp</span><span style="color: navy">, </span> rp.code = <span style="color: blue">'fulfills'</span><span style="color: navy">, </span> rp.plan = <span style="color: maroon">v</span> <i>&quot;CarePlan-relatedPlan2&quot;</i><span style="color: navy">;</span>
  src.replaces<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span> tgt.relatedPlan<b> as </b><span style="color: maroon">rp</span><span style="color: navy">, </span> rp.code = <span style="color: blue">'replaces'</span><span style="color: navy">, </span> rp.plan = <span style="color: maroon">v</span> <i>&quot;CarePlan-relatedPlan3&quot;</i><span style="color: navy">;</span>
  src.careTeam<b> as </b><span style="color: maroon">vs</span><b> where </b>reference.resolve().exists()<span style="color: navy"><b> -&gt; </b></span><span style="color: navy">(</span>src.careTeam.reference.resolve()<span style="color: navy">)</span><b> as </b><span style="color: maroon">ct</span><b> then </b>plnParticipant<span style="color: navy">(</span><span style="color: maroon">ct</span><span style="color: navy">, </span><span style="color: maroon">tgt</span><span style="color: navy">)</span> <i>&quot;CarePlan-participant&quot;</i><span style="color: navy">;</span>
  src.goal<span style="color: navy"><b> -&gt; </b></span>tgt.goal <i>&quot;CarePlan-goal&quot;</i><span style="color: navy">;</span>
  src.activity<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.activity<b> as </b><span style="color: maroon">vt0</span><b> then </b>plnActivity<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;CarePlan-activity&quot;</i><span style="color: navy">;</span>
  src.note<span style="color: navy"><b> -&gt; </b></span>tgt.note <i>&quot;CarePlan-note&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>plnActivity<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.outcomeReference<span style="color: navy"><b> -&gt; </b></span>tgt.actionResulting <i>&quot;activity-actionResulting&quot;</i><span style="color: navy">;</span>
  src.progress<span style="color: navy"><b> -&gt; </b></span>tgt.progress <i>&quot;activity-progress&quot;</i><span style="color: navy">;</span>
  src.reference<span style="color: navy"><b> -&gt; </b></span>tgt.reference <i>&quot;activity-reference&quot;</i><span style="color: navy">;</span>
  src.detail<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.detail<b> as </b><span style="color: maroon">vt0</span><b> then </b>plnDetail<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;activity-detail&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>plnDetail<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.category<span style="color: navy"><b> -&gt; </b></span>tgt.category <i>&quot;detail-category&quot;</i><span style="color: navy">;</span>
  src.code<span style="color: navy"><b> -&gt; </b></span>tgt.code <i>&quot;detail-code&quot;</i><span style="color: navy">;</span>
  src.reasonCode<span style="color: navy"><b> -&gt; </b></span>tgt.reasonCode <i>&quot;detail-reasonCode&quot;</i><span style="color: navy">;</span>
  src.reasonReference<span style="color: navy"><b> -&gt; </b></span>tgt.reasonReference <i>&quot;detail-reasonReference&quot;</i><span style="color: navy">;</span>
  src.goal<span style="color: navy"><b> -&gt; </b></span>tgt.goal <i>&quot;detail-goal&quot;</i><span style="color: navy">;</span>
  src.status<span style="color: navy"><b> -&gt; </b></span>tgt.status <i>&quot;detail-status&quot;</i><span style="color: navy">;</span>
  src.statusReason<span style="color: navy"><b> -&gt; </b></span>tgt.statusReason <i>&quot;detail-statusReason&quot;</i><span style="color: navy">;</span>
  src.prohibited<span style="color: navy"><b> -&gt; </b></span>tgt.prohibited <i>&quot;detail-prohibited&quot;</i><span style="color: navy">;</span>
  src.scheduled<span style="color: navy"><b> -&gt; </b></span>tgt.scheduled <i>&quot;detail-scheduled&quot;</i><span style="color: navy">;</span>
  src.location<span style="color: navy"><b> -&gt; </b></span>tgt.location <i>&quot;detail-location&quot;</i><span style="color: navy">;</span>
  src.performer<span style="color: navy"><b> -&gt; </b></span>tgt.performer <i>&quot;detail-performer&quot;</i><span style="color: navy">;</span>
  src.product<span style="color: navy"><b> -&gt; </b></span>tgt.product <i>&quot;detail-product&quot;</i><span style="color: navy">;</span>
  src.dailyAmount<span style="color: navy"><b> -&gt; </b></span>tgt.dailyAmount <i>&quot;detail-dailyAmount&quot;</i><span style="color: navy">;</span>
  src.quantity<span style="color: navy"><b> -&gt; </b></span>tgt.quantity <i>&quot;detail-quantity&quot;</i><span style="color: navy">;</span>
  src.description<span style="color: navy"><b> -&gt; </b></span>tgt.description <i>&quot;detail-description&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>plnParticipant<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><span style="color: navy"> {
</span>  src.participant<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -&gt; </b></span>tgt.participant<b> as </b><span style="color: maroon">vt</span><b> then </b>plnParticipantMember<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span> <i>&quot;participant-unlink&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>plnParticipantMember<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.role<span style="color: navy"><b> -&gt; </b></span>tgt.role <i>&quot;participant-role&quot;</i><span style="color: navy">;</span>
  src.member<span style="color: navy"><b> -&gt; </b></span>tgt.member <i>&quot;participant-member&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/CarePlan3to2"/>
  <version value="0.1.0"/>
  <name value="CarePlan3to2"/>
  <title value="CarePlan 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="CarePlanTransformsR3toR2"/>
  <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/CarePlan"/>
    <mode value="source"/>
    <alias value="CarePlan"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/CarePlan"/>
    <mode value="target"/>
    <alias value="CarePlanR2"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*3to2"/>
  <group>
    <name value="CarePlan"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="CarePlan"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="CarePlanR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="CarePlan-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="CarePlan-subject"/>
      <source>
        <context value="src"/>
        <element value="subject"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="subject"/>
        <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="CarePlan-status"/>
      <source>
        <context value="src"/>
        <element value="status"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="status"/>
        <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="CarePlan-context"/>
      <source>
        <context value="src"/>
        <element value="context"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="context"/>
        <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="CarePlan-period"/>
      <source>
        <context value="src"/>
        <element value="period"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="period"/>
        <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="CarePlan-author"/>
      <source>
        <context value="src"/>
        <element value="author"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="author"/>
        <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="CarePlan-modified"/>
      <source>
        <context value="src"/>
        <element value="extension"/>
        <variable value="e"/>
        <condition
                   value="e.url = 'http://hl7.org/fhir/CarePlan-r2-modified'"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="modified"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="e.value"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="CarePlan-category"/>
      <source>
        <context value="src"/>
        <element value="category"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="category"/>
        <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="CarePlan-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="CarePlan-addresses"/>
      <source>
        <context value="src"/>
        <element value="addresses"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="addresses"/>
        <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="CarePlan-support"/>
      <source>
        <context value="src"/>
        <element value="supportingInfo"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="support"/>
        <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="CarePlan-relatedPlan2"/>
      <source>
        <context value="src"/>
        <element value="basedOn"/>
        <variable value="vs0"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="relatedPlan"/>
        <variable value="rp"/>
      </target>
      <target>
        <context value="rp"/>
        <element value="code"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="fulfills"/>
        </parameter>
      </target>
      <target>
        <context value="rp"/>
        <element value="plan"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="CarePlan-relatedPlan3"/>
      <source>
        <context value="src"/>
        <element value="replaces"/>
        <variable value="vs0"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="relatedPlan"/>
        <variable value="rp"/>
      </target>
      <target>
        <context value="rp"/>
        <element value="code"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="replaces"/>
        </parameter>
      </target>
      <target>
        <context value="rp"/>
        <element value="plan"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="CarePlan-participant"/>
      <source>
        <context value="src"/>
        <element value="careTeam"/>
        <variable value="vs"/>
        <condition value="reference.resolve().exists()"/>
      </source>
      <target>
        <variable value="ct"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="src.careTeam.reference.resolve()"/>
        </parameter>
      </target>
      <dependent>
        <name value="plnParticipant"/>
        <parameter>
          <valueId value="ct"/>
        </parameter>
        <parameter>
          <valueId value="tgt"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="CarePlan-goal"/>
      <source>
        <context value="src"/>
        <element value="goal"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="goal"/>
        <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="CarePlan-activity"/>
      <source>
        <context value="src"/>
        <element value="activity"/>
        <variable value="vs0"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="activity"/>
        <variable value="vt0"/>
      </target>
      <dependent>
        <name value="plnActivity"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="CarePlan-note"/>
      <source>
        <context value="src"/>
        <element value="note"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="note"/>
        <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="plnActivity"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="activity-actionResulting"/>
      <source>
        <context value="src"/>
        <element value="outcomeReference"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="actionResulting"/>
        <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="activity-progress"/>
      <source>
        <context value="src"/>
        <element value="progress"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="progress"/>
        <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="activity-reference"/>
      <source>
        <context value="src"/>
        <element value="reference"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="reference"/>
        <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="activity-detail"/>
      <source>
        <context value="src"/>
        <element value="detail"/>
        <variable value="vs0"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="detail"/>
        <variable value="vt0"/>
      </target>
      <dependent>
        <name value="plnDetail"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="plnDetail"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="detail-category"/>
      <source>
        <context value="src"/>
        <element value="category"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="category"/>
        <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="detail-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="detail-reasonCode"/>
      <source>
        <context value="src"/>
        <element value="reasonCode"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="reasonCode"/>
        <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="detail-reasonReference"/>
      <source>
        <context value="src"/>
        <element value="reasonReference"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="reasonReference"/>
        <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="detail-goal"/>
      <source>
        <context value="src"/>
        <element value="goal"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="goal"/>
        <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="detail-status"/>
      <source>
        <context value="src"/>
        <element value="status"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="status"/>
        <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="detail-statusReason"/>
      <source>
        <context value="src"/>
        <element value="statusReason"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="statusReason"/>
        <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="detail-prohibited"/>
      <source>
        <context value="src"/>
        <element value="prohibited"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="prohibited"/>
        <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="detail-scheduled"/>
      <source>
        <context value="src"/>
        <element value="scheduled"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="scheduled"/>
        <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="detail-location"/>
      <source>
        <context value="src"/>
        <element value="location"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="location"/>
        <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="detail-performer"/>
      <source>
        <context value="src"/>
        <element value="performer"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="performer"/>
        <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="detail-product"/>
      <source>
        <context value="src"/>
        <element value="product"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="product"/>
        <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="detail-dailyAmount"/>
      <source>
        <context value="src"/>
        <element value="dailyAmount"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="dailyAmount"/>
        <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="detail-quantity"/>
      <source>
        <context value="src"/>
        <element value="quantity"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="quantity"/>
        <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="detail-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>
  </group>
  <group>
    <name value="plnParticipant"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="participant-unlink"/>
      <source>
        <context value="src"/>
        <element value="participant"/>
        <variable value="vs"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="participant"/>
        <variable value="vt"/>
      </target>
      <dependent>
        <name value="plnParticipantMember"/>
        <parameter>
          <valueId value="vs"/>
        </parameter>
        <parameter>
          <valueId value="vt"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="plnParticipantMember"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="participant-role"/>
      <source>
        <context value="src"/>
        <element value="role"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="role"/>
        <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="participant-member"/>
      <source>
        <context value="src"/>
        <element value="member"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="member"/>
        <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>