<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="zib-FunctionalOrMentalStatus" />
  <text>
    <status value="empty" />
    <div xmlns="http://www.w3.org/1999/xhtml">No narrative is provided for definitional resources. A human-readable rendering can be found in the implementation guide(s) where this resource is used.</div>
  </text>
  <url value="http://nictiz.nl/fhir/StructureDefinition/zib-FunctionalOrMentalStatus" />
  <name value="ZibFunctionalOrMentalStatus" />
  <title value="zib FunctionalOrMentalStatus" />
  <status value="draft" />
  <publisher value="Nictiz" />
  <contact>
    <name value="Nictiz" />
    <telecom>
      <system value="url" />
      <value value="https://www.nictiz.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="The functional or mental status provides insight into the patient’s functional and mental limitations." />
  <purpose value="This Observation resource represents the Dutch [zib ('Zorginformatiebouwsteen', i.e. Health and Care Information Model) FunctionalOrMentalStatus v3.2 (2020)](https://zibs.nl/wiki/FunctionalOrMentalStatus-v3.2(2020EN))." />
  <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-functionalormentalstatus-v3.2-2020EN" />
    <uri value="https://zibs.nl/wiki/FunctionalOrMentalStatus-v3.2(2020EN)" />
    <name value="zib FunctionalOrMentalStatus-v3.2(2020EN)" />
  </mapping>
  <kind value="resource" />
  <abstract value="true" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation">
      <path value="Observation" />
      <short value="FunctionalOrMentalStatus" />
      <alias value="FunctioneleOfMentaleStatus" />
      <mapping>
        <identity value="zib-functionalormentalstatus-v3.2-2020EN" />
        <map value="NL-CM:4.26.1" />
        <comment value="FunctionalOrMentalStatus" />
      </mapping>
    </element>
    <element id="Observation.extension:medicalDevice">
      <path value="Observation.extension" />
      <sliceName value="medicalDevice" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/workflow-supportingInfo" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Observation.extension:medicalDevice.value[x]">
      <path value="Observation.extension.value[x]" />
      <short value="MedicalDevice" />
      <definition value="Medical aid the patient has or will receive to reduce the impact of the disability or disorder." />
      <alias value="Hulpmiddel" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/zib-MedicalDevice" />
      </type>
      <mapping>
        <identity value="zib-functionalormentalstatus-v3.2-2020EN" />
        <map value="NL-CM:4.26.5" />
        <comment value="MedicalDevice" />
      </mapping>
    </element>
    <element id="Observation.category">
      <path value="Observation.category" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <constraint>
        <key value="zib-FunctionalOrMentalStatus-1" />
        <severity value="warning" />
        <human value="Either a category for functional status finding or mental status finding is present." />
        <expression value="where(coding.system = 'http://snomed.info/sct' and coding.code = '118228005').exists() xor where(coding.system = 'http://snomed.info/sct' and coding.code = '384821006').exists()" />
      </constraint>
    </element>
    <element id="Observation.category:functionalStatusFinding">
      <path value="Observation.category" />
      <sliceName value="functionalStatusFinding" />
      <max value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="118228005" />
        </coding>
      </patternCodeableConcept>
      <condition value="zib-FunctionalOrMentalStatus-1" />
    </element>
    <element id="Observation.category:mentalStatusFinding">
      <path value="Observation.category" />
      <sliceName value="mentalStatusFinding" />
      <max value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="384821006" />
        </coding>
      </patternCodeableConcept>
      <condition value="zib-FunctionalOrMentalStatus-1" />
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <short value="StatusName" />
      <definition value="Coded description of the functional or mental status or limitation. &amp;#xD;&amp;#xA;Code systems used include: &#xD;&#xA;&#xD;&#xA;-  SNOMED CT&#xD;&#xA;-  ICF (International Classification of Functioning, Disability and Health)&#xD;&#xA;-  NOC (Nursing Outcomes Classification)&#xD;&#xA;-  OMAHA" />
      <alias value="StatusNaam" />
      <binding>
        <strength value="required" />
        <valueSet value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.121.11.4--20200901000000" />
      </binding>
      <mapping>
        <identity value="zib-functionalormentalstatus-v3.2-2020EN" />
        <map value="NL-CM:4.26.2" />
        <comment value="StatusName" />
      </mapping>
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.effective[x]:effectiveDateTime">
      <path value="Observation.effective[x]" />
      <sliceName value="effectiveDateTime" />
      <short value="StatusDate" />
      <definition value="Date on which the status was determined. A ‘vague’ date, such as only the year, is permitted." />
      <alias value="StatusDatum" />
      <type>
        <code value="dateTime" />
      </type>
      <mapping>
        <identity value="zib-functionalormentalstatus-v3.2-2020EN" />
        <map value="NL-CM:4.26.6" />
        <comment value="StatusDate" />
      </mapping>
    </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="StatusValue" />
      <definition value="The extent to which the patient is limited by the functional or mental condition.&#xD;&#xA;&#xD;&#xA;If both the status name and the status value are recorded in code, then both values must come from the same code system. If the patient uses a medical device, the evaluation of the extent of the limitation will take place without this aid.&#xD;&#xA;&#xD;&#xA;The answer codes must be selected from the subselection of the code system corresponding with the request in accordance with the rules applicable to that system." />
      <alias value="StatusWaarde" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.121.11.3--20200901000000" />
      </binding>
      <mapping>
        <identity value="zib-functionalormentalstatus-v3.2-2020EN" />
        <map value="NL-CM:4.26.3" />
        <comment value="StatusValue" />
      </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="Explanatory comments as a description of the functional or mental status." />
      <alias value="Toelichting" />
      <mapping>
        <identity value="zib-functionalormentalstatus-v3.2-2020EN" />
        <map value="NL-CM:4.26.4" />
        <comment value="Comment" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>