<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="HdBe-HealthcareOrganization" />
  <meta>
    <lastUpdated value="2022-12-19T14:04:52.8404613+00:00" />
  </meta>
  <url value="https://fhir.healthdata.be/StructureDefinition/HdBe-HealthcareOrganization" />
  <name value="HdBeHealthcareOrganization" />
  <title value="HdBe HealthcareOrganization" />
  <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="The physical location of a healthcare organization. A healthcare organization is an organization that offers and provides medical, paramedic and/or nursing care to patients/clients. Examples include: hospitals, nursing homes, doctor’s offices." />
  <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-healthcareprovider-v3.4-2020EN" />
    <uri value="https://zibs.nl/wiki/HealthcareOrganization-v3.4(2020EN)" />
    <name value="zib HealthcareOrganization-v3.4(2020EN)" />
  </mapping>
  <mapping>
    <identity value="zib-contactinformation-v1.2-2020EN" />
    <uri value="https://zibs.nl/wiki/ContactInformation-v1.2(2020EN)" />
    <name value="zib ContactInformation-v1.2(2020EN)" />
  </mapping>
  <mapping>
    <identity value="HdBe-HealthcareOrganization" />
    <uri value="https://fhir.healthdata.be/StructureDefinition/LogicalModel/HdBe-HealthcareOrganization" />
    <name value="HdBe logical model HealthcareOrganization" />
  </mapping>
  <mapping>
    <identity value="HdBe-ContactInformation" />
    <uri value="https://fhir.healthdata.be/StructureDefinition/LogicalModel/HdBe-ContactInformation" />
    <name value="HdBe logical model ContactInformation" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Location" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Location" />
  <derivation value="constraint" />
  <differential>
    <element id="Location">
      <path value="Location" />
      <short value="HealthcareOrganization / OrganizationLocation" />
      <comment value="HealthcareOrganization is mapped to this Location profile and a profile on Organization (HdBe-HealthcareOrganization-Organization). This Location profile acts as the focal resource of HealthcareOrganization because most references to this CBB are concerned about the recording of the physical location where the care to patient takes place rather than the organizational information. For the latter, the profile on Organization is used which is referenced using the `Location.managingOrganization` element.&#xD;&#xA;&#xD;&#xA;&amp;#xD;&amp;#xA;&amp;#xD;&amp;#xA;&#xD;&#xA;&#xD;&#xA;Healthcare organizations usually consist of multiple organizational levels and physical locations. The hierarchical structure may be captured by using multiple instances of this HealthcareOrganization profile using the `Location.partOf` element to refer to their parent Location. Each instance refers the HdBe-HealthcareOrganization-Organization at the appropriate level in the hierarchy." />
      <alias value="OrganisatieLocatie" />
      <alias value="Zorgaanbieder" />
      <mapping>
        <identity value="zib-healthcareprovider-v3.4-2020EN" />
        <map value="NL-CM:17.2.1" />
        <comment value="HealthcareOrganization" />
      </mapping>
      <mapping>
        <identity value="zib-healthcareprovider-v3.4-2020EN" />
        <map value="NL-CM:17.2.9" />
        <comment value="OrganizationLocation" />
      </mapping>
      <mapping>
        <identity value="HdBe-HealthcareOrganization" />
        <map value="HealthcareOrganization" />
      </mapping>
      <mapping>
        <identity value="HdBe-HealthcareOrganization" />
        <map value="HealthcareOrganization.OrganizationLocation" />
      </mapping>
    </element>
    <element id="Location.identifier">
      <path value="Location.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <constraint>
        <key value="HdBe-HealthcareOrganization-1" />
        <severity value="error" />
        <human value="If the Location contains a DepartmentIdentificationNumber, the LocationIdentificationNumber must also be present to ensure unique identification of the Location." />
        <expression value="identifier.where(system = 'https://fhir.healthdata.be/NamingSystem/DepartmentIdentificationNumber').exists() implies identifier.where(system = 'https://fhir.healthdata.be/NamingSystem/LocationIdentificationNumber').exists()" />
      </constraint>
    </element>
    <element id="Location.identifier:locationIdentificationNumber">
      <path value="Location.identifier" />
      <sliceName value="locationIdentificationNumber" />
      <short value="LocationIdentificationNumber" />
      <definition value="Identification number of the location, if a numerical location identification is used next to or instead of a location name.&#xD;&#xA;&#xD;&#xA;The identifier value is equal to the HCOrganization.Site.SiteID (or site number) value as found in the [Common Base Registry for HealthCare Actor (CoBRHA)](https://www.ehealth.fgov.be/ehealthplatform/nl/service-cobrha-common-base-registry-for-healthcare-actor)." />
      <max value="1" />
      <patternIdentifier>
        <system value="https://fhir.healthdata.be/NamingSystem/LocationIdentificationNumber" />
      </patternIdentifier>
      <condition value="HdBe-HealthcareOrganization-1" />
      <mapping>
        <identity value="HdBe-HealthcareOrganization" />
        <map value="HealthcareOrganization.OrganizationLocation.LocationIdentificationNumber" />
      </mapping>
    </element>
    <element id="Location.identifier:departmentIdentificationNumber">
      <path value="Location.identifier" />
      <sliceName value="departmentIdentificationNumber" />
      <short value="DepartmentIdentificationNumber" />
      <definition value="The healthcare organization's internal department's identification number ('department' is also referred to as ‘ward’)." />
      <comment value="This needs to be an identification number listed in [fair.healthdata.be dataset Internal organization of departments within Belgian healthcare organizations](https://fair.healthdata.be/dataset/53c8b040-0b48-4c41-ab65-4c9d1600e908). Please note that this dataset is a temporary solution. A more structured and standardized version will follow in the future, which will then be documented here." />
      <max value="1" />
      <patternIdentifier>
        <system value="https://fhir.healthdata.be/NamingSystem/DepartmentIdentificationNumber" />
      </patternIdentifier>
      <condition value="HdBe-HealthcareOrganization-1" />
      <mapping>
        <identity value="HdBe-HealthcareOrganization" />
        <map value="HealthcareOrganization.OrganizationLocation.DepartmentIdentificationNumber" />
      </mapping>
    </element>
    <element id="Location.name">
      <path value="Location.name" />
      <short value="LocationName" />
      <definition value="Name of the location." />
      <alias value="LocatieNaam" />
      <mapping>
        <identity value="zib-healthcareprovider-v3.4-2020EN" />
        <map value="NL-CM:17.2.8" />
        <comment value="LocationName" />
      </mapping>
      <mapping>
        <identity value="HdBe-HealthcareOrganization" />
        <map value="HealthcareOrganization.OrganizationLocation.LocationName" />
      </mapping>
    </element>
    <element id="Location.telecom">
      <path value="Location.telecom" />
      <short value="ContactInformation" />
      <definition value="The information needed to contact the healthcare organization via telephone and/or e-mail." />
      <alias value="Contactgegevens" />
      <type>
        <code value="ContactPoint" />
        <profile value="https://fhir.healthdata.be/StructureDefinition/HdBe-ContactInformation" />
      </type>
      <mapping>
        <identity value="zib-healthcareprovider-v3.4-2020EN" />
        <map value="NL-CM:17.2.6" />
        <comment value="ContactInformation" />
      </mapping>
      <mapping>
        <identity value="zib-contactinformation-v1.2-2020EN" />
        <map value="NL-CM:20.6.1" />
        <comment value="ContactInformation" />
      </mapping>
      <mapping>
        <identity value="HdBe-HealthcareOrganization" />
        <map value="HealthcareOrganization.ContactInformation" />
      </mapping>
    </element>
    <element id="Location.address">
      <path value="Location.address" />
      <definition value="The physical address of the healthcare organization’s location." />
      <comment value="The cardinality mismatch with the CBB (0..1 versus 0..*) is explained by the restriction of FHIR to limit the `Location.address` to a physical address while the zib allows for other types of addresses (e.g. a postal address). Other types of addresses than a physical address are given in `Organization.address` which is referenced by `Location.managingOrganization`." />
      <type>
        <code value="Address" />
        <profile value="https://fhir.healthdata.be/StructureDefinition/HdBe-AddressInformation" />
      </type>
      <mapping>
        <identity value="zib-healthcareprovider-v3.4-2020EN" />
        <map value="NL-CM:17.2.5" />
        <comment value="AddressInformation" />
      </mapping>
      <mapping>
        <identity value="HdBe-HealthcareOrganization" />
        <map value="HealthcareOrganization.AddressInformation" />
      </mapping>
    </element>
    <element id="Location.managingOrganization">
      <path value="Location.managingOrganization" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="https://fhir.healthdata.be/StructureDefinition/HdBe-HealthcareOrganization-Organization" />
      </type>
    </element>
  </differential>
</StructureDefinition>