{
  "resourceType": "StructureDefinition",
  "id": "AllergyIntolerance-uv-ips",
  "meta": {
    "lastUpdated": "2018-02-14T14:58:02.283+00:00"
  },
  "url": "http://hl7.org/fhir/uv/ips/StructureDefinition/AllergyIntolerance-uv-ips",
  "name": "AllergyIntoleranceUvIps",
  "title": "Allergy Intolerance (IPS)",
  "status": "active",
  "date": "2018-02-14T13:57:18.78+00:00",
  "description": "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.\r\n\r\nIt 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": "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": "resource",
  "abstract": false,
  "type": "AllergyIntolerance",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "AllergyIntolerance",
        "path": "AllergyIntolerance",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.extension:abatement-datetime",
        "path": "AllergyIntolerance.extension",
        "sliceName": "abatement-datetime",
        "short": "Abatement datetime",
        "definition": "The date or estimated date that the condition resolved or went into remission.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/uv/ips/StructureDefinition/abatement-dateTime-uv-ips"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.clinicalStatus",
        "path": "AllergyIntolerance.clinicalStatus",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.verificationStatus",
        "path": "AllergyIntolerance.verificationStatus",
        "comment": "In the scope of the IPS the entered-in-error concept is not allowed.",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.type",
        "path": "AllergyIntolerance.type",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.criticality",
        "path": "AllergyIntolerance.criticality",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.code",
        "path": "AllergyIntolerance.code",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "description": "Discriminated by the bound value set",
          "rules": "open"
        },
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "AllergyIntoleranceCode"
            }
          ],
          "strength": "preferred",
          "description": "Type of the substance/product, allergy or intolerance condition.",
          "valueSetUnknownType_StructureDefinition.differential.element[6].binding": "http://hl7.org/fhir/uv/ips/ValueSet/allergy-intolerance-substance-condition-uv-ips"
        }
      },
      {
        "id": "AllergyIntolerance.code:allergyIntoleranceGPSCode",
        "path": "AllergyIntolerance.code",
        "sliceName": "allergyIntoleranceGPSCode",
        "short": "Code for allergy or intolerance from the SNOMED CT GPS code set",
        "definition": "Code for an allergy or intolerance statement that is selected from the SNOMED CT GPS code set.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "GPS"
            }
          ],
          "strength": "required",
          "description": "Codes for allergy or intolerance from the SNOMED CT GPS code set",
          "valueSetUnknownType_StructureDefinition.differential.element[7].binding": "http://hl7.org/fhir/uv/ips/ValueSet/allergy-intolerance-substance-condition-gps-uv-ips"
        }
      },
      {
        "id": "AllergyIntolerance.code:absentOrUnknownAllergyIntolerance",
        "path": "AllergyIntolerance.code",
        "sliceName": "absentOrUnknownAllergyIntolerance",
        "short": "Code for absent or unknown allergy or intolerance",
        "definition": "Code for an allergy or intolerance statement (either a positive or a negated/excluded statement).  This describes a categorical negated statement (e.g.,  \"No known allergy\").",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "absentOrUnknownAllergy"
            }
          ],
          "strength": "required",
          "description": "negation/exclusion codes for reporting no known allergies or not available data.",
          "valueSetUnknownType_StructureDefinition.differential.element[8].binding": "http://hl7.org/fhir/uv/ips/ValueSet/absent-or-unknown-allergies-uv-ips"
        }
      },
      {
        "id": "AllergyIntolerance.patient",
        "path": "AllergyIntolerance.patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/uv/ips/StructureDefinition/Patient-uv-ips"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.patient.reference",
        "path": "AllergyIntolerance.patient.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.onsetDateTime",
        "path": "AllergyIntolerance.onsetDateTime",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.asserter",
        "path": "AllergyIntolerance.asserter",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.reaction",
        "path": "AllergyIntolerance.reaction",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation",
        "path": "AllergyIntolerance.reaction.manifestation",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "description": "Discriminated by the bound value set",
          "rules": "open"
        },
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation:reactionManifestationGPSCode",
        "path": "AllergyIntolerance.reaction.manifestation",
        "sliceName": "allergyIntoleranceReactionManifestationGPSCode",
        "short": "Code for the allergy or intolerance reaction manifestation from the SNOMED CT GPS code set",
        "definition": "Code for an allergy or intolerance reaction manifestation statement that is selected from the SNOMED CT GPS code set.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ReactionManifestationGPS"
            }
          ],
          "strength": "required",
          "valueSetUnknownType_StructureDefinition.differential.element[15].binding": "http://hl7.org/fhir/uv/ips/ValueSet/allergy-reaction-gps-uv-ips"
        }
      },
      {
        "id": "AllergyIntolerance.reaction.onset",
        "path": "AllergyIntolerance.reaction.onset",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.reaction.severity",
        "path": "AllergyIntolerance.reaction.severity",
        "mustSupport": true
      }
    ]
  }
}