profile-AllergyIntolerance
type: StructureDefinition
node role: treeRoot
id:
  v: profile-AllergyIntolerance
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition profile-AllergyIntolerance Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> AllergyIntolerance 0..* AllergyIntolerance Allergy or Intolerance (generally: Risk of adverse reaction to a substance) #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:encounter 0..1 Reference(Cross-version Profile for R5.Encounter for use in FHIR STU3(0.1.0) | Encounter) R5: Encounter when the allergy or intolerance was asserted (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.encounter #xD; extension:participant 0..* (Complex) R5: Who or what participated in the activities related to the allergy or intolerance and how they were involved (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.participant #xD; clinicalStatus #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:clinicalStatus 0..1 CodeableConcept R5: clinicalStatus additional types URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.clinicalStatus Binding: AllergyIntoleranceClinicalStatus (required): The clinical status of the allergy or intolerance. #xD; verificationStatus #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:verificationStatus 0..1 CodeableConcept R5: unconfirmed | presumed | confirmed | refuted | entered-in-error additional types URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.verificationStatus Binding: R5AllergyintoleranceVerificationForR3AllergyVerificationStatus (0.1.0) (required): Assertion about certainty associated with a propensity, or potential risk, of a reaction to the identified substance. #xD; type #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:type 0..1 CodeableConcept R…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
    l: structuredefinition-wg
  value: Code
    v: fhir
extension:
  extension:
    url:
      v: packageId
      l: packageId
    value: Id
      v: hl7.fhir.uv.xver-r5.r3
  extension:
    url:
      v: version
      l: version
    value: String
      v: 0.1.0
  url:
    v: http://hl7.org/fhir/StructureDefinition/package-source
    l: package-source
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm
    l: structuredefinition-fmm
  value: Integer
    v: 0
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
        l: structuredefinition-conformance-derivedFrom
      value: Uri
        v: http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r5.r3
        l: hl7.fhir.uv.xver-r5.r3
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
    l: structuredefinition-standards-status
  value: Code
    v: trial-use
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
        l: structuredefinition-conformance-derivedFrom
      value: Uri
        v: http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r5.r3
        l: hl7.fhir.uv.xver-r5.r3
url:
  v: http://hl7.org/fhir/5.0/StructureDefinition/profile-AllergyIntolerance
  l: profile-AllergyIntolerance
version:
  v: 0.1.0
name:
  v: Profile_R5_AllergyIntolerance_R3
title:
  v: Cross-version Profile for R5.AllergyIntolerance for use in FHIR STU3
status:
  v: active
experimental:
  v: false
date:
  v: 2026-03-17T16:05:12.8305143-05:00
publisher:
  v: FHIR Infrastructure
contact:
  name:
    v: FHIR Infrastructure
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/fiwg
description:
  v: This cross-version profile allows R5 AllergyIntolerance content to be represented via FHIR STU3 AllergyIntolerance resources.
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
      l: m49.htm
    code:
      v: 001
    display:
      v: World
fhir version:
  v: 3.0.2
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/w5
    l: w5
  name:
    v: W5 Mapping
mapping:
  identity:
    v: v2
  uri:
    v: http://hl7.org/v2
    l: v2
  name:
    v: HL7 v2 Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: AllergyIntolerance
base definition:
  v: http://hl7.org/fhir/StructureDefinition/AllergyIntolerance
  l: AllergyIntolerance
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: AllergyIntolerance
    path:
      v: AllergyIntolerance
    short:
      v: Allergy or Intolerance (generally: Risk of adverse reaction to a substance)
    definition:
      v: Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance.
    comment:
      v: 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:
      v: Allergy
    alias:
      v: Intolerance
    alias:
      v: Adverse Reaction
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: AllergyIntolerance
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      xpath:
        v: not(parent::f:contained and f:contained)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-1
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain any narrative
      expression:
        v: contained.text.empty()
      xpath:
        v: not(parent::f:contained and f:text)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-3

v: error

v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource

v: contained.where(('#'+id in %resource.descendants().reference).not()).empty()

v: not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))

key:
  v: ait-1
severity:
  v: error
human:
  v: AllergyIntolerance.clinicalStatus SHALL be present if verificationStatus is not entered-in-error.
expression:
  v: verificationStatus='entered-in-error' or clinicalStatus.exists()
xpath:
  v: f:verificationStatus/@value='entered-in-error' or exists(f:clinicalStatus)
source:
  v: http://hl7.org/fhir/StructureDefinition/AllergyIntolerance
  l: AllergyIntolerance

key:
  v: ait-2
severity:
  v: error
human:
  v: AllergyIntolerance.clinicalStatus SHALL NOT be present if verification Status is entered-in-error
expression:
  v: verificationStatus!='entered-in-error' or clinicalStatus.empty()
xpath:
  v: f:verificationStatus/@value!='entered-in-error' or not(exists(f:clinicalStatus))
source:
  v: http://hl7.org/fhir/StructureDefinition/AllergyIntolerance
  l: AllergyIntolerance

identity:
  v: rim
map:
  v: Entity. Role, or Act

identity:
  v: rim
map:
  v: Observation[classCode=OBS, moodCode=EVN]

identity:
  v: w5
map:
  v: clinical.general

id:
  v: AllergyIntolerance.id
path:
  v: AllergyIntolerance.id
short:
  v: Logical id of this artifact
definition:
  v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
comment:
  v: 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:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: AllergyIntolerance.meta
path:
  v: AllergyIntolerance.meta
short:
  v: Metadata about the resource
definition:
  v: 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:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.meta
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Meta
    l: Meta
is summary:
  v: true

id:
  v: AllergyIntolerance.implicitRules
path:
  v: AllergyIntolerance.implicitRules
short:
  v: A set of rules under which this content was created
definition:
  v: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.
comment:
  v: 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. This element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
is modifier:
  v: true
is summary:
  v: true

id:
  v: AllergyIntolerance.language
path:
  v: AllergyIntolerance.language
short:
  v: Language of the resource content
definition:
  v: The base language in which the resource is written.
comment:
  v: 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:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
      l: elementdefinition-maxValueSet
    value: Reference
      l: 3.0
      l: .2
      reference:
        v: http://hl7.org/fhir/ValueSet/all-languages|3.0.2
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Language
  strength:
    v: extensible
  description:
    v: A human language.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/languages|3.0.2

id:
  v: AllergyIntolerance.text
path:
  v: AllergyIntolerance.text
short:
  v: Text summary of the resource, for human interpretation
definition:
  v: 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.
comment:
  v: 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:
  v: narrative
alias:
  v: html
alias:
  v: xhtml
alias:
  v: display
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
    l: Narrative
condition:
  v: dom-1
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: AllergyIntolerance.contained
path:
  v: AllergyIntolerance.contained
short:
  v: Contained, inline Resources
definition:
  v: 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.
comment:
  v: 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:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
    l: Resource
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: AllergyIntolerance.extension
path:
  v: AllergyIntolerance.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: AllergyIntolerance.extension:encounter
path:
  v: AllergyIntolerance.extension
slice name:
  v: encounter
short:
  v: R5: Encounter when the allergy or intolerance was asserted (new)
definition:
  v: R5: `AllergyIntolerance.encounter` (new:Reference(Encounter))
comment:
  v: Element `AllergyIntolerance.encounter` has a context of AllergyIntolerance based on following the parent source element upwards and mapping to `AllergyIntolerance`. Element `AllergyIntolerance.encounter` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.encounter|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.encounter
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: AllergyIntolerance.extension:participant
path:
  v: AllergyIntolerance.extension
slice name:
  v: participant
short:
  v: R5: Who or what participated in the activities related to the allergy or intolerance and how they were involved (new)
definition:
  v: R5: `AllergyIntolerance.participant` (new:BackboneElement)
comment:
  v: Element `AllergyIntolerance.participant` has a context of AllergyIntolerance based on following the parent source element upwards and mapping to `AllergyIntolerance`. Element `AllergyIntolerance.participant` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.participant|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.participant
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: AllergyIntolerance.modifierExtension
path:
  v: AllergyIntolerance.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: 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.
comment:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: AllergyIntolerance.identifier
path:
  v: AllergyIntolerance.identifier
short:
  v: External ids for this item
definition:
  v: 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:
  v: 0
max:
  v: *
base:
  path:
    v: AllergyIntolerance.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
    l: Identifier
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: IAM-7
mapping:
  identity:
    v: rim
  map:
    v: id
mapping:
  identity:
    v: w5
  map:
    v: id

id:
  v: AllergyIntolerance.clinicalStatus
path:
  v: AllergyIntolerance.clinicalStatus
short:
  v: active | inactive | resolved
definition:
  v: The clinical status of the allergy or intolerance.
comment:
  v: This element is labeled as a modifier because the status contains the codes inactive and resolved that mark the AllergyIntolerance as not currently valid.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AllergyIntolerance.clinicalStatus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
condition:
  v: ait-1
condition:
  v: ait-2
is modifier:
  v: true
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: AllergyIntoleranceClinicalStatus
  strength:
    v: required
  description:
    v: The clinical status of the allergy or intolerance.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/allergy-clinical-status|3.0.2
mapping:
  identity:
    v: rim
  map:
    v: Observation ACT .inboundRelationship[typeCode=COMP].source[classCode=OBS, code="clinicalStatus", moodCode=EVN].value
mapping:
  identity:
    v: w5
  map:
    v: status

id:
  v: AllergyIntolerance.clinicalStatus.id
path:
  v: AllergyIntolerance.clinicalStatus.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: AllergyIntolerance.clinicalStatus.extension
path:
  v: AllergyIntolerance.clinicalStatus.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: AllergyIntolerance.clinicalStatus.extension:clinicalStatus
path:
  v: AllergyIntolerance.clinicalStatus.extension
slice name:
  v: clinicalStatus
short:
  v: R5: clinicalStatus additional types
definition:
  v: R5: `AllergyIntolerance.clinicalStatus` additional types (CodeableConcept) additional types from child elements (coding)
comment:
  v: Element `AllergyIntolerance.clinicalStatus` is mapped to FHIR STU3 element `AllergyIntolerance.clinicalStatus` as `SourceIsBroaderThanTarget`. The mappings for `AllergyIntolerance.clinicalStatus` do not cover the following types: CodeableConcept. The mappings for `AllergyIntolerance.clinicalStatus` do not cover the following types based on type expansion: coding. The target context `AllergyIntolerance.clinicalStatus` is a modifier element, so this extension does not need to be defined as a modifier. AllergyIntolerance.clinicalStatus should be present if verificationStatus is not entered-in-error and the AllergyIntolerance.code isn't negated (No Known Allergy, No Drug Allergy, No Food Allergy, No Latex Allergy). Refer to [discussion](https://hl7.org/fhir/extensibility.html#Special-Case) if clinicalStatus is missing data. The data type is CodeableConcept because clinicalStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.clinicalStatus|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.clinicalStatus
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: AllergyIntolerance.clinicalStatus.value
path:
  v: AllergyIntolerance.clinicalStatus.value
representation:
  v: xmlAttr
short:
  v: Primitive value for code
definition:
  v: Primitive value for code
min:
  v: 0
max:
  v: 1
base:
  path:
    v: string.value
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-regex
      l: structuredefinition-regex
    value: String
      v: [^\s]+([\s]?[^\s]+)*
  code:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type
        l: structuredefinition-json-type
      value: String
        v: string
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type
        l: structuredefinition-xml-type
      value: String
        v: xsd:token
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type
        l: structuredefinition-rdf-type
      value: String
        v: xsd:token

id:
  v: AllergyIntolerance.verificationStatus
path:
  v: AllergyIntolerance.verificationStatus
short:
  v: unconfirmed | confirmed | refuted | entered-in-error
definition:
  v: Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product).
comment:
  v: This element is labeled as a modifier because the status contains the codes refuted and entered-in-error that mark the AllergyIntolerance as not currently valid.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: AllergyIntolerance.verificationStatus
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
condition:
  v: ait-1
condition:
  v: ait-2
is modifier:
  v: true
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: AllergyIntoleranceVerificationStatus
  strength:
    v: required
  description:
    v: Assertion about certainty associated with a propensity, or potential risk, of a reaction to the identified substance.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/allergy-verification-status|3.0.2
mapping:
  identity:
    v: rim
  map:
    v: Observation ACT .inboundRelationship[typeCode=COMP].source[classCode=OBS, code="verificationStatus", moodCode=EVN].value
mapping:
  identity:
    v: w5
  map:
    v: status

id:
  v: AllergyIntolerance.verificationStatus.id
path:
  v: AllergyIntolerance.verificationStatus.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: AllergyIntolerance.verificationStatus.extension
path:
  v: AllergyIntolerance.verificationStatus.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: AllergyIntolerance.verificationStatus.extension:verificationStatus
path:
  v: AllergyIntolerance.verificationStatus.extension
slice name:
  v: verificationStatus
short:
  v: R5: unconfirmed | presumed | confirmed | refuted | entered-in-error additional types
definition:
  v: R5: `AllergyIntolerance.verificationStatus` additional types (CodeableConcept) additional types from child elements (coding)
comment:
  v: Element `AllergyIntolerance.verificationStatus` is mapped to FHIR STU3 element `AllergyIntolerance.verificationStatus` as `SourceIsBroaderThanTarget`. The mappings for `AllergyIntolerance.verificationStatus` do not cover the following types: CodeableConcept. The mappings for `AllergyIntolerance.verificationStatus` do not cover the following types based on type expansion: coding. The target context `AllergyIntolerance.verificationStatus` is a modifier element, so this extension does not need to be defined as a modifier. The data type is CodeableConcept because verificationStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.verificationStatus|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.verificationStatus
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: AllergyIntolerance.verificationStatus.value
path:
  v: AllergyIntolerance.verificationStatus.value
representation:
  v: xmlAttr
short:
  v: Primitive value for code
definition:
  v: Primitive value for code
min:
  v: 0
max:
  v: 1
base:
  path:
    v: string.value
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-regex
      l: structuredefinition-regex
    value: String
      v: [^\s]+([\s]?[^\s]+)*
  code:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type
        l: structuredefinition-json-type
      value: String
        v: string
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type
        l: structuredefinition-xml-type
      value: String
        v: xsd:token
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type
        l: structuredefinition-rdf-type
      value: String
        v: xsd:token

id:
  v: AllergyIntolerance.type
path:
  v: AllergyIntolerance.type
short:
  v: allergy | intolerance - Underlying mechanism (if known)
definition:
  v: Identification of the underlying physiological mechanism for the reaction risk.
comment:
  v: 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:
  v: Category
alias:
  v: Class
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AllergyIntolerance.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: AllergyIntoleranceType
  strength:
    v: required
  description:
    v: Identification of the underlying physiological mechanism for a Reaction Risk.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/allergy-intolerance-type|3.0.2
mapping:
  identity:
    v: v2
  map:
    v: IAM-9
mapping:
  identity:
    v: rim
  map:
    v: code
mapping:
  identity:
    v: w5
  map:
    v: class

id:
  v: AllergyIntolerance.type.id
path:
  v: AllergyIntolerance.type.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: AllergyIntolerance.type.extension
path:
  v: AllergyIntolerance.type.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: AllergyIntolerance.type.extension:type
path:
  v: AllergyIntolerance.type.extension
slice name:
  v: type
short:
  v: R5: type additional types
definition:
  v: R5: `AllergyIntolerance.type` additional types (CodeableConcept) additional types from child elements (coding)
comment:
  v: Element `AllergyIntolerance.type` is mapped to FHIR STU3 element `AllergyIntolerance.type` as `SourceIsBroaderThanTarget`. The mappings for `AllergyIntolerance.type` do not cover the following types: CodeableConcept. The mappings for `AllergyIntolerance.type` do not cover the following types based on type expansion: coding. 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 might 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 might 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.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.type|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.type
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: AllergyIntolerance.type.value
path:
  v: AllergyIntolerance.type.value
representation:
  v: xmlAttr
short:
  v: Primitive value for code
definition:
  v: Primitive value for code
min:
  v: 0
max:
  v: 1
base:
  path:
    v: string.value
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-regex
      l: structuredefinition-regex
    value: String
      v: [^\s]+([\s]?[^\s]+)*
  code:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type
        l: structuredefinition-json-type
      value: String
        v: string
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type
        l: structuredefinition-xml-type
      value: String
        v: xsd:token
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type
        l: structuredefinition-rdf-type
      value: String
        v: xsd:token

id:
  v: AllergyIntolerance.category
path:
  v: AllergyIntolerance.category
short:
  v: food | medication | environment | biologic
definition:
  v: Category of the identified substance.
comment:
  v: 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. When searching on category, consider the implications of AllergyIntolerance resources without a category. For example, when searching on category = medication, medication allergies that don't have a category valued will not be returned. Refer to [search](http://hl7.org/fhir/STU3/search.html) for more information on how to search category with a :missing modifier to get allergies that don't have a category. Additionally, category should be used with caution because category can be subjective based on the sender.
alias:
  v: Category
alias:
  v: Type
alias:
  v: Reaction Type
alias:
  v: Class
min:
  v: 0
max:
  v: *
base:
  path:
    v: AllergyIntolerance.category
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: code
    l: code
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: AllergyIntoleranceCategory
  strength:
    v: required
  description:
    v: Category of an identified substance.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/allergy-intolerance-category|3.0.2
mapping:
  identity:
    v: v2
  map:
    v: AL1-2
mapping:
  identity:
    v: rim
  map:
    v: value < IntoleranceValue (Agent)
mapping:
  identity:
    v: w5
  map:
    v: class

id:
  v: AllergyIntolerance.criticality
path:
  v: AllergyIntolerance.criticality
short:
  v: low | high | unable-to-assess
definition:
  v: Estimate of the potential clinical harm, or seriousness, of the reaction to the identified substance.
comment:
  v: 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). Systems that capture a severity at the condition level are actually representing the concept of criticality whereas the severity documented at the reaction level is representing the true reaction severity. Existing systems that are capturing both condition criticality and reaction severity may use the term "severity" to represent both. Criticality is the worst it could be in the future (i.e. situation-agnostic) whereas severity is situation-dependent.
alias:
  v: Severity
alias:
  v: Seriousness
alias:
  v: Contra-indication
alias:
  v: Risk
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AllergyIntolerance.criticality
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: AllergyIntoleranceCriticality
  strength:
    v: required
  description:
    v: Estimate of the potential clinical harm, or seriousness, of a reaction to an identified substance.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality|3.0.2
mapping:
  identity:
    v: v2
  map:
    v: AL1-4
mapping:
  identity:
    v: rim
  map:
    v: inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV, value <= SeverityObservation (Severity Level)]
mapping:
  identity:
    v: w5
  map:
    v: grade

id:
  v: AllergyIntolerance.code
path:
  v: AllergyIntolerance.code
short:
  v: Code that identifies the allergy or intolerance
definition:
  v: 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").
comment:
  v: 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:
  v: Code
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AllergyIntolerance.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: AllergyIntoleranceCode
  strength:
    v: example
  description:
    v: Type of the substance/product, allergy or intolerance condition, or negation/exclusion codes for reporting no known allergies.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/allergyintolerance-code|3.0.2
mapping:
  identity:
    v: v2
  map:
    v: AL1-3 / IAM-3
mapping:
  identity:
    v: rim
  map:
    v: 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
mapping:
  identity:
    v: w5
  map:
    v: what

id:
  v: AllergyIntolerance.patient
path:
  v: AllergyIntolerance.patient
short:
  v: Who the sensitivity is for
definition:
  v: The patient who has the allergy or intolerance.
alias:
  v: Patient
min:
  v: 1
max:
  v: 1
base:
  path:
    v: AllergyIntolerance.patient
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: (PID-3)
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=SBJ].role[classCode=PAT]
mapping:
  identity:
    v: w5
  map:
    v: who.focus

id:
  v: AllergyIntolerance.patient.id
path:
  v: AllergyIntolerance.patient.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: AllergyIntolerance.patient.extension
path:
  v: AllergyIntolerance.patient.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: AllergyIntolerance.patient.extension:patient
path:
  v: AllergyIntolerance.patient.extension
slice name:
  v: patient
short:
  v: R5: Who the allergy or intolerance is for additional types
definition:
  v: R5: `AllergyIntolerance.patient` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `AllergyIntolerance.patient` is mapped to FHIR STU3 element `AllergyIntolerance.patient` as `SourceIsBroaderThanTarget`. The mappings for `AllergyIntolerance.patient` do not cover the following types based on type expansion: display, identifier, reference, type. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `AllergyIntolerance.patient` with unmapped reference targets: Patient.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/alternate-reference
    l: alternate-reference

id:
  v: AllergyIntolerance.patient.reference
path:
  v: AllergyIntolerance.patient.reference
short:
  v: Literal reference, Relative, internal or absolute URL
definition:
  v: A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.
comment:
  v: Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ref-1
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: AllergyIntolerance.patient.identifier
path:
  v: AllergyIntolerance.patient.identifier
short:
  v: Logical reference, when literal reference is not known
definition:
  v: An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.
comment:
  v: When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: AllergyIntolerance.patient.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: AllergyIntolerance.patient.display
short:
  v: Text alternative for the resource
definition:
  v: Plain text narrative that identifies the resource in addition to the resource reference.
comment:
  v: This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: AllergyIntolerance.onset[x]
path:
  v: AllergyIntolerance.onset[x]
short:
  v: When allergy or intolerance was identified
definition:
  v: Estimated or actual date, date-time, or age when allergy or intolerance was identified.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AllergyIntolerance.onset[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
type:
  code:
    v: Age
    l: Age
type:
  code:
    v: Period
    l: Period
type:
  code:
    v: Range
    l: Range
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: effectiveTime.low
mapping:
  identity:
    v: w5
  map:
    v: when.init

id:
  v: AllergyIntolerance.assertedDate
path:
  v: AllergyIntolerance.assertedDate
short:
  v: Date record was believed accurate
definition:
  v: The date on which the existance of the AllergyIntolerance was first asserted or acknowledged.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AllergyIntolerance.assertedDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: v2
  map:
    v: IAM-20
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=AUT].time
mapping:
  identity:
    v: w5
  map:
    v: when.recorded

id:
  v: AllergyIntolerance.recorder
path:
  v: AllergyIntolerance.recorder
short:
  v: Who recorded the sensitivity
definition:
  v: Individual who recorded the record and takes responsibility for its content.
alias:
  v: Author
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AllergyIntolerance.recorder
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    l: Practitioner
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=AUT].role
mapping:
  identity:
    v: w5
  map:
    v: who.author

id:
  v: AllergyIntolerance.asserter
path:
  v: AllergyIntolerance.asserter
short:
  v: Source of the information about the allergy
definition:
  v: The source of the information about the allergy that is recorded.
comment:
  v: The recorder takes repsonsibility for the content, but can reference the source from where they got it.
alias:
  v: Source
alias:
  v: Informant
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AllergyIntolerance.asserter
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    l: RelatedPerson
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    l: Practitioner
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: IAM-14 (if patient) / IAM-18 (if practitioner)
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=INF].role
mapping:
  identity:
    v: w5
  map:
    v: who.source

id:
  v: AllergyIntolerance.lastOccurrence
path:
  v: AllergyIntolerance.lastOccurrence
short:
  v: Date(/time) of last known occurrence of a reaction
definition:
  v: Represents the date and/or time of the last known occurrence of a reaction event.
comment:
  v: 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:
  v: 0
max:
  v: 1
base:
  path:
    v: AllergyIntolerance.lastOccurrence
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: rim
  map:
    v: outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code <= CommonClinicalObservationType, value <= ObservationValue (Reaction Type)].effectiveTime

id:
  v: AllergyIntolerance.note
path:
  v: AllergyIntolerance.note
short:
  v: Additional text not captured in other fields
definition:
  v: Additional narrative about the propensity for the Adverse Reaction, not captured in other fields.
comment:
  v: 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:
  v: 0
max:
  v: *
base:
  path:
    v: AllergyIntolerance.note
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Annotation
    l: Annotation
mapping:
  identity:
    v: rim
  map:
    v: subjectOf.observationEvent[code="annotation"].value

id:
  v: AllergyIntolerance.reaction
path:
  v: AllergyIntolerance.reaction
short:
  v: Adverse Reaction Events linked to exposure to substance
definition:
  v: Details about each adverse reaction event linked to exposure to the identified substance.
min:
  v: 0
max:
  v: *
base:
  path:
    v: AllergyIntolerance.reaction
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
mapping:
  identity:
    v: rim
  map:
    v: outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code <= CommonClinicalObservationType, value <= ObservationValue (Reaction Type)]

id:
  v: AllergyIntolerance.reaction.id
path:
  v: AllergyIntolerance.reaction.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: AllergyIntolerance.reaction.extension
path:
  v: AllergyIntolerance.reaction.extension
short:
  v: Additional Content defined by implementations
definition:
  v: 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.
comment:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: AllergyIntolerance.reaction.modifierExtension
path:
  v: AllergyIntolerance.reaction.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: 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.
comment:
  v: 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:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: AllergyIntolerance.reaction.substance
path:
  v: AllergyIntolerance.reaction.substance
short:
  v: Specific substance or pharmaceutical product considered to be responsible for event
definition:
  v: 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'.
comment:
  v: 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:
  v: 0
max:
  v: 1
base:
  path:
    v: AllergyIntolerance.reaction.substance
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SubstanceCode
  strength:
    v: example
  description:
    v: Codes defining the type of the substance (including pharmaceutical products).
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/substance-code|3.0.2
mapping:
  identity:
    v: rim
  map:
    v: outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].participation[typeCode=CSM].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType]

id:
  v: AllergyIntolerance.reaction.manifestation
path:
  v: AllergyIntolerance.reaction.manifestation
short:
  v: Clinical symptoms/signs associated with the Event
definition:
  v: Clinical symptoms and/or signs that are observed or associated with the adverse reaction event.
comment:
  v: 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:
  v: Symptoms
alias:
  v: Signs
min:
  v: 1
max:
  v: *
base:
  path:
    v: AllergyIntolerance.reaction.manifestation
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Manifestation
  strength:
    v: example
  description:
    v: Clinical symptoms and/or signs that are observed or associated with an Adverse Reaction Event.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/clinical-findings|3.0.2
mapping:
  identity:
    v: v2
  map:
    v: AL1-5
mapping:
  identity:
    v: rim
  map:
    v: code

id:
  v: AllergyIntolerance.reaction.manifestation.id
path:
  v: AllergyIntolerance.reaction.manifestation.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: AllergyIntolerance.reaction.manifestation.extension
path:
  v: AllergyIntolerance.reaction.manifestation.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: AllergyIntolerance.reaction.manifestation.extension:manifestation
path:
  v: AllergyIntolerance.reaction.manifestation.extension
slice name:
  v: manifestation
short:
  v: R5: manifestation additional types
definition:
  v: R5: `AllergyIntolerance.reaction.manifestation` additional types (CodeableReference(http://hl7.org/fhir/StructureDefinition/Observation)) additional types from child elements (reference)
comment:
  v: Element `AllergyIntolerance.reaction.manifestation` is mapped to FHIR STU3 element `AllergyIntolerance.reaction.manifestation` as `SourceIsBroaderThanTarget`. The mappings for `AllergyIntolerance.reaction.manifestation` do not cover the following types: CodeableReference. The mappings for `AllergyIntolerance.reaction.manifestation` do not cover the following types based on type expansion: reference. 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.
min:
  v: 1
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.reaction.manifestation|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.reaction.manifestation

id:
  v: AllergyIntolerance.reaction.manifestation.coding
path:
  v: AllergyIntolerance.reaction.manifestation.coding
short:
  v: Code defined by a terminology system
definition:
  v: A reference to a code defined by a terminology system.
comment:
  v: Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.
requirements:
  v: Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: AllergyIntolerance.reaction.manifestation.text
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: AllergyIntolerance.reaction.manifestation.text
short:
  v: Plain text representation of the concept
definition:
  v: A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
comment:
  v: Very often the text is the same as a displayName of one of the codings.
requirements:
  v: The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.9. But note many systems use C*E.2 for this
mapping:
  identity:
    v: rim
  map:
    v: ./originalText[mediaType/code="text/plain"]/data
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText

id:
  v: AllergyIntolerance.reaction.description
path:
  v: AllergyIntolerance.reaction.description
short:
  v: Description of the event as a whole
definition:
  v: Text description about the reaction as a whole, including details of the manifestation if required.
comment:
  v: 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:
  v: Narrative
alias:
  v: Text
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AllergyIntolerance.reaction.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: text

id:
  v: AllergyIntolerance.reaction.onset
path:
  v: AllergyIntolerance.reaction.onset
short:
  v: Date(/time) when manifestations showed
definition:
  v: Record of the date and/or time of the onset of the Reaction.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AllergyIntolerance.reaction.onset
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: v2
  map:
    v: AL1-6
mapping:
  identity:
    v: rim
  map:
    v: effectiveTime.low

id:
  v: AllergyIntolerance.reaction.severity
path:
  v: AllergyIntolerance.reaction.severity
short:
  v: mild | moderate | severe (of event as a whole)
definition:
  v: Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations.
comment:
  v: 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:
  v: 0
max:
  v: 1
base:
  path:
    v: AllergyIntolerance.reaction.severity
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: AllergyIntoleranceSeverity
  strength:
    v: required
  description:
    v: Clinical assessment of the severity of a reaction event as a whole, potentially considering multiple different manifestations.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/reaction-event-severity|3.0.2
mapping:
  identity:
    v: rim
  map:
    v: inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV, value <= SeverityObservation (Severity Level)]

id:
  v: AllergyIntolerance.reaction.exposureRoute
path:
  v: AllergyIntolerance.reaction.exposureRoute
short:
  v: How the subject was exposed to the substance
definition:
  v: Identification of the route by which the subject was exposed to the substance.
comment:
  v: Coding of the route of exposure with a terminology should be used wherever possible.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AllergyIntolerance.reaction.exposureRoute
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: RouteOfAdministration
  strength:
    v: example
  description:
    v: A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/route-codes|3.0.2
mapping:
  identity:
    v: rim
  map:
    v: outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].routeCode

id:
  v: AllergyIntolerance.reaction.note
path:
  v: AllergyIntolerance.reaction.note
short:
  v: Text about event not captured in other fields
definition:
  v: Additional text about the adverse reaction event not captured in other fields.
comment:
  v: 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:
  v: 0
max:
  v: *
base:
  path:
    v: AllergyIntolerance.reaction.note
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Annotation
    l: Annotation
mapping:
  identity:
    v: rim
  map:
    v: subjectOf.observationEvent[code="annotation"].value

element:
  id:
    v: AllergyIntolerance
  path:
    v: AllergyIntolerance
element:
  id:
    v: AllergyIntolerance.extension
  path:
    v: AllergyIntolerance.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 0
  max:
    v: *
element:
  id:
    v: AllergyIntolerance.extension:encounter
  path:
    v: AllergyIntolerance.extension
  slice name:
    v: encounter
  short:
    v: R5: Encounter when the allergy or intolerance was asserted (new)
  definition:
    v: R5: `AllergyIntolerance.encounter` (new:Reference(Encounter))
  comment:
    v: Element `AllergyIntolerance.encounter` has a context of AllergyIntolerance based on following the parent source element upwards and mapping to `AllergyIntolerance`. Element `AllergyIntolerance.encounter` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
  min:
    v: 0
  max:
    v: 1
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.encounter|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.encounter
element:
  id:
    v: AllergyIntolerance.extension:participant
  path:
    v: AllergyIntolerance.extension
  slice name:
    v: participant
  short:
    v: R5: Who or what participated in the activities related to the allergy or intolerance and how they were involved (new)
  definition:
    v: R5: `AllergyIntolerance.participant` (new:BackboneElement)
  comment:
    v: Element `AllergyIntolerance.participant` has a context of AllergyIntolerance based on following the parent source element upwards and mapping to `AllergyIntolerance`. Element `AllergyIntolerance.participant` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
  min:
    v: 0
  max:
    v: *
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.participant|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.participant
element:
  id:
    v: AllergyIntolerance.clinicalStatus.extension
  path:
    v: AllergyIntolerance.clinicalStatus.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 0
  max:
    v: *
element:
  id:
    v: AllergyIntolerance.clinicalStatus.extension:clinicalStatus
  path:
    v: AllergyIntolerance.clinicalStatus.extension
  slice name:
    v: clinicalStatus
  short:
    v: R5: clinicalStatus additional types
  definition:
    v: R5: `AllergyIntolerance.clinicalStatus` additional types (CodeableConcept) additional types from child elements (coding)
  comment:
    v: Element `AllergyIntolerance.clinicalStatus` is mapped to FHIR STU3 element `AllergyIntolerance.clinicalStatus` as `SourceIsBroaderThanTarget`. The mappings for `AllergyIntolerance.clinicalStatus` do not cover the following types: CodeableConcept. The mappings for `AllergyIntolerance.clinicalStatus` do not cover the following types based on type expansion: coding. The target context `AllergyIntolerance.clinicalStatus` is a modifier element, so this extension does not need to be defined as a modifier. AllergyIntolerance.clinicalStatus should be present if verificationStatus is not entered-in-error and the AllergyIntolerance.code isn't negated (No Known Allergy, No Drug Allergy, No Food Allergy, No Latex Allergy). Refer to [discussion](https://hl7.org/fhir/extensibility.html#Special-Case) if clinicalStatus is missing data. The data type is CodeableConcept because clinicalStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity.
  min:
    v: 0
  max:
    v: 1
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.clinicalStatus|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.clinicalStatus
element:
  id:
    v: AllergyIntolerance.verificationStatus.extension
  path:
    v: AllergyIntolerance.verificationStatus.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 0
  max:
    v: *
element:
  id:
    v: AllergyIntolerance.verificationStatus.extension:verificationStatus
  path:
    v: AllergyIntolerance.verificationStatus.extension
  slice name:
    v: verificationStatus
  short:
    v: R5: unconfirmed | presumed | confirmed | refuted | entered-in-error additional types
  definition:
    v: R5: `AllergyIntolerance.verificationStatus` additional types (CodeableConcept) additional types from child elements (coding)
  comment:
    v: Element `AllergyIntolerance.verificationStatus` is mapped to FHIR STU3 element `AllergyIntolerance.verificationStatus` as `SourceIsBroaderThanTarget`. The mappings for `AllergyIntolerance.verificationStatus` do not cover the following types: CodeableConcept. The mappings for `AllergyIntolerance.verificationStatus` do not cover the following types based on type expansion: coding. The target context `AllergyIntolerance.verificationStatus` is a modifier element, so this extension does not need to be defined as a modifier. The data type is CodeableConcept because verificationStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity.
  min:
    v: 0
  max:
    v: 1
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.verificationStatus|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.verificationStatus
element:
  id:
    v: AllergyIntolerance.type.extension
  path:
    v: AllergyIntolerance.type.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open

v: 0

v: *

id:
  v: AllergyIntolerance.type.extension:type
path:
  v: AllergyIntolerance.type.extension
slice name:
  v: type
short:
  v: R5: type additional types
definition:
  v: R5: `AllergyIntolerance.type` additional types (CodeableConcept) additional types from child elements (coding)
comment:
  v: Element `AllergyIntolerance.type` is mapped to FHIR STU3 element `AllergyIntolerance.type` as `SourceIsBroaderThanTarget`. The mappings for `AllergyIntolerance.type` do not cover the following types: CodeableConcept. The mappings for `AllergyIntolerance.type` do not cover the following types based on type expansion: coding. 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 might 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 might 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.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.type|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.type

id:
  v: AllergyIntolerance.patient.extension
path:
  v: AllergyIntolerance.patient.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: AllergyIntolerance.patient.extension:patient
path:
  v: AllergyIntolerance.patient.extension
slice name:
  v: patient
short:
  v: R5: Who the allergy or intolerance is for additional types
definition:
  v: R5: `AllergyIntolerance.patient` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `AllergyIntolerance.patient` is mapped to FHIR STU3 element `AllergyIntolerance.patient` as `SourceIsBroaderThanTarget`. The mappings for `AllergyIntolerance.patient` do not cover the following types based on type expansion: display, identifier, reference, type. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `AllergyIntolerance.patient` with unmapped reference targets: Patient.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/alternate-reference
    l: alternate-reference

id:
  v: AllergyIntolerance.reaction.manifestation.extension
path:
  v: AllergyIntolerance.reaction.manifestation.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: AllergyIntolerance.reaction.manifestation.extension:manifestation
path:
  v: AllergyIntolerance.reaction.manifestation.extension
slice name:
  v: manifestation
short:
  v: R5: manifestation additional types
definition:
  v: R5: `AllergyIntolerance.reaction.manifestation` additional types (CodeableReference(http://hl7.org/fhir/StructureDefinition/Observation)) additional types from child elements (reference)
comment:
  v: Element `AllergyIntolerance.reaction.manifestation` is mapped to FHIR STU3 element `AllergyIntolerance.reaction.manifestation` as `SourceIsBroaderThanTarget`. The mappings for `AllergyIntolerance.reaction.manifestation` do not cover the following types: CodeableReference. The mappings for `AllergyIntolerance.reaction.manifestation` do not cover the following types based on type expansion: reference. 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.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.reaction.manifestation|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AllergyIntolerance.reaction.manifestation