FHIR Extensions Pack
5.1.0-snapshot1 - Working Copy International flag

This page is part of the FHIR Core Extensions Registry (v5.1.0-snapshot1: Release 5.1) 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 HealthcareService: R4B to R5 - XML Representation

Page standards status: Trial-use Maturity Level: 1

Raw xml | Download



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

<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R4B/healthcareservice.html" title="HealthcareService">http://hl7.org/fhir/4.3/StructureDefinition/HealthcareService</a><span style="color: navy">&quot; </span><b>alias </b>HealthcareServiceR4B <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R5/healthcareservice.html" title="HealthcareService">http://hl7.org/fhir/StructureDefinition/HealthcareService</a><span style="color: navy">&quot; </span><b>alias </b>HealthcareServiceR5 <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>HealthcareService<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>HealthcareServiceR4B, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>HealthcareServiceR5<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<span style="color: navy">;</span>
  src.active<span style="color: navy"><b> -&gt; </b></span>tgt.active<span style="color: navy">;</span>
  src.providedBy<span style="color: navy"><b> -&gt; </b></span>tgt.providedBy<span style="color: navy">;</span>
  src.category<span style="color: navy"><b> -&gt; </b></span>tgt.category<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.offeredIn -&gt; tgt.offeredIn;</span>
  src.type<span style="color: navy"><b> -&gt; </b></span>tgt.type<span style="color: navy">;</span>
  src.specialty<span style="color: navy"><b> -&gt; </b></span>tgt.specialty<span style="color: navy">;</span>
  src.location<span style="color: navy"><b> -&gt; </b></span>tgt.location<span style="color: navy">;</span>
  src.name<span style="color: navy"><b> -&gt; </b></span>tgt.name<span style="color: navy">;</span>
  src.comment<span style="color: navy"><b> -&gt; </b></span>tgt.comment<span style="color: navy">;</span>
  src.extraDetails<span style="color: navy"><b> -&gt; </b></span>tgt.extraDetails<span style="color: navy">;</span>
  src.photo<span style="color: navy"><b> -&gt; </b></span>tgt.photo<span style="color: navy">;</span>
  src.coverageArea<span style="color: navy"><b> -&gt; </b></span>tgt.coverageArea<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.contact -&gt; tgt.contact;</span>
  src.serviceProvisionCode<span style="color: navy"><b> -&gt; </b></span>tgt.serviceProvisionCode<span style="color: navy">;</span>
  src.eligibility<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.eligibility<b> as </b><span style="color: maroon">t</span><b> then </b>HealthcareServiceEligibility<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.program<span style="color: navy"><b> -&gt; </b></span>tgt.program<span style="color: navy">;</span>
  src.characteristic<span style="color: navy"><b> -&gt; </b></span>tgt.characteristic<span style="color: navy">;</span>
  src.communication<span style="color: navy"><b> -&gt; </b></span>tgt.communication<span style="color: navy">;</span>
  src.referralMethod<span style="color: navy"><b> -&gt; </b></span>tgt.referralMethod<span style="color: navy">;</span>
  src.appointmentRequired<span style="color: navy"><b> -&gt; </b></span>tgt.appointmentRequired<span style="color: navy">;</span>
  src.availableTime<span style="color: navy"> : </span>BackboneElement<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.availability<b> as </b><span style="color: maroon">t</span><b> then </b>HealthcareServiceAvailabilityAvailableTime<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.notAvailable<span style="color: navy"> : </span>BackboneElement<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.availability = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Availability'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">t</span><b> then </b>HealthcareServiceAvailabilityNotAvailableTime<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> <i>&quot;notAvailableTime&quot;</i><span style="color: navy">;</span>
  src.endpoint<span style="color: navy"><b> -&gt; </b></span>tgt.endpoint<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>HealthcareServiceEligibility<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.code<span style="color: navy"><b> -&gt; </b></span>tgt.code<span style="color: navy">;</span>
  src.comment<span style="color: navy"><b> -&gt; </b></span>tgt.comment<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>HealthcareServiceAvailabilityAvailableTime<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.daysOfWeek<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span> tgt.availableTime<b> as </b><span style="color: maroon">t</span><span style="color: navy">, </span> t.daysOfWeek = <span style="color: maroon">s</span><span style="color: navy">;</span>
  src.allDay<span style="color: navy"> : </span>boolean<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span> tgt.availableTime<b> as </b><span style="color: maroon">t</span><span style="color: navy">, </span> t.allDay = <span style="color: maroon">s</span><span style="color: navy">;</span>
  src.availableStartTime<span style="color: navy"> : </span>time<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span> tgt.availableTime<b> as </b><span style="color: maroon">t</span><span style="color: navy">, </span> t.availableStartTime = <span style="color: maroon">s</span><span style="color: navy">;</span>
  src.availableEndTime<span style="color: navy"> : </span>time<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span> tgt.availableTime<b> as </b><span style="color: maroon">t</span><span style="color: navy">, </span> t.availableEndTime = <span style="color: maroon">s</span><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>HealthcareServiceAvailabilityNotAvailableTime<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.description<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span> tgt.notAvailableTime<b> as </b><span style="color: maroon">t</span><span style="color: navy">, </span> t.description = <span style="color: maroon">s</span><span style="color: navy">;</span>
  src.during<span style="color: navy"> : </span>Period<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span> tgt.notAvailableTime<b> as </b><span style="color: maroon">t</span><span style="color: navy">, </span> t.during = <span style="color: maroon">s</span><span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="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/HealthcareService4Bto5"/>
  <version value="5.1.0-snapshot1"/>
  <name value="HealthcareService4Bto5"/>
  <title value="FML Conversion for HealthcareService: R4B to R5"/>
  <status value="active"/>
  <date value="2024-03-12T13:30:10+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="FMLConversionforHealthcareServiceR4BtoR5"/>
  <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/HealthcareService"/>
    <mode value="source"/>
    <alias value="HealthcareServiceR4B"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/HealthcareService"/>
    <mode value="target"/>
    <alias value="HealthcareServiceR5"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*4Bto5"/>
  <group>
    <name value="HealthcareService"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="HealthcareServiceR4B"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="HealthcareServiceR5"/>
      <mode value="target"/>
    </input>
    <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="active"/>
      <source>
        <context value="src"/>
        <element value="active"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="active"/>
        <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="providedBy"/>
      <source>
        <context value="src"/>
        <element value="providedBy"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="providedBy"/>
        <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="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>
      <documentation value="src.offeredIn -&gt; tgt.offeredIn;"/>
    </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>
    <rule>
      <name value="specialty"/>
      <source>
        <context value="src"/>
        <element value="specialty"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="specialty"/>
        <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="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>
    </rule>
    <rule>
      <name value="comment"/>
      <source>
        <context value="src"/>
        <element value="comment"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="comment"/>
        <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="extraDetails"/>
      <source>
        <context value="src"/>
        <element value="extraDetails"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="extraDetails"/>
        <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="photo"/>
      <source>
        <context value="src"/>
        <element value="photo"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="photo"/>
        <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="coverageArea"/>
      <source>
        <context value="src"/>
        <element value="coverageArea"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="coverageArea"/>
        <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.contact -&gt; tgt.contact;"/>
    </rule>
    <rule>
      <name value="serviceProvisionCode"/>
      <source>
        <context value="src"/>
        <element value="serviceProvisionCode"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="serviceProvisionCode"/>
        <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="eligibility"/>
      <source>
        <context value="src"/>
        <element value="eligibility"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="eligibility"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="HealthcareServiceEligibility"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="program"/>
      <source>
        <context value="src"/>
        <element value="program"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="program"/>
        <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="characteristic"/>
      <source>
        <context value="src"/>
        <element value="characteristic"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="characteristic"/>
        <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="communication"/>
      <source>
        <context value="src"/>
        <element value="communication"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="communication"/>
        <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="referralMethod"/>
      <source>
        <context value="src"/>
        <element value="referralMethod"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="referralMethod"/>
        <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="appointmentRequired"/>
      <source>
        <context value="src"/>
        <element value="appointmentRequired"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="appointmentRequired"/>
        <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="availableTime"/>
      <source>
        <context value="src"/>
        <type value="BackboneElement"/>
        <element value="availableTime"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="availability"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="HealthcareServiceAvailabilityAvailableTime"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="notAvailableTime"/>
      <source>
        <context value="src"/>
        <type value="BackboneElement"/>
        <element value="notAvailable"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="availability"/>
        <variable value="t"/>
        <transform value="create"/>
        <parameter>
          <valueString value="Availability"/>
        </parameter>
      </target>
      <dependent>
        <name value="HealthcareServiceAvailabilityNotAvailableTime"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="endpoint"/>
      <source>
        <context value="src"/>
        <element value="endpoint"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="endpoint"/>
        <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="HealthcareServiceEligibility"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <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="comment"/>
      <source>
        <context value="src"/>
        <element value="comment"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="comment"/>
        <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="HealthcareServiceAvailabilityAvailableTime"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="daysOfWeek"/>
      <source>
        <context value="src"/>
        <element value="daysOfWeek"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="availableTime"/>
        <variable value="t"/>
      </target>
      <target>
        <context value="t"/>
        <element value="daysOfWeek"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="allDayBoolean"/>
      <source>
        <context value="src"/>
        <type value="boolean"/>
        <element value="allDay"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="availableTime"/>
        <variable value="t"/>
      </target>
      <target>
        <context value="t"/>
        <element value="allDay"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="availableStartTimeTime"/>
      <source>
        <context value="src"/>
        <type value="time"/>
        <element value="availableStartTime"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="availableTime"/>
        <variable value="t"/>
      </target>
      <target>
        <context value="t"/>
        <element value="availableStartTime"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="availableEndTimeTime"/>
      <source>
        <context value="src"/>
        <type value="time"/>
        <element value="availableEndTime"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="availableTime"/>
        <variable value="t"/>
      </target>
      <target>
        <context value="t"/>
        <element value="availableEndTime"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="HealthcareServiceAvailabilityNotAvailableTime"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="description"/>
      <source>
        <context value="src"/>
        <element value="description"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="notAvailableTime"/>
        <variable value="t"/>
      </target>
      <target>
        <context value="t"/>
        <element value="description"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="duringPeriod"/>
      <source>
        <context value="src"/>
        <type value="Period"/>
        <element value="during"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="notAvailableTime"/>
        <variable value="t"/>
      </target>
      <target>
        <context value="t"/>
        <element value="during"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
      </target>
    </rule>
  </group>
</StructureMap>