<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="HdBe-Payer.PayerPerson" />
  <meta>
    <lastUpdated value="2022-07-19T13:38:05.0408342+00:00" />
  </meta>
  <url value="https://fhir.healthdata.be/StructureDefinition/HdBe-Payer.PayerPerson" />
  <name value="HdBePayerPayerPerson" />
  <title value="HdBe Payer.PayerPerson" />
  <status value="draft" />
  <date value="2022-10-17T09:09:13.9562003+00:00" />
  <publisher value="Healthdata.be (Sciensano)" />
  <contact>
    <name value="Service portal – healthdata.be" />
    <telecom>
      <system value="url" />
      <value value="https://sciensano.service-now.com/sp" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="Payers are organizations or individuals that pay for the healthcare supplied to the patient. This profile represents a payer as a natural person or a juridical person, such as an organization, municipality, etc." />
  <copyright value="Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="zib-payer-v3.1.1-2020EN" />
    <uri value="https://zibs.nl/wiki/Payer-v3.1.1(2020EN)" />
    <name value="zib Payer-v3.1.1(2020EN)" />
  </mapping>
  <mapping>
    <identity value="HdBe-Payer" />
    <uri value="https://fhir.healthdata.be/StructureDefinition/LogicalModel/HdBe-Payer" />
    <name value="HdBe logical model Payer" />
  </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="Payer" />
      <comment value="The CBB Payer is split into two focal profiles on Coverage based on the PayerPerson and InsuranceCompany containers. These two containers cannot be profiled within one profile because they both require mapping different concepts on elements such as `.payor` and `.type`.&#xD;&#xA;&#xD;&#xA;The CBB container Payer.PayerPerson is mapped to this Coverage profile and uses the profiles HdBe-Patient, HdBe-ContactPerson and HdBe-Payer-Organization to capture the PayerName, AddressInformation and ContactInformation. These profiles are referenced using the `.payor` element." />
      <alias value="Betaler" />
      <mapping>
        <identity value="zib-payer-v3.1.1-2020EN" />
        <map value="NL-CM:1.1.1" />
        <comment value="Payer" />
      </mapping>
      <mapping>
        <identity value="HdBe-Payer" />
        <map value="Payer" />
      </mapping>
    </element>
    <element id="Coverage.extension">
      <path value="Coverage.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Coverage.extension:bankInformation">
      <path value="Coverage.extension" />
      <sliceName value="bankInformation" />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.healthdata.be/StructureDefinition/ext-Payer.BankInformation" />
      </type>
      <mapping>
        <identity value="HdBe-Payer" />
        <map value="Payer.PayerPerson.BankInformation" />
      </mapping>
    </element>
    <element id="Coverage.extension:bankInformation.extension">
      <path value="Coverage.extension.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Coverage.extension:bankInformation.extension:bankName">
      <path value="Coverage.extension.extension" />
      <sliceName value="bankName" />
      <min value="0" />
    </element>
    <element id="Coverage.extension:bankInformation.extension:bankName.value[x]">
      <path value="Coverage.extension.extension.value[x]" />
      <mapping>
        <identity value="HdBe-Payer" />
        <map value="Payer.PayerPerson.BankInformation.BankName" />
      </mapping>
    </element>
    <element id="Coverage.extension:bankInformation.extension:bankCode">
      <path value="Coverage.extension.extension" />
      <sliceName value="bankCode" />
      <min value="0" />
    </element>
    <element id="Coverage.extension:bankInformation.extension:bankCode.value[x]">
      <path value="Coverage.extension.extension.value[x]" />
      <mapping>
        <identity value="HdBe-Payer" />
        <map value="Payer.PayerPerson.BankInformation.BankCode" />
      </mapping>
    </element>
    <element id="Coverage.extension:bankInformation.extension:accountNumber">
      <path value="Coverage.extension.extension" />
      <sliceName value="accountNumber" />
      <min value="0" />
    </element>
    <element id="Coverage.extension:bankInformation.extension:accountNumber.value[x]">
      <path value="Coverage.extension.extension.value[x]" />
      <mapping>
        <identity value="HdBe-Payer" />
        <map value="Payer.PayerPerson.BankInformation.AccountNumber" />
      </mapping>
    </element>
    <element id="Coverage.status">
      <path value="Coverage.status" />
      <comment value="When systems don't record an explicit status and no status can be derived from the `.period.start` and `.period.end` elements it is expected that only _active_ Coverage resources are exchanged." />
    </element>
    <element id="Coverage.type">
      <path value="Coverage.type" />
      <min value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/coverage-selfpay" />
          <code value="pay" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Coverage.beneficiary">
      <path value="Coverage.beneficiary" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="https://fhir.healthdata.be/StructureDefinition/HdBe-Patient" />
      </type>
    </element>
    <element id="Coverage.payor">
      <path value="Coverage.payor" />
      <short value="PayerPerson" />
      <definition value="In the PayerPerson concept a person is a natural person or a juridical person, such as an organization, municipality, etc." />
      <comment value="If the resource referenced is conformant to one of the target CBB profiles, these profiles provide a mapping to the relevant CBB Payer concepts. If it is not conformant to one of these CBB profiles, it SHALL have at least the following FHIR elements filled to be compliant with the subsequent CBB Payer concepts:&#xD;&#xA;* `name.text` - PayerPerson::PayerName &#xD;&#xA;* `address` - AddressInformation &#xD;&#xA;* `telecom` - ContactInformation" />
      <alias value="BetalerPersoon" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
        <targetProfile value="https://fhir.healthdata.be/StructureDefinition/HdBe-Payer-Organization" />
        <targetProfile value="https://fhir.healthdata.be/StructureDefinition/HdBe-Patient" />
        <targetProfile value="https://fhir.healthdata.be/StructureDefinition/HdBe-ContactPerson" />
      </type>
      <mapping>
        <identity value="zib-payer-v3.1.1-2020EN" />
        <map value="NL-CM:1.1.2" />
        <comment value="PayerPerson" />
      </mapping>
      <mapping>
        <identity value="HdBe-Payer" />
        <map value="Payer.PayerPerson" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>