<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="cio-Condition" />
  <url value="http://nictiz.nl/fhir/StructureDefinition/cio-Condition" />
  <version value="1.0.0-beta.5" />
  <name value="CioCondition" />
  <title value="cio Condition" />
  <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="A condition is pathological or non-pathological state that presents with symptoms. It is 'that what the patient has'. A health professional can assign a (differential) diagnosis to the condition. The symptoms as well as the diagnostic insight with respect to the same condition may change over time." />
  <purpose value="This Condition resource represents the Condition building block for implementations following the information standard [CiO](https://informatiestandaarden.nictiz.nl/wiki/Landingspagina_Contra-indicaties_en_Overgevoeligheden), as well as concepts related to the diagnosis from the HypersensitivityIntolerance and Reaction building blocks. This profile is based on the Dutch zib ('Zorginformatiebouwsteen', i.e. Health and Care Information Model) Condition that is part of the 2024 prepublication, but also contains several concepts from the zibs HypersensitivityIntolerance and Reaction. Therefore it has no dependency on a corresponding nl-core profile and mappings to zib concepts are not defined. Instead mappings to the CiO data set have been added. It is the intention to derive this profile from a more general nl-core-Condition profile in the future." />
  <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="cio-dataset-200-beta2-20231214" />
    <uri value="https://decor.nictiz.nl/pub/cio/cio-html-20231214T100742/ds-2.16.840.1.113883.2.4.3.11.60.26.1.2-2020-04-02T000000.html" />
    <name value="ART-DECOR Dataset Contraindications and hypersensitivities 2.0.0-beta.2 20231214" />
  </mapping>
  <mapping>
    <identity value="cio-dataset-200-beta3-20241023" />
    <uri value="https://decor.nictiz.nl/pub/cio/cio-html-20241023T071643/ds-2.16.840.1.113883.2.4.3.11.60.26.1.2-2020-04-02T000000.html" />
    <name value="ART-DECOR Dataset Contraindications and hypersensitivities 2.0.0-beta.3 20241023" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Condition" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Condition" />
  <derivation value="constraint" />
  <differential>
    <element id="Condition">
      <path value="Condition" />
      <short value="Condition / HypersensitivityIntolerance / Reaction" />
      <comment value="In order to convey the registration information of a Condition building block, this profile is used together with an instance conforming to the [cio-RegistrationInformation](http://nictiz.nl/fhir/StructureDefinition/cio-RegistrationInformation) profile wherein `Provenance.target` refers to the Condition resource.&#xD;&#xA;&#xD;&#xA;If the condition is related to a hypersensitivity/intolerance or reaction, this profile is used together with an instance conforming to either the [cio-HypersensitivityIntolerance](http://nictiz.nl/fhir/StructureDefinition/cio-HypersensitivityIntolerance) or [cio-Reaction](http://nictiz.nl/fhir/StructureDefinition/cio-Reaction) profile, respectively. These latter profiles contain more detailed information on the hypersensitivity/intolerance or reaction, while this profile contains the underlying condition and diagnosis. Note however, that several concepts from the CiO data set are mapped to elements in both this profile and the cio-HypersensitivityIntolerance and cio-Reaction profiles, such as the DiagnosticInsightDate (cio-dataelement-20-799/811) or the Diagnostician (cio-dataelement-20-800/809). This is done to populate all instances with as much relevant information as possible, hence making instances conforming to these three profiles more valuable to be considered in isolation. If such an overlapping element is present in one of the resources, it SHALL also be present in the other resource, having the same value." />
      <alias value="AandoeningOfGesteldheid" />
      <alias value="OvergevoeligheidIntolerantie" />
      <alias value="Reactie" />
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-905" />
        <comment value="Condition" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta2-20231214" />
        <map value="cio-dataelement-20-456" />
        <comment value="Hypersensitivity [DEPRECATED]" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-456" />
        <comment value="HypersensitivityIntolerance" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta2-20231214" />
        <map value="cio-dataelement-20-464" />
        <comment value="Reaction" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-464" />
        <comment value="Reaction" />
      </mapping>
    </element>
    <element id="Condition.extension">
      <path value="Condition.extension" />
      <min value="2" />
    </element>
    <element id="Condition.extension:diagnosticInsightDate">
      <path value="Condition.extension" />
      <sliceName value="diagnosticInsightDate" />
      <min value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/condition-assertedDate" />
      </type>
    </element>
    <element id="Condition.extension:diagnosticInsightDate.value[x]">
      <path value="Condition.extension.value[x]" />
      <short value="DiagnosticInsightDate" />
      <definition value="Date (and time) at which the health professional obtained the diagnostic insight." />
      <alias value="DiagnostischInzichtDatum" />
      <mapping>
        <identity value="cio-dataset-200-beta2-20231214" />
        <map value="cio-dataelement-20-799" />
        <comment value="DiagnosticInsightDate" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-799" />
        <comment value="DiagnosticInsightDate" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta2-20231214" />
        <map value="cio-dataelement-20-811" />
        <comment value="DiagnosticInsightDate" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-811" />
        <comment value="DiagnosticInsightDate" />
      </mapping>
    </element>
    <element id="Condition.extension:medicationHypersensitivityIdentifier">
      <path value="Condition.extension" />
      <sliceName value="medicationHypersensitivityIdentifier" />
      <min value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-MedicationHypersensitivity.Identifier" />
      </type>
    </element>
    <element id="Condition.extension:medicationHypersensitivityIdentifier.value[x]">
      <path value="Condition.extension.value[x]" />
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-888" />
        <comment value="IdentificationGMO" />
      </mapping>
    </element>
    <element id="Condition.identifier">
      <path value="Condition.identifier" />
      <short value="IdentificationNumber" />
      <definition value="Globally unique number that identifies the instantiation of the information model. The number is composed of an identification of the issuer organization and a unique number assigned by this organization." />
      <alias value="Identificatienummer" />
      <min value="1" />
      <mapping>
        <identity value="cio-dataset-200-beta2-20231214" />
        <map value="cio-dataelement-20-780" />
        <comment value="IdentificationNumber [DEPRECATED]" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-780" />
        <comment value="IdentificationNumber" />
      </mapping>
    </element>
    <element id="Condition.clinicalStatus">
      <path value="Condition.clinicalStatus" />
      <mapping>
        <identity value="cio-dataset-200-beta2-20231214" />
        <map value="cio-dataelement-20-806" />
        <comment value="ConditionPresence [DEPRECATED]" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta2-20231214" />
        <map value="cio-dataelement-20-790" />
        <comment value="ConditionPresence [DEPRECATED]" />
      </mapping>
    </element>
    <element id="Condition.severity">
      <path value="Condition.severity" />
      <short value="Severity" />
      <definition value="Indication of the severity of the condition. A condition may cause few or mild symptoms and yet be serious, but the reverse is also possible." />
      <alias value="Ernst" />
      <min value="1" />
      <binding>
        <strength value="required" />
        <valueSet value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.26.11.19--20231120131658" />
      </binding>
      <mapping>
        <identity value="cio-dataset-200-beta2-20231214" />
        <map value="cio-dataelement-20-805" />
        <comment value="ConditionSeverity [DEPRECATED]" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta2-20231214" />
        <map value="cio-dataelement-20-789" />
        <comment value="ConditionSeverity [DEPRECATED]" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-910" />
        <comment value="Severity" />
      </mapping>
    </element>
    <element id="Condition.code">
      <path value="Condition.code" />
      <short value="DiagnosisName" />
      <definition value="The term with associated code that the health professional selects from the used code list. Represents the hypersensitivity/intolerance or reaction as interpretation of the condition." />
      <comment value="Ideally, in the context of a hypersensitivity/intolerance or reaction the DiagnosisName (cio-dataelement-20-796 and cio-dataelement-20-815, respectively) would be mapped on `AllergyIntolerance.code` (in the cio-HypersensitivityIntolerance and cio-Reaction profile, respectively) instead of including it in the Condition resource. However, the cardinality of `AllergyIntolerance.code` is 0..1, and both Substance/CausativeSubstance (cio-dataelement-20-793/cio-dataelement-20-466) and DiagnosisName semantically map to that element in their respective profiles. Moreover these data elements describe the hypersensitivity/intolerance or reaction from different points of view, namely from the substance that triggers a reaction upon exposure or has triggered a reaction (Substance/CausativeSubstance), and the underlying diagnosis of the hypersensitivity/intolerance or reaction (DiagnosisName). Therefore they cannot be viewed as representations of the same concept with slightly different granularity and it is thus not allowed to include them both as different `AllergyIntolerance.code.coding`s. As Substance and CausativeSubstance contain more detailed information regarding the nature of the hypersensitivity/intolerance and reaction, respectively, it has been chosen to map these directly to `AllergyIntolerance.code`, while DiagnosisName is mapped to `Condition.code` instead." />
      <alias value="DiagnoseNaam" />
      <min value="1" />
      <binding>
        <strength value="required" />
        <valueSet value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.26.11.31--20231207101023" />
      </binding>
      <mapping>
        <identity value="cio-dataset-200-beta2-20231214" />
        <map value="cio-dataelement-20-796" />
        <comment value="DiagnosisName [DEPRECATED]" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-796" />
        <comment value="DiagnosisName" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta2-20231214" />
        <map value="cio-dataelement-20-815" />
        <comment value="DiagnosisName [DEPRECATED]" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-815" />
        <comment value="DiagnosisName" />
      </mapping>
    </element>
    <element id="Condition.code.text">
      <path value="Condition.code.text" />
      <short value="FurtherSpecificationDiagnosisName" />
      <definition value="A more detailed description of the name of the hypersensitivity/intolerance or reaction in free text, when this detail is not available in the used code list." />
      <alias value="NadereSpecificatieDiagnoseNaam" />
      <mapping>
        <identity value="cio-dataset-200-beta2-20231214" />
        <map value="cio-dataelement-20-797" />
        <comment value="FurtherSpecificationDiagnosisName" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-797" />
        <comment value="FurtherSpecificationDiagnosisName" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta2-20231214" />
        <map value="cio-dataelement-20-816" />
        <comment value="FurtherSpecificationDiagnosisName" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-816" />
        <comment value="FurtherSpecificationDiagnosisName" />
      </mapping>
    </element>
    <element id="Condition.subject">
      <path value="Condition.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-Patient" />
      </type>
    </element>
    <element id="Condition.onset[x]">
      <path value="Condition.onset[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Condition.onset[x]:onsetDateTime">
      <path value="Condition.onset[x]" />
      <sliceName value="onsetDateTime" />
      <short value="startDateTime" />
      <definition value="The start date and time of the period in which the condition is/was present." />
      <alias value="startDatumTijd" />
      <min value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <mapping>
        <identity value="cio-dataset-200-beta2-20231214" />
        <map value="cio-dataelement-20-804" />
        <comment value="ConditionStartDateTime [DEPRECATED]" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta2-20231214" />
        <map value="cio-dataelement-20-460" />
        <comment value="ConditionStartDateTime [DEPRECATED]" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-954" />
        <comment value="startDateTime" />
      </mapping>
    </element>
    <element id="Condition.abatement[x]">
      <path value="Condition.abatement[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Condition.abatement[x]:abatementDateTime">
      <path value="Condition.abatement[x]" />
      <sliceName value="abatementDateTime" />
      <short value="endDateTime" />
      <definition value="The end date and time of the of the period in which the condition was present." />
      <alias value="eindDatumTijd" />
      <type>
        <code value="dateTime" />
      </type>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-955" />
        <comment value="endDateTime" />
      </mapping>
    </element>
    <element id="Condition.recordedDate">
      <path value="Condition.recordedDate" />
      <short value="CreationDateTime" />
      <definition value="Date and time when the information about the patient was registered." />
      <alias value="OntstaansDatumTijd" />
      <min value="1" />
      <mapping>
        <identity value="cio-dataset-200-beta2-20231214" />
        <map value="cio-dataelement-20-783" />
        <comment value="RegistrationDateTime [DEPRECATED]" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-783" />
        <comment value="CreationDateTime" />
      </mapping>
    </element>
    <element id="Condition.recorder">
      <path value="Condition.recorder" />
      <short value="Author" />
      <definition value="The person who has registered or had someone else register the information in the patient record." />
      <alias value="Auteur" />
      <type>
        <code value="Reference" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/pattern-NlCoreHealthProfessionalReference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-HealthProfessional-PractitionerRole" />
      </type>
      <mapping>
        <identity value="cio-dataset-200-beta2-20231214" />
        <map value="cio-dataelement-20-781" />
        <comment value="Author" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-781" />
        <comment value="Author" />
      </mapping>
    </element>
    <element id="Condition.asserter">
      <path value="Condition.asserter" />
      <short value="Diagnostician" />
      <definition value="The health professional that acquired the diagnostic insight regarding the hypersensitivity/intolerance or reaction. This can be a different individual than the person who recorded the diagnostic insight." />
      <alias value="DiagnoseSteller" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/pattern-NlCoreHealthProfessionalReference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-HealthProfessional-PractitionerRole" />
      </type>
      <mapping>
        <identity value="cio-dataset-200-beta2-20231214" />
        <map value="cio-dataelement-20-800" />
        <comment value="Diagnostician" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-800" />
        <comment value="Diagnostician" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta2-20231214" />
        <map value="cio-dataelement-20-809" />
        <comment value="Diagnostician" />
      </mapping>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-809" />
        <comment value="Diagnostician" />
      </mapping>
    </element>
    <element id="Condition.evidence">
      <path value="Condition.evidence" />
      <slicing>
        <discriminator>
          <type value="profile" />
          <path value="detail.resolve()" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Condition.evidence:symptom">
      <path value="Condition.evidence" />
      <sliceName value="symptom" />
    </element>
    <element id="Condition.evidence:symptom.detail">
      <path value="Condition.evidence.detail" />
      <short value="Symptom" />
      <definition value="A symptom which is a manifestation of this condition." />
      <comment value="Please note that on a functional level, the building block Symptom references the building block Condition, but in FHIR this direction is reversed." />
      <alias value="Symptoom" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/cio-Symptom" />
      </type>
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-921" />
        <comment value="Reversed reference for Symptom.RelationCondition" />
      </mapping>
    </element>
    <element id="Condition.note">
      <path value="Condition.note" />
      <max value="1" />
    </element>
    <element id="Condition.note.text">
      <path value="Condition.note.text" />
      <short value="Comment" />
      <definition value="A comment in free text with respect to the condition, that is not represented by the other data elements in the information model." />
      <alias value="Toelichting" />
      <mapping>
        <identity value="cio-dataset-200-beta3-20241023" />
        <map value="cio-dataelement-20-911" />
        <comment value="Comment" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>