us-quality-core-adverseevent
type: StructureDefinition
node role: treeRoot
id:
  v: us-quality-core-adverseevent
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition us-quality-core-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; actuality 1..1 code actual | potential #xD; category 0..* CodeableConcept (USCDI+ Quality) product-problem | product-quality | product-use-error | wrong-dose | incorrect-prescribing-information | wrong-technique | wrong-route-of-administration | wrong-rate | wrong-duration | wrong-time | expired-drug | medical-device-use-error | problem-different-manufacturer | unsafe-physical-environment #xD; event 1..1 CodeableConcept (USCDI+ Quality) Type of the event itself in relation to the subject Binding: SNOMEDCTClinicalFindings (preferred): Detailed type of event. #xD; subject 1..1 Reference(US Quality Core Patient | Group | US Quality Core Practitioner | US Quality Core RelatedPerson) Subject impacted by event #xD; encounter 0..1 Reference(US Quality Core Encounter) Encounter created as part of #xD; date 0..1 dateTime (USCDI+ Quality) #xD; detected 0..1 dateTime (USCDI+ Quality) When the event was detected #xD; recordedDate 0..1 dateTime (USCDI+ Quality) When the event was recorded #xD; resultingCondition 0..* Reference(US Quality Core Condition Problems Health Concerns | US Quality Core Condition Encounter Diagnosis) Effect on the subject due to this event #xD; location 0..1 Reference(US Quality Core Location) Location where adverse event occurred #xD; seriousness 0..1 CodeableConcept Seriousness of the event #xD; recorder 0..1 Reference(US Quality Core Patient | US Quality Core RelatedPerson | US Quality Core Practitioner | US Quality Core PractitionerRole) Who recorded the adverse event #xD; contributor 0..* Reference(US Quality Core Practitioner | US Quality Core PractitionerRole | US Quality Core Device | US Core Implantable Device Profile(6.1.0)) Who was involved in the ad…
url:
  v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-adverseevent
  l: us-quality-core-adverseevent
version:
  v: 0.5.0
name:
  v: USQualityCoreAdverseEvent
title:
  v: US Quality Core AdverseEvent
status:
  v: active
experimental:
  v: false
date:
  v: 2026-06-05
publisher:
  v: Office of the National Coordinator for Health Information Technology (ONC)
contact:
  name:
    v: Office of the National Coordinator for Health Information Technology (ONC)
  telecom:
    system:
      v: url
    value:
      v: https://www.healthit.gov/feedback
description:
  v: An adverse event (AE) is an untoward occurrence during treatment that should be reported, for example, to a clinical study sponsor or safety oversight organization. AEs include reportable serious medical errors such as those defined by National Quality Forum (see http://www.qualityforum.org/Topics/ SREs/List_of_SREs.aspx), and Patient Safety Healthcare Events as defined by AHRQ. Some AEs can involve conditions such as "recurring headaches" but others do not, such as accidental falls, surgical errors, sexual abuse of patient, and sudden death. An adverse event can also be an unsafe condition that increases the probability of a patient safety event, and near-misses. An adverse event can be caused by exposure to some agent (e.g., a medication, immunization, food, or environmental agent). An adverse reaction can range from a mild reaction, such as a harmless rash to a severe and life-threatening condition. They can occur immediately or develop over time. For example, a patient may develop a rash after taking a particular medication.
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
      l: 3166
    code:
      v: US
    display:
      v: United States of America
  text:
    v: USA
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
    l: fivews
  name:
    v: FiveWs Pattern 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
  l: AdverseEvent
base definition:
  v: http://hl7.org/fhir/StructureDefinition/AdverseEvent
  l: AdverseEvent
derivation:
  v: constraint
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 4.0.1
  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-3
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
      expression:
        v: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
      xpath:
        v: not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))
      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-5
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a security label
      expression:
        v: contained.meta.security.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:security))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      extension:
        value: Boolean
      extension:
        value: Markdown
      key:
        v: dom-6
      severity:
        v: warning
      human:
        v: A resource should have narrative for robust management
      expression:
        v: text.`div`.exists()
      xpath:
        v: exists(f:text/h:div)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: Entity. Role, or Act
  element:
    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.

Boolean
v: true

Markdown
v: When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time.

v: 0

v: 1

path:
  v: Resource.id
min:
  v: 0
max:
  v: 1

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    l: structuredefinition-fhir-type
  value: Url
    v: id
    l: id
code:
  v: http://hl7.org/fhirpath/System.String
  l: System.String

v: false

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 might 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
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. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
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. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation
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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
      l: elementdefinition-maxValueSet
    value: Canonical
      v: http://hl7.org/fhir/ValueSet/all-languages
      l: all-languages
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Language
  strength:
    v: preferred
  description:
    v: A human language.
  value set:
    v: http://hl7.org/fhir/ValueSet/languages|4.0.1
    l: http://hl7.org/fhir/ValueSet/languages

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 can 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 information 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
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. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.
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
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: AdverseEvent.extension
path:
  v: AdverseEvent.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 resource. 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 can 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: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: AdverseEvent.modifierExtension
path:
  v: AdverseEvent.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: AdverseEvent.identifier
path:
  v: AdverseEvent.identifier
short:
  v: Business identifier for the event
definition:
  v: Business identifiers assigned to this adverse event by the performer or other systems which remain constant as the resource is updated and propagates from server to server.
comment:
  v: This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/resource.html#identifiers)). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and a Person resource instance might share the same social insurance number.
requirements:
  v: Allows identification of the adverse event as it is known by various participating systems and in a way that remains consistent across servers.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: AdverseEvent.actuality
path:
  v: AdverseEvent.actuality
short:
  v: actual | potential
definition:
  v: Whether the event actually happened, or just had the potential to. Note that this is independent of whether anyone was affected or harmed or how severely.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: AdverseEvent.actuality
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because it has a potential code that indicates the adverse event did not actually happen.
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: AdverseEventActuality
  strength:
    v: required
  description:
    v: Overall nature of the adverse event, e.g. real or potential.
  value set:
    v: http://hl7.org/fhir/ValueSet/adverse-event-actuality|4.0.1
    l: http://hl7.org/fhir/ValueSet/adverse-event-actuality
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class

id:
  v: AdverseEvent.category
extension:
  url:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/uscdiplusquality
    l: uscdiplusquality
  value: Boolean
    v: true
path:
  v: AdverseEvent.category
short:
  v: (USCDI+ Quality) product-problem | product-quality | product-use-error | wrong-dose | incorrect-prescribing-information | wrong-technique | wrong-route-of-administration | wrong-rate | wrong-duration | wrong-time | expired-drug | medical-device-use-error | problem-different-manufacturer | unsafe-physical-environment
definition:
  v: The overall type of event, intended for search and filtering purposes.
min:
  v: 0
max:
  v: *
base:
  path:
    v: AdverseEvent.category
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: AdverseEventCategory
  strength:
    v: extensible
  description:
    v: Overall categorization of the event, e.g. product-related or situational.
  value set:
    v: http://hl7.org/fhir/ValueSet/adverse-event-category|4.0.1
    l: http://hl7.org/fhir/ValueSet/adverse-event-category
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class

id:
  v: AdverseEvent.event
extension:
  url:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/uscdiplusquality
    l: uscdiplusquality
  value: Boolean
    v: true
path:
  v: AdverseEvent.event
short:
  v: (USCDI+ Quality) Type of the event itself in relation to the subject
definition:
  v: This element defines the specific type of event that occurred or that was prevented from occurring.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: AdverseEvent.event
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: preferred
  description:
    v: Detailed type of event.
  value set:
    v: http://hl7.org/fhir/ValueSet/adverse-event-type
    l: adverse-event-type
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]

id:
  v: AdverseEvent.subject
path:
  v: AdverseEvent.subject
short:
  v: Subject impacted by event
definition:
  v: This subject or group impacted by the event.
comment:
  v: If AdverseEvent.resultingCondition differs among members of the group, then use Patient as the subject.
requirements:
  v: Allows for exposure of biohazard (such as legionella) to a group of individuals in a hospital.
alias:
  v: patient
min:
  v: 1
max:
  v: 1
base:
  path:
    v: AdverseEvent.subject
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-patient
    l: us-quality-core-patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Group
    l: Group
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-practitioner
    l: us-quality-core-practitioner
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-relatedperson
    l: us-quality-core-relatedperson
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.who

id:
  v: AdverseEvent.encounter
path:
  v: AdverseEvent.encounter
short:
  v: Encounter created as part of
definition:
  v: The Encounter during which AdverseEvent was created or to which the creation of this record is tightly associated.
comment:
  v: 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 context. If the patient reports the AdverseEvent during a second encounter, that second encounter is not the context.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.encounter
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-encounter
    l: us-quality-core-encounter
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.context

id:
  v: AdverseEvent.date
extension:
  url:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/uscdiplusquality
    l: uscdiplusquality
  value: Boolean
    v: true
path:
  v: AdverseEvent.date
short:
  v: (USCDI+ Quality)
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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.init

id:
  v: AdverseEvent.detected
extension:
  url:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/uscdiplusquality
    l: uscdiplusquality
  value: Boolean
    v: true
path:
  v: AdverseEvent.detected
short:
  v: (USCDI+ Quality) When the event was detected
definition:
  v: Estimated or actual date the AdverseEvent began, in the opinion of the reporter.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.detected
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: AdverseEvent.recordedDate
extension:
  url:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/uscdiplusquality
    l: uscdiplusquality
  value: Boolean
    v: true
path:
  v: AdverseEvent.recordedDate
short:
  v: (USCDI+ Quality) When the event was recorded
definition:
  v: The date on which the existence of the AdverseEvent was first recorded.
comment:
  v: 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: AdverseEvent.recordedDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.recorded

id:
  v: AdverseEvent.resultingCondition
path:
  v: AdverseEvent.resultingCondition
short:
  v: Effect on the subject due to this event
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.resultingCondition
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-condition-problems-health-concerns
    l: us-quality-core-condition-problems-health-concerns
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-condition-encounter-diagnosis
    l: us-quality-core-condition-encounter-diagnosis
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

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://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-location
    l: us-quality-core-location
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true

id:
  v: AdverseEvent.seriousness
path:
  v: AdverseEvent.seriousness
short:
  v: Seriousness of the event
definition:
  v: Assessment whether this event was of real importance.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.seriousness
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
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:
    v: http://hl7.org/fhir/ValueSet/adverse-event-seriousness|4.0.1
    l: http://hl7.org/fhir/ValueSet/adverse-event-seriousness

id:
  v: AdverseEvent.severity
path:
  v: AdverseEvent.severity
short:
  v: mild | moderate | severe
definition:
  v: Describes the severity of the adverse event, in relation to the subject. Contrast to AdverseEvent.seriousness - a severe rash might not be serious, but a mild heart problem is.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.severity
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: AdverseEventSeverity
  strength:
    v: required
  description:
    v: The severity of the adverse event itself, in direct relation to the subject.
  value set:
    v: http://hl7.org/fhir/ValueSet/adverse-event-severity|4.0.1
    l: http://hl7.org/fhir/ValueSet/adverse-event-severity

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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
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:
    v: http://hl7.org/fhir/ValueSet/adverse-event-outcome|4.0.1
    l: http://hl7.org/fhir/ValueSet/adverse-event-outcome

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://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-patient
    l: us-quality-core-patient
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-relatedperson
    l: us-quality-core-relatedperson
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-practitioner
    l: us-quality-core-practitioner
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-practitionerrole
    l: us-quality-core-practitionerrole
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.author

id:
  v: AdverseEvent.contributor
path:
  v: AdverseEvent.contributor
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 adverse event, which can consist of one or more activities. Such information includes information leading to the decision to perform the activity and how to perform the activity (e.g. consultant), information that the activity itself seeks to reveal (e.g. informant of clinical history), or information about what activity was performed (e.g. informant witness).
min:
  v: 0
max:
  v: *
base:
  path:
    v: AdverseEvent.contributor
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-practitioner
    l: us-quality-core-practitioner
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-practitionerrole
    l: us-quality-core-practitionerrole
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-device
    l: us-quality-core-device
  target profile:
    v: http://hl7.org/fhir/us/core/StructureDefinition/us-core-implantable-device|6.1.0
    l: http://hl7.org/fhir/us/core/StructureDefinition/us-core-implantable-device
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
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() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true

id:
  v: AdverseEvent.suspectEntity.id
path:
  v: AdverseEvent.suspectEntity.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is summary:
  v: false
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 even if unrecognized
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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: AdverseEvent.suspectEntity.instance
extension:
  url:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/uscdiplusquality
    l: uscdiplusquality
  value: Boolean
    v: true
path:
  v: AdverseEvent.suspectEntity.instance
short:
  v: (USCDI+ Quality) 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://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-immunization
    l: us-quality-core-immunization
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-procedure
    l: us-quality-core-procedure
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-substance
    l: us-quality-core-substance
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-medication
    l: us-quality-core-medication
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-medicationadministration
    l: us-quality-core-medicationadministration
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-medicationstatement
    l: us-quality-core-medicationstatement
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-device
    l: us-quality-core-device
  target profile:
    v: http://hl7.org/fhir/us/core/StructureDefinition/us-core-implantable-device|6.1.0
    l: http://hl7.org/fhir/us/core/StructureDefinition/us-core-implantable-device
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: AdverseEvent.suspectEntity.causality
path:
  v: AdverseEvent.suspectEntity.causality
short:
  v: Information on the possible cause of the event
definition:
  v: Information on the possible cause of the event.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.suspectEntity.causality
  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() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true

id:
  v: AdverseEvent.suspectEntity.causality.id
path:
  v: AdverseEvent.suspectEntity.causality.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: AdverseEvent.suspectEntity.causality.extension
path:
  v: AdverseEvent.suspectEntity.causality.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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: AdverseEvent.suspectEntity.causality.modifierExtension
path:
  v: AdverseEvent.suspectEntity.causality.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: AdverseEvent.suspectEntity.causality.assessment
path:
  v: AdverseEvent.suspectEntity.causality.assessment
short:
  v: Assessment of if the entity caused the event
definition:
  v: Assessment of if the entity caused the event.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.suspectEntity.causality.assessment
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
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: Codes for the assessment of whether the entity caused the event.
  value set:
    v: http://hl7.org/fhir/ValueSet/adverse-event-causality-assess|4.0.1
    l: http://hl7.org/fhir/ValueSet/adverse-event-causality-assess

id:
  v: AdverseEvent.suspectEntity.causality.productRelatedness
path:
  v: AdverseEvent.suspectEntity.causality.productRelatedness
short:
  v: AdverseEvent.suspectEntity.causalityProductRelatedness
definition:
  v: AdverseEvent.suspectEntity.causalityProductRelatedness.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.suspectEntity.causality.productRelatedness
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: AdverseEvent.suspectEntity.causality.author
path:
  v: AdverseEvent.suspectEntity.causality.author
short:
  v: AdverseEvent.suspectEntity.causalityAuthor
definition:
  v: AdverseEvent.suspectEntity.causalityAuthor.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.suspectEntity.causality.author
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Practitioner
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/PractitionerRole
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: AdverseEvent.suspectEntity.causality.method
path:
  v: AdverseEvent.suspectEntity.causality.method
short:
  v: ProbabilityScale | Bayesian | Checklist
definition:
  v: ProbabilityScale | Bayesian | Checklist.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AdverseEvent.suspectEntity.causality.method
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
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:
    v: http://hl7.org/fhir/ValueSet/adverse-event-causality-method|4.0.1
    l: http://hl7.org/fhir/ValueSet/adverse-event-causality-method

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://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-simple-observation
    l: us-quality-core-simple-observation
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-allergyintolerance
    l: us-quality-core-allergyintolerance
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-familymemberhistory
    l: us-quality-core-familymemberhistory
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-immunization
    l: us-quality-core-immunization
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-procedure
    l: us-quality-core-procedure
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-condition-problems-health-concerns
    l: us-quality-core-condition-problems-health-concerns
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-condition-encounter-diagnosis
    l: us-quality-core-condition-encounter-diagnosis
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
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|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/DocumentReference
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
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|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/ResearchStudy
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

element:
  id:
    v: AdverseEvent
  path:
    v: AdverseEvent
element:
  id:
    v: AdverseEvent.actuality
  path:
    v: AdverseEvent.actuality
  short:
    v: actual | potential
element:
  id:
    v: AdverseEvent.category
  extension:
    url:
      v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/uscdiplusquality
      l: uscdiplusquality
    value: Boolean
      v: true
  path:
    v: AdverseEvent.category
  short:
    v: (USCDI+ Quality) product-problem | product-quality | product-use-error | wrong-dose | incorrect-prescribing-information | wrong-technique | wrong-route-of-administration | wrong-rate | wrong-duration | wrong-time | expired-drug | medical-device-use-error | problem-different-manufacturer | unsafe-physical-environment
element:
  id:
    v: AdverseEvent.event
  extension:
    url:
      v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/uscdiplusquality
      l: uscdiplusquality
    value: Boolean
      v: true
  path:
    v: AdverseEvent.event
  short:
    v: (USCDI+ Quality) Type of the event itself in relation to the subject
  min:
    v: 1
  max:
    v: 1
  binding:
    strength:
      v: preferred
    description:
      v: Detailed type of event.
    value set:
      v: http://hl7.org/fhir/ValueSet/adverse-event-type
      l: adverse-event-type
element:
  id:
    v: AdverseEvent.subject
  path:
    v: AdverseEvent.subject
  short:
    v: Subject impacted by event
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Reference
      l: Reference
    target profile:
      v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-patient
      l: us-quality-core-patient
    target profile:
      v: http://hl7.org/fhir/StructureDefinition/Group
      l: Group
    target profile:
      v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-practitioner
      l: us-quality-core-practitioner
    target profile:
      v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-relatedperson
      l: us-quality-core-relatedperson
element:
  id:
    v: AdverseEvent.encounter
  path:
    v: AdverseEvent.encounter
  short:
    v: Encounter created as part of
  type:
    code:
      v: Reference
      l: Reference
    target profile:
      v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-encounter
      l: us-quality-core-encounter
element:
  id:
    v: AdverseEvent.date
  extension:
    url:
      v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/uscdiplusquality
      l: uscdiplusquality
    value: Boolean
      v: true
  path:
    v: AdverseEvent.date
  short:
    v: (USCDI+ Quality)
  must support:
    v: false
element:
  id:
    v: AdverseEvent.detected
  extension:
    url:
      v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/uscdiplusquality
      l: uscdiplusquality
    value: Boolean
      v: true
  path:
    v: AdverseEvent.detected
  short:
    v: (USCDI+ Quality) When the event was detected
element:
  id:
    v: AdverseEvent.recordedDate
  extension:
    url:
      v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/uscdiplusquality
      l: uscdiplusquality
    value: Boolean
      v: true
  path:
    v: AdverseEvent.recordedDate
  short:
    v: (USCDI+ Quality) When the event was recorded
element:
  id:
    v: AdverseEvent.resultingCondition
  path:
    v: AdverseEvent.resultingCondition
  short:
    v: Effect on the subject due to this event
  type:
    code:
      v: Reference
      l: Reference
    target profile:
      v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-condition-problems-health-concerns
      l: us-quality-core-condition-problems-health-concerns
    target profile:
      v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-condition-encounter-diagnosis
      l: us-quality-core-condition-encounter-diagnosis
element:
  id:
    v: AdverseEvent.location
  path:
    v: AdverseEvent.location
  type:
    code:
      v: Reference
      l: Reference
    target profile:
      v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-location
      l: us-quality-core-location
  must support:
    v: false
element:
  id:
    v: AdverseEvent.seriousness
  path:
    v: AdverseEvent.seriousness
  short:
    v: Seriousness of the event
element:
  id:
    v: AdverseEvent.recorder
  path:
    v: AdverseEvent.recorder
  type:
    code:
      v: Reference
      l: Reference
    target profile:
      v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-patient
      l: us-quality-core-patient
    target profile:
      v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-relatedperson
      l: us-quality-core-relatedperson
    target profile:
      v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-practitioner
      l: us-quality-core-practitioner
    target profile:
      v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-practitionerrole
      l: us-quality-core-practitionerrole
  must support:
    v: false
element:
  id:
    v: AdverseEvent.contributor
  path:
    v: AdverseEvent.contributor
  type:
    code:
      v: Reference
      l: Reference

v: false

id:
  v: AdverseEvent.suspectEntity
path:
  v: AdverseEvent.suspectEntity
must support:
  v: false

id:
  v: AdverseEvent.suspectEntity.instance
extension:
  url:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/uscdiplusquality
    l: uscdiplusquality
  value: Boolean
    v: true
path:
  v: AdverseEvent.suspectEntity.instance
short:
  v: (USCDI+ Quality) Refers to the specific entity that caused the adverse event
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-immunization
    l: us-quality-core-immunization
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-procedure
    l: us-quality-core-procedure
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-substance
    l: us-quality-core-substance
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-medication
    l: us-quality-core-medication
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-medicationadministration
    l: us-quality-core-medicationadministration
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-medicationstatement
    l: us-quality-core-medicationstatement
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-device
    l: us-quality-core-device
  target profile:
    v: http://hl7.org/fhir/us/core/StructureDefinition/us-core-implantable-device|6.1.0
    l: http://hl7.org/fhir/us/core/StructureDefinition/us-core-implantable-device

id:
  v: AdverseEvent.suspectEntity.causality
path:
  v: AdverseEvent.suspectEntity.causality
min:
  v: 0
max:
  v: 1
must support:
  v: false

id:
  v: AdverseEvent.subjectMedicalHistory
path:
  v: AdverseEvent.subjectMedicalHistory
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-simple-observation
    l: us-quality-core-simple-observation
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-allergyintolerance
    l: us-quality-core-allergyintolerance
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-familymemberhistory
    l: us-quality-core-familymemberhistory
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-immunization
    l: us-quality-core-immunization
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-procedure
    l: us-quality-core-procedure
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-condition-problems-health-concerns
    l: us-quality-core-condition-problems-health-concerns
  target profile:
    v: http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-condition-encounter-diagnosis
    l: us-quality-core-condition-encounter-diagnosis
must support:
  v: false