profile-AdverseEvent
type: StructureDefinition
node role: treeRoot
id:
  v: profile-AdverseEvent
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition profile-AdverseEvent Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> AdverseEvent 0..* AdverseEvent Medical care, research study or other healthcare event causing physical injury #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: The Encounter associated with the start of the AdverseEvent (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.encounter #xD; extension:occurrence 0..1 Period, Timing R5: When the event occurred additional types URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.occurrence #xD; extension:detected 0..1 dateTime R5: When the event was detected (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.detected #xD; extension:recordedDate 0..1 dateTime R5: When the event was recorded (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.recordedDate #xD; extension:participant 0..* (Complex) R5: Who was involved in the adverse event or the potential adverse event and what they did (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.participant #xD; extension:expectedInResearchStudy 0..1 boolean R5: Considered likely or probable or anticipated in the research study (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.expectedInResearchStudy #xD; extension:contributingFactor 0..* (Complex) R5: Contributing factors suspected to have increased the probability or severity of the adverse event (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.contributingFactor #xD; extension:preventiveAction 0..* (Complex) R5: Preventive actions that contributed to avoiding the adverse event (new) URL: http://hl7.org/fhir/5.0/StructureDe…
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-AdverseEvent
  l: profile-AdverseEvent
version:
  v: 0.1.0
name:
  v: Profile_R5_AdverseEvent_R3
title:
  v: Cross-version Profile for R5.AdverseEvent for use in FHIR STU3
status:
  v: active
experimental:
  v: false
date:
  v: 2026-03-17T16:05:12.8280623-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 AdverseEvent content to be represented via FHIR STU3 AdverseEvent 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: w5
  uri:
    v: http://hl7.org/fhir/w5
    l: w5
  name:
    v: W5 Mapping
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: AdverseEvent
base definition:
  v: http://hl7.org/fhir/StructureDefinition/AdverseEvent
  l: AdverseEvent
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: AdverseEvent
    path:
      v: AdverseEvent
    short:
      v: Medical care, research study or other healthcare event causing physical injury
    definition:
      v: Actual or potential/avoided event causing unintended physical injury resulting from or contributed to by medical care, a research study or other healthcare setting factors that requires additional monitoring, treatment, or hospitalization, or that results in death.
    alias:
      v: AE
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: AdverseEvent
      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
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
      expression:
        v: contained.where(('#'+id in %resource.descendants().reference).not()).empty()
      xpath:
        v: not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    mapping:
      identity:
        v: rim

v: Entity. Role, or Act

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

id:
  v: AdverseEvent.id
path:
  v: AdverseEvent.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: AdverseEvent.meta
path:
  v: AdverseEvent.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: AdverseEvent.implicitRules
path:
  v: AdverseEvent.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: AdverseEvent.language
path:
  v: AdverseEvent.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: AdverseEvent.text
path:
  v: AdverseEvent.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: AdverseEvent.contained
path:
  v: AdverseEvent.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: AdverseEvent.extension
path:
  v: AdverseEvent.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: AdverseEvent.extension:encounter
path:
  v: AdverseEvent.extension
slice name:
  v: encounter
short:
  v: R5: The Encounter associated with the start of the AdverseEvent (new)
definition:
  v: R5: `AdverseEvent.encounter` (new:Reference(Encounter))
comment:
  v: Element `AdverseEvent.encounter` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.encounter` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter. For example, if a medication administration was considered an adverse event because it resulted in a rash, then the encounter when the medication administration was given is the associated encounter. If the patient reports the AdverseEvent during a second encounter, that second encounter is not the associated encounter.
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-AdverseEvent.encounter|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.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: AdverseEvent.extension:occurrence
path:
  v: AdverseEvent.extension
slice name:
  v: occurrence
short:
  v: R5: When the event occurred additional types
definition:
  v: R5: `AdverseEvent.occurrence[x]` additional types (Period, Timing)
comment:
  v: Element `AdverseEvent.occurrence[x]` is mapped to FHIR STU3 element `AdverseEvent.date` as `SourceIsBroaderThanTarget`. The mappings for `AdverseEvent.occurrence[x]` do not cover the following types: Period, Timing.
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-AdverseEvent.occurrence|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.occurrence
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: AdverseEvent.extension:detected
path:
  v: AdverseEvent.extension
slice name:
  v: detected
short:
  v: R5: When the event was detected (new)
definition:
  v: R5: `AdverseEvent.detected` (new:dateTime)
comment:
  v: Element `AdverseEvent.detected` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.detected` 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-AdverseEvent.detected|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.detected
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: AdverseEvent.extension:recordedDate
path:
  v: AdverseEvent.extension
slice name:
  v: recordedDate
short:
  v: R5: When the event was recorded (new)
definition:
  v: R5: `AdverseEvent.recordedDate` (new:dateTime)
comment:
  v: Element `AdverseEvent.recordedDate` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.recordedDate` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). The recordedDate represents the date when this particular AdverseEvent record was created in the system, not the date of the most recent update. The date of the last record modification can be retrieved from the resource metadata.
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-AdverseEvent.recordedDate|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.recordedDate
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: AdverseEvent.extension:participant
path:
  v: AdverseEvent.extension
slice name:
  v: participant
short:
  v: R5: Who was involved in the adverse event or the potential adverse event and what they did (new)
definition:
  v: R5: `AdverseEvent.participant` (new:BackboneElement)
comment:
  v: Element `AdverseEvent.participant` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.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-AdverseEvent.participant|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.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: AdverseEvent.extension:expectedInResearchStudy
path:
  v: AdverseEvent.extension
slice name:
  v: expectedInResearchStudy
short:
  v: R5: Considered likely or probable or anticipated in the research study (new)
definition:
  v: R5: `AdverseEvent.expectedInResearchStudy` (new:boolean)
comment:
  v: Element `AdverseEvent.expectedInResearchStudy` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.expectedInResearchStudy` 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-AdverseEvent.expectedInResearchStudy|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.expectedInResearchStudy
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: AdverseEvent.extension:contributingFactor
path:
  v: AdverseEvent.extension
slice name:
  v: contributingFactor
short:
  v: R5: Contributing factors suspected to have increased the probability or severity of the adverse event (new)
definition:
  v: R5: `AdverseEvent.contributingFactor` (new:BackboneElement)
comment:
  v: Element `AdverseEvent.contributingFactor` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.contributingFactor` 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-AdverseEvent.contributingFactor|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.contributingFactor
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: AdverseEvent.extension:preventiveAction
path:
  v: AdverseEvent.extension
slice name:
  v: preventiveAction
short:
  v: R5: Preventive actions that contributed to avoiding the adverse event (new)
definition:
  v: R5: `AdverseEvent.preventiveAction` (new:BackboneElement)
comment:
  v: Element `AdverseEvent.preventiveAction` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.preventiveAction` 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-AdverseEvent.preventiveAction|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.preventiveAction
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: AdverseEvent.extension:mitigatingAction
path:
  v: AdverseEvent.extension
slice name:
  v: mitigatingAction
short:
  v: R5: Ameliorating actions taken after the adverse event occured in order to reduce the extent of harm (new)
definition:
  v: R5: `AdverseEvent.mitigatingAction` (new:BackboneElement)
comment:
  v: Element `AdverseEvent.mitigatingAction` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.mitigatingAction` 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-AdverseEvent.mitigatingAction|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.mitigatingAction
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: AdverseEvent.extension:supportingInfo
path:
  v: AdverseEvent.extension
slice name:
  v: supportingInfo
short:
  v: R5: Supporting information relevant to the event (new)
definition:
  v: R5: `AdverseEvent.supportingInfo` (new:BackboneElement)
comment:
  v: Element `AdverseEvent.supportingInfo` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.supportingInfo` 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-AdverseEvent.supportingInfo|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.supportingInfo
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: AdverseEvent.extension:note
path:
  v: AdverseEvent.extension
slice name:
  v: note
short:
  v: R5: Comment on adverse event (new)
definition:
  v: R5: `AdverseEvent.note` (new:Annotation)
comment:
  v: Element `AdverseEvent.note` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.note` 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-AdverseEvent.note|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.note
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: AdverseEvent.modifierExtension
path:
  v: AdverseEvent.modifierExtension
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.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true

id:
  v: AdverseEvent.modifierExtension:status
path:
  v: AdverseEvent.modifierExtension
slice name:
  v: status
short:
  v: R5: in-progress | completed | entered-in-error | unknown (new)
definition:
  v: R5: `AdverseEvent.status` (new:code)
comment:
  v: Element `AdverseEvent.status` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.status` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). This is not the reporting of the event to any regulatory or quality organization. This is not the outcome of the patient's condition.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.status|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.status
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: true

id:
  v: AdverseEvent.identifier
path:
  v: AdverseEvent.identifier
short:
  v: Business identifier for the event
definition:
  v: The identifier(s) of this adverse event that are assigned by business processes and/or used to refer to it when a direct URL reference to the resource itsefl is not appropriate.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
is summary:
  v: true

id:
  v: AdverseEvent.category
path:
  v: AdverseEvent.category
short:
  v: AE | PAE An adverse event is an event that caused harm to a patient, an adverse reaction is a something that is a subject-specific event that is a result of an exposure to a medication, food, device or environmental substance, a potential adverse event is something that occurred and that could have caused harm to a patient but did not
definition:
  v: The type of event which is important to characterize what occurred and caused harm to the subject, or had the potential to cause harm to the subject.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.category
  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: AdverseEventCategory
  strength:
    v: required
  description:
    v: Overall categorization of the event, e.g. real or potential
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/adverse-event-category|3.0.2
mapping:
  identity:
    v: w5
  map:
    v: class

id:
  v: AdverseEvent.category.id
path:
  v: AdverseEvent.category.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: AdverseEvent.category.extension
path:
  v: AdverseEvent.category.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: AdverseEvent.category.extension:category
path:
  v: AdverseEvent.category.extension
slice name:
  v: category
short:
  v: R5: wrong-patient | procedure-mishap | medication-mishap | device | unsafe-physical-environment | hospital-aquired-infection | wrong-body-site additional types
definition:
  v: R5: `AdverseEvent.category` additional types (CodeableConcept) additional types from child elements (coding)
comment:
  v: Element `AdverseEvent.category` is mapped to FHIR STU3 element `AdverseEvent.category` as `RelatedTo`. The mappings for `AdverseEvent.category` do not cover the following types: CodeableConcept. The mappings for `AdverseEvent.category` do not cover the following types based on type expansion: coding.
min:
  v: 0
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-AdverseEvent.category|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.category
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: AdverseEvent.category.value
path:
  v: AdverseEvent.category.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: AdverseEvent.type
path:
  v: AdverseEvent.type
short:
  v: actual | potential
definition:
  v: This element defines the specific type of event that occurred or that was prevented from occurring.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.type
  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: AdverseEventType
  strength:
    v: example
  description:
    v: Detailed type of event
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/adverse-event-type|3.0.2
mapping:
  identity:
    v: w5
  map:
    v: what

id:
  v: AdverseEvent.type.id
path:
  v: AdverseEvent.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). 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: AdverseEvent.type.extension
path:
  v: AdverseEvent.type.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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: AdverseEvent.type.coding
path:
  v: AdverseEvent.type.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: AdverseEvent.type.text
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: AdverseEvent.type.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: AdverseEvent.subject
path:
  v: AdverseEvent.subject
short:
  v: Subject or group impacted by event
definition:
  v: This subject or group impacted by the event. With a prospective adverse event, there will be no subject as the adverse event was prevented.
alias:
  v: patient
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.subject
  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/ResearchSubject
    l: ResearchSubject
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Medication
    l: Medication
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    l: Device
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: who

id:
  v: AdverseEvent.subject.id
path:
  v: AdverseEvent.subject.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: AdverseEvent.subject.extension
path:
  v: AdverseEvent.subject.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: 1
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: AdverseEvent.subject.extension:subject
path:
  v: AdverseEvent.subject.extension
slice name:
  v: subject
short:
  v: R5: Subject impacted by event
definition:
  v: R5: `AdverseEvent.subject`
comment:
  v: Element `AdverseEvent.subject` is mapped to FHIR STU3 element `AdverseEvent.subject` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `AdverseEvent.subject` with unmapped reference targets: Group, Patient, Practitioner, RelatedPerson, ResearchSubject. If AdverseEvent.resultingEffect differs among members of the group, then use Patient as the subject.
min:
  v: 1
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: AdverseEvent.subject.reference
path:
  v: AdverseEvent.subject.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: AdverseEvent.subject.identifier
path:
  v: AdverseEvent.subject.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: AdverseEvent.subject.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: AdverseEvent.subject.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: AdverseEvent.date
path:
  v: AdverseEvent.date
short:
  v: When the event occurred
definition:
  v: The date (and perhaps time) when the adverse event occurred.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.date
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: when.init

id:
  v: AdverseEvent.reaction
path:
  v: AdverseEvent.reaction
short:
  v: Adverse Reaction Events linked to exposure to substance
definition:
  v: Includes information about the reaction that occurred as a result of exposure to a substance (for example, a drug or a chemical).
min:
  v: 0
max:
  v: *
base:
  path:
    v: AdverseEvent.reaction
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Condition
    l: Condition
is summary:
  v: true

id:
  v: AdverseEvent.reaction.id
path:
  v: AdverseEvent.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: AdverseEvent.reaction.extension
path:
  v: AdverseEvent.reaction.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: AdverseEvent.reaction.extension:resultingEffect
path:
  v: AdverseEvent.reaction.extension
slice name:
  v: resultingEffect
short:
  v: R5: Effect on the subject due to this event additional types
definition:
  v: R5: `AdverseEvent.resultingEffect` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `AdverseEvent.resultingEffect` is mapped to FHIR STU3 element `AdverseEvent.reaction` as `SourceIsBroaderThanTarget`. The mappings for `AdverseEvent.resultingEffect` 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 `AdverseEvent.resultingEffect` with unmapped reference targets: Condition, Observation.
min:
  v: 0
max:
  v: *
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: AdverseEvent.reaction.reference
path:
  v: AdverseEvent.reaction.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: AdverseEvent.reaction.identifier
path:
  v: AdverseEvent.reaction.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: AdverseEvent.reaction.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: AdverseEvent.reaction.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: AdverseEvent.location
path:
  v: AdverseEvent.location
short:
  v: Location where adverse event occurred
definition:
  v: The information about where the adverse event occurred.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.location
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Location
    l: Location
is summary:
  v: true

id:
  v: AdverseEvent.location.id
path:
  v: AdverseEvent.location.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: AdverseEvent.location.extension
path:
  v: AdverseEvent.location.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: AdverseEvent.location.extension:location
path:
  v: AdverseEvent.location.extension
slice name:
  v: location
short:
  v: R5: location additional types
definition:
  v: R5: `AdverseEvent.location` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `AdverseEvent.location` is mapped to FHIR STU3 element `AdverseEvent.location` as `SourceIsBroaderThanTarget`. The mappings for `AdverseEvent.location` 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 `AdverseEvent.location` with unmapped reference targets: Location.
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: AdverseEvent.location.reference
path:
  v: AdverseEvent.location.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: AdverseEvent.location.identifier
path:
  v: AdverseEvent.location.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: AdverseEvent.location.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: AdverseEvent.location.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: AdverseEvent.seriousness
path:
  v: AdverseEvent.seriousness
short:
  v: Mild | Moderate | Severe
definition:
  v: Describes the seriousness or severity of the adverse event.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.seriousness
  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: AdverseEventSeriousness
  strength:
    v: example
  description:
    v: Overall seriousness of this event for the patient
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/adverse-event-seriousness|3.0.2

id:
  v: AdverseEvent.outcome
path:
  v: AdverseEvent.outcome
short:
  v: resolved | recovering | ongoing | resolvedWithSequelae | fatal | unknown
definition:
  v: Describes the type of outcome from the adverse event.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.outcome
  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: AdverseEventOutcome
  strength:
    v: required
  description:
    v: TODO (and should this be required?)
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/adverse-event-outcome|3.0.2

id:
  v: AdverseEvent.recorder
path:
  v: AdverseEvent.recorder
short:
  v: Who recorded the adverse event
definition:
  v: Information on who recorded the adverse event. May be the patient or a practitioner.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.recorder
  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/Practitioner
    l: Practitioner
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    l: RelatedPerson
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: who.author

id:
  v: AdverseEvent.recorder.id
path:
  v: AdverseEvent.recorder.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: AdverseEvent.recorder.extension
path:
  v: AdverseEvent.recorder.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: AdverseEvent.recorder.extension:recorder
path:
  v: AdverseEvent.recorder.extension
slice name:
  v: recorder
short:
  v: R5: recorder
definition:
  v: R5: `AdverseEvent.recorder`
comment:
  v: Element `AdverseEvent.recorder` is mapped to FHIR STU3 element `AdverseEvent.recorder` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `AdverseEvent.recorder` with unmapped reference targets: Patient, Practitioner, PractitionerRole, RelatedPerson, ResearchSubject.
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: AdverseEvent.recorder.reference
path:
  v: AdverseEvent.recorder.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: AdverseEvent.recorder.identifier
path:
  v: AdverseEvent.recorder.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: AdverseEvent.recorder.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: AdverseEvent.recorder.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: AdverseEvent.eventParticipant
path:
  v: AdverseEvent.eventParticipant
short:
  v: Who was involved in the adverse event or the potential adverse event
definition:
  v: Parties that may or should contribute or have contributed information to the Act. Such information includes information leading to the decision to perform the Act and how to perform the Act (e.g. consultant), information that the Act itself seeks to reveal (e.g. informant of clinical history), or information about what Act was performed (e.g. informant witness).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.eventParticipant
  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/Device
    l: Device
is summary:
  v: true

id:
  v: AdverseEvent.description
path:
  v: AdverseEvent.description
short:
  v: Description of the adverse event
definition:
  v: Describes the adverse event in text.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: AdverseEvent.suspectEntity
path:
  v: AdverseEvent.suspectEntity
short:
  v: The suspected agent causing the adverse event
definition:
  v: Describes the entity that is suspected to have caused the adverse event.
min:
  v: 0
max:
  v: *
base:
  path:
    v: AdverseEvent.suspectEntity
  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
is summary:
  v: true

id:
  v: AdverseEvent.suspectEntity.id
path:
  v: AdverseEvent.suspectEntity.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: AdverseEvent.suspectEntity.extension
path:
  v: AdverseEvent.suspectEntity.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: AdverseEvent.suspectEntity.modifierExtension
path:
  v: AdverseEvent.suspectEntity.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: AdverseEvent.suspectEntity.instance
path:
  v: AdverseEvent.suspectEntity.instance
short:
  v: Refers to the specific entity that caused the adverse event
definition:
  v: Identifies the actual instance of what caused the adverse event. May be a substance, medication, medication administration, medication statement or a device.
alias:
  v: Substance or Medication or Device
min:
  v: 1
max:
  v: 1
base:
  path:
    v: AdverseEvent.suspectEntity.instance
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Substance
    l: Substance
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Medication
    l: Medication
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/MedicationAdministration
    l: MedicationAdministration
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/MedicationStatement
    l: MedicationStatement
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    l: Device
is summary:
  v: true

id:
  v: AdverseEvent.suspectEntity.instance.id
path:
  v: AdverseEvent.suspectEntity.instance.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: AdverseEvent.suspectEntity.instance.extension
path:
  v: AdverseEvent.suspectEntity.instance.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: AdverseEvent.suspectEntity.instance.extension:instance
path:
  v: AdverseEvent.suspectEntity.instance.extension
slice name:
  v: instance
short:
  v: R5: instance additional types
definition:
  v: R5: `AdverseEvent.suspectEntity.instance[x]` additional types (CodeableConcept)
comment:
  v: Element `AdverseEvent.suspectEntity.instance[x]` is mapped to FHIR STU3 element `AdverseEvent.suspectEntity.instance` as `SourceIsBroaderThanTarget`. The mappings for `AdverseEvent.suspectEntity.instance[x]` do not cover the following types: CodeableConcept. The standard extension `alternate-reference` has been mapped as PART of the representation of FHIR R5 element `AdverseEvent.suspectEntity.instance[x]` with unmapped reference targets: BiologicallyDerivedProduct, Device, Immunization, Medication, MedicationAdministration, MedicationStatement, Procedure, ResearchStudy, Substance.
min:
  v: 1
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-AdverseEvent.suspectEntity.instance|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.suspectEntity.instance

id:
  v: AdverseEvent.suspectEntity.instance.extension:instanceAlternateReference
path:
  v: AdverseEvent.suspectEntity.instance.extension
slice name:
  v: instanceAlternateReference
short:
  v: R5: instance additional types
definition:
  v: R5: `AdverseEvent.suspectEntity.instance[x]` additional types (CodeableConcept)
comment:
  v: Element `AdverseEvent.suspectEntity.instance[x]` is mapped to FHIR STU3 element `AdverseEvent.suspectEntity.instance` as `SourceIsBroaderThanTarget`. The mappings for `AdverseEvent.suspectEntity.instance[x]` do not cover the following types: CodeableConcept. The standard extension `alternate-reference` has been mapped as PART of the representation of FHIR R5 element `AdverseEvent.suspectEntity.instance[x]` with unmapped reference targets: BiologicallyDerivedProduct, Device, Immunization, Medication, MedicationAdministration, MedicationStatement, Procedure, ResearchStudy, Substance.
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: AdverseEvent.suspectEntity.instance.reference
path:
  v: AdverseEvent.suspectEntity.instance.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: AdverseEvent.suspectEntity.instance.identifier
path:
  v: AdverseEvent.suspectEntity.instance.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: AdverseEvent.suspectEntity.instance.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: AdverseEvent.suspectEntity.instance.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: AdverseEvent.suspectEntity.causality
path:
  v: AdverseEvent.suspectEntity.causality
short:
  v: causality1 | causality2
definition:
  v: causality1 | causality2.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.suspectEntity.causality
  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: AdverseEventCausality
  strength:
    v: required
  description:
    v: TODO
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/adverse-event-causality|3.0.2

id:
  v: AdverseEvent.suspectEntity.causalityAssessment
path:
  v: AdverseEvent.suspectEntity.causalityAssessment
short:
  v: assess1 | assess2
definition:
  v: assess1 | assess2.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.suspectEntity.causalityAssessment
  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: AdverseEventCausalityAssessment
  strength:
    v: example
  description:
    v: TODO
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/adverse-event-causality-assess|3.0.2

id:
  v: AdverseEvent.suspectEntity.causalityProductRelatedness
path:
  v: AdverseEvent.suspectEntity.causalityProductRelatedness
short:
  v: AdverseEvent.suspectEntity.causalityProductRelatedness
definition:
  v: AdverseEvent.suspectEntity.causalityProductRelatedness.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.suspectEntity.causalityProductRelatedness
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: AdverseEvent.suspectEntity.causalityProductRelatedness.id
path:
  v: AdverseEvent.suspectEntity.causalityProductRelatedness.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: AdverseEvent.suspectEntity.causalityProductRelatedness.extension
path:
  v: AdverseEvent.suspectEntity.causalityProductRelatedness.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: AdverseEvent.suspectEntity.causalityProductRelatedness.extension:entityRelatedness
path:
  v: AdverseEvent.suspectEntity.causalityProductRelatedness.extension
slice name:
  v: entityRelatedness
short:
  v: R5: Result of the assessment regarding the relatedness of the suspected entity to the event additional types
definition:
  v: R5: `AdverseEvent.suspectEntity.causality.entityRelatedness` additional types (CodeableConcept) additional types from child elements (coding)
comment:
  v: Element `AdverseEvent.suspectEntity.causality.entityRelatedness` is mapped to FHIR STU3 element `AdverseEvent.suspectEntity.causalityProductRelatedness` as `SourceIsBroaderThanTarget`. The mappings for `AdverseEvent.suspectEntity.causality.entityRelatedness` do not cover the following types: CodeableConcept. The mappings for `AdverseEvent.suspectEntity.causality.entityRelatedness` do not cover the following types based on type expansion: coding.
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-AdverseEvent.suspectEntity.causality.entityRelatedness|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.suspectEntity.causality.entityRelatedness
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: AdverseEvent.suspectEntity.causalityProductRelatedness.value
path:
  v: AdverseEvent.suspectEntity.causalityProductRelatedness.value
representation:
  v: xmlAttr
short:
  v: Primitive value for string
definition:
  v: The actual value
min:
  v: 0
max:
  v: 1
base:
  path:
    v: string.value
  min:
    v: 0
  max:
    v: 1
type:
  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:string
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type
        l: structuredefinition-rdf-type
      value: String
        v: xsd:string
max length:
  v: 1048576

id:
  v: AdverseEvent.suspectEntity.causalityMethod
path:
  v: AdverseEvent.suspectEntity.causalityMethod
short:
  v: method1 | method2
definition:
  v: method1 | method2.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.suspectEntity.causalityMethod
  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: AdverseEventCausalityMethod
  strength:
    v: example
  description:
    v: TODO
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/adverse-event-causality-method|3.0.2

id:
  v: AdverseEvent.suspectEntity.causalityAuthor
path:
  v: AdverseEvent.suspectEntity.causalityAuthor
short:
  v: AdverseEvent.suspectEntity.causalityAuthor
definition:
  v: AdverseEvent.suspectEntity.causalityAuthor.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.suspectEntity.causalityAuthor
  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/PractitionerRole
    l: PractitionerRole
is summary:
  v: true

id:
  v: AdverseEvent.suspectEntity.causalityAuthor.id
path:
  v: AdverseEvent.suspectEntity.causalityAuthor.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: AdverseEvent.suspectEntity.causalityAuthor.extension
path:
  v: AdverseEvent.suspectEntity.causalityAuthor.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: AdverseEvent.suspectEntity.causalityAuthor.extension:author
path:
  v: AdverseEvent.suspectEntity.causalityAuthor.extension
slice name:
  v: author
short:
  v: R5: Author of the information on the possible cause of the event
definition:
  v: R5: `AdverseEvent.suspectEntity.causality.author`
comment:
  v: Element `AdverseEvent.suspectEntity.causality.author` is mapped to FHIR STU3 element `AdverseEvent.suspectEntity.causalityAuthor` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `AdverseEvent.suspectEntity.causality.author` with unmapped reference targets: Patient, Practitioner, PractitionerRole, RelatedPerson, ResearchSubject.
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: AdverseEvent.suspectEntity.causalityAuthor.reference
path:
  v: AdverseEvent.suspectEntity.causalityAuthor.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: AdverseEvent.suspectEntity.causalityAuthor.identifier
path:
  v: AdverseEvent.suspectEntity.causalityAuthor.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: AdverseEvent.suspectEntity.causalityAuthor.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: AdverseEvent.suspectEntity.causalityAuthor.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: AdverseEvent.suspectEntity.causalityResult
path:
  v: AdverseEvent.suspectEntity.causalityResult
short:
  v: result1 | result2
definition:
  v: result1 | result2.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.suspectEntity.causalityResult
  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: AdverseEventCausalityResult
  strength:
    v: example
  description:
    v: TODO
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/adverse-event-causality-result|3.0.2

id:
  v: AdverseEvent.subjectMedicalHistory
path:
  v: AdverseEvent.subjectMedicalHistory
short:
  v: AdverseEvent.subjectMedicalHistory
definition:
  v: AdverseEvent.subjectMedicalHistory.
min:
  v: 0
max:
  v: *
base:
  path:
    v: AdverseEvent.subjectMedicalHistory
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Condition
    l: Condition
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Observation
    l: Observation
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/AllergyIntolerance
    l: AllergyIntolerance
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory
    l: FamilyMemberHistory
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Immunization
    l: Immunization
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Procedure
    l: Procedure
is summary:
  v: true

id:
  v: AdverseEvent.referenceDocument
path:
  v: AdverseEvent.referenceDocument
short:
  v: AdverseEvent.referenceDocument
definition:
  v: AdverseEvent.referenceDocument.
min:
  v: 0
max:
  v: *
base:
  path:
    v: AdverseEvent.referenceDocument
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DocumentReference
    l: DocumentReference
is summary:
  v: true

id:
  v: AdverseEvent.study
path:
  v: AdverseEvent.study
short:
  v: AdverseEvent.study
definition:
  v: AdverseEvent.study.
min:
  v: 0
max:
  v: *
base:
  path:
    v: AdverseEvent.study
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ResearchStudy
    l: ResearchStudy
is summary:
  v: true

id:
  v: AdverseEvent.study.id
path:
  v: AdverseEvent.study.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: AdverseEvent.study.extension
path:
  v: AdverseEvent.study.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: AdverseEvent.study.extension:study
path:
  v: AdverseEvent.study.extension
slice name:
  v: study
short:
  v: R5: Research study that the subject is enrolled in additional types
definition:
  v: R5: `AdverseEvent.study` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `AdverseEvent.study` is mapped to FHIR STU3 element `AdverseEvent.study` as `SourceIsBroaderThanTarget`. The mappings for `AdverseEvent.study` 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 `AdverseEvent.study` with unmapped reference targets: ResearchStudy.
min:
  v: 0
max:
  v: *
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: AdverseEvent.study.reference
path:
  v: AdverseEvent.study.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: AdverseEvent.study.identifier
path:
  v: AdverseEvent.study.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: AdverseEvent.study.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: AdverseEvent.study.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

element:
  id:
    v: AdverseEvent
  path:
    v: AdverseEvent
element:
  id:
    v: AdverseEvent.extension
  path:
    v: AdverseEvent.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 0
  max:
    v: *
element:
  id:
    v: AdverseEvent.extension:encounter
  path:
    v: AdverseEvent.extension
  slice name:
    v: encounter
  short:
    v: R5: The Encounter associated with the start of the AdverseEvent (new)
  definition:
    v: R5: `AdverseEvent.encounter` (new:Reference(Encounter))
  comment:
    v: Element `AdverseEvent.encounter` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.encounter` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter. For example, if a medication administration was considered an adverse event because it resulted in a rash, then the encounter when the medication administration was given is the associated encounter. If the patient reports the AdverseEvent during a second encounter, that second encounter is not the associated encounter.
  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-AdverseEvent.encounter|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.encounter
element:
  id:
    v: AdverseEvent.extension:occurrence
  path:
    v: AdverseEvent.extension
  slice name:
    v: occurrence
  short:
    v: R5: When the event occurred additional types
  definition:
    v: R5: `AdverseEvent.occurrence[x]` additional types (Period, Timing)
  comment:
    v: Element `AdverseEvent.occurrence[x]` is mapped to FHIR STU3 element `AdverseEvent.date` as `SourceIsBroaderThanTarget`. The mappings for `AdverseEvent.occurrence[x]` do not cover the following types: Period, Timing.
  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-AdverseEvent.occurrence|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.occurrence
element:
  id:
    v: AdverseEvent.extension:detected
  path:
    v: AdverseEvent.extension
  slice name:
    v: detected
  short:
    v: R5: When the event was detected (new)
  definition:
    v: R5: `AdverseEvent.detected` (new:dateTime)
  comment:
    v: Element `AdverseEvent.detected` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.detected` 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-AdverseEvent.detected|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.detected
element:
  id:
    v: AdverseEvent.extension:recordedDate
  path:
    v: AdverseEvent.extension
  slice name:
    v: recordedDate
  short:
    v: R5: When the event was recorded (new)
  definition:
    v: R5: `AdverseEvent.recordedDate` (new:dateTime)
  comment:
    v: Element `AdverseEvent.recordedDate` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.recordedDate` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). The recordedDate represents the date when this particular AdverseEvent record was created in the system, not the date of the most recent update. The date of the last record modification can be retrieved from the resource metadata.
  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-AdverseEvent.recordedDate|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.recordedDate
element:
  id:
    v: AdverseEvent.extension:participant
  path:
    v: AdverseEvent.extension
  slice name:
    v: participant
  short:
    v: R5: Who was involved in the adverse event or the potential adverse event and what they did (new)
  definition:
    v: R5: `AdverseEvent.participant` (new:BackboneElement)
  comment:
    v: Element `AdverseEvent.participant` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.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-AdverseEvent.participant|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.participant
element:
  id:
    v: AdverseEvent.extension:expectedInResearchStudy
  path:
    v: AdverseEvent.extension
  slice name:
    v: expectedInResearchStudy
  short:
    v: R5: Considered likely or probable or anticipated in the research study (new)
  definition:
    v: R5: `AdverseEvent.expectedInResearchStudy` (new:boolean)
  comment:
    v: Element `AdverseEvent.expectedInResearchStudy` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.expectedInResearchStudy` 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: *

code:
  v: Extension
  l: Extension
profile:
  v: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.expectedInResearchStudy|0.1.0
  l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.expectedInResearchStudy

id:
  v: AdverseEvent.extension:contributingFactor
path:
  v: AdverseEvent.extension
slice name:
  v: contributingFactor
short:
  v: R5: Contributing factors suspected to have increased the probability or severity of the adverse event (new)
definition:
  v: R5: `AdverseEvent.contributingFactor` (new:BackboneElement)
comment:
  v: Element `AdverseEvent.contributingFactor` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.contributingFactor` 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-AdverseEvent.contributingFactor|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.contributingFactor

id:
  v: AdverseEvent.extension:preventiveAction
path:
  v: AdverseEvent.extension
slice name:
  v: preventiveAction
short:
  v: R5: Preventive actions that contributed to avoiding the adverse event (new)
definition:
  v: R5: `AdverseEvent.preventiveAction` (new:BackboneElement)
comment:
  v: Element `AdverseEvent.preventiveAction` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.preventiveAction` 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-AdverseEvent.preventiveAction|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.preventiveAction

id:
  v: AdverseEvent.extension:mitigatingAction
path:
  v: AdverseEvent.extension
slice name:
  v: mitigatingAction
short:
  v: R5: Ameliorating actions taken after the adverse event occured in order to reduce the extent of harm (new)
definition:
  v: R5: `AdverseEvent.mitigatingAction` (new:BackboneElement)
comment:
  v: Element `AdverseEvent.mitigatingAction` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.mitigatingAction` 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-AdverseEvent.mitigatingAction|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.mitigatingAction

id:
  v: AdverseEvent.extension:supportingInfo
path:
  v: AdverseEvent.extension
slice name:
  v: supportingInfo
short:
  v: R5: Supporting information relevant to the event (new)
definition:
  v: R5: `AdverseEvent.supportingInfo` (new:BackboneElement)
comment:
  v: Element `AdverseEvent.supportingInfo` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.supportingInfo` 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-AdverseEvent.supportingInfo|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.supportingInfo

id:
  v: AdverseEvent.extension:note
path:
  v: AdverseEvent.extension
slice name:
  v: note
short:
  v: R5: Comment on adverse event (new)
definition:
  v: R5: `AdverseEvent.note` (new:Annotation)
comment:
  v: Element `AdverseEvent.note` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.note` 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-AdverseEvent.note|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.note

id:
  v: AdverseEvent.modifierExtension
path:
  v: AdverseEvent.modifierExtension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: AdverseEvent.modifierExtension:status
path:
  v: AdverseEvent.modifierExtension
slice name:
  v: status
short:
  v: R5: in-progress | completed | entered-in-error | unknown (new)
definition:
  v: R5: `AdverseEvent.status` (new:code)
comment:
  v: Element `AdverseEvent.status` has a context of AdverseEvent based on following the parent source element upwards and mapping to `AdverseEvent`. Element `AdverseEvent.status` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). This is not the reporting of the event to any regulatory or quality organization. This is not the outcome of the patient's condition.
min:
  v: 1
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-AdverseEvent.status|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.status

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

id:
  v: AdverseEvent.category.extension:category
path:
  v: AdverseEvent.category.extension
slice name:
  v: category
short:
  v: R5: wrong-patient | procedure-mishap | medication-mishap | device | unsafe-physical-environment | hospital-aquired-infection | wrong-body-site additional types
definition:
  v: R5: `AdverseEvent.category` additional types (CodeableConcept) additional types from child elements (coding)
comment:
  v: Element `AdverseEvent.category` is mapped to FHIR STU3 element `AdverseEvent.category` as `RelatedTo`. The mappings for `AdverseEvent.category` do not cover the following types: CodeableConcept. The mappings for `AdverseEvent.category` do not cover the following types based on type expansion: coding.
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-AdverseEvent.category|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.category

id:
  v: AdverseEvent.type.modifierExtension
path:
  v: AdverseEvent.type.modifierExtension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: AdverseEvent.type.modifierExtension:actuality
path:
  v: AdverseEvent.type.modifierExtension
slice name:
  v: actuality
short:
  v: R5: actuality
definition:
  v: R5: `AdverseEvent.actuality`
comment:
  v: Element `AdverseEvent.actuality` is mapped to FHIR STU3 element `AdverseEvent.type` as `SourceIsNarrowerThanTarget`. AllergyIntolerance should be used for the initial capture or recording of the individual's propensity to an adverse reaction to a substance. If an AllergyIntolerance does not exist, then an adverse reaction should be recorded as an AllergyIntolerance. If an AllergyIntolerance does exist and the substance was given, then an adverse reaction should be recorded as an AdverseEvent due to the aberrant workflow.
min:
  v: 1
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-AdverseEvent.actuality|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.actuality

id:
  v: AdverseEvent.subject.extension
path:
  v: AdverseEvent.subject.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 1
max:
  v: *

id:
  v: AdverseEvent.subject.extension:subject
path:
  v: AdverseEvent.subject.extension
slice name:
  v: subject
short:
  v: R5: Subject impacted by event
definition:
  v: R5: `AdverseEvent.subject`
comment:
  v: Element `AdverseEvent.subject` is mapped to FHIR STU3 element `AdverseEvent.subject` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `AdverseEvent.subject` with unmapped reference targets: Group, Patient, Practitioner, RelatedPerson, ResearchSubject. If AdverseEvent.resultingEffect differs among members of the group, then use Patient as the subject.
min:
  v: 1
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: AdverseEvent.reaction.extension
path:
  v: AdverseEvent.reaction.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: AdverseEvent.reaction.extension:resultingEffect
path:
  v: AdverseEvent.reaction.extension
slice name:
  v: resultingEffect
short:
  v: R5: Effect on the subject due to this event additional types
definition:
  v: R5: `AdverseEvent.resultingEffect` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `AdverseEvent.resultingEffect` is mapped to FHIR STU3 element `AdverseEvent.reaction` as `SourceIsBroaderThanTarget`. The mappings for `AdverseEvent.resultingEffect` 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 `AdverseEvent.resultingEffect` with unmapped reference targets: Condition, Observation.
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/StructureDefinition/alternate-reference
    l: alternate-reference

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

id:
  v: AdverseEvent.location.extension:location
path:
  v: AdverseEvent.location.extension
slice name:
  v: location
short:
  v: R5: location additional types
definition:
  v: R5: `AdverseEvent.location` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `AdverseEvent.location` is mapped to FHIR STU3 element `AdverseEvent.location` as `SourceIsBroaderThanTarget`. The mappings for `AdverseEvent.location` 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 `AdverseEvent.location` with unmapped reference targets: Location.
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: AdverseEvent.recorder.extension
path:
  v: AdverseEvent.recorder.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: AdverseEvent.recorder.extension:recorder
path:
  v: AdverseEvent.recorder.extension
slice name:
  v: recorder
short:
  v: R5: recorder
definition:
  v: R5: `AdverseEvent.recorder`
comment:
  v: Element `AdverseEvent.recorder` is mapped to FHIR STU3 element `AdverseEvent.recorder` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `AdverseEvent.recorder` with unmapped reference targets: Patient, Practitioner, PractitionerRole, RelatedPerson, ResearchSubject.
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: AdverseEvent.suspectEntity.instance.extension
path:
  v: AdverseEvent.suspectEntity.instance.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: AdverseEvent.suspectEntity.instance.extension:instance
path:
  v: AdverseEvent.suspectEntity.instance.extension
slice name:
  v: instance
short:
  v: R5: instance additional types
definition:
  v: R5: `AdverseEvent.suspectEntity.instance[x]` additional types (CodeableConcept)
comment:
  v: Element `AdverseEvent.suspectEntity.instance[x]` is mapped to FHIR STU3 element `AdverseEvent.suspectEntity.instance` as `SourceIsBroaderThanTarget`. The mappings for `AdverseEvent.suspectEntity.instance[x]` do not cover the following types: CodeableConcept. The standard extension `alternate-reference` has been mapped as PART of the representation of FHIR R5 element `AdverseEvent.suspectEntity.instance[x]` with unmapped reference targets: BiologicallyDerivedProduct, Device, Immunization, Medication, MedicationAdministration, MedicationStatement, Procedure, ResearchStudy, Substance.
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-AdverseEvent.suspectEntity.instance|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.suspectEntity.instance

id:
  v: AdverseEvent.suspectEntity.instance.extension:instanceAlternateReference
path:
  v: AdverseEvent.suspectEntity.instance.extension
slice name:
  v: instanceAlternateReference
short:
  v: R5: instance additional types
definition:
  v: R5: `AdverseEvent.suspectEntity.instance[x]` additional types (CodeableConcept)
comment:
  v: Element `AdverseEvent.suspectEntity.instance[x]` is mapped to FHIR STU3 element `AdverseEvent.suspectEntity.instance` as `SourceIsBroaderThanTarget`. The mappings for `AdverseEvent.suspectEntity.instance[x]` do not cover the following types: CodeableConcept. The standard extension `alternate-reference` has been mapped as PART of the representation of FHIR R5 element `AdverseEvent.suspectEntity.instance[x]` with unmapped reference targets: BiologicallyDerivedProduct, Device, Immunization, Medication, MedicationAdministration, MedicationStatement, Procedure, ResearchStudy, Substance.
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: AdverseEvent.suspectEntity.causalityProductRelatedness.extension
path:
  v: AdverseEvent.suspectEntity.causalityProductRelatedness.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: AdverseEvent.suspectEntity.causalityProductRelatedness.extension:entityRelatedness
path:
  v: AdverseEvent.suspectEntity.causalityProductRelatedness.extension
slice name:
  v: entityRelatedness
short:
  v: R5: Result of the assessment regarding the relatedness of the suspected entity to the event additional types
definition:
  v: R5: `AdverseEvent.suspectEntity.causality.entityRelatedness` additional types (CodeableConcept) additional types from child elements (coding)
comment:
  v: Element `AdverseEvent.suspectEntity.causality.entityRelatedness` is mapped to FHIR STU3 element `AdverseEvent.suspectEntity.causalityProductRelatedness` as `SourceIsBroaderThanTarget`. The mappings for `AdverseEvent.suspectEntity.causality.entityRelatedness` do not cover the following types: CodeableConcept. The mappings for `AdverseEvent.suspectEntity.causality.entityRelatedness` do not cover the following types based on type expansion: coding.
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-AdverseEvent.suspectEntity.causality.entityRelatedness|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-AdverseEvent.suspectEntity.causality.entityRelatedness

id:
  v: AdverseEvent.suspectEntity.causalityAuthor.extension
path:
  v: AdverseEvent.suspectEntity.causalityAuthor.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: AdverseEvent.suspectEntity.causalityAuthor.extension:author
path:
  v: AdverseEvent.suspectEntity.causalityAuthor.extension
slice name:
  v: author
short:
  v: R5: Author of the information on the possible cause of the event
definition:
  v: R5: `AdverseEvent.suspectEntity.causality.author`
comment:
  v: Element `AdverseEvent.suspectEntity.causality.author` is mapped to FHIR STU3 element `AdverseEvent.suspectEntity.causalityAuthor` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `AdverseEvent.suspectEntity.causality.author` with unmapped reference targets: Patient, Practitioner, PractitionerRole, RelatedPerson, ResearchSubject.
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: AdverseEvent.study.extension
path:
  v: AdverseEvent.study.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: AdverseEvent.study.extension:study
path:
  v: AdverseEvent.study.extension
slice name:
  v: study
short:
  v: R5: Research study that the subject is enrolled in additional types
definition:
  v: R5: `AdverseEvent.study` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `AdverseEvent.study` is mapped to FHIR STU3 element `AdverseEvent.study` as `SourceIsBroaderThanTarget`. The mappings for `AdverseEvent.study` 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 `AdverseEvent.study` with unmapped reference targets: ResearchStudy.
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/StructureDefinition/alternate-reference
    l: alternate-reference