FHIR Extensions Pack
5.1.0 - 5.1.0 (April 2024) International flag

This page is part of the FHIR Core Extensions Registry (v5.1.0: Release 5.1) based on FHIR (HL7® FHIR® Standard) v5.0.0. This is the current published version. For a full list of available versions, see the Directory of published versions

: FML Conversion for AuditEvent: R4B to R5 - XML Representation

Page standards status: Trial-use Maturity Level: 1

Raw xml | Download



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

<b>conceptmap</b><span style="color: navy"> &quot;</span>AuditEventAction<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4B/codesystem-audit-event-action.html" title="AuditEventAction">http://hl7.org/fhir/4.3/audit-event-action</a><span style="color: navy">&quot;
</span><b>  prefix </b>t<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R5/codesystem-audit-event-action.html" title="Audit Event Action">http://hl7.org/fhir/audit-event-action</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>C <b>-</b> t<span style="color: navy">:</span>C
  s<span style="color: navy">:</span>R <b>-</b> t<span style="color: navy">:</span>R
  s<span style="color: navy">:</span>U <b>-</b> t<span style="color: navy">:</span>U
  s<span style="color: navy">:</span>D <b>-</b> t<span style="color: navy">:</span>D
  s<span style="color: navy">:</span>E <b>-</b> t<span style="color: navy">:</span>E
<span style="color: navy">}

</span><b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R4B/auditevent.html" title="AuditEvent">http://hl7.org/fhir/4.3/StructureDefinition/AuditEvent</a><span style="color: navy">&quot; </span><b>alias </b>AuditEventR4B <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R5/auditevent.html" title="AuditEvent">http://hl7.org/fhir/StructureDefinition/AuditEvent</a><span style="color: navy">&quot; </span><b>alias </b>AuditEventR5 <b>as </b><b>target</b>

<b>imports</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/StructureMap/*4Bto5<span style="color: navy">&quot;
</span>
<b>group </b>AuditEvent<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>AuditEventR4B, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>AuditEventR5<span style="color: navy">)</span><b> extends </b>DomainResource<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.type<span style="color: navy"><b> -&gt; </b></span>tgt.category<span style="color: navy">;</span>
  src.subtype<span style="color: navy"><b> -&gt; </b></span>tgt.code<span style="color: navy">;</span>
  src.action<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.action = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#AuditEventAction'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.recorded<span style="color: navy"><b> -&gt; </b></span>tgt.recorded<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.severity as v -&gt; tgt.severity = translate(v, '#AuditEventSeverity', 'code');</span>
  src.outcome<b> as </b><span style="color: maroon">s</span><b> where </b>outcome = '0'<span style="color: navy"><b> -&gt; </b></span> tgt.outcome<b> as </b><span style="color: maroon">t</span><span style="color: navy">, </span> t.code = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Coding'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">tc</span><span style="color: navy">, </span> tc.system = <span style="color: blue">'http://hl7.org/fhir/issue-severity'</span><span style="color: navy">, </span> tc.code = <span style="color: blue">'success'</span><span style="color: navy">, </span> tc.display = <span style="color: blue">'Success'</span><span style="color: navy">;</span>
  src.outcome<b> as </b><span style="color: maroon">s</span><b> where </b>outcome = '4'<span style="color: navy"><b> -&gt; </b></span> tgt.outcome<b> as </b><span style="color: maroon">t</span><span style="color: navy">, </span> t.code = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Coding'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">tc</span><span style="color: navy">, </span> tc.system = <span style="color: blue">'http://hl7.org/fhir/issue-severity'</span><span style="color: navy">, </span> tc.code = <span style="color: blue">'warning'</span><span style="color: navy">, </span> tc.display = <span style="color: blue">'Warning'</span><span style="color: navy">;</span>
  src.outcome<b> as </b><span style="color: maroon">s</span><b> where </b>outcome = '8'<span style="color: navy"><b> -&gt; </b></span> tgt.outcome<b> as </b><span style="color: maroon">t</span><span style="color: navy">, </span> t.code = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Coding'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">tc</span><span style="color: navy">, </span> tc.system = <span style="color: blue">'http://hl7.org/fhir/issue-severity'</span><span style="color: navy">, </span> tc.code = <span style="color: blue">'error'</span><span style="color: navy">, </span> tc.display = <span style="color: blue">'error'</span><span style="color: navy">;</span>
  src.outcome<b> as </b><span style="color: maroon">s</span><b> where </b>outcome = '12'<span style="color: navy"><b> -&gt; </b></span> tgt.outcome<b> as </b><span style="color: maroon">t</span><span style="color: navy">, </span> t.code = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Coding'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">tc</span><span style="color: navy">, </span> tc.system = <span style="color: blue">'http://hl7.org/fhir/issue-severity'</span><span style="color: navy">, </span> tc.code = <span style="color: blue">'fatal'</span><span style="color: navy">, </span> tc.display = <span style="color: blue">'Fatal'</span><span style="color: navy">;</span>
  src.agent<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.agent<b> as </b><span style="color: maroon">t</span><b> then </b>AuditEventAgent<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><span style="color: green">src.authorization -&gt; tgt.authorization;</span>
  src.source<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.source<b> as </b><span style="color: maroon">t</span><b> then </b>AuditEventSource<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.entity<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.entity<b> as </b><span style="color: maroon">t</span><b> then </b>AuditEventEntity<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><span style="color: navy">// </span><span style="color: green">group AuditEventOutcome(source src, target tgt) extends BackboneElement {</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.code -&gt; tgt.code;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.detail -&gt; tgt.detail;</span>
<span style="color: navy">// </span><span style="color: green">}</span>
<b>group </b>AuditEventAgent<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span>, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy">)</span><b> extends </b>BackboneElement<span style="color: navy"> {
</span>  src.type<span style="color: navy"><b> -&gt; </b></span>tgt.type<span style="color: navy">;</span>
  src.role<span style="color: navy"><b> -&gt; </b></span>tgt.role<span style="color: navy">;</span>
  src.who<span style="color: navy"><b> -&gt; </b></span>tgt.who<span style="color: navy">;</span>
  src.requestor<span style="color: navy"><b> -&gt; </b></span>tgt.requestor<span style="color: navy">;</span>
  src.location<span style="color: navy"><b> -&gt; </b></span>tgt.location<span style="color: navy">;</span>
  src.policy<span style="color: navy"><b> -&gt; </b></span>tgt.policy<span style="color: navy">;</span>
  src.network<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span><span style="color: maroon">tgt</span><b> then</b><span style="color: navy"> {
</span>    v.address<span style="color: navy"><b> -&gt; </b></span>tgt.network <i>&quot;network&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.network : Reference -&gt; tgt.network;</span>
  src.purposeOfUse<span style="color: navy"><b> -&gt; </b></span>tgt.authorization<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>AuditEventSource<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.site<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span> tgt.site = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Reference'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">t</span><span style="color: navy">, </span> t.display = <span style="color: maroon">v</span><span style="color: navy">;</span>
  src.observer<span style="color: navy"><b> -&gt; </b></span>tgt.observer<span style="color: navy">;</span>
  src.type<span style="color: navy"><b> -&gt; </b></span>tgt.type<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>AuditEventEntity<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.what<span style="color: navy"><b> -&gt; </b></span>tgt.what<span style="color: navy">;</span>
  src.role<span style="color: navy"><b> -&gt; </b></span>tgt.role<span style="color: navy">;</span>
  src.securityLabel<span style="color: navy"><b> -&gt; </b></span>tgt.securityLabel<span style="color: navy">;</span>
  src.query<span style="color: navy"><b> -&gt; </b></span>tgt.query<span style="color: navy">;</span>
  src.detail<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.detail<b> as </b><span style="color: maroon">t</span><b> then </b>AuditEventEntityDetail<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>AuditEventEntityDetail<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span>, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy">)</span><b> extends </b>BackboneElement<span style="color: navy"> {
</span>  src.type<span style="color: navy"><b> -&gt; </b></span>tgt.type<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> <span style="color: navy">// </span><span style="color: green">src.value : Quantity -&gt; tgt.value;</span>
  src.value<span style="color: navy"> : </span>base64Binary<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.value : boolean -&gt; tgt.value;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <contained>
    <ConceptMap>
      <id value="AuditEventAction"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/4.3/audit-event-action"/>
        <target value="http://hl7.org/fhir/audit-event-action"/>
        <element>
          <code value="C"/>
          <target>
            <code value="C"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="R"/>
          <target>
            <code value="R"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="U"/>
          <target>
            <code value="U"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="D"/>
          <target>
            <code value="D"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="E"/>
          <target>
            <code value="E"/>
            <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/AuditEvent4Bto5"/>
  <version value="5.1.0"/>
  <name value="AuditEvent4Bto5"/>
  <title value="FML Conversion for AuditEvent: R4B to R5"/>
  <status value="active"/>
  <date value="2024-04-27T18:54:50+10: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="FMLConversionforAuditEventR4BtoR5"/>
  <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/4.3/StructureDefinition/AuditEvent"/>
    <mode value="source"/>
    <alias value="AuditEventR4B"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/AuditEvent"/>
    <mode value="target"/>
    <alias value="AuditEventR5"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*4Bto5"/>
  <group>
    <name value="AuditEvent"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="AuditEventR4B"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="AuditEventR5"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="type"/>
      <source>
        <context value="src"/>
        <element value="type"/>
        <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="subtype"/>
      <source>
        <context value="src"/>
        <element value="subtype"/>
        <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="action"/>
      <source>
        <context value="src"/>
        <element value="action"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="action"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#AuditEventAction"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="recorded"/>
      <source>
        <context value="src"/>
        <element value="recorded"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="recorded"/>
        <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.severity as v -&gt; tgt.severity = translate(v, '#AuditEventSeverity', 'code');"/>
    </rule>
    <rule>
      <name value="outcome"/>
      <source>
        <context value="src"/>
        <element value="outcome"/>
        <variable value="s"/>
        <condition value="outcome = '0'"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="outcome"/>
        <variable value="t"/>
      </target>
      <target>
        <context value="t"/>
        <element value="code"/>
        <variable value="tc"/>
        <transform value="create"/>
        <parameter>
          <valueString value="Coding"/>
        </parameter>
      </target>
      <target>
        <context value="tc"/>
        <element value="system"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="http://hl7.org/fhir/issue-severity"/>
        </parameter>
      </target>
      <target>
        <context value="tc"/>
        <element value="code"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="success"/>
        </parameter>
      </target>
      <target>
        <context value="tc"/>
        <element value="display"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="Success"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="outcome"/>
      <source>
        <context value="src"/>
        <element value="outcome"/>
        <variable value="s"/>
        <condition value="outcome = '4'"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="outcome"/>
        <variable value="t"/>
      </target>
      <target>
        <context value="t"/>
        <element value="code"/>
        <variable value="tc"/>
        <transform value="create"/>
        <parameter>
          <valueString value="Coding"/>
        </parameter>
      </target>
      <target>
        <context value="tc"/>
        <element value="system"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="http://hl7.org/fhir/issue-severity"/>
        </parameter>
      </target>
      <target>
        <context value="tc"/>
        <element value="code"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="warning"/>
        </parameter>
      </target>
      <target>
        <context value="tc"/>
        <element value="display"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="Warning"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="outcome"/>
      <source>
        <context value="src"/>
        <element value="outcome"/>
        <variable value="s"/>
        <condition value="outcome = '8'"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="outcome"/>
        <variable value="t"/>
      </target>
      <target>
        <context value="t"/>
        <element value="code"/>
        <variable value="tc"/>
        <transform value="create"/>
        <parameter>
          <valueString value="Coding"/>
        </parameter>
      </target>
      <target>
        <context value="tc"/>
        <element value="system"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="http://hl7.org/fhir/issue-severity"/>
        </parameter>
      </target>
      <target>
        <context value="tc"/>
        <element value="code"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="error"/>
        </parameter>
      </target>
      <target>
        <context value="tc"/>
        <element value="display"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="error"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="outcome"/>
      <source>
        <context value="src"/>
        <element value="outcome"/>
        <variable value="s"/>
        <condition value="outcome = '12'"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="outcome"/>
        <variable value="t"/>
      </target>
      <target>
        <context value="t"/>
        <element value="code"/>
        <variable value="tc"/>
        <transform value="create"/>
        <parameter>
          <valueString value="Coding"/>
        </parameter>
      </target>
      <target>
        <context value="tc"/>
        <element value="system"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="http://hl7.org/fhir/issue-severity"/>
        </parameter>
      </target>
      <target>
        <context value="tc"/>
        <element value="code"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="fatal"/>
        </parameter>
      </target>
      <target>
        <context value="tc"/>
        <element value="display"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="Fatal"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="agent"/>
      <source>
        <context value="src"/>
        <element value="agent"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="agent"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="AuditEventAgent"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
      <documentation value="src.authorization -&gt; tgt.authorization;"/>
    </rule>
    <rule>
      <name value="source"/>
      <source>
        <context value="src"/>
        <element value="source"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="source"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="AuditEventSource"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="entity"/>
      <source>
        <context value="src"/>
        <element value="entity"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="entity"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="AuditEventEntity"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="AuditEventAgent"/>
    <extends value="BackboneElement"/>
    <documentation
                   value="group AuditEventOutcome(source src, target tgt) extends BackboneElement {
src.code -&gt; tgt.code;
src.detail -&gt; tgt.detail;
}"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="type"/>
      <source>
        <context value="src"/>
        <element value="type"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="type"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="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="who"/>
      <source>
        <context value="src"/>
        <element value="who"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="who"/>
        <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="requestor"/>
      <source>
        <context value="src"/>
        <element value="requestor"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="requestor"/>
        <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="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="policy"/>
      <source>
        <context value="src"/>
        <element value="policy"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="policy"/>
        <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="network"/>
      <source>
        <context value="src"/>
        <element value="network"/>
        <variable value="v"/>
      </source>
      <target>
        <transform value="copy"/>
        <parameter>
          <valueId value="tgt"/>
        </parameter>
      </target>
      <rule>
        <name value="network"/>
        <source>
          <context value="v"/>
          <element value="address"/>
          <variable value="vvv"/>
        </source>
        <target>
          <context value="tgt"/>
          <element value="network"/>
          <variable value="vvv"/>
          <transform value="create"/>
        </target>
        <dependent>
          <name value="DefaultMappingGroupAnonymousAlias"/>
          <parameter>
            <valueId value="vvv"/>
          </parameter>
          <parameter>
            <valueId value="vvv"/>
          </parameter>
        </dependent>
      </rule>
      <documentation value="src.network : Reference -&gt; tgt.network;"/>
    </rule>
    <rule>
      <name value="purposeOfUse"/>
      <source>
        <context value="src"/>
        <element value="purposeOfUse"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="authorization"/>
        <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="AuditEventSource"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="site"/>
      <source>
        <context value="src"/>
        <element value="site"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="site"/>
        <variable value="t"/>
        <transform value="create"/>
        <parameter>
          <valueString value="Reference"/>
        </parameter>
      </target>
      <target>
        <context value="t"/>
        <element value="display"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="observer"/>
      <source>
        <context value="src"/>
        <element value="observer"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="observer"/>
        <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="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="type"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="AuditEventEntity"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="what"/>
      <source>
        <context value="src"/>
        <element value="what"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="what"/>
        <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="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="securityLabel"/>
      <source>
        <context value="src"/>
        <element value="securityLabel"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="securityLabel"/>
        <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="query"/>
      <source>
        <context value="src"/>
        <element value="query"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="query"/>
        <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"/>
      <source>
        <context value="src"/>
        <element value="detail"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="detail"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="AuditEventEntityDetail"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="AuditEventEntityDetail"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="type"/>
      <source>
        <context value="src"/>
        <element value="type"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="type"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="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>
      <documentation value="src.value : Quantity -&gt; tgt.value;"/>
    </rule>
    <rule>
      <name value="valueBase64Binary"/>
      <source>
        <context value="src"/>
        <type value="base64Binary"/>
        <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>
      <documentation value="src.value : boolean -&gt; tgt.value;"/>
    </rule>
  </group>
</StructureMap>