- HSPC Implementation Guide

This page is part of the HSPC FHIR Implementation Guide (v0.1.0: Daft For Comment Draft) based on FHIR v1.9.0. This is the current published version. For a full list of available versions, see the Directory of published versions

href="assets/ico/favicon.png"/>

Profile hspc-allergyintolerance

{
  "resourceType" : "StructureDefinition",
  "id" : "hspc-allergyintolerance",
  "url" : "http://fhir.org/guides/hspc/StructureDefinition/hspc-allergyintolerance",
  "name" : "Profile hspc-allergyintolerance",
  "status" : "draft",
  "publisher" : "HSPC",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "other",
          "value" : "http://healthcaresoa.org"
        }
      }
    }
  },
  "date" : "2015-07-28",
  "mapping" : [
    {
      "identity" : "rim",
      "uri" : "http://hl7.org/v3",
      "name" : "RIM Mapping"
    },
    {
      "identity" : "w5",
      "uri" : "http://hl7.org/fhir/w5",
      "name" : "W5 Mapping"
    },
    {
      "identity" : "v2",
      "uri" : "http://hl7.org/v2",
      "name" : "HL7 v2 Mapping"
    }
  },
  "kind" : "resource",
  "abstract" : false,
  "type" : "AllergyIntolerance",
  "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
  "derivation" : "constraint",
  "snapshot" : {
    "element" : [
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance",
        "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.",
        "comments" : "Substances include, but are not limited to: a therapeutic substance administered correctly at an appropriate dosage for the individual; food; material derived from plants or animals; or venom from insect stings.",
        "alias" : [
          "Allergy",
          "Intolerance",
          "Adverse Reaction"
        },
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "AllergyIntolerance",
          "min" : 0,
          "max" : "*"
        },
        "mustSupport" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "Observation[classCode=OBS, moodCode=EVN]"
          },
          {
            "identity" : "w5",
            "map" : "clinical.general"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.id",
        "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.",
        "comments" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Resource.id",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "id"
          }
        },
        "isSummary" : true
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.meta",
        "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" : "Resource.meta",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Meta"
          }
        },
        "isSummary" : true
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.implicitRules",
        "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.",
        "comments" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element as much as possible.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Resource.implicitRules",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "uri"
          }
        },
        "isModifier" : true,
        "isSummary" : true
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.language",
        "path" : "AllergyIntolerance.language",
        "short" : "Language of the resource content",
        "definition" : "The base language in which the resource is written.",
        "comments" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource  Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Resource.language",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "code"
          }
        },
        "binding" : {
          "extension" : [
            {
              "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueReference" : {
                "reference" : "http://hl7.org/fhir/ValueSet/all-languages"
              }
            }
          },
          "strength" : "extensible",
          "description" : "A human language.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/languages"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.text",
        "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.",
        "comments" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded in formation is added later.",
        "alias" : [
          "narrative",
          "html",
          "xhtml",
          "display"
        },
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "DomainResource.text",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Narrative"
          }
        },
        "condition" : [
          "dom-1"
        },
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "Act.text?"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.contained",
        "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.",
        "comments" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again.",
        "alias" : [
          "inline resources",
          "anonymous resources",
          "contained resources"
        },
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "DomainResource.contained",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Resource"
          }
        },
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.extension",
        "path" : "AllergyIntolerance.extension",
        "slicing" : {
          "id" : "20",
          "discriminator" : [
            "url"
          },
          "ordered" : false,
          "rules" : "open"
        },
        "short" : "Extension",
        "definition" : "An Extension",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "DomainResource.extension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.extension:dateofresolution$Extension",
        "path" : "AllergyIntolerance.extension",
        "name" : "DateOfResolution",
        "short" : "Extension",
        "definition" : "An Extension",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "DomainResource.extension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension",
            "profile" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        },
        "constraint" : [
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"
          }
        },
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.extension:patientifnormedindicator$Extension",
        "path" : "AllergyIntolerance.extension",
        "name" : "PatientIfnormedIndicator",
        "short" : "Extension",
        "definition" : "An Extension",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "DomainResource.extension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension",
            "profile" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        },
        "constraint" : [
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"
          }
        },
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "binding" : {
          "strength" : "preferred",
          "description" : "The set of values to indicate affirmative or negative",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/v2-0136"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.extension:causeofdeathinidcator$Extension",
        "path" : "AllergyIntolerance.extension",
        "name" : "CauseOfDeathInidcator",
        "short" : "Extension",
        "definition" : "An Extension",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "DomainResource.extension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension",
            "profile" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        },
        "constraint" : [
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"
          }
        },
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "binding" : {
          "strength" : "preferred",
          "description" : "The set of values to indicate affirmative or negative",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/v2-0136"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.modifierExtension",
        "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.",
        "comments" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias" : [
          "extensions",
          "user content"
        },
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "DomainResource.modifierExtension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        },
        "isModifier" : true,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.identifier",
        "path" : "AllergyIntolerance.identifier",
        "short" : "External ids for this item",
        "definition" : "This records identifiers associated with this allergy/intolerance concern that are defined by business processes 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" : "v2",
            "map" : "IAM-7"
          },
          {
            "identity" : "rim",
            "map" : "id"
          },
          {
            "identity" : "w5",
            "map" : "id"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.status",
        "path" : "AllergyIntolerance.status",
        "short" : "active | active-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 (including pharmaceutical product).",
        "comments" : "Decision support would typically raise alerts for 'active' and 'active-confirmed' (and potetially 'resolved') and ignore a 'refuted' reaction. In particular, 'refuted' may be useful for reconciliation of the Adverse Reaction List. Some implementations may choose to make this field mandatory.",
        "alias" : [
          "State"
        },
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "AllergyIntolerance.status",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "code"
          }
        },
        "isModifier" : true,
        "isSummary" : true,
        "binding" : {
          "strength" : "required",
          "description" : "Assertion about certainty associated with a propensity, or potential risk, of a reaction to the identified substance.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/allergy-intolerance-status"
          }
        },
        "mapping" : [
          {
            "identity" : "v2",
            "map" : "IAM-17"
          },
          {
            "identity" : "rim",
            "map" : "statusCode"
          },
          {
            "identity" : "w5",
            "map" : "status"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.type",
        "path" : "AllergyIntolerance.type",
        "short" : "allergy | intolerance - Underlying mechanism (if known)",
        "definition" : "Identification of the underlying physiological mechanism for the reaction risk.",
        "comments" : "Allergic (typically immune-mediated) reactions have been traditionally regarded as an indicator for potential escalation to significant future risk. Contemporary knowledge suggests that some reactions previously thought to be immune-mediated are, in fact, non-immune, but in some cases can still pose a life threatening risk. It is acknowledged that many clinicians may not be in a position to distinguish the mechanism of a particular reaction. Often the term "allergy" is used rather generically and may overlap with the use of "intolerance" - in practice the boundaries between these two concepts may not be well-defined or understood. This data element is included nevertheless, because many legacy systems have captured this attribute. Immunologic testing may provide supporting evidence for the basis of the reaction and the causative substance, but no tests are 100% sensitive or specific for sensitivity to a particular substance. If, as is commonly the case, it is unclear whether the reaction is due to an allergy or an intolerance, then the type element should be omitted from the resource.",
        "alias" : [
          "Category",
          "Class"
        },
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "AllergyIntolerance.type",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "code"
          }
        },
        "isSummary" : true,
        "binding" : {
          "strength" : "required",
          "description" : "Identification of the underlying physiological mechanism for a Reaction Risk.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/allergy-intolerance-type"
          }
        },
        "mapping" : [
          {
            "identity" : "v2",
            "map" : "IAM-9"
          },
          {
            "identity" : "rim",
            "map" : "code"
          },
          {
            "identity" : "w5",
            "map" : "class"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.category",
        "path" : "AllergyIntolerance.category",
        "short" : "food | medication | environment",
        "definition" : "Category of the identified substance.",
        "comments" : "This data element has been included because it is currently being captured in some clinical systems. This data can be derived from the substance where coding systems are used, and is effectively redundant in that situation.",
        "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" : "required",
          "description" : "Category of an identified substance.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/allergy-intolerance-category"
          }
        },
        "mapping" : [
          {
            "identity" : "v2",
            "map" : "AL1-2"
          },
          {
            "identity" : "rim",
            "map" : "value < IntoleranceValue (Agent)"
          },
          {
            "identity" : "w5",
            "map" : "class"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.criticality",
        "path" : "AllergyIntolerance.criticality",
        "short" : "low | high | unable-to-assess",
        "definition" : "Estimate of the potential clinical harm, or seriousness, of the reaction to the identified substance.",
        "comments" : "The default criticality value for any propensity to an adverse reaction should be 'Low Risk', indicating at the very least a relative contraindication to deliberate or voluntary exposure to the substance. 'High Risk' is flagged if the clinician has identified a propensity for a more serious or potentially life-threatening reaction, such as anaphylaxis, and implies an absolute contraindication to deliberate or voluntary exposure to the substance. If this element is missing, the criticality is unknown (though it may be known elsewhere).",
        "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" : "v2",
            "map" : "AL1-4"
          },
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV, value <= SeverityObservation (Severity Level)]"
          },
          {
            "identity" : "w5",
            "map" : "grade"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.code",
        "path" : "AllergyIntolerance.code",
        "short" : "Allergy or intolerance code",
        "definition" : "Code for an allergy or intolerance statement (either a positive or a negated/excluded 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"), or a negated/excluded code for a specific substance or class (e.g., "No latex allergy") or a general or categorical negated statement (e.g.,  "No known allergy", "No known drug allergies").",
        "comments" : "It is strongly recommended that this element be populated using a terminology, where possible. For example, some terminologies used include RxNorm, SNOMED CT, DM+D, NDFRT, ICD-9, IDC-10, UNI, ATC and CPT. Plain text should only be used if there is no appropriate terminology available. Additional details can be specified in the text.  When a substance or product code is specified for the 'code' element, the "default" semantic context is that this is a positive statement of an allergy or intolerance (depending on the value of the 'type' element, if present) condition to the specified substance/product.  In the corresponding SNOMED CT allergy model, the specified substance/product is the target (destination) of the "Causative agent" relationship.  The 'substanceExposureRisk' extension is available as a structured and more flexible alternative to the 'code' element for making positive or negative allergy or intolerance statements.  This extension provides the capability to make "no known allergy" (or "no risk of adverse reaction") statements regarding any coded substance/product (including cases when a pre-coordinated "no allergy to x" concept for that substance/product does not exist).  If the 'substanceExposureRisk' extension is present, the AllergyIntolerance.code element SHALL be omitted.",
        "alias" : [
          "Code"
        },
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "AllergyIntolerance.code",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "CodeableConcept"
          }
        },
        "isSummary" : true,
        "binding" : {
          "strength" : "example",
          "description" : "Type of the substance/product, allergy or intolerance condition, or negation/exclusion codes for reporting no known allergies.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/allergyintolerance-code"
          }
        },
        "mapping" : [
          {
            "identity" : "v2",
            "map" : "AL1-3 / IAM-3"
          },
          {
            "identity" : "rim",
            "map" : "substance/product:  .participation[typeCode=CAGNT].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType]  negated/excluded substance/product:  .participation[typeCode=CAGNT, negationInd=true].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType]  positive or negated/excluded condition/situation:  Observation.code=ASSERTION; Observation.value"
          },
          {
            "identity" : "w5",
            "map" : "what"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.patient",
        "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" : "v2",
            "map" : "(PID-3)"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=SBJ].role[classCode=PAT]"
          },
          {
            "identity" : "w5",
            "map" : "who.focus"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.attestedDate",
        "path" : "AllergyIntolerance.attestedDate",
        "short" : "Date record was believed accurate",
        "definition" : "Indicates the most recent date on which the recorder has asserted that the information represented by this AllergyIntolerance record is accurate.",
        "comments" : "This is typically the date of last change, but it's possible to update this date without changing any other data if you just want to say 'this allergy/intolerance record is up to date as of now.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "AllergyIntolerance.attestedDate",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "dateTime"
          }
        },
        "isSummary" : true,
        "mapping" : [
          {
            "identity" : "v2",
            "map" : "IAM-20"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT].time"
          },
          {
            "identity" : "w5",
            "map" : "when.recorded"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.recorder:documented",
        "path" : "AllergyIntolerance.recorder",
        "name" : "Documented",
        "short" : "Who recorded the sensitivity",
        "definition" : "Individual who recorded the record and takes responsibility for its content.",
        "alias" : [
          "Author"
        },
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "AllergyIntolerance.recorder",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Reference",
            "profile" : "http://fhir.org/guides/hspc/StructureDefinition/hspc-provpract"
          },
          {
            "code" : "Reference",
            "profile" : "http://fhir.org/guides/hspc/StructureDefinition/hspc-patient"
          }
        },
        "mustSupport" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=AUT].role"
          },
          {
            "identity" : "w5",
            "map" : "who.author"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.reporter:reportedreceived",
        "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.",
        "comments" : "The recorder takes repsonsibility for the content, but can reference the source from where they got it.",
        "alias" : [
          "Source",
          "Informant"
        },
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "AllergyIntolerance.reporter",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Reference",
            "profile" : "http://fhir.org/guides/hspc/StructureDefinition/hspc-provpract"
          },
          {
            "code" : "Reference",
            "profile" : "http://fhir.org/guides/hspc/StructureDefinition/hspc-patient"
          },
          {
            "code" : "Reference",
            "profile" : "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          }
        },
        "mustSupport" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "v2",
            "map" : "IAM-14 (if patient) / IAM-18 (if practitioner)"
          },
          {
            "identity" : "rim",
            "map" : ".participation[typeCode=INF].role"
          },
          {
            "identity" : "w5",
            "map" : "who.source"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.onset",
        "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,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "effectiveTime.low"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.lastOccurrence",
        "path" : "AllergyIntolerance.lastOccurrence",
        "short" : "Date(/time) of last known occurrence of a reaction",
        "definition" : "Represents the date and/or time of the last known occurrence of a reaction event.",
        "comments" : "This date may be replicated by one of the Onset of Reaction dates. Where a textual representation of the date of last occurrence is required e.g. 'In Childhood, '10 years ago' the Comment element should be used.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "AllergyIntolerance.lastOccurrence",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "dateTime"
          }
        },
        "isSummary" : true,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code <= CommonClinicalObservationType, value <= ObservationValue (Reaction Type)].effectiveTime"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.note",
        "path" : "AllergyIntolerance.note",
        "short" : "Additional text not captured in other fields",
        "definition" : "Additional narrative about the propensity for the Adverse Reaction, not captured in other fields.",
        "comments" : "For example: including reason for flagging a seriousness of 'High Risk'; and instructions related to future exposure or administration of the substance, such as administration within an Intensive Care Unit or under corticosteroid cover. The notes should be related to an allergy or intolerance as a condition in general and not related to any particular episode of it. For episode notes and descriptions, use AllergyIntolerance.event.description and  AllergyIntolerance.event.notes.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "AllergyIntolerance.note",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Annotation"
          }
        },
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "subjectOf.observationEvent[code="annotation"].value"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.reaction",
        "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"
          }
        },
        "mustSupport" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code <= CommonClinicalObservationType, value <= ObservationValue (Reaction Type)]"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.reaction.id",
        "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). This may be any string value that does not contain spaces.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Element.id",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "string"
          }
        },
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.reaction.extension",
        "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.",
        "comments" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias" : [
          "extensions",
          "user content"
        },
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Element.extension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        },
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.reaction.modifierExtension",
        "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.",
        "comments" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias" : [
          "extensions",
          "user content",
          "modifiers"
        },
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "BackboneElement.modifierExtension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        },
        "isModifier" : true,
        "isSummary" : true,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.reaction.substance",
        "path" : "AllergyIntolerance.reaction.substance",
        "short" : "Specific substance or pharmaceutical product considered to be responsible for event",
        "definition" : "Identification of the specific substance (or pharmaceutical product) considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different from the substance identified as the cause of the risk, but it must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite product that includes the identified substance. It must be clinically safe to only process the 'code' and ignore the 'reaction.substance'.",
        "comments" : "Coding of the specific substance (or pharmaceutical product) with a terminology capable of triggering decision support should be used wherever possible.  The 'code' element allows for the use of a specific substance or pharmaceutical product, or a group or class of substances. In the case of an allergy or intolerance to a class of substances, (for example, "penicillins"), the 'reaction.substance' element could be used to code the specific substance that was identifed as having caused the reaction (for example, "amoxycillin"). Duplication of the value in the 'code' and 'reaction.substance' elements is acceptable when a specific substance has been recorded in 'code'.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "AllergyIntolerance.reaction.substance",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "CodeableConcept"
          }
        },
        "isSummary" : true,
        "binding" : {
          "strength" : "example",
          "description" : "Codes defining the type of the substance (including pharmaceutical products).",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/substance-code"
          }
        },
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].participation[typeCode=CSM].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType]"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.reaction.certainty",
        "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"
          }
        },
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "uncertaintyCode"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.reaction.manifestation:reactiontosubstance",
        "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.",
        "comments" : "Manifestation can be expressed as a single word, phrase or brief description. For example: nausea, rash or no reaction. It is preferable that manifestation should be coded with a terminology, where possible. The values entered here may be used to display on an application screen as part of a list of adverse reactions, as recommended in the UK NHS CUI guidelines.  Terminologies commonly used include, but are not limited to, SNOMED CT or ICD10.",
        "alias" : [
          "Symptoms",
          "Signs"
        },
        "min" : 1,
        "max" : "*",
        "base" : {
          "path" : "AllergyIntolerance.reaction.manifestation",
          "min" : 1,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "CodeableConcept"
          }
        },
        "mustSupport" : false,
        "isSummary" : false,
        "binding" : {
          "strength" : "preferred",
          "description" : "The set of codes that descibe the findings of a reaction",
          "valueSetReference" : {
            "reference" : "ValueSet/clinicalFinding"
          }
        },
        "mapping" : [
          {
            "identity" : "v2",
            "map" : "AL1-5"
          },
          {
            "identity" : "rim",
            "map" : "code"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.reaction.description",
        "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.",
        "comments" : "Use the description to provide any details of a particular event of the occurred reaction such as circumstances, reaction specifics, what happened before/after. Information, related to the event, but not describing a particular care should be captured in the comment field. For example: at the age of four, the patient was given penicillin for strep throat and subsequently developed severe hives.",
        "alias" : [
          "Narrative",
          "Text"
        },
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "AllergyIntolerance.reaction.description",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "string"
          }
        },
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "text"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.reaction.onset",
        "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,
        "mapping" : [
          {
            "identity" : "v2",
            "map" : "AL1-6"
          },
          {
            "identity" : "rim",
            "map" : "effectiveTime.low"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.reaction.severity",
        "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.",
        "comments" : "It is acknowledged that this assessment is very subjective. There may be some some specific practice domains where objective scales have been applied. Objective scales can be included in this model as extensions.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "AllergyIntolerance.reaction.severity",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "code"
          }
        },
        "isSummary" : true,
        "binding" : {
          "strength" : "required",
          "description" : "Clinical assessment of the severity of a reaction event as a whole, potentially considering multiple different manifestations.",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/reaction-event-severity"
          }
        },
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV, value <= SeverityObservation (Severity Level)]"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.reaction.exposureRoute",
        "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.",
        "comments" : "Coding of the route of exposure with a terminology should be used wherever possible.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "AllergyIntolerance.reaction.exposureRoute",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "CodeableConcept"
          }
        },
        "mustSupport" : false,
        "isSummary" : false,
        "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"
          }
        },
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].routeCode"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.reaction.note",
        "path" : "AllergyIntolerance.reaction.note",
        "short" : "Text about event not captured in other fields",
        "definition" : "Additional text about the adverse reaction event not captured in other fields.",
        "comments" : "Use this field to record information indirectly related to a particular event and not captured in the description. For example: Clinical records are no longer available, recorded based on information provided to the patient by her mother and her mother is deceased.",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "AllergyIntolerance.reaction.note",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Annotation"
          }
        },
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "subjectOf.observationEvent[code="annotation"].value"
          }
        }
      }
    }
  },
  "differential" : {
    "element" : [
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance",
        "path" : "AllergyIntolerance",
        "name" : "HSPC AllergyIntolerance",
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.substance",
        "path" : "AllergyIntolerance.substance",
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "binding" : {
          "strength" : "preferred",
          "description" : "A set of codes that describe materials or matter",
          "valueSetReference" : {
            "reference" : "ValueSet/substance"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.extension:dateofresolution$Extension",
        "path" : "AllergyIntolerance.extension",
        "name" : "DateOfResolution",
        "type" : [
          {
            "code" : "Extension",
            "profile" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        },
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.extension:patientifnormedindicator$Extension",
        "path" : "AllergyIntolerance.extension",
        "name" : "PatientIfnormedIndicator",
        "type" : [
          {
            "code" : "Extension",
            "profile" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        },
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "binding" : {
          "strength" : "preferred",
          "description" : "The set of values to indicate affirmative or negative",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/v2-0136"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.extension:causeofdeathinidcator$Extension",
        "path" : "AllergyIntolerance.extension",
        "name" : "CauseOfDeathInidcator",
        "type" : [
          {
            "code" : "Extension",
            "profile" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        },
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "binding" : {
          "strength" : "preferred",
          "description" : "The set of values to indicate affirmative or negative",
          "valueSetReference" : {
            "reference" : "http://hl7.org/fhir/ValueSet/v2-0136"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.recorder:documented",
        "path" : "AllergyIntolerance.recorder",
        "name" : "Documented",
        "type" : [
          {
            "code" : "Reference",
            "profile" : "http://fhir.org/guides/hspc/StructureDefinition/hspc-provpract"
          },
          {
            "code" : "Reference",
            "profile" : "http://fhir.org/guides/hspc/StructureDefinition/hspc-patient"
          }
        },
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.reporter:reportedreceived",
        "path" : "AllergyIntolerance.reporter",
        "name" : "ReportedReceived",
        "type" : [
          {
            "code" : "Reference",
            "profile" : "http://fhir.org/guides/hspc/StructureDefinition/hspc-provpract"
          },
          {
            "code" : "Reference",
            "profile" : "http://fhir.org/guides/hspc/StructureDefinition/hspc-patient"
          },
          {
            "code" : "Reference",
            "profile" : "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          }
        },
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.reaction",
        "path" : "AllergyIntolerance.reaction",
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.reaction.manifestation:reactiontosubstance",
        "path" : "AllergyIntolerance.reaction.manifestation",
        "name" : "ReactionToSubstance",
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "binding" : {
          "strength" : "preferred",
          "description" : "The set of codes that descibe the findings of a reaction",
          "valueSetReference" : {
            "reference" : "ValueSet/clinicalFinding"
          }
        }
      },
      {
        "id" : "AllergyIntolerance:hspcallergyintolerance.reaction.exposureRoute",
        "path" : "AllergyIntolerance.reaction.exposureRoute",
        "mustSupport" : false,
        "isModifier" : false,
        "isSummary" : false,
        "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"
          }
        }
      }
    }
  }
}