<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="AllergyIntolerance-uv-ips" />
  <meta>
    <lastUpdated value="2018-02-14T08:58:02.283-06:00" />
  </meta>
  <url value="http://hl7.org/fhir/uv/ips/StructureDefinition/AllergyIntolerance-uv-ips" />
  <name value="AllergyIntoleranceUvIps" />
  <title value="Allergy Intolerance (IPS)" />
  <status value="active" />
  <date value="2018-02-14T07:57:18.78-06:00" />
  <description value="This profile represents the constraints applied to the AllergyIntolerance resource by the International Patient Summary (IPS) FHIR Implementation Guide. A record of an allergy or intolerance is represented in the patient summary as an instance of an AllergyIntolerance resource constrained by this profile.&#xD;&#xA;&#xD;&#xA;It documents the relevant allergies or intolerances (conditions) for a patient, describing the kind of reaction (e.g. rash, anaphylaxis,..); preferably the agents that cause it; and optionally the criticality and the certainty of the allergy." />
  <purpose value="This profile constrains the representation of a record of an allergy or intolerance of the patient, in the context of the international patient summary as specified by the IPS project of HL7 International." />
  <kind value="resource" />
  <abstract value="false" />
  <type value="AllergyIntolerance" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" />
  <derivation value="constraint" />
  <differential>
    <element id="AllergyIntolerance">
      <path value="AllergyIntolerance" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.extension:abatement-datetime">
      <path value="AllergyIntolerance.extension" />
      <sliceName value="abatement-datetime" />
      <short value="Abatement datetime" />
      <definition value="The date or estimated date that the condition resolved or went into remission." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/abatement-dateTime-uv-ips" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.clinicalStatus">
      <path value="AllergyIntolerance.clinicalStatus" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.verificationStatus">
      <path value="AllergyIntolerance.verificationStatus" />
      <comment value="In the scope of the IPS the entered-in-error concept is not allowed." />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.type">
      <path value="AllergyIntolerance.type" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.criticality">
      <path value="AllergyIntolerance.criticality" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.code">
      <path value="AllergyIntolerance.code" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <description value="Discriminated by the bound value set" />
        <rules value="open" />
      </slicing>
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <mustSupport value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AllergyIntoleranceCode" />
        </extension>
        <strength value="preferred" />
        <description value="Type of the substance/product, allergy or intolerance condition." />
        <valueSet value="http://hl7.org/fhir/uv/ips/ValueSet/allergy-intolerance-substance-condition-uv-ips" />
      </binding>
    </element>
    <element id="AllergyIntolerance.code:allergyIntoleranceGPSCode">
      <path value="AllergyIntolerance.code" />
      <sliceName value="allergyIntoleranceGPSCode" />
      <short value="Code for allergy or intolerance from the SNOMED CT GPS code set" />
      <definition value="Code for an allergy or intolerance statement that is selected from the SNOMED CT GPS code set." />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <min value="0" />
      <max value="1" />
      <mustSupport value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="GPS" />
        </extension>
        <strength value="required" />
        <description value="Codes for allergy or intolerance from the SNOMED CT GPS code set" />
        <valueSet value="http://hl7.org/fhir/uv/ips/ValueSet/allergy-intolerance-substance-condition-gps-uv-ips" />
      </binding>
    </element>
    <element id="AllergyIntolerance.code:absentOrUnknownAllergyIntolerance">
      <path value="AllergyIntolerance.code" />
      <sliceName value="absentOrUnknownAllergyIntolerance" />
      <short value="Code for absent or unknown allergy or intolerance" />
      <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;)." />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <min value="0" />
      <max value="1" />
      <mustSupport value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="absentOrUnknownAllergy" />
        </extension>
        <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/uv/ips/StructureDefinition/Patient-uv-ips" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.patient.reference">
      <path value="AllergyIntolerance.patient.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.onsetDateTime">
      <path value="AllergyIntolerance.onsetDateTime" />
      <type>
        <code value="dateTime" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.asserter">
      <path value="AllergyIntolerance.asserter" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction">
      <path value="AllergyIntolerance.reaction" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation">
      <path value="AllergyIntolerance.reaction.manifestation" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <description value="Discriminated by the bound value set" />
        <rules value="open" />
      </slicing>
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation:reactionManifestationGPSCode">
      <path value="AllergyIntolerance.reaction.manifestation" />
      <sliceName value="allergyIntoleranceReactionManifestationGPSCode" />
      <short value="Code for the allergy or intolerance reaction manifestation from the SNOMED CT GPS code set" />
      <definition value="Code for an allergy or intolerance reaction manifestation statement that is selected from the SNOMED CT GPS code set." />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <min value="0" />
      <max value="1" />
      <mustSupport value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ReactionManifestationGPS" />
        </extension>
        <strength value="required" />
        <valueSet value="http://hl7.org/fhir/uv/ips/ValueSet/allergy-reaction-gps-uv-ips" />
      </binding>
    </element>
    <element id="AllergyIntolerance.reaction.onset">
      <path value="AllergyIntolerance.reaction.onset" />
      <mustSupport value="true" />
    </element>
    <element id="AllergyIntolerance.reaction.severity">
      <path value="AllergyIntolerance.reaction.severity" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>