{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2018-02-14T14:58:02.283+00:00"
  },
  "url": "http://hl7.org/fhir/ips/StructureDefinition/allergyintolerance-uv-ips",
  "name": "AllergyIntolerance-uv-ips",
  "title": "Allergy Intolerance",
  "status": "draft",
  "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.",
  "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.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "AllergyIntolerance",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "AllergyIntolerance.clinicalStatus",
        "path": "AllergyIntolerance.clinicalStatus",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.verificationStatus",
        "path": "AllergyIntolerance.verificationStatus",
        "comment": "In the scope of the IPS the entered-in-error concept is not allowed.",
        "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": "value",
              "path": "coding.system"
            }
          ],
          "rules": "closed"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.code:absentOrUnknownAllergy",
        "path": "AllergyIntolerance.code",
        "sliceName": "absentOrUnknownAllergy",
        "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\").",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "AllergyIntoleranceCode"
            }
          ],
          "strength": "required",
          "description": "negation/exclusion codes for reporting no known allergies or not available data.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ips/ValueSet/absent-or-unknown-allergies-uv-ips"
          }
        }
      },
      {
        "id": "AllergyIntolerance.code:absentOrUnknownAllergy.coding",
        "path": "AllergyIntolerance.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "AllergyIntolerance.code:absentOrUnknownAllergy.coding.system",
        "path": "AllergyIntolerance.code.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/ips/CodeSystem/absent-unknown"
      },
      {
        "id": "AllergyIntolerance.code:absentOrUnknownAllergy.coding.code",
        "path": "AllergyIntolerance.code.coding.code",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.code:@default",
        "path": "AllergyIntolerance.code",
        "sliceName": "@default",
        "definition": "Code for an allergy or intolerance statement .  This may be a code for a substance or pharmaceutical product that is considered to be responsible for the adverse reaction risk (e.g., \"Latex\"), an allergy or intolerance condition (e.g., \"Latex allergy\").",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "AllergyIntoleranceCode"
            }
          ],
          "strength": "preferred",
          "description": "Type of the substance/product, allergy or intolerance condition.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ips/ValueSet/allergy-intolerance-substance-condition-uv-ips"
          }
        }
      },
      {
        "id": "AllergyIntolerance.patient",
        "path": "AllergyIntolerance.patient",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.patient.identifier",
        "path": "AllergyIntolerance.patient.identifier",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.onsetDateTime:onsetDateTime",
        "path": "AllergyIntolerance.onsetDateTime",
        "sliceName": "onsetDateTime",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.recorder.identifier",
        "path": "AllergyIntolerance.recorder.identifier",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.asserter.identifier",
        "path": "AllergyIntolerance.asserter.identifier",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation",
        "path": "AllergyIntolerance.reaction.manifestation",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "Manifestation"
            }
          ],
          "strength": "preferred",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ips/ValueSet/allergy-reaction-uv-ips"
          }
        }
      },
      {
        "id": "AllergyIntolerance.reaction.severity",
        "path": "AllergyIntolerance.reaction.severity",
        "mustSupport": true
      }
    ]
  }
}