{
  "resourceType": "StructureDefinition",
  "id": "spark648",
  "meta": {
    "versionId": "spark687",
    "lastUpdated": "2015-10-02T14:11:42.24+00:00"
  },
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
  },
  "url": "http://hl7.org/fhir/StructureDefinition/hspc-allergyintolerance",
  "name": "HSPC Allergy Intolerance",
  "status": "draft",
  "publisher": "HSPC",
  "contact": [
    {
      "telecom": [
        {
          "system": "other",
          "value": "http://healthcaresoa.org"
        }
      ]
    }
  ],
  "date": "2015-07-28",
  "description": "The HSPC specific profile for an allergy or intolerance",
  "kind": "resource",
  "constrainedType": "AllergyIntolerance",
  "abstract": false,
  "base": "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
  "snapshot": {
    "element": [
      {
        "path": "AllergyIntolerance",
        "name": "hspc-allergyintolerance",
        "short": "Allergy or Intolerance (generally: Risk Of Adverse reaction to a substance)",
        "definition": "Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance.",
        "alias": [
          "Allergy",
          "Intolerance",
          "Adverse Reaction"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "AllergyIntolerance",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "AllergyIntolerance"
          }
        ],
        "mapping": [
          {
            "identity": "w5",
            "map": "clinical"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.id",
        "short": "Logical id of this artifact",
        "definition": "The logical id of the resource, as used in the url for the resource. Once assigned, this value never changes.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "id"
          }
        ],
        "isSummary": true
      },
      {
        "path": "AllergyIntolerance.meta",
        "short": "Metadata about the resource",
        "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.meta",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Meta"
          }
        ],
        "isSummary": true
      },
      {
        "path": "AllergyIntolerance.implicitRules",
        "short": "A set of rules under which this content was created",
        "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.implicitRules",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "uri"
          }
        ],
        "isModifier": true,
        "isSummary": true
      },
      {
        "path": "AllergyIntolerance.language",
        "short": "Language of the resource content",
        "definition": "The base language in which the resource is written.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.language",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "A human language",
          "valueSetUri": "http://tools.ietf.org/html/bcp47"
        }
      },
      {
        "path": "AllergyIntolerance.text",
        "short": "Text summary of the resource, for human interpretation",
        "definition": "A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
        "alias": [
          "narrative",
          "html",
          "xhtml",
          "display"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "dom-1"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Act.text?"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.contained",
        "short": "Contained, inline Resources",
        "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
        "alias": [
          "inline resources",
          "anonymous resources",
          "contained resources"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "AllergyIntolerance.contained",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Resource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.extension",
        "slicing": {
          "discriminator": [
            "url"
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "AllergyIntolerance.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.extension",
        "name": "DateOfResolution",
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "AllergyIntolerance.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/hspc-allergyintolerance-DateOfResolution"
            ]
          }
        ]
      },
      {
        "path": "AllergyIntolerance.extension",
        "name": "PatientIfnormedIndicator",
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "AllergyIntolerance.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/hspc-allergyintolerance-PatientInformedInd"
            ]
          }
        ],
        "binding": {
          "strength": "preferred",
          "description": "The set of values to indicate affirmative or negative",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/v2-0136"
          }
        }
      },
      {
        "path": "AllergyIntolerance.extension",
        "name": "CauseOfDeathInidcator",
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "AllergyIntolerance.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/hspc-allergyintolerance-CauseOfDeathInd"
            ]
          }
        ],
        "binding": {
          "strength": "preferred",
          "description": "The set of values to indicate affirmative or negative",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/v2-0136"
          }
        }
      },
      {
        "path": "AllergyIntolerance.extension",
        "name": "MedicationStatement",
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "AllergyIntolerance.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/medicationstatement-hspc-medicationstatement"
            ]
          }
        ]
      },
      {
        "path": "AllergyIntolerance.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "AllergyIntolerance.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.identifier",
        "short": "External Ids for this item",
        "definition": "This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "AllergyIntolerance.identifier",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".id"
          },
          {
            "identity": "w5",
            "map": "id"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.onset",
        "short": "Date(/time) when manifestations showed",
        "definition": "Record of the date and/or time of the onset of the Allergy or Intolerance.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.onset",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true
      },
      {
        "path": "AllergyIntolerance.recordedDate",
        "short": "When recorded",
        "definition": "Date when the sensitivity was recorded.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.recordedDate",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=AUT].time"
          },
          {
            "identity": "w5",
            "map": "when.recorded"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.recorder",
        "name": "Documented",
        "short": "Who recorded the sensitivity",
        "definition": "Individual who recorded the record and takes responsibility for its conten.",
        "alias": [
          "Author"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.recorder",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/hspc-provpract"
            ]
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/hspc-patient"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=AUT].role"
          },
          {
            "identity": "w5",
            "map": "who.author"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.patient",
        "short": "Who the sensitivity is for",
        "definition": "The patient who has the allergy or intolerance.",
        "alias": [
          "Patient"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.patient",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=SBJ].role[classCode=PAT]"
          },
          {
            "identity": "w5",
            "map": "who.focus"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.reporter",
        "name": "ReportedReceived",
        "short": "Source of the information about the allergy",
        "definition": "The source of the information about the allergy that is recorded.",
        "alias": [
          "Source",
          "Informant"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.reporter",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/hspc-provpract"
            ]
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/hspc-patient"
            ]
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "who.source"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.substance",
        "short": "Substance, (or class) considered to be responsible for risk",
        "definition": "Identification of a substance, or a class of substances, that is considered to be responsible for the Adverse reaction risk.",
        "alias": [
          "Agent"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.substance",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "preferred",
          "description": "A set of codes that describe materials or matter",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/hspc-substance"
          }
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "what"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.status",
        "short": "active | unconfirmed | confirmed | inactive | resolved | refuted | entered-in-error",
        "definition": "Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance.",
        "alias": [
          "State"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.status",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": true,
        "isSummary": true,
        "binding": {
          "strength": "preferred",
          "description": "The set of codes that describe the state of an allergy or intolerance",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/hspc-allergyIntoleranceStatus"
          }
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "status"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.criticality",
        "short": "CRITL | CRITH | CRITU",
        "definition": "Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance.",
        "alias": [
          "Severity",
          "Seriousness",
          "Contra-indication",
          "Risk"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.criticality",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "required",
          "description": "Estimate of the potential clinical harm, or seriousness, of a reaction to an identified Substance",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality"
          }
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "grade"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.type",
        "short": "immune | non-immune - Underlying mechanism (if known)",
        "definition": "Identification of the underlying physiological mechanism for the Reaction Risk.",
        "alias": [
          "Category",
          "Class"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.type",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "preferred",
          "description": "The set of codes that describe if a reaction is a allergy or intolerance.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/hspc-allergyIntoleranceType"
          }
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "class"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.category",
        "name": "SubstanceCategory",
        "short": "food | medication | environment | other - Category of Substance",
        "definition": "Category of the identified Substance.",
        "alias": [
          "Category",
          "Type",
          "Reaction Type",
          "Class"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.category",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "preferred",
          "description": "A set of codes that describe categorical classifications of materials or matter.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/hspc-substanceCategory"
          }
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "class"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.lastOccurence",
        "short": "Date(/time) of last known occurence of a reaction",
        "definition": "Represents the date and/or time of the last known occurence of a reaction event.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.lastOccurence",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true
      },
      {
        "path": "AllergyIntolerance.notes",
        "short": "Additional text not captured in other fields",
        "definition": "Additional narrative about the propensity for the Adverse Reaction, not captured in other fields.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.notes",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Annotation"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.reaction",
        "short": "Adverse Reaction Events linked to exposure to substance",
        "definition": "Details about each Adverse Reaction Event linked to exposure to the identified Substance.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "AllergyIntolerance.reaction",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.reaction.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.reaction.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.reaction.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "AllergyIntolerance.reaction.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.reaction.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "AllergyIntolerance.reaction.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.reaction.substance",
        "short": "Specific substance considered to be responsible for event",
        "definition": "Identification of the specific substance considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different to the substance identified as the cause of the risk, but must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite substance that includes the identified substance. It must be clinically safe to only process the AllergyIntolerance.substance and ignore the AllergyIntolerance.event.substance.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.reaction.substance",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "example",
          "description": "Type of the substance",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/substance-code"
          }
        }
      },
      {
        "path": "AllergyIntolerance.reaction.certainty",
        "short": "unlikely | likely | confirmed - clinical certainty about the specific substance",
        "definition": "Statement about the degree of clinical certainty that the Specific Substance was the cause of the Manifestation in this reaction event.",
        "alias": [
          "Cause"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.reaction.certainty",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "required",
          "description": "Statement about the degree of clinical certainty that a Specific Substance was the cause of the Manifestation in an reaction event",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/reaction-event-certainty"
          }
        }
      },
      {
        "path": "AllergyIntolerance.reaction.manifestation",
        "name": "ReactionToSubstance",
        "short": "Clinical symptoms/signs associated with the Event",
        "definition": "Clinical symptoms and/or signs that are observed or associated with the Adverse Reaction Event.",
        "alias": [
          "Symptoms",
          "Signs"
        ],
        "min": 1,
        "max": "*",
        "base": {
          "path": "AllergyIntolerance.reaction.manifestation",
          "min": 1,
          "max": "*"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "preferred",
          "description": "The set of codes that descibe the findings of a reaction",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/hspc-clinicalFinding"
          }
        }
      },
      {
        "path": "AllergyIntolerance.reaction.description",
        "short": "Description of the event as a whole",
        "definition": "Text description about the Reaction as a whole, including details of the manifestation if required.",
        "alias": [
          "Narrative",
          "Text"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.reaction.description",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.reaction.onset",
        "short": "Date(/time) when manifestations showed",
        "definition": "Record of the date and/or time of the onset of the Reaction.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.reaction.onset",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true
      },
      {
        "path": "AllergyIntolerance.reaction.severity",
        "short": "mild | moderate | severe (of event as a whole)",
        "definition": "Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.reaction.severity",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "preferred",
          "description": "The set of codes that describe the seriousness of a reaction",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/hspc-severity"
          }
        }
      },
      {
        "path": "AllergyIntolerance.reaction.exposureRoute",
        "short": "How the subject was exposed to the substance",
        "definition": "Identification of the route by which the subject was exposed to the substance.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.reaction.exposureRoute",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "strength": "preferred",
          "description": "The set of codes that describe the means by which a substance got into or onto a patient that caused a reaction.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/v3-RouteOfAdministration"
          }
        }
      },
      {
        "path": "AllergyIntolerance.reaction.notes",
        "short": "Text about event not captured in other fields",
        "definition": "Additional text about the Adverse Reaction event not captured in other fields.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "AllergyIntolerance.reaction.notes",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Annotation"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "path": "AllergyIntolerance",
        "name": "hspc-allergyintolerance",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "AllergyIntolerance"
          }
        ]
      },
      {
        "path": "AllergyIntolerance.extension",
        "name": "DateOfResolution",
        "slicing": {
          "discriminator": [
            "url"
          ],
          "ordered": false,
          "rules": "open"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/hspc-allergyintolerance-DateOfResolution"
            ]
          }
        ]
      },
      {
        "path": "AllergyIntolerance.extension",
        "name": "PatientIfnormedIndicator",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/hspc-allergyintolerance-PatientInformedInd"
            ]
          }
        ],
        "binding": {
          "strength": "preferred",
          "description": "The set of values to indicate affirmative or negative",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/v2-0136"
          }
        }
      },
      {
        "path": "AllergyIntolerance.extension",
        "name": "CauseOfDeathInidcator",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/hspc-allergyintolerance-CauseOfDeathInd"
            ]
          }
        ],
        "binding": {
          "strength": "preferred",
          "description": "The set of values to indicate affirmative or negative",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/v2-0136"
          }
        }
      },
      {
        "path": "AllergyIntolerance.extension",
        "name": "MedicationStatement",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/medicationstatement-hspc-medicationstatement"
            ]
          }
        ]
      },
      {
        "path": "AllergyIntolerance.recorder",
        "name": "Documented",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/hspc-provpract"
            ]
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/hspc-patient"
            ]
          }
        ]
      },
      {
        "path": "AllergyIntolerance.reporter",
        "name": "ReportedReceived",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/hspc-provpract"
            ]
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/hspc-patient"
            ]
          },
          {
            "code": "Reference",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
            ]
          }
        ]
      },
      {
        "path": "AllergyIntolerance.substance",
        "binding": {
          "strength": "preferred",
          "description": "A set of codes that describe materials or matter",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/hspc-substance"
          }
        }
      },
      {
        "path": "AllergyIntolerance.status",
        "binding": {
          "strength": "preferred",
          "description": "The set of codes that describe the state of an allergy or intolerance",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/hspc-allergyIntoleranceStatus"
          }
        }
      },
      {
        "path": "AllergyIntolerance.type",
        "binding": {
          "strength": "preferred",
          "description": "The set of codes that describe if a reaction is a allergy or intolerance.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/hspc-allergyIntoleranceType"
          }
        }
      },
      {
        "path": "AllergyIntolerance.category",
        "name": "SubstanceCategory",
        "binding": {
          "strength": "preferred",
          "description": "A set of codes that describe categorical classifications of materials or matter.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/hspc-substanceCategory"
          }
        }
      },
      {
        "path": "AllergyIntolerance.reaction"
      },
      {
        "path": "AllergyIntolerance.reaction.manifestation",
        "name": "ReactionToSubstance",
        "binding": {
          "strength": "preferred",
          "description": "The set of codes that descibe the findings of a reaction",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/hspc-clinicalFinding"
          }
        }
      },
      {
        "path": "AllergyIntolerance.reaction.severity",
        "binding": {
          "strength": "preferred",
          "description": "The set of codes that describe the seriousness of a reaction",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/hspc-severity"
          }
        }
      },
      {
        "path": "AllergyIntolerance.reaction.exposureRoute",
        "binding": {
          "strength": "preferred",
          "description": "The set of codes that describe the means by which a substance got into or onto a patient that caused a reaction.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/v3-RouteOfAdministration"
          }
        }
      }
    ]
  }
}