Netherlands - Generic Functions for data exchange Implementation Guide
0.9.0-ballot - ballot

Netherlands - Generic Functions for data exchange Implementation Guide, published by Ministerie van Volksgezondheid, Welzijn en Sport. This guide is not an authorized publication; it is the continuous build for version 0.9.0-ballot built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/minvws/generiekefuncties-docs/ and changes regularly. See the Directory of published versions

## : KVK Vestigingsprofiel naar FHIR Location - XML Representation

Draft as of 2026-04-02

Raw xml | Download

    <StructureMap xmlns="http://hl7.org/fhir">
      <id value="KvkVestigingsprofielToLocation"/>
      <text>
        <status value="generated"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureMap KvkVestigingsprofielToLocation</b></p><a name="KvkVestigingsprofielToLocation"> </a><a name="hcKvkVestigingsprofielToLocation"> </a><pre class="fml">
    <b>map</b><span style="color: navy"> &quot;</span>http://minvws.github.io/generiekefuncties-docs/StructureMap/KvkVestigingsprofielToLocation<span style="color: navy">&quot; = &quot;</span>KvkVestigingsprofielToLocation<span style="color: navy">&quot;

    </span><span style="color: navy">// </span><span style="color: green">StructureMap die een KVK Vestigingsprofiel API response transformeert naar een FHIR Location resource.</span>

    <b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-KvkVestigingsprofiel.html" title="KVK Vestigingsprofiel">http://minvws.github.io/generiekefuncties-docs/StructureDefinition/KvkVestigingsprofiel</a><span style="color: navy">&quot; </span><b>alias </b>KvkVestigingsprofiel <b>as </b><b>source</b>
    <b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-nl-gf-location.html" title="NL Generic Functions Location Profile">http://minvws.github.io/generiekefuncties-docs/StructureDefinition/nl-gf-location</a><span style="color: navy">&quot; </span><b>alias </b>NlGfLocation <b>as </b><b>target</b>

    <b>group </b>KvkVestigingsprofielToLocation<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>KvkVestigingsprofiel, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>Location<span style="color: navy">)</span><span style="color: navy"> {
    </span>  src<span style="color: navy"><b> -&gt; </b></span>tgt.meta<b> as </b><span style="color: maroon">meta</span><b> then</b><span style="color: navy"> {
    </span>    src<span style="color: navy"><b> -&gt; </b></span>meta.profile = <span style="color: blue">'http://minvws.github.io/generiekefuncties-docs/StructureDefinition/nl-gf-location'</span> <i>&quot;setProfileUrl&quot;</i><span style="color: navy">;</span>
      <span style="color: navy">}</span> <i>&quot;setProfile&quot;</i><span style="color: navy">;</span>
      src.vestigingsnummer<b> as </b><span style="color: maroon">vestNr</span><span style="color: navy"><b> -&gt; </b></span>tgt.identifier<b> as </b><span style="color: maroon">vestId</span><b> then</b><span style="color: navy"> {
    </span>    vestNr<span style="color: navy"><b> -&gt; </b></span>vestId.use = <span style="color: blue">'official'</span> <i>&quot;vestUse&quot;</i><span style="color: navy">;</span>
        vestNr<span style="color: navy"><b> -&gt; </b></span>vestId.system = <span style="color: blue">'http://fhir.nl/fhir/NamingSystem/kvk-vestigingsnummer'</span> <i>&quot;vestSystem&quot;</i><span style="color: navy">;</span>
        vestNr<span style="color: navy"><b> -&gt; </b></span>vestId.value = <span style="color: maroon">vestNr</span> <i>&quot;vestValue&quot;</i><span style="color: navy">;</span>
        vestNr<span style="color: navy"><b> -&gt; </b></span>vestId.assigner<b> as </b><span style="color: maroon">assignerRef</span><b> then</b><span style="color: navy"> {
    </span>      vestNr<span style="color: navy"><b> -&gt; </b></span>assignerRef.identifier<b> as </b><span style="color: maroon">assignerId</span><b> then</b><span style="color: navy"> {
    </span>        vestNr<span style="color: navy"><b> -&gt; </b></span>assignerId.system = <span style="color: blue">'http://fhir.nl/fhir/NamingSystem/kvk'</span> <i>&quot;assignerIdSystem&quot;</i><span style="color: navy">;</span>
            vestNr<span style="color: navy"><b> -&gt; </b></span>assignerId.value = <span style="color: blue">'50000535'</span> <i>&quot;assignerIdValue&quot;</i><span style="color: navy">;</span>
            vestNr<span style="color: navy"><b> -&gt; </b></span>assignerId.type<b> as </b><span style="color: maroon">assignerIdType</span><b> then</b><span style="color: navy"> {
    </span>          vestNr<span style="color: navy"><b> -&gt; </b></span>assignerIdType.coding<b> as </b><span style="color: maroon">assignerIdTypeCoding</span><b> then</b><span style="color: navy"> {
    </span>            vestNr<span style="color: navy"><b> -&gt; </b></span>assignerIdTypeCoding.system = <span style="color: blue">'http://terminology.hl7.org/CodeSystem/provenance-participant-type'</span> <i>&quot;assignerIdTypeCodingSystem&quot;</i><span style="color: navy">;</span>
                vestNr<span style="color: navy"><b> -&gt; </b></span>assignerIdTypeCoding.code = <span style="color: blue">'custodian'</span> <i>&quot;assignerIdTypeCodingCode&quot;</i><span style="color: navy">;</span>
              <span style="color: navy">}</span> <i>&quot;assignerIdTypeCoding&quot;</i><span style="color: navy">;</span>
            <span style="color: navy">}</span> <i>&quot;assignerIdType&quot;</i><span style="color: navy">;</span>
          <span style="color: navy">}</span> <i>&quot;assignerIdentifier&quot;</i><span style="color: navy">;</span>
        <span style="color: navy">}</span> <i>&quot;vestAssigner&quot;</i><span style="color: navy">;</span>
      <span style="color: navy">}</span><span style="color: navy">;</span>
      src.kvkNummer<b> as </b><span style="color: maroon">kvkNum</span><span style="color: navy"><b> -&gt; </b></span>tgt.managingOrganization<b> as </b><span style="color: maroon">orgRef</span><b> then</b><span style="color: navy"> {
    </span>    kvkNum<span style="color: navy"><b> -&gt; </b></span>orgRef.identifier<b> as </b><span style="color: maroon">orgId</span><b> then</b><span style="color: navy"> {
    </span>      kvkNum<span style="color: navy"><b> -&gt; </b></span>orgId.system = <span style="color: blue">'http://fhir.nl/fhir/NamingSystem/kvk'</span> <i>&quot;orgIdSystem&quot;</i><span style="color: navy">;</span>
          kvkNum<span style="color: navy"><b> -&gt; </b></span>orgId.value = <span style="color: maroon">kvkNum</span> <i>&quot;orgIdValue&quot;</i><span style="color: navy">;</span>
        <span style="color: navy">}</span> <i>&quot;orgRefIdentifier&quot;</i><span style="color: navy">;</span>
        kvkNum<span style="color: navy"><b> -&gt; </b></span>orgRef.type = <span style="color: blue">'Organization'</span> <i>&quot;orgRefType&quot;</i><span style="color: navy">;</span>
        kvkNum<span style="color: navy"><b> -&gt; </b></span>orgRef.reference = <b>append</b><span style="color: navy">(</span><span style="color: blue">'Organization/'</span><span style="color: navy">, </span><span style="color: maroon">kvkNum</span><span style="color: navy">)</span> <i>&quot;orgRefReference&quot;</i><span style="color: navy">;</span>
      <span style="color: navy">}</span><span style="color: navy">;</span>
      src.eersteHandelsnaam<b> as </b><span style="color: maroon">naam</span><span style="color: navy"><b> -&gt; </b></span>tgt.name = <span style="color: maroon">naam</span><span style="color: navy">;</span>
      src<span style="color: navy"><b> -&gt; </b></span>tgt.status = <span style="color: blue">'active'</span> <i>&quot;setStatus&quot;</i><span style="color: navy">;</span>
      src<span style="color: navy"><b> -&gt; </b></span>tgt.mode = <span style="color: blue">'instance'</span> <i>&quot;setMode&quot;</i><span style="color: navy">;</span>
      src.statutaireNaam<b> as </b><span style="color: maroon">statNaam</span><span style="color: navy"><b> -&gt; </b></span>tgt.alias = <span style="color: maroon">statNaam</span><span style="color: navy">;</span>
      src.handelsnamen<b> as </b><span style="color: maroon">hn</span><b> then </b>KvkVestHandelsnaamToAlias<span style="color: navy">(</span><span style="color: maroon">hn</span><span style="color: navy">, </span><span style="color: maroon">tgt</span><span style="color: navy">)</span><span style="color: navy">;</span>
      src.adressen<b> as </b><span style="color: maroon">adres</span><span style="color: navy"><b> -&gt; </b></span>tgt.address<b> as </b><span style="color: maroon">addr</span><b> then </b>KvkVestAdresToAddress<span style="color: navy">(</span><span style="color: maroon">adres</span><span style="color: navy">, </span><span style="color: maroon">addr</span><span style="color: navy">)</span><span style="color: navy">;</span>
      src.adressen<b> as </b><span style="color: maroon">adres</span><b> then</b><span style="color: navy"> {
    </span>    adres.geoData<b> as </b><span style="color: maroon">geo</span><span style="color: navy"><b> -&gt; </b></span>tgt.position<b> as </b><span style="color: maroon">pos</span><b> then </b>KvkGeoDataToPosition<span style="color: navy">(</span><span style="color: maroon">geo</span><span style="color: navy">, </span><span style="color: maroon">pos</span><span style="color: navy">)</span> <i>&quot;geoDataToPosition&quot;</i><span style="color: navy">;</span>
      <span style="color: navy">}</span> <i>&quot;geoData&quot;</i><span style="color: navy">;</span>
      src.websites<b> as </b><span style="color: maroon">web</span><span style="color: navy"><b> -&gt; </b></span>tgt.telecom<b> as </b><span style="color: maroon">tel</span><b> then </b>KvkVestWebsiteToContactPoint<span style="color: navy">(</span><span style="color: maroon">web</span><span style="color: navy">, </span><span style="color: maroon">tel</span><span style="color: navy">)</span><span style="color: navy">;</span>
      src.sbiActiviteiten<b> as </b><span style="color: maroon">sbi</span><span style="color: navy"><b> -&gt; </b></span>tgt.type<b> as </b><span style="color: maroon">cc</span><b> then </b>KvkVestSBIToCodeableConcept<span style="color: navy">(</span><span style="color: maroon">sbi</span><span style="color: navy">, </span><span style="color: maroon">cc</span><span style="color: navy">)</span><span style="color: navy">;</span>
    <span style="color: navy">}

    </span><b>group </b>KvkVestHandelsnaamToAlias<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>Location<span style="color: navy">)</span><span style="color: navy"> {
    </span>  src.naam<b> as </b><span style="color: maroon">naam</span><span style="color: navy"><b> -&gt; </b></span>tgt.alias = <span style="color: maroon">naam</span><span style="color: navy">;</span>
    <span style="color: navy">}

    </span><b>group </b>KvkVestAdresToAddress<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>Address<span style="color: navy">)</span><span style="color: navy"> {
    </span>  src.volledigAdres<b> as </b><span style="color: maroon">volledigAdres</span><span style="color: navy"><b> -&gt; </b></span>tgt.text = <span style="color: maroon">volledigAdres</span><span style="color: navy">;</span>
      src.straatnaam<b> as </b><span style="color: maroon">straat</span><span style="color: navy"><b> -&gt; </b></span>tgt.line = <b>cast</b><span style="color: navy">(</span><span style="color: maroon">straat</span><span style="color: navy">, </span><span style="color: blue">'string'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">addrLine</span><b> then</b><span style="color: navy"> {
    </span>    straat<span style="color: navy"><b> -&gt; </b></span>addrLine.extension<b> as </b><span style="color: maroon">ext</span><b> then</b><span style="color: navy"> {
    </span>      straat<span style="color: navy"><b> -&gt; </b></span>ext.url = <span style="color: blue">'http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName'</span> <i>&quot;streetNameExtUrl&quot;</i><span style="color: navy">;</span>
          straat<span style="color: navy"><b> -&gt; </b></span>ext.value = <span style="color: maroon">straat</span> <i>&quot;streetNameExtValue&quot;</i><span style="color: navy">;</span>
        <span style="color: navy">}</span> <i>&quot;streetNameExt&quot;</i><span style="color: navy">;</span>
      <span style="color: navy">}</span><span style="color: navy">;</span>
      src.huisnummer<b> as </b><span style="color: maroon">huisnr</span><span style="color: navy"><b> -&gt; </b></span>tgt.line = <b>cast</b><span style="color: navy">(</span><span style="color: maroon">huisnr</span><span style="color: navy">, </span><span style="color: blue">'string'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">addrLine2</span><b> then</b><span style="color: navy"> {
    </span>    huisnr<span style="color: navy"><b> -&gt; </b></span>addrLine2.extension<b> as </b><span style="color: maroon">ext</span><b> then</b><span style="color: navy"> {
    </span>      huisnr<span style="color: navy"><b> -&gt; </b></span>ext.url = <span style="color: blue">'http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber'</span> <i>&quot;houseNumberExtUrl&quot;</i><span style="color: navy">;</span>
          huisnr<span style="color: navy"><b> -&gt; </b></span>ext.value = <b>cast</b><span style="color: navy">(</span><span style="color: maroon">huisnr</span><span style="color: navy">, </span><span style="color: blue">'string'</span><span style="color: navy">)</span> <i>&quot;houseNumberExtValue&quot;</i><span style="color: navy">;</span>
        <span style="color: navy">}</span> <i>&quot;houseNumberExt&quot;</i><span style="color: navy">;</span>
      <span style="color: navy">}</span><span style="color: navy">;</span>
      src.huisletter<b> as </b><span style="color: maroon">huisltr</span><span style="color: navy"><b> -&gt; </b></span>tgt.line = <b>cast</b><span style="color: navy">(</span><span style="color: maroon">huisltr</span><span style="color: navy">, </span><span style="color: blue">'string'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">addrLine3</span><b> then</b><span style="color: navy"> {
    </span>    huisltr<span style="color: navy"><b> -&gt; </b></span>addrLine3.extension<b> as </b><span style="color: maroon">ext</span><b> then</b><span style="color: navy"> {
    </span>      huisltr<span style="color: navy"><b> -&gt; </b></span>ext.url = <span style="color: blue">'http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-buildingNumberSuffix'</span> <i>&quot;houseLetterExtUrl&quot;</i><span style="color: navy">;</span>
          huisltr<span style="color: navy"><b> -&gt; </b></span>ext.value = <span style="color: maroon">huisltr</span> <i>&quot;houseLetterExtValue&quot;</i><span style="color: navy">;</span>
        <span style="color: navy">}</span> <i>&quot;houseLetterExt&quot;</i><span style="color: navy">;</span>
      <span style="color: navy">}</span><span style="color: navy">;</span>
      src.huisnummerToevoeging<b> as </b><span style="color: maroon">huisnrToev</span><span style="color: navy"><b> -&gt; </b></span>tgt.line = <b>cast</b><span style="color: navy">(</span><span style="color: maroon">huisnrToev</span><span style="color: navy">, </span><span style="color: blue">'string'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">addrLine4</span><b> then</b><span style="color: navy"> {
    </span>    huisnrToev<span style="color: navy"><b> -&gt; </b></span>addrLine4.extension<b> as </b><span style="color: maroon">ext</span><b> then</b><span style="color: navy"> {
    </span>      huisnrToev<span style="color: navy"><b> -&gt; </b></span>ext.url = <span style="color: blue">'http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator'</span> <i>&quot;houseNumberAdditionExtUrl&quot;</i><span style="color: navy">;</span>
          huisnrToev<span style="color: navy"><b> -&gt; </b></span>ext.value = <span style="color: maroon">huisnrToev</span> <i>&quot;houseNumberAdditionExtValue&quot;</i><span style="color: navy">;</span>
        <span style="color: navy">}</span> <i>&quot;houseNumberAdditionExt&quot;</i><span style="color: navy">;</span>
      <span style="color: navy">}</span><span style="color: navy">;</span>
      src.postcode<b> as </b><span style="color: maroon">pc</span><span style="color: navy"><b> -&gt; </b></span>tgt.postalCode = <span style="color: maroon">pc</span><span style="color: navy">;</span>
      src.plaats<b> as </b><span style="color: maroon">plaats</span><span style="color: navy"><b> -&gt; </b></span>tgt.city = <span style="color: maroon">plaats</span><span style="color: navy">;</span>
      src.regio<b> as </b><span style="color: maroon">regio</span><span style="color: navy"><b> -&gt; </b></span>tgt.district = <span style="color: maroon">regio</span><span style="color: navy">;</span>
      src.land<b> as </b><span style="color: maroon">land</span><span style="color: navy"><b> -&gt; </b></span>tgt.country = <span style="color: maroon">land</span><span style="color: navy">;</span>
      src<span style="color: navy"><b> -&gt; </b></span>tgt.use = <span style="color: blue">'work'</span> <i>&quot;setUse&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}

    </span><b>group </b>KvkGeoDataToPosition<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.gpsLatitude<b> as </b><span style="color: maroon">lat</span><span style="color: navy"><b> -&gt; </b></span>tgt.latitude = <span style="color: maroon">lat</span> <i>&quot;latitude&quot;</i><span style="color: navy">;</span>
      src.gpsLongitude<b> as </b><span style="color: maroon">lon</span><span style="color: navy"><b> -&gt; </b></span>tgt.longitude = <span style="color: maroon">lon</span> <i>&quot;longitude&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}

    </span><b>group </b>KvkVestWebsiteToContactPoint<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>ContactPoint<span style="color: navy">)</span><span style="color: navy"> {
    </span>  src<span style="color: navy"><b> -&gt; </b></span>tgt.system = <span style="color: blue">'url'</span> <i>&quot;setSystem&quot;</i><span style="color: navy">;</span>
      src<b> as </b><span style="color: maroon">url</span><span style="color: navy"><b> -&gt; </b></span>tgt.value = <span style="color: maroon">url</span> <i>&quot;setValue&quot;</i><span style="color: navy">;</span>
      src<span style="color: navy"><b> -&gt; </b></span>tgt.use = <span style="color: blue">'work'</span> <i>&quot;setUse&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}

    </span><b>group </b>KvkVestSBIToCodeableConcept<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>CodeableConcept<span style="color: navy">)</span><span style="color: navy"> {
    </span>  src<span style="color: navy"><b> -&gt; </b></span>tgt.coding<b> as </b><span style="color: maroon">coding</span><b> then</b><span style="color: navy"> {
    </span>    src<span style="color: navy"><b> -&gt; </b></span>coding.system = <span style="color: blue">'http://minvws.github.io/generiekefuncties-docs/CodeSystem/nl-gf-sbi-cs'</span> <i>&quot;sbiSystem&quot;</i><span style="color: navy">;</span>
        src.sbiCode<b> as </b><span style="color: maroon">code</span><span style="color: navy"><b> -&gt; </b></span>coding.code = <span style="color: maroon">code</span><span style="color: navy">;</span>
        src.sbiOmschrijving<b> as </b><span style="color: maroon">omschr</span><span style="color: navy"><b> -&gt; </b></span>coding.display = <span style="color: maroon">omschr</span> <i>&quot;sbiDisplay&quot;</i><span style="color: navy">;</span>
      <span style="color: navy">}</span> <i>&quot;sbiCoding&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}

    </span></pre></div>
      </text>
      <url
           value="http://minvws.github.io/generiekefuncties-docs/StructureMap/KvkVestigingsprofielToLocation"/>
      <version value="0.9.0-ballot"/>
      <name value="KvkVestigingsprofielToLocation"/>
      <title value="KVK Vestigingsprofiel naar FHIR Location"/>
      <status value="draft"/>
      <date value="2026-04-02T08:44:12+00:00"/>
      <publisher value="Ministerie van Volksgezondheid, Welzijn en Sport"/>
      <contact>
        <name value="Ministerie van Volksgezondheid, Welzijn en Sport"/>
        <telecom>
          <system value="url"/>
          <value value="https://www.minvws.nl"/>
        </telecom>
      </contact>
      <description
                   value="StructureMap die een KVK Vestigingsprofiel API response transformeert naar een FHIR Location resource."/>
      <jurisdiction>
        <coding>
          <system value="urn:iso:std:iso:3166"/>
          <code value="NL"/>
          <display value="Netherlands"/>
        </coding>
      </jurisdiction>
      <structure>
        <url
             value="http://minvws.github.io/generiekefuncties-docs/StructureDefinition/KvkVestigingsprofiel"/>
        <mode value="source"/>
        <alias value="KvkVestigingsprofiel"/>
      </structure>
      <structure>
        <url
             value="http://minvws.github.io/generiekefuncties-docs/StructureDefinition/nl-gf-location"/>
        <mode value="target"/>
        <alias value="NlGfLocation"/>
      </structure>
      <group>
        <name value="KvkVestigingsprofielToLocation"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <type value="KvkVestigingsprofiel"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <type value="Location"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="setProfile"/>
          <source>
            <context value="src"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="meta"/>
            <variable value="meta"/>
          </target>
          <rule>
            <name value="setProfileUrl"/>
            <source>
              <context value="src"/>
            </source>
            <target>
              <context value="meta"/>
              <contextType value="variable"/>
              <element value="profile"/>
              <transform value="copy"/>
              <parameter>
                <valueString
                             value="http://minvws.github.io/generiekefuncties-docs/StructureDefinition/nl-gf-location"/>
              </parameter>
            </target>
          </rule>
        </rule>
        <rule>
          <name value="vestigingsnummer"/>
          <source>
            <context value="src"/>
            <element value="vestigingsnummer"/>
            <variable value="vestNr"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="identifier"/>
            <variable value="vestId"/>
          </target>
          <rule>
            <name value="vestUse"/>
            <source>
              <context value="vestNr"/>
            </source>
            <target>
              <context value="vestId"/>
              <contextType value="variable"/>
              <element value="use"/>
              <transform value="copy"/>
              <parameter>
                <valueString value="official"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="vestSystem"/>
            <source>
              <context value="vestNr"/>
            </source>
            <target>
              <context value="vestId"/>
              <contextType value="variable"/>
              <element value="system"/>
              <transform value="copy"/>
              <parameter>
                <valueString
                             value="http://fhir.nl/fhir/NamingSystem/kvk-vestigingsnummer"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="vestValue"/>
            <source>
              <context value="vestNr"/>
            </source>
            <target>
              <context value="vestId"/>
              <contextType value="variable"/>
              <element value="value"/>
              <transform value="copy"/>
              <parameter>
                <valueId value="vestNr"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="vestAssigner"/>
            <source>
              <context value="vestNr"/>
            </source>
            <target>
              <context value="vestId"/>
              <contextType value="variable"/>
              <element value="assigner"/>
              <variable value="assignerRef"/>
            </target>
            <rule>
              <name value="assignerIdentifier"/>
              <source>
                <context value="vestNr"/>
              </source>
              <target>
                <context value="assignerRef"/>
                <contextType value="variable"/>
                <element value="identifier"/>
                <variable value="assignerId"/>
              </target>
              <rule>
                <name value="assignerIdSystem"/>
                <source>
                  <context value="vestNr"/>
                </source>
                <target>
                  <context value="assignerId"/>
                  <contextType value="variable"/>
                  <element value="system"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueString value="http://fhir.nl/fhir/NamingSystem/kvk"/>
                  </parameter>
                </target>
              </rule>
              <rule>
                <name value="assignerIdValue"/>
                <source>
                  <context value="vestNr"/>
                </source>
                <target>
                  <context value="assignerId"/>
                  <contextType value="variable"/>
                  <element value="value"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueString value="50000535"/>
                  </parameter>
                </target>
              </rule>
              <rule>
                <name value="assignerIdType"/>
                <source>
                  <context value="vestNr"/>
                </source>
                <target>
                  <context value="assignerId"/>
                  <contextType value="variable"/>
                  <element value="type"/>
                  <variable value="assignerIdType"/>
                </target>
                <rule>
                  <name value="assignerIdTypeCoding"/>
                  <source>
                    <context value="vestNr"/>
                  </source>
                  <target>
                    <context value="assignerIdType"/>
                    <contextType value="variable"/>
                    <element value="coding"/>
                    <variable value="assignerIdTypeCoding"/>
                  </target>
                  <rule>
                    <name value="assignerIdTypeCodingSystem"/>
                    <source>
                      <context value="vestNr"/>
                    </source>
                    <target>
                      <context value="assignerIdTypeCoding"/>
                      <contextType value="variable"/>
                      <element value="system"/>
                      <transform value="copy"/>
                      <parameter>
                        <valueString
                                     value="http://terminology.hl7.org/CodeSystem/provenance-participant-type"/>
                      </parameter>
                    </target>
                  </rule>
                  <rule>
                    <name value="assignerIdTypeCodingCode"/>
                    <source>
                      <context value="vestNr"/>
                    </source>
                    <target>
                      <context value="assignerIdTypeCoding"/>
                      <contextType value="variable"/>
                      <element value="code"/>
                      <transform value="copy"/>
                      <parameter>
                        <valueString value="custodian"/>
                      </parameter>
                    </target>
                  </rule>
                </rule>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="kvkNummer"/>
          <source>
            <context value="src"/>
            <element value="kvkNummer"/>
            <variable value="kvkNum"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="managingOrganization"/>
            <variable value="orgRef"/>
          </target>
          <rule>
            <name value="orgRefIdentifier"/>
            <source>
              <context value="kvkNum"/>
            </source>
            <target>
              <context value="orgRef"/>
              <contextType value="variable"/>
              <element value="identifier"/>
              <variable value="orgId"/>
            </target>
            <rule>
              <name value="orgIdSystem"/>
              <source>
                <context value="kvkNum"/>
              </source>
              <target>
                <context value="orgId"/>
                <contextType value="variable"/>
                <element value="system"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="http://fhir.nl/fhir/NamingSystem/kvk"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="orgIdValue"/>
              <source>
                <context value="kvkNum"/>
              </source>
              <target>
                <context value="orgId"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="kvkNum"/>
                </parameter>
              </target>
            </rule>
          </rule>
          <rule>
            <name value="orgRefType"/>
            <source>
              <context value="kvkNum"/>
            </source>
            <target>
              <context value="orgRef"/>
              <contextType value="variable"/>
              <element value="type"/>
              <transform value="copy"/>
              <parameter>
                <valueString value="Organization"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="orgRefReference"/>
            <source>
              <context value="kvkNum"/>
            </source>
            <target>
              <context value="orgRef"/>
              <contextType value="variable"/>
              <element value="reference"/>
              <transform value="append"/>
              <parameter>
                <valueString value="Organization/"/>
              </parameter>
              <parameter>
                <valueId value="kvkNum"/>
              </parameter>
            </target>
          </rule>
        </rule>
        <rule>
          <name value="eersteHandelsnaam"/>
          <source>
            <context value="src"/>
            <element value="eersteHandelsnaam"/>
            <variable value="naam"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="name"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="naam"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="setStatus"/>
          <source>
            <context value="src"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="status"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="active"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="setMode"/>
          <source>
            <context value="src"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="mode"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="instance"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="statutaireNaam"/>
          <source>
            <context value="src"/>
            <element value="statutaireNaam"/>
            <variable value="statNaam"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="alias"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="statNaam"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="handelsnamen"/>
          <source>
            <context value="src"/>
            <element value="handelsnamen"/>
            <variable value="hn"/>
          </source>
          <dependent>
            <name value="KvkVestHandelsnaamToAlias"/>
            <variable value="hn"/>
            <variable value="tgt"/>
          </dependent>
        </rule>
        <rule>
          <name value="adressen"/>
          <source>
            <context value="src"/>
            <element value="adressen"/>
            <variable value="adres"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="address"/>
            <variable value="addr"/>
          </target>
          <dependent>
            <name value="KvkVestAdresToAddress"/>
            <variable value="adres"/>
            <variable value="addr"/>
          </dependent>
        </rule>
        <rule>
          <name value="geoData"/>
          <source>
            <context value="src"/>
            <element value="adressen"/>
            <variable value="adres"/>
          </source>
          <rule>
            <name value="geoDataToPosition"/>
            <source>
              <context value="adres"/>
              <element value="geoData"/>
              <variable value="geo"/>
            </source>
            <target>
              <context value="tgt"/>
              <contextType value="variable"/>
              <element value="position"/>
              <variable value="pos"/>
            </target>
            <dependent>
              <name value="KvkGeoDataToPosition"/>
              <variable value="geo"/>
              <variable value="pos"/>
            </dependent>
          </rule>
        </rule>
        <rule>
          <name value="websites"/>
          <source>
            <context value="src"/>
            <element value="websites"/>
            <variable value="web"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="telecom"/>
            <variable value="tel"/>
          </target>
          <dependent>
            <name value="KvkVestWebsiteToContactPoint"/>
            <variable value="web"/>
            <variable value="tel"/>
          </dependent>
        </rule>
        <rule>
          <name value="sbiActiviteiten"/>
          <source>
            <context value="src"/>
            <element value="sbiActiviteiten"/>
            <variable value="sbi"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="type"/>
            <variable value="cc"/>
          </target>
          <dependent>
            <name value="KvkVestSBIToCodeableConcept"/>
            <variable value="sbi"/>
            <variable value="cc"/>
          </dependent>
        </rule>
      </group>
      <group>
        <name value="KvkVestHandelsnaamToAlias"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <type value="Location"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="naam"/>
          <source>
            <context value="src"/>
            <element value="naam"/>
            <variable value="naam"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="alias"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="naam"/>
            </parameter>
          </target>
        </rule>
      </group>
      <group>
        <name value="KvkVestAdresToAddress"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <type value="Address"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="volledigAdres"/>
          <source>
            <context value="src"/>
            <element value="volledigAdres"/>
            <variable value="volledigAdres"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="text"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="volledigAdres"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="straatnaam"/>
          <source>
            <context value="src"/>
            <element value="straatnaam"/>
            <variable value="straat"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="line"/>
            <variable value="addrLine"/>
            <transform value="cast"/>
            <parameter>
              <valueId value="straat"/>
            </parameter>
            <parameter>
              <valueString value="string"/>
            </parameter>
          </target>
          <rule>
            <name value="streetNameExt"/>
            <source>
              <context value="straat"/>
            </source>
            <target>
              <context value="addrLine"/>
              <contextType value="variable"/>
              <element value="extension"/>
              <variable value="ext"/>
            </target>
            <rule>
              <name value="streetNameExtUrl"/>
              <source>
                <context value="straat"/>
              </source>
              <target>
                <context value="ext"/>
                <contextType value="variable"/>
                <element value="url"/>
                <transform value="copy"/>
                <parameter>
                  <valueString
                               value="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="streetNameExtValue"/>
              <source>
                <context value="straat"/>
              </source>
              <target>
                <context value="ext"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="straat"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="huisnummer"/>
          <source>
            <context value="src"/>
            <element value="huisnummer"/>
            <variable value="huisnr"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="line"/>
            <variable value="addrLine2"/>
            <transform value="cast"/>
            <parameter>
              <valueId value="huisnr"/>
            </parameter>
            <parameter>
              <valueString value="string"/>
            </parameter>
          </target>
          <rule>
            <name value="houseNumberExt"/>
            <source>
              <context value="huisnr"/>
            </source>
            <target>
              <context value="addrLine2"/>
              <contextType value="variable"/>
              <element value="extension"/>
              <variable value="ext"/>
            </target>
            <rule>
              <name value="houseNumberExtUrl"/>
              <source>
                <context value="huisnr"/>
              </source>
              <target>
                <context value="ext"/>
                <contextType value="variable"/>
                <element value="url"/>
                <transform value="copy"/>
                <parameter>
                  <valueString
                               value="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="houseNumberExtValue"/>
              <source>
                <context value="huisnr"/>
              </source>
              <target>
                <context value="ext"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="cast"/>
                <parameter>
                  <valueId value="huisnr"/>
                </parameter>
                <parameter>
                  <valueString value="string"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="huisletter"/>
          <source>
            <context value="src"/>
            <element value="huisletter"/>
            <variable value="huisltr"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="line"/>
            <variable value="addrLine3"/>
            <transform value="cast"/>
            <parameter>
              <valueId value="huisltr"/>
            </parameter>
            <parameter>
              <valueString value="string"/>
            </parameter>
          </target>
          <rule>
            <name value="houseLetterExt"/>
            <source>
              <context value="huisltr"/>
            </source>
            <target>
              <context value="addrLine3"/>
              <contextType value="variable"/>
              <element value="extension"/>
              <variable value="ext"/>
            </target>
            <rule>
              <name value="houseLetterExtUrl"/>
              <source>
                <context value="huisltr"/>
              </source>
              <target>
                <context value="ext"/>
                <contextType value="variable"/>
                <element value="url"/>
                <transform value="copy"/>
                <parameter>
                  <valueString
                               value="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-buildingNumberSuffix"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="houseLetterExtValue"/>
              <source>
                <context value="huisltr"/>
              </source>
              <target>
                <context value="ext"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="huisltr"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="huisnummerToevoeging"/>
          <source>
            <context value="src"/>
            <element value="huisnummerToevoeging"/>
            <variable value="huisnrToev"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="line"/>
            <variable value="addrLine4"/>
            <transform value="cast"/>
            <parameter>
              <valueId value="huisnrToev"/>
            </parameter>
            <parameter>
              <valueString value="string"/>
            </parameter>
          </target>
          <rule>
            <name value="houseNumberAdditionExt"/>
            <source>
              <context value="huisnrToev"/>
            </source>
            <target>
              <context value="addrLine4"/>
              <contextType value="variable"/>
              <element value="extension"/>
              <variable value="ext"/>
            </target>
            <rule>
              <name value="houseNumberAdditionExtUrl"/>
              <source>
                <context value="huisnrToev"/>
              </source>
              <target>
                <context value="ext"/>
                <contextType value="variable"/>
                <element value="url"/>
                <transform value="copy"/>
                <parameter>
                  <valueString
                               value="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="houseNumberAdditionExtValue"/>
              <source>
                <context value="huisnrToev"/>
              </source>
              <target>
                <context value="ext"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="huisnrToev"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="postcode"/>
          <source>
            <context value="src"/>
            <element value="postcode"/>
            <variable value="pc"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="postalCode"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="pc"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="plaats"/>
          <source>
            <context value="src"/>
            <element value="plaats"/>
            <variable value="plaats"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="city"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="plaats"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="regio"/>
          <source>
            <context value="src"/>
            <element value="regio"/>
            <variable value="regio"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="district"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="regio"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="land"/>
          <source>
            <context value="src"/>
            <element value="land"/>
            <variable value="land"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="country"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="land"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="setUse"/>
          <source>
            <context value="src"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="use"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="work"/>
            </parameter>
          </target>
        </rule>
      </group>
      <group>
        <name value="KvkGeoDataToPosition"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="latitude"/>
          <source>
            <context value="src"/>
            <element value="gpsLatitude"/>
            <variable value="lat"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="latitude"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="lat"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="longitude"/>
          <source>
            <context value="src"/>
            <element value="gpsLongitude"/>
            <variable value="lon"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="longitude"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="lon"/>
            </parameter>
          </target>
        </rule>
      </group>
      <group>
        <name value="KvkVestWebsiteToContactPoint"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <type value="ContactPoint"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="setSystem"/>
          <source>
            <context value="src"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="url"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="setValue"/>
          <source>
            <context value="src"/>
            <variable value="url"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="value"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="url"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="setUse"/>
          <source>
            <context value="src"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="use"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="work"/>
            </parameter>
          </target>
        </rule>
      </group>
      <group>
        <name value="KvkVestSBIToCodeableConcept"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <type value="CodeableConcept"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="sbiCoding"/>
          <source>
            <context value="src"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <variable value="coding"/>
          </target>
          <rule>
            <name value="sbiSystem"/>
            <source>
              <context value="src"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="system"/>
              <transform value="copy"/>
              <parameter>
                <valueString
                             value="http://minvws.github.io/generiekefuncties-docs/CodeSystem/nl-gf-sbi-cs"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="sbiCode"/>
            <source>
              <context value="src"/>
              <element value="sbiCode"/>
              <variable value="code"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="code"/>
              <transform value="copy"/>
              <parameter>
                <valueId value="code"/>
              </parameter>
            </target>
          </rule>
          <rule>
            <name value="sbiDisplay"/>
            <source>
              <context value="src"/>
              <element value="sbiOmschrijving"/>
              <variable value="omschr"/>
            </source>
            <target>
              <context value="coding"/>
              <contextType value="variable"/>
              <element value="display"/>
              <transform value="copy"/>
              <parameter>
                <valueId value="omschr"/>
              </parameter>
            </target>
          </rule>
        </rule>
      </group>
    </StructureMap>