<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="zib-Payer" />
  <url value="http://nictiz.nl/fhir/StructureDefinition/zib-Payer" />
  <version value="2.0.5" />
  <name value="Zib Payer" />
  <title value="HCIM Payer" />
  <status value="active" />
  <publisher value="Nictiz" />
  <contact>
    <name value="Nictiz" />
    <telecom>
      <system value="url" />
      <value value="https://www.nictiz.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="Payer as defined by the Dutch Health and Care Information models (Dutch: Zorginformatiebouwsteen or ZIB)  version 3.1, release 2017." />
  <purpose value="Recording the information of the paying authorities and people serves to simplify payment of the fees for the supplied care and to provide insight in advance on how these fees are to be paid, especially when it comes to non-insured healthcare." />
  <copyright value="CC0" />
  <fhirVersion value="3.0.2" />
  <mapping>
    <identity value="hcim-payer-v3.1-2017EN" />
    <uri value="https://zibs.nl/wiki/Payer-v3.1(2017EN)" />
    <name value="HCIM Payer-v3.1(2017EN)" />
  </mapping>
  <mapping>
    <identity value="hcim-basicelements-v1.0-2017EN" />
    <uri value="https://zibs.nl/wiki/BasicElements-v1.0(2017EN)" />
    <name value="HCIM BasicElements-v1.0(2017EN)" />
  </mapping>
  <mapping>
    <identity value="hcim-payer-v3.0-2016EN" />
    <uri value="https://zibs.nl/wiki/Payer-v3.0(2016EN)" />
    <name value="HCIM Payer-v3.0(2016EN)" />
  </mapping>
  <mapping>
    <identity value="hcim-payer-v1.2-2015EN" />
    <uri value="https://zibs.nl/wiki/Payer-v1.2(2015EN)" />
    <name value="HCIM Payer-v1.2(2015EN)" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Coverage" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Coverage" />
  <derivation value="constraint" />
  <differential>
    <element id="Coverage">
      <path value="Coverage" />
      <short value="Coverage" />
      <alias value="Verzekering" />
      <mapping>
        <identity value="hcim-payer-v1.2-2015EN" />
        <map value="NL-CM:1.1.8" />
        <comment value="Insurance" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.0-2016EN" />
        <map value="NL-CM:1.1.8" />
        <comment value="Insurance" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.1-2017EN" />
        <map value="NL-CM:1.1.8" />
        <comment value="Insurance" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v1.2-2015EN" />
        <map value="NL-CM:1.1.1" />
        <comment value="Payer" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.0-2016EN" />
        <map value="NL-CM:1.1.1" />
        <comment value="Payer" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.1-2017EN" />
        <map value="NL-CM:1.1.1" />
        <comment value="Payer" />
      </mapping>
    </element>
    <element id="Coverage.type">
      <path value="Coverage.type" />
      <short value="InsuranceType" />
      <definition value="Type of insurance policy. Codes as returned in the Check for Right to Insurance" />
      <alias value="VerzekeringsSoort" />
      <binding>
        <strength value="extensible" />
        <description value="InsuranceTypeCodelist" />
        <valueSetReference>
          <reference value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.1.1.1--20171231000000" />
          <display value="VerzekeringssoortCodelijst" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="hcim-payer-v1.2-2015EN" />
        <map value="NL-CM:1.1.15" />
        <comment value="InsuranceType" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.0-2016EN" />
        <map value="NL-CM:1.1.15" />
        <comment value="InsuranceType" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.1-2017EN" />
        <map value="NL-CM:1.1.15" />
        <comment value="InsuranceType" />
      </mapping>
    </element>
    <element id="Coverage.policyHolder">
      <path value="Coverage.policyHolder" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-patient" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-organization" />
      </type>
    </element>
    <element id="Coverage.subscriber">
      <path value="Coverage.subscriber" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-patient" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson" />
      </type>
    </element>
    <element id="Coverage.subscriberId">
      <path value="Coverage.subscriberId" />
      <short value="InsurantNumber" />
      <definition value="Number under which the insured person is registered at the insurance company&#xD;&#xA;This item maps the ‘Identification number of the card’ on EHIC field 8" />
      <alias value="VerzekerdeNummer" />
      <mapping>
        <identity value="hcim-payer-v1.2-2015EN" />
        <map value="NL-CM:1.1.6" />
        <comment value="InsurantNumber" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.0-2016EN" />
        <map value="NL-CM:1.1.6" />
        <comment value="InsurantNumber" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.1-2017EN" />
        <map value="NL-CM:1.1.6" />
        <comment value="InsurantNumber" />
      </mapping>
    </element>
    <element id="Coverage.beneficiary">
      <path value="Coverage.beneficiary" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-patient" />
      </type>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.11" />
        <comment value="Subject" />
      </mapping>
    </element>
    <element id="Coverage.period">
      <path value="Coverage.period" />
      <definition value="Time period during which the coverage is in force. A missing start date indicates the start date isn't known." />
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.14" />
        <comment value="DateTime" />
      </mapping>
    </element>
    <element id="Coverage.period.start">
      <path value="Coverage.period.start" />
      <short value="StartDateTime" />
      <definition value="Date from which the insurance policy coverage applies." />
      <alias value="BeginDatumTijd" />
      <mapping>
        <identity value="hcim-payer-v1.2-2015EN" />
        <map value="NL-CM:1.1.13" />
        <comment value="StartDateTime" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.0-2016EN" />
        <map value="NL-CM:1.1.13" />
        <comment value="StartDateTime" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.1-2017EN" />
        <map value="NL-CM:1.1.13" />
        <comment value="StartDateTime" />
      </mapping>
    </element>
    <element id="Coverage.period.end">
      <path value="Coverage.period.end" />
      <short value="EndDateTime" />
      <definition value="Date until which the insurance policy coverage applies.&#xD;&#xA;This item maps the ‘Expiry date’ on EHIC field 9." />
      <alias value="EindDatumTijd" />
      <min value="1" />
      <mapping>
        <identity value="hcim-payer-v1.2-2015EN" />
        <map value="NL-CM:1.1.14" />
        <comment value="EndDateTime" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.0-2016EN" />
        <map value="NL-CM:1.1.14" />
        <comment value="EndDateTime" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.1-2017EN" />
        <map value="NL-CM:1.1.14" />
        <comment value="EndDateTime" />
      </mapping>
    </element>
    <element id="Coverage.payor">
      <path value="Coverage.payor" />
      <short value="InsuranceCompany / PayerPerson" />
      <alias value="Verzekeraar" />
      <alias value="BetalerPersoon" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-organization" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-patient" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson" />
      </type>
      <mapping>
        <identity value="hcim-payer-v1.2-2015EN" />
        <map value="NL-CM:1.1.2" />
        <comment value="PayerPerson is Patient or RelatedPerson" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.0-2016EN" />
        <map value="NL-CM:1.1.2" />
        <comment value="PayerPerson" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.1-2017EN" />
        <map value="NL-CM:1.1.2" />
        <comment value="PayerPerson" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v1.2-2015EN" />
        <map value="NL-CM:1.1.3" />
        <comment value="InsuranceCompany" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.0-2016EN" />
        <map value="NL-CM:1.1.3" />
        <comment value="InsuranceCompany" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.1-2017EN" />
        <map value="NL-CM:1.1.3" />
        <comment value="InsuranceCompany" />
      </mapping>
    </element>
    <element id="Coverage.payor.extension">
      <path value="Coverage.payor.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Coverage.payor.extension:bankInformation">
      <path value="Coverage.payor.extension" />
      <sliceName value="bankInformation" />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/zib-Payer-BankInformation" />
      </type>
      <mapping>
        <identity value="hcim-payer-v1.2-2015EN" />
        <map value="NL-CM:1.1.4" />
        <comment value="BankInformation" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.0-2016EN" />
        <map value="NL-CM:1.1.4" />
        <comment value="BankInformation" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.1-2017EN" />
        <map value="NL-CM:1.1.4" />
        <comment value="BankInformation" />
      </mapping>
    </element>
    <element id="Coverage.payor.extension:bankInformation.extension">
      <path value="Coverage.payor.extension.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Coverage.payor.extension:bankInformation.extension:BankName">
      <path value="Coverage.payor.extension.extension" />
      <sliceName value="BankName" />
      <short value="BankName" />
      <definition value="Name of the financial organization." />
      <alias value="BankNaam" />
      <min value="0" />
      <mapping>
        <identity value="hcim-payer-v1.2-2015EN" />
        <map value="NL-CM:1.1.9" />
        <comment value="BankName" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.0-2016EN" />
        <map value="NL-CM:1.1.9" />
        <comment value="BankName" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.1-2017EN" />
        <map value="NL-CM:1.1.9" />
        <comment value="BankName" />
      </mapping>
    </element>
    <element id="Coverage.payor.extension:bankInformation.extension:AccountNumber">
      <path value="Coverage.payor.extension.extension" />
      <sliceName value="AccountNumber" />
      <short value="AccountNumber" />
      <definition value="The payer’s bank account number at the listed organization. For European countries, this is the IBAN." />
      <alias value="Rekeningnummer" />
      <min value="1" />
      <mapping>
        <identity value="hcim-payer-v1.2-2015EN" />
        <map value="NL-CM:1.1.11" />
        <comment value="AccountNumber" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.0-2016EN" />
        <map value="NL-CM:1.1.11" />
        <comment value="AccountNumber" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.1-2017EN" />
        <map value="NL-CM:1.1.11" />
        <comment value="AccountNumber" />
      </mapping>
    </element>
    <element id="Coverage.payor.extension:bankInformation.extension:Bankcode">
      <path value="Coverage.payor.extension.extension" />
      <sliceName value="Bankcode" />
      <short value="Bankcode" />
      <definition value="Code indicating the bank and branch. For European countries, this is the organization’s BIC or SWIFT code." />
      <alias value="Bankcode" />
      <min value="0" />
      <mapping>
        <identity value="hcim-payer-v1.2-2015EN" />
        <map value="NL-CM:1.1.10" />
        <comment value="BankCode" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.0-2016EN" />
        <map value="NL-CM:1.1.10" />
        <comment value="BankCode" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.1-2017EN" />
        <map value="NL-CM:1.1.10" />
        <comment value="BankCode" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>