<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" />
  <snapshot>
    <element id="Location">
      <path value="Location" />
      <short value="HealthcareOrganization / OrganizationLocation" />
      <definition value="Details and position information for a physical place where services are provided  and resources and participants may be stored, found, contained or accommodated." />
      <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" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Location" />
        <min value="0" />
        <max value="*" />
      </base>
      <constraint>
        <key value="dom-2" />
        <severity value="error" />
        <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources" />
        <expression value="contained.contained.empty()" />
        <xpath value="not(parent::f:contained and f:contained)" />
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
      </constraint>
      <constraint>
        <key value="dom-1" />
        <severity value="error" />
        <human value="If the resource is contained in another resource, it SHALL NOT contain any narrative" />
        <expression value="contained.text.empty()" />
        <xpath value="not(parent::f:contained and f:text)" />
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
      </constraint>
      <constraint>
        <key value="dom-4" />
        <severity value="error" />
        <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" />
        <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" />
        <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" />
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
      </constraint>
      <constraint>
        <key value="dom-3" />
        <severity value="error" />
        <human value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource" />
        <expression value="contained.where(('#'+id in %resource.descendants().reference).not()).empty()" />
        <xpath value="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))" />
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="Entity. Role, or Act" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".Role[classCode=SDLC]" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="administrative.entity" />
      </mapping>
      <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.id">
      <path value="Location.id" />
      <short value="Logical id of this artifact" />
      <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." />
      <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="id" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Location.meta">
      <path value="Location.meta" />
      <short value="Metadata about the resource" />
      <definition value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.meta" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Meta" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Location.implicitRules">
      <path value="Location.implicitRules" />
      <short value="A set of rules under which this content was created" />
      <definition value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content." />
      <comment value="Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. &#xA;&#xA;This element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.implicitRules" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="uri" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isModifier value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Location.language">
      <path value="Location.language" />
      <short value="Language of the resource content" />
      <definition value="The base language in which the resource is written." />
      <comment value="Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource  Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.language" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
          <valueReference>
            <reference value="http://hl7.org/fhir/ValueSet/all-languages" />
          </valueReference>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Language" />
        </extension>
        <strength value="extensible" />
        <description value="A human language." />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Location.text">
      <path value="Location.text" />
      <short value="Text summary of the resource, for human interpretation" />
      <definition value="A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it &quot;clinically safe&quot; for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety." />
      <comment value="Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a &quot;text blob&quot; or where text is additionally entered raw or narrated and encoded in formation is added later." />
      <alias value="narrative" />
      <alias value="html" />
      <alias value="xhtml" />
      <alias value="display" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="DomainResource.text" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Narrative" />
      </type>
      <condition value="ele-1" />
      <condition value="dom-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Act.text?" />
      </mapping>
    </element>
    <element id="Location.contained">
      <path value="Location.contained" />
      <short value="Contained, inline Resources" />
      <definition value="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope." />
      <comment value="This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again." />
      <alias value="inline resources" />
      <alias value="anonymous resources" />
      <alias value="contained resources" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="DomainResource.contained" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Resource" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="Entity. Role, or Act" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Location.extension">
      <path value="Location.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional Content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="DomainResource.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Location.modifierExtension">
      <path value="Location.modifierExtension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Extensions that cannot be ignored" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="DomainResource.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Location.identifier">
      <path value="Location.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <short value="Unique code or number identifying the location to its users" />
      <definition value="Unique code or number identifying the location to its users." />
      <requirements value="Organization label locations in registries, need to keep track of those." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Location.identifier" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Identifier" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <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()" />
        <source value="https://fhir.healthdata.be/StructureDefinition/HdBe-HealthcareOrganization" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="Identifier" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".id" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="id" />
      </mapping>
    </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)." />
      <requirements value="Organization label locations in registries, need to keep track of those." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.identifier" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Identifier" />
      </type>
      <patternIdentifier>
        <system value="https://fhir.healthdata.be/NamingSystem/LocationIdentificationNumber" />
      </patternIdentifier>
      <condition value="ele-1" />
      <condition value="HdBe-HealthcareOrganization-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="Identifier" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".id" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="id" />
      </mapping>
      <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." />
      <requirements value="Organization label locations in registries, need to keep track of those." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.identifier" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Identifier" />
      </type>
      <patternIdentifier>
        <system value="https://fhir.healthdata.be/NamingSystem/DepartmentIdentificationNumber" />
      </patternIdentifier>
      <condition value="ele-1" />
      <condition value="HdBe-HealthcareOrganization-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="Identifier" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".id" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="id" />
      </mapping>
      <mapping>
        <identity value="HdBe-HealthcareOrganization" />
        <map value="HealthcareOrganization.OrganizationLocation.DepartmentIdentificationNumber" />
      </mapping>
    </element>
    <element id="Location.status">
      <path value="Location.status" />
      <short value="active | suspended | inactive" />
      <definition value="The status property covers the general availability of the resource, not the current value which may be covered by the operationStatus, or by a schedule/slots if they are configured for the location." />
      <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.status" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isModifier value="true" />
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="LocationStatus" />
        </extension>
        <strength value="required" />
        <description value="Indicates whether the location is still in use." />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".statusCode" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="status" />
      </mapping>
    </element>
    <element id="Location.operationalStatus">
      <path value="Location.operationalStatus" />
      <short value="The Operational status of the location (typically only for a bed/room)" />
      <definition value="The Operational status covers operation values most relevant to beds (but can also apply to rooms/units/chair/etc such as an isolation unit/dialisys chair). This typically covers concepts such as contamination, housekeeping and other activities like maintenance." />
      <comment value="Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.operationalStatus" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Coding" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="OperationalStatus" />
        </extension>
        <strength value="preferred" />
        <description value="The operational status if the location (where typically a bed/room)" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CV" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="status" />
      </mapping>
    </element>
    <element id="Location.name">
      <path value="Location.name" />
      <short value="LocationName" />
      <definition value="Name of the location." />
      <comment value="If the name of an location changes, consider putting the old name in the alias column so that it can still be located through searches." />
      <alias value="LocatieNaam" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.name" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".name" />
      </mapping>
      <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.alias">
      <path value="Location.alias" />
      <short value="A list of alternate names that the location is known as, or was known as in the past" />
      <definition value="A list of alternate names that the location is known as, or was known as in the past." />
      <comment value="There are no dates associated with the alias/historic names, as this is not intended to track when names were used, but to assist in searching so that older names can still result in identifying the location." />
      <requirements value="Over time locations and organizations go through many changes and can be known by different names.&#xA;&#xA;For searching knowing previous names that the location was known by can be very useful." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Location.alias" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".name" />
      </mapping>
    </element>
    <element id="Location.description">
      <path value="Location.description" />
      <short value="Additional details about the location that could be displayed as further information to identify the location beyond its name" />
      <definition value="Description of the Location, which helps in finding or referencing the place." />
      <comment value="Note that FHIR strings may not exceed 1MB in size" />
      <requirements value="Humans need additional information to verify a correct location has been identified." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.description" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".playingEntity[classCode=PLC determinerCode=INSTANCE].desc" />
      </mapping>
    </element>
    <element id="Location.mode">
      <path value="Location.mode" />
      <short value="instance | kind" />
      <definition value="Indicates whether a resource instance represents a specific location or a class of locations." />
      <comment value="This is labeled as a modifer because whether or not the location is a class of locations changes how it can be used and understood." />
      <requirements value="When using a Location resource for scheduling or orders, we need to be able to refer to a class of Locations instead of a specific Location." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.mode" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isModifier value="true" />
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="LocationMode" />
        </extension>
        <strength value="required" />
        <description value="Indicates whether a resource instance represents a specific location or a class of locations." />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".playingEntity[classCode=PLC].determinerCode" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="class" />
      </mapping>
    </element>
    <element id="Location.type">
      <path value="Location.type" />
      <short value="Type of function performed" />
      <definition value="Indicates the type of function performed at the location." />
      <comment value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.type" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="LocationType" />
        </extension>
        <strength value="extensible" />
        <description value="Indicates the type of function performed at the location." />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CE/CNE/CWE" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CD" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".code" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="class" />
      </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." />
      <comment value="Implementation of the CBB ContactInformation.&#xD;&#xA;&#xD;&#xA;Please note that this profile differs significantly from the zib ContactInformation because the zib model is deemed overly complex, too Dutch-specific, and contains unsuited terminology. The mapping from zib to FHIR is not trivial and results in too complex mapping. Therefore, the CBB is redesigned based on what is implemented internationally and in Belgium by looking at the FHIR data type and eHealth core profiles. The new model replaces the containers for phone numbers and email addresses with elements on the root that can capture both. Therefore, no need for two profiles, slicing in the host profiles and no ConceptMaps." />
      <alias value="Contactpunten" />
      <alias value="Contactgegevens" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Location.telecom" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="ContactPoint" />
        <profile value="https://fhir.healthdata.be/StructureDefinition/HdBe-ContactInformation" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="cpt-2" />
        <severity value="error" />
        <human value="A system is required if a value is provided." />
        <expression value="value.empty() or system.exists()" />
        <xpath value="not(exists(f:value)) or exists(f:system)" />
        <source value="http://hl7.org/fhir/StructureDefinition/ContactPoint" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="XTN" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="TEL" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="ContactPoint" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".telecom" />
      </mapping>
      <mapping>
        <identity value="zib-contactinformation-v1.2-2020EN" />
        <map value="NL-CM:20.6.2" />
        <comment value="TelephoneNumbers" />
      </mapping>
      <mapping>
        <identity value="zib-contactinformation-v1.2-2020EN" />
        <map value="NL-CM:20.6.3" />
        <comment value="EmailAddresses" />
      </mapping>
      <mapping>
        <identity value="HdBe-ContactInformation" />
        <map value="ContactInformation" />
      </mapping>
      <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" />
      <short value="AddressInformation" />
      <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`." />
      <requirements value="If locations can be visited, we need to keep track of their address." />
      <alias value="Adresgegevens" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.address" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Address" />
        <profile value="https://fhir.healthdata.be/StructureDefinition/HdBe-AddressInformation" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="XAD" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="Address" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".addr" />
      </mapping>
      <mapping>
        <identity value="zib-addressinformation-v1.1-2020EN" />
        <map value="NL-CM:20.5.1" />
        <comment value="AddressInformation" />
      </mapping>
      <mapping>
        <identity value="HdBe-AddressInformation" />
        <map value="AddressInformation" />
      </mapping>
      <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.physicalType">
      <path value="Location.physicalType" />
      <short value="Physical form of the location" />
      <definition value="Physical form of the location, e.g. building, room, vehicle, road." />
      <comment value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination." />
      <requirements value="For purposes of showing relevant locations in queries, we need to categorize locations." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.physicalType" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PhysicalType" />
        </extension>
        <strength value="example" />
        <description value="Physical form of the location" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CE/CNE/CWE" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CD" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".playingEntity [classCode=PLC].code" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="class" />
      </mapping>
    </element>
    <element id="Location.position">
      <path value="Location.position" />
      <short value="The absolute geographic location" />
      <definition value="The absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML)." />
      <requirements value="For mobile applications and automated route-finding knowing the exact location of the Location is required." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.position" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".playingEntity [classCode=PLC determinerCode=INSTANCE].positionText" />
      </mapping>
    </element>
    <element id="Location.position.id">
      <path value="Location.position.id" />
      <representation value="xmlAttr" />
      <short value="xml:id (or equivalent in JSON)" />
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <comment value="Note that FHIR strings may not exceed 1MB in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Location.position.extension">
      <path value="Location.position.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional Content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Location.position.modifierExtension">
      <path value="Location.position.modifierExtension" />
      <short value="Extensions that cannot be ignored" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Location.position.longitude">
      <path value="Location.position.longitude" />
      <short value="Longitude with WGS84 datum" />
      <definition value="Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below)." />
      <comment value="Do not use a IEEE type floating point type, instead use something that works like a true decimal, with inbuilt precision (e.g. Java BigInteger)" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Location.position.longitude" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="decimal" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="(RIM Opted not to map the sub-elements of GPS location, is now an OBS)" />
      </mapping>
    </element>
    <element id="Location.position.latitude">
      <path value="Location.position.latitude" />
      <short value="Latitude with WGS84 datum" />
      <definition value="Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below)." />
      <comment value="Do not use a IEEE type floating point type, instead use something that works like a true decimal, with inbuilt precision (e.g. Java BigInteger)" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Location.position.latitude" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="decimal" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="(RIM Opted not to map the sub-elements of GPS location, is now an OBS)" />
      </mapping>
    </element>
    <element id="Location.position.altitude">
      <path value="Location.position.altitude" />
      <short value="Altitude with WGS84 datum" />
      <definition value="Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below)." />
      <comment value="Do not use a IEEE type floating point type, instead use something that works like a true decimal, with inbuilt precision (e.g. Java BigInteger)" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.position.altitude" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="decimal" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="(RIM Opted not to map the sub-elements of GPS location, is now an OBS)" />
      </mapping>
    </element>
    <element id="Location.managingOrganization">
      <path value="Location.managingOrganization" />
      <short value="Organization responsible for provisioning and upkeep" />
      <definition value="The organization responsible for the provisioning and upkeep of the location." />
      <comment value="This can also be used as the part of the organization hierarchy where this location provides services. These services can be defined through the HealthcareService resource." />
      <requirements value="Need to know who manages the location." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.managingOrganization" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="https://fhir.healthdata.be/StructureDefinition/HdBe-HealthcareOrganization-Organization" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ref-1" />
        <severity value="error" />
        <human value="SHALL have a contained resource if a local reference is provided" />
        <expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" />
        <xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Reference" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".scopingEntity[classCode=ORG determinerKind=INSTANCE]" />
      </mapping>
    </element>
    <element id="Location.partOf">
      <path value="Location.partOf" />
      <short value="Another Location this one is physically part of" />
      <definition value="Another Location which this Location is physically part of." />
      <comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository." />
      <requirements value="For purposes of location, display and identification, knowing which locations are located within other locations is important." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.partOf" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ref-1" />
        <severity value="error" />
        <human value="SHALL have a contained resource if a local reference is provided" />
        <expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" />
        <xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Reference" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".inboundLink[typeCode=PART].source[classCode=SDLC]" />
      </mapping>
    </element>
    <element id="Location.endpoint">
      <path value="Location.endpoint" />
      <short value="Technical endpoints providing access to services operated for the location" />
      <definition value="Technical endpoints providing access to services operated for the location." />
      <comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository." />
      <requirements value="Organizations may have different systems at different locations that provide various services and need to be able to define the technical connection details for how to connect to them, and for what purpose." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Location.endpoint" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Endpoint" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ref-1" />
        <severity value="error" />
        <human value="SHALL have a contained resource if a local reference is provided" />
        <expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" />
        <xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Reference" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
      </mapping>
    </element>
  </snapshot>
  <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>