<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="profile-condition" />
  <meta>
    <lastUpdated value="2024-10-17T18:16:26.3218965+00:00" />
  </meta>
  <url value="https://simplifier.net/omd-cdss/conditionprofile" />
  <version value="0.2" />
  <name value="ConditionProfile" />
  <title value="Condition Profile" />
  <status value="draft" />
  <date value="2021-05-07T11:38:34.2029829+00:00" />
  <publisher value="OMD" />
  <description value="Proposed constraints and extensions on the Condition Resource" />
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166" />
      <code value="CA" />
      <display value="Canada" />
    </coding>
  </jurisdiction>
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="CDSS5.1" />
    <uri value="www.ontariomd.com" />
    <name value="CDS-S 5.1" />
  </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 Profile" />
      <definition value="The Condition Profile is based upon the core FHIR Condition Resource" />
    </element>
    <element id="Condition.clinicalStatus">
      <path value="Condition.clinicalStatus" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;The clinical status of the condition.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION:&#xD;&#xA;The status of the problem or the diagnosed disease, often using only a few words (e.g., active, in remission)." />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE06.006" />
        <comment value="Problem Status" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE07.008" />
        <comment value="Problem Status" />
      </mapping>
    </element>
    <element id="Condition.verificationStatus">
      <path value="Condition.verificationStatus" />
      <mustSupport value="true" />
    </element>
    <element id="Condition.category">
      <path value="Condition.category" />
      <mustSupport value="true" />
    </element>
    <element id="Condition.code">
      <path value="Condition.code" />
      <definition value="Identification of the patient's relevant condition, problem or diagnosis or recording of 'problem absent' or of 'problems unknown', as interpreted by the provider." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Condition.code.coding">
      <path value="Condition.code.coding" />
      <definition value="Identification of the patient's relevant condition, problem or diagnosis or recording of 'problem absent' or of 'problems unknown', as interpreted by the provider." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Condition.code.coding.code">
      <path value="Condition.code.coding.code" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION:&#xD;&#xA;A description (e.g., name, label) that identifies the patient's problem or diagnosed disease (e.g., Anxiety, Diabetes Melitus Type II)." />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE06.004" />
        <comment value="Diagnosis/Problem" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE07.004" />
        <comment value="Diagnosis/Problme" />
      </mapping>
    </element>
    <element id="Condition.code.text">
      <path value="Condition.code.text" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Ongoing Health Conditions - Problem Description):&#xD;&#xA;A description of the problem reported. Used to express a synopsis of progress or additional details about the health concern, problem or diagnosis.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Risk Factors - Risk Factor): &#xD;&#xA;The factors that mght place the patient at health risk (e.g., drinking, smoking, obesity, exposure to asbestos, premature birth). &#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Alerts &amp; Special Needs - Alert Description): &#xD;&#xA;Description of the alert or special need." />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE06.005" />
        <comment value="Problem Description" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE12.001" />
        <comment value="Risk Factor" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE13.001" />
        <comment value="Alert Description" />
      </mapping>
    </element>
    <element id="Condition.subject">
      <path value="Condition.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-patient" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Condition.encounter">
      <path value="Condition.encounter" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-encounter" />
      </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>
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;Estimated or actual date or date-time  the condition began, in the opinion of the clinician." />
      <mustSupport value="true" />
    </element>
    <element id="Condition.onset[x]:onsetAge">
      <path value="Condition.onset[x]" />
      <sliceName value="onsetAge" />
      <definition value="BASE RESOURCE DEFINITION: &#xD;&#xA;Estimated or actual date or date-time  the condition began, in the opinion of the clinician.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Risk Factors- Age at Onset): &#xD;&#xA;The age of the patient at the onset of the condition." />
      <type>
        <code value="Age" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE12.003" />
        <comment value="Age at Onset" />
      </mapping>
    </element>
    <element id="Condition.onset[x]:onsetString">
      <path value="Condition.onset[x]" />
      <sliceName value="onsetString" />
      <definition value="BASE RESOURCE DEFINITION: &#xD;&#xA;Estimated or actual date or date-time  the condition began, in the opinion of the clinician.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Ongoing Health Conditions - Life Stage): &#xD;&#xA;The stage of life that the patient was at the onset of the condition (problem or diagnosed disease)&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Past Medical &amp; Surgical History - Life Stage): &#xD;&#xA;The stage of life that the patient was at the onset of the condition (problem or diagnosed disease)" />
      <comment value="Age is generally used when the patient reports an age at which the Condition began to occur.&#xD;&#xA;&#xD;&#xA;CODE SET TABLE: &#xD;&#xA;CT-016: Life Stage" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="Refer to CT-016: Life Stage" />
        <valueSet value="https://simplifier.net/guide/CoreDataSetStandardCDS-SImplementationGuidance/PatientDemographicCodeTablesCT-006toCT-016" />
      </binding>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE06.002" />
        <comment value="Life Stage" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE07.002" />
        <comment value="Life Stage" />
      </mapping>
    </element>
    <element id="Condition.onset[x]:onsetPeriod">
      <path value="Condition.onset[x]" />
      <sliceName value="onsetPeriod" />
      <type>
        <code value="Period" />
        <profile value="https://simplifier.net/omd-cdss/conditiononset" />
      </type>
    </element>
    <element id="Condition.onset[x]:onsetDateTime">
      <path value="Condition.onset[x]" />
      <sliceName value="onsetDateTime" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;Estimated or actual date or date-time  the condition began, in the opinion of the clinician.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Risk Factors - Start Date): &#xD;&#xA;The date that the patient was first exposed to the risk factor. &#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Alerts &amp; Special Needs - Date Active): &#xD;&#xA;The date that the alert or special need was identified as active for the first time." />
      <type>
        <code value="dateTime" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE12.004" />
        <comment value="Start Date" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE13.003" />
        <comment value="Date Active" />
      </mapping>
    </element>
    <element id="Condition.abatement[x]">
      <path value="Condition.abatement[x]" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;The date or estimated date that the condition resolved or went into remission. This is called &quot;abatement&quot; because of the many overloaded connotations associated with &quot;remission&quot; or &quot;resolution&quot; - Conditions are never really resolved, but they can abate.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Ongoing Health Conditions - Resolution Date):&#xD;&#xA;The date when the problem or the diagnosed disease was resolved or controlled.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Past Medical and Surgical History - Resolution Date):&#xD;&#xA;The date when the problem or the diagnosed disease was resolved or controlled.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Risk Factors - End Date): &#xD;&#xA;(Condition.abatement.abatementDateTime) - The date the patient was last exposed to the risk factor. &#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Alerts &amp; Special Needs- End Date): &#xD;&#xA;(Condition.abatement.abatementDateTime)  - Date the alert or special need was identified as no longer active." />
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="Age" />
      </type>
      <type>
        <code value="Period" />
        <profile value="http://example.org/fhir/StructureDefinition/AbatementPeriod" />
      </type>
      <type>
        <code value="Range" />
      </type>
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE06.003" />
        <comment value="Resolution Date" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE07.003" />
        <comment value="Resolution Date" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE12.004" />
        <comment value="End Date" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE13.004" />
        <comment value="End Date" />
      </mapping>
    </element>
    <element id="Condition.recorder">
      <path value="Condition.recorder" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-practitioner" />
        <targetProfile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-practitionerrole" />
        <targetProfile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
      </type>
    </element>
    <element id="Condition.asserter">
      <path value="Condition.asserter" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-practitioner" />
        <targetProfile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-practitionerrole" />
        <targetProfile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
      </type>
    </element>
    <element id="Condition.evidence.code">
      <path value="Condition.evidence.code" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;A manifestation or symptom that led to the recording of this condition.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Risk Factors):&#xD;&#xA;Specific agent details of the exposure (e.g., 2 packs a day; 10 bottles of wine per week)" />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE12.002" />
        <comment value="Exposure Details" />
      </mapping>
    </element>
    <element id="Condition.note">
      <path value="Condition.note" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;Additional information about the Condition. This is a general notes/comments entry  for description of the Condition, its diagnosis and prognosis.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Ongoing Health Conditions - Notes):&#xD;&#xA;Additional notes about the problem or the diagnosed disease. &#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Past Medical &amp; Surgical History - Notes): &#xD;&#xA;Additional notes about the &quot;Past Medical and Surgical&quot; medical records. &#xD;&#xA;&#xD;&#xA;&quot;Notes&quot; apply to Problems, Diagnosis, and Procedure medical records. &#xD;&#xA;&#xD;&#xA;If note pertains to procedure, then use &quot;Procedure.note&quot; instead.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Risk Factors - Notes): &#xD;&#xA;Additional Notes about the risk factor. &#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Alerts &amp; Special Needs - Notes): &#xD;&#xA;Additioal notes about an alert or special need." />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE06.007" />
        <comment value="Notes" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE07.007" />
        <comment value="Notes" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE12.007" />
        <comment value="Notes" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE13.002" />
        <comment value="Notes" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>