{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2018-10-19T13:13:16.453+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "pc"
    }
  ],
  "url": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-AllergyIntolerance-1",
  "version": "1.2.0",
  "name": "CareConnect-ITK-AllergyIntolerance-1",
  "status": "active",
  "date": "2024-01-22T11:39:06.3872207+00:00",
  "publisher": "NHS Digital",
  "contact": [
    {
      "name": "Interoperability Team",
      "telecom": [
        {
          "system": "email",
          "value": "interoperabilityteam@nhs.net",
          "use": "work"
        }
      ]
    }
  ],
  "description": "This AllergyIntolerance Resource records risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance.",
  "purpose": "CURATED BY INTEROPen see: http://www.interopen.org/careconnect-curation-methodology/",
  "copyright": "Copyright © 2018 NHS Digital",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "AllergyIntolerance",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "AllergyIntolerance",
        "path": "AllergyIntolerance",
        "definition": "Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance."
      },
      {
        "id": "AllergyIntolerance.extension",
        "path": "AllergyIntolerance.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "AllergyIntolerance.extension:encounter",
        "path": "AllergyIntolerance.extension",
        "sliceName": "encounter",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-ITK-AssociatedEncounter-1"
          }
        ]
      },
      {
        "id": "AllergyIntolerance.extension:allergyEnd",
        "path": "AllergyIntolerance.extension",
        "sliceName": "allergyEnd",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AllergyIntoleranceEnd-1"
          }
        ]
      },
      {
        "id": "AllergyIntolerance.extension:allergyEnd.url",
        "path": "AllergyIntolerance.extension.url",
        "fixedUri": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AllergyIntoleranceEnd-1"
      },
      {
        "id": "AllergyIntolerance.extension:evidence",
        "path": "AllergyIntolerance.extension",
        "sliceName": "evidence",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-Evidence-1"
          }
        ]
      },
      {
        "id": "AllergyIntolerance.extension:evidence.url",
        "path": "AllergyIntolerance.extension.url",
        "fixedUri": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-Evidence-1"
      },
      {
        "id": "AllergyIntolerance.identifier.type.coding.system",
        "path": "AllergyIntolerance.identifier.type.coding.system",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.identifier.type.coding.code",
        "path": "AllergyIntolerance.identifier.type.coding.code",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.identifier.type.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "AllergyIntolerance.identifier.type.coding.display",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.identifier.system",
        "path": "AllergyIntolerance.identifier.system",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.identifier.value",
        "path": "AllergyIntolerance.identifier.value",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.identifier.assigner",
        "path": "AllergyIntolerance.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1"
          }
        ]
      },
      {
        "id": "AllergyIntolerance.verificationStatus",
        "path": "AllergyIntolerance.verificationStatus",
        "short": "unconfirmed | confirmed"
      },
      {
        "id": "AllergyIntolerance.code",
        "path": "AllergyIntolerance.code",
        "min": 1,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "AllergyIntoleranceCode"
            }
          ],
          "strength": "required",
          "valueSetReference": {
            "reference": "https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-AllergyCode-1"
          }
        }
      },
      {
        "id": "AllergyIntolerance.code.extension",
        "path": "AllergyIntolerance.code.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "AllergyIntolerance.code.extension:snomedCTDescriptionID",
        "path": "AllergyIntolerance.code.extension",
        "sliceName": "snomedCTDescriptionID",
        "definition": "The SNOMED CT Description ID for the display",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"
          }
        ]
      },
      {
        "id": "AllergyIntolerance.code.coding",
        "path": "AllergyIntolerance.code.coding",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.code.coding.system",
        "path": "AllergyIntolerance.code.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "AllergyIntolerance.code.coding.code",
        "path": "AllergyIntolerance.code.coding.code",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.code.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "AllergyIntolerance.code.coding.display",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.patient",
        "path": "AllergyIntolerance.patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"
          }
        ]
      },
      {
        "id": "AllergyIntolerance.patient.reference",
        "path": "AllergyIntolerance.patient.reference",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.onset[x]",
        "path": "AllergyIntolerance.onset[x]",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.assertedDate",
        "path": "AllergyIntolerance.assertedDate",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.recorder",
        "path": "AllergyIntolerance.recorder",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"
          }
        ]
      },
      {
        "id": "AllergyIntolerance.recorder.reference",
        "path": "AllergyIntolerance.recorder.reference",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.asserter",
        "path": "AllergyIntolerance.asserter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/ITK-RelatedPerson-1"
          }
        ]
      },
      {
        "id": "AllergyIntolerance.asserter.reference",
        "path": "AllergyIntolerance.asserter.reference",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.note.author[x]:authorReference",
        "path": "AllergyIntolerance.note.author[x]",
        "sliceName": "authorReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/ITK-RelatedPerson-1"
          }
        ]
      },
      {
        "id": "AllergyIntolerance.note.author[x]:authorReference.reference",
        "path": "AllergyIntolerance.note.author[x].reference",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.reaction.substance.coding",
        "path": "AllergyIntolerance.reaction.substance.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "AllergyIntolerance.reaction.substance.coding:snomedCT",
        "path": "AllergyIntolerance.reaction.substance.coding",
        "sliceName": "snomedCT",
        "max": "1"
      },
      {
        "id": "AllergyIntolerance.reaction.substance.coding:snomedCT.extension",
        "path": "AllergyIntolerance.reaction.substance.coding.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "AllergyIntolerance.reaction.substance.coding:snomedCT.extension:snomedCTDescriptionID",
        "path": "AllergyIntolerance.reaction.substance.coding.extension",
        "sliceName": "snomedCTDescriptionID",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"
          }
        ]
      },
      {
        "id": "AllergyIntolerance.reaction.substance.coding:snomedCT.system",
        "path": "AllergyIntolerance.reaction.substance.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "AllergyIntolerance.reaction.substance.coding:snomedCT.version",
        "path": "AllergyIntolerance.reaction.substance.coding.version",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.substance.coding:snomedCT.code",
        "path": "AllergyIntolerance.reaction.substance.coding.code",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.reaction.substance.coding:snomedCT.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "AllergyIntolerance.reaction.substance.coding.display",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation",
        "path": "AllergyIntolerance.reaction.manifestation",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "Manifestation"
            }
          ],
          "strength": "extensible",
          "valueSetReference": {
            "reference": "https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-AllergyManifestation-1"
          }
        }
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding",
        "path": "AllergyIntolerance.reaction.manifestation.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding:snomedCT",
        "path": "AllergyIntolerance.reaction.manifestation.coding",
        "sliceName": "snomedCT",
        "max": "1"
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding:snomedCT.extension",
        "path": "AllergyIntolerance.reaction.manifestation.coding.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding:snomedCT.extension:snomedCTDescriptionID",
        "path": "AllergyIntolerance.reaction.manifestation.coding.extension",
        "sliceName": "snomedCTDescriptionID",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"
          }
        ]
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding:snomedCT.system",
        "path": "AllergyIntolerance.reaction.manifestation.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding:snomedCT.version",
        "path": "AllergyIntolerance.reaction.manifestation.coding.version",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding:snomedCT.code",
        "path": "AllergyIntolerance.reaction.manifestation.coding.code",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding:snomedCT.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "AllergyIntolerance.reaction.manifestation.coding.display",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute",
        "path": "AllergyIntolerance.reaction.exposureRoute",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "RouteOfAdministration"
            }
          ],
          "strength": "example",
          "valueSetReference": {
            "reference": "https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-AllergyExposureRoute-1"
          }
        }
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute.coding",
        "path": "AllergyIntolerance.reaction.exposureRoute.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute.coding:snomedCT",
        "path": "AllergyIntolerance.reaction.exposureRoute.coding",
        "sliceName": "snomedCT",
        "max": "1"
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute.coding:snomedCT.extension",
        "path": "AllergyIntolerance.reaction.exposureRoute.coding.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute.coding:snomedCT.extension:snomedCTDescriptionID",
        "path": "AllergyIntolerance.reaction.exposureRoute.coding.extension",
        "sliceName": "snomedCTDescriptionID",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"
          }
        ]
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute.coding:snomedCT.system",
        "path": "AllergyIntolerance.reaction.exposureRoute.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute.coding:snomedCT.version",
        "path": "AllergyIntolerance.reaction.exposureRoute.coding.version",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute.coding:snomedCT.code",
        "path": "AllergyIntolerance.reaction.exposureRoute.coding.code",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute.coding:snomedCT.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "AllergyIntolerance.reaction.exposureRoute.coding.display",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.reaction.note",
        "path": "AllergyIntolerance.reaction.note",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.note.author[x]",
        "path": "AllergyIntolerance.reaction.note.author[x]",
        "type": [
          {
            "code": "string"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/ITK-RelatedPerson-1"
          }
        ]
      }
    ]
  }
}