{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.graphnethealth.com/STU3/StructureDefinition/AllergyIntolerance",
  "version": "1.0.0",
  "name": "AllergyIntolerance",
  "title": "AllergyIntolerance",
  "status": "draft",
  "date": "2021-01-05",
  "publisher": "Graphnet Health",
  "contact": [
    {
      "name": "Product Team",
      "telecom": [
        {
          "system": "email",
          "value": "product@graphnethealth.com",
          "use": "work"
        }
      ]
    }
  ],
  "copyright": "Copyright 2021 Graphnet Health",
  "fhirVersion": "3.0.2",
  "kind": "resource",
  "abstract": false,
  "type": "AllergyIntolerance",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "AllergyIntolerance.contained",
        "path": "AllergyIntolerance.contained",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.identifier.use",
        "path": "AllergyIntolerance.identifier.use",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.identifier.type",
        "path": "AllergyIntolerance.identifier.type",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.identifier.period",
        "path": "AllergyIntolerance.identifier.period",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.identifier.assigner",
        "path": "AllergyIntolerance.identifier.assigner",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.clinicalStatus",
        "path": "AllergyIntolerance.clinicalStatus",
        "fixedCode": "active"
      },
      {
        "id": "AllergyIntolerance.category",
        "path": "AllergyIntolerance.category",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.code.coding",
        "path": "AllergyIntolerance.code.coding",
        "min": 1,
        "max": "2"
      },
      {
        "id": "AllergyIntolerance.onset[x]:onsetDateTime",
        "path": "AllergyIntolerance.onsetDateTime",
        "sliceName": "onsetDateTime",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "AllergyIntolerance.recorder.reference",
        "path": "AllergyIntolerance.recorder.reference",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.recorder.identifier",
        "path": "AllergyIntolerance.recorder.identifier",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.asserter.reference",
        "path": "AllergyIntolerance.asserter.reference",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.asserter.identifier",
        "path": "AllergyIntolerance.asserter.identifier",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.lastOccurrence",
        "path": "AllergyIntolerance.lastOccurrence",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.note.author[x]",
        "path": "AllergyIntolerance.note.author[x]",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.note.time",
        "path": "AllergyIntolerance.note.time",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction",
        "path": "AllergyIntolerance.reaction",
        "max": "1"
      },
      {
        "id": "AllergyIntolerance.reaction.substance.coding",
        "path": "AllergyIntolerance.reaction.substance.coding",
        "max": "1"
      },
      {
        "id": "AllergyIntolerance.reaction.substance.text",
        "path": "AllergyIntolerance.reaction.substance.text",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation",
        "path": "AllergyIntolerance.reaction.manifestation",
        "max": "1"
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding",
        "path": "AllergyIntolerance.reaction.manifestation.coding",
        "max": "1"
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.text",
        "path": "AllergyIntolerance.reaction.manifestation.text",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.onset",
        "path": "AllergyIntolerance.reaction.onset",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.severity",
        "path": "AllergyIntolerance.reaction.severity",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute",
        "path": "AllergyIntolerance.reaction.exposureRoute",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.note",
        "path": "AllergyIntolerance.reaction.note",
        "max": "0"
      }
    ]
  }
}