<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="fd2c6fb3-59ec-4b5e-9fc7-0fbecf5cae60" />
  <url value="https://ocean.cognisantmd.com/fhir/StructureDefinition/AllergyIntolerance" />
  <name value="AllergyIntolerance" />
  <status value="draft" />
  <description value="https://build.fhir.org/ig/HL7-Canada/ca-baseline/StructureDefinition-profile-allergyintolerance" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="AllergyIntolerance" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" />
  <derivation value="constraint" />
  <differential>
    <element id="AllergyIntolerance.text">
      <path value="AllergyIntolerance.text" />
      <comment value="This simple textual representation is used to build the textual summary of allergies/intolerances to prepopulate the corresponding field on a referral form via the @ptCpp.allg keyword." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.code:absentOrUnknownAllergy">
      <path value="AllergyIntolerance.code" />
      <sliceName value="absentOrUnknownAllergy" />
      <short value="Code for absent or unknown allergy" />
      <definition value="Code for an allergy or intolerance statement (either a positive or a negated/excluded statement).  This describes a categorical negated statement (e.g., &quot;No known allergy&quot;)." />
      <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." />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="negation/exclusion codes for reporting no known allergies or not available data." />
        <valueSet value="http://hl7.org/fhir/uv/ips/ValueSet/absent-or-unknown-allergies-uv-ips" />
      </binding>
    </element>
    <element id="AllergyIntolerance.patient">
      <path value="AllergyIntolerance.patient" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/Patient" />
        <aggregation value="referenced" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.clinicalStatus">
      <path value="AllergyIntolerance.clinicalStatus" />
      <min value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.org/fhir/ValueSet/allergyintolerance-clinical" />
      </binding>
    </element>
  </differential>
</StructureDefinition>