<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="HdBe-LivingSituation" />
  <url value="https://fhir.healthdata.be/StructureDefinition/HdBe-LivingSituation" />
  <name value="HdBeLivingSituation" />
  <title value="HdBe LivingSituation" />
  <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 living situation is the physical environment in which the patient normally lives, sleeps, keeps their clothing, etc." />
  <copyright value="Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="zib-livingsituation-v3.3-2020EN" />
    <uri value="https://zibs.nl/wiki/LivingSituation-v3.3(2020EN)" />
    <name value="zib LivingSituation-v3.3(2020EN)" />
  </mapping>
  <mapping>
    <identity value="HdBe-LivingSituation" />
    <uri value="https://fhir.healthdata.be/StructureDefinition/LogicalModel/HdBe-LivingSituation" />
    <name value="HdBe logical model LivingSituation" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation">
      <path value="Observation" />
      <short value="LivingSituation" />
      <alias value="Woonsituatie" />
      <mapping>
        <identity value="zib-livingsituation-v3.3-2020EN" />
        <map value="NL-CM:7.8.1" />
        <comment value="LivingSituation" />
      </mapping>
      <mapping>
        <identity value="HdBe-LivingSituation" />
        <map value="LivingSituation" />
      </mapping>
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="365508006" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.value[x]:valueCodeableConcept">
      <path value="Observation.value[x]" />
      <sliceName value="valueCodeableConcept" />
      <short value="HouseType" />
      <definition value="Type of home the patient lives in." />
      <alias value="WoningType" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="https://fhir.healthdata.be/ValueSet/TypeOfHome" />
      </binding>
      <mapping>
        <identity value="zib-livingsituation-v3.3-2020EN" />
        <map value="NL-CM:7.8.3" />
        <comment value="HouseType" />
      </mapping>
      <mapping>
        <identity value="HdBe-LivingSituation" />
        <map value="LivingSituation.HouseType" />
      </mapping>
    </element>
    <element id="Observation.note">
      <path value="Observation.note" />
      <max value="1" />
    </element>
    <element id="Observation.note.text">
      <path value="Observation.note.text" />
      <short value="Comment" />
      <definition value="Comments in free text on problems or details of the patient’s living situation that may be relevant." />
      <alias value="Toelichting" />
      <mapping>
        <identity value="zib-livingsituation-v3.3-2020EN" />
        <map value="NL-CM:7.8.2" />
        <comment value="Comment" />
      </mapping>
      <mapping>
        <identity value="HdBe-LivingSituation" />
        <map value="LivingSituation.Comment" />
      </mapping>
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="code" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.component:homeAdaption">
      <path value="Observation.component" />
      <sliceName value="homeAdaption" />
    </element>
    <element id="Observation.component:homeAdaption.code">
      <path value="Observation.component.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="118871000146108" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.component:homeAdaption.value[x]">
      <path value="Observation.component.value[x]" />
      <short value="HomeAdaption" />
      <definition value="Adaptions present in the home that have been made in the context of the illness or disability to make the functioning of the patient safer and more comfortable and to enable independent living." />
      <alias value="WoningAanpassing" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="extensible" />
        <valueSet value="https://fhir.healthdata.be/ValueSet/HomeAdaption" />
      </binding>
      <mapping>
        <identity value="zib-livingsituation-v3.3-2020EN" />
        <map value="NL-CM:7.8.5" />
        <comment value="HomeAdaption" />
      </mapping>
      <mapping>
        <identity value="HdBe-LivingSituation" />
        <map value="LivingSituation.HomeAdaption" />
      </mapping>
    </element>
    <element id="Observation.component:livingCondition">
      <path value="Observation.component" />
      <sliceName value="livingCondition" />
    </element>
    <element id="Observation.component:livingCondition.code">
      <path value="Observation.component.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="224249004" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.component:livingCondition.value[x]">
      <path value="Observation.component.value[x]" />
      <short value="LivingCondition" />
      <definition value="Conditions that affect the accessibility of the home or the stay in the home." />
      <alias value="WoonOmstandigheid" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="extensible" />
        <valueSet value="https://fhir.healthdata.be/ValueSet/HomeAccessibility" />
      </binding>
      <mapping>
        <identity value="zib-livingsituation-v3.3-2020EN" />
        <map value="NL-CM:7.8.4" />
        <comment value="LivingCondition" />
      </mapping>
      <mapping>
        <identity value="HdBe-LivingSituation" />
        <map value="LivingSituation.LivingCondition" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>