Event
type: StructureDefinition
node role: treeRoot
id:
  v: Event
text:
  status:
    v: generated
  div:
    v: to do
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
    l: structuredefinition-standards-status
  value: Code
    v: informative
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
    l: structuredefinition-wg
  value: Code
    v: fhir
url:
  v: http://hl7.org/fhir/StructureDefinition/Event
  l: Event
version:
  v: 6.0.0-ballot4
name:
  v: Event
title:
  v: event
status:
  v: draft
experimental:
  v: false
date:
  v: 2026-06-24T23:30:51+00:00
publisher:
  v: HL7 International / FHIR Infrastructure
contact:
  telecom:
    system:
      v: url
    value:
      v: http://hl7.org/fhir
contact:
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/fiwg
description:
  v: Logical Model: A pattern to be followed by resources that represent the performance of some activity, possibly in accordance with a request or service definition.
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: 6.0.0-ballot4
mapping:
  identity:
    v: v2
  uri:
    v: http://hl7.org/v2
    l: v2
  name:
    v: HL7 V2 Mapping
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
    l: fivews
  name:
    v: FiveWs Pattern Mapping
kind:
  v: logical
abstract:
  v: false
type:
  v: Event
  l: Event
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Base
  l: Base
snapshot:
  element:
    id:
      v: Event
    path:
      v: Event
    short:
      v: Event Pattern
    definition:
      v: A pattern to be followed by resources that represent the performance of some activity, possibly in accordance with a request or service definition.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Event
      min:
        v: 0
      max:
        v: *
    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())
      source:
        v: http://hl7.org/fhir/StructureDefinition/Element
        l: Element
    constraint:
      key:
        v: inv-1
      severity:
        v: error
      human:
        v: Not Done Reason can only be specified if status is 'not-done'
      expression:
        v: status='not-done' or notDoneReason.exists().not()
      source:
        v: http://hl7.org/fhir/StructureDefinition/Event
        l: Event
    constraint:
      key:
        v: inv-2
      severity:
        v: error
      human:
        v: reason elements can only be specified if status is NOT 'not-done'
      expression:
        v: status!='not-done' or (reasonCode.exists().not() and reasonReference.exists().not())
      source:
        v: http://hl7.org/fhir/StructureDefinition/Event
        l: Event
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: v2
      map:
        v: EVN (for administrative events)
    mapping:
      identity:
        v: rim
      map:
        v: Act[moodCode=EVN]
  element:
    id:
      v: Event.identifier
    path:
      v: Event.identifier
    short:
      v: Business identifier for {{title}}
    definition:
      v: Business identifiers assigned to this {{title}} by the performer and/or other systems. These identifiers remain constant as the resource is updated and propagates from server to server.
    comment:
      v: Note: This is a business identifier, not a resource identifier (see [discussion](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 {{title}} as it is known by various participating systems and in a way that remains consistent across servers.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Event.identifier
      min:
        v: 0
      max:
        v: *
    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

v: hasValue() or (children().count() > id.count())

v: false

v: true

identity:
  v: v2
map:
  v: Varies by domain

identity:
  v: rim
map:
  v: .identifier

identity:
  v: w5
map:
  v: FiveWs.identifier

id:
  v: Event.basedOn
path:
  v: Event.basedOn
short:
  v: Fulfills plan, proposal or order
definition:
  v: A plan, proposal or order that is fulfilled in whole or in part by this {{title}}.
comment:
  v: [The allowed reference resources may be adjusted as appropriate for the event resource].
requirements:
  v: Allows tracing of authorization for the {{title}} and tracking whether proposals/recommendations were acted upon.
alias:
  v: fulfills
min:
  v: 0
max:
  v: *
base:
  path:
    v: Event.basedOn
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Appointment
    l: Appointment
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CarePlan
    l: CarePlan
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Claim
    l: Claim
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CommunicationRequest
    l: CommunicationRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CoverageEligibilityRequest
    l: CoverageEligibilityRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DeviceRequest
    l: DeviceRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
    l: MedicationRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/NutritionOrder
    l: NutritionOrder
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RequestOrchestration
    l: RequestOrchestration
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ServiceRequest
    l: ServiceRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Task
    l: Task
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/VisionPrescription
    l: VisionPrescription
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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: ORC in proximity to EVN segment
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=FLFS].target

id:
  v: Event.partOf
path:
  v: Event.partOf
short:
  v: Part of referenced event
definition:
  v: A larger event of which this particular {{title}} is a component or step.
comment:
  v: Not to be used to link an {{title}} to an Encounter - use 'context' for that.[The allowed reference resources may be adjusted as appropriate for the event resource].
requirements:
  v: [E.g. Drug administration as part of a procedure, procedure as part of observation, etc.].
alias:
  v: container
min:
  v: 0
max:
  v: *
base:
  path:
    v: Event.partOf
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/AdverseEvent
    l: AdverseEvent
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/AuditEvent
    l: AuditEvent
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ClaimResponse
    l: ClaimResponse
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Communication
    l: Communication
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Composition
    l: Composition
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Consent
    l: Consent
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Coverage
    l: Coverage
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CoverageEligibilityResponse
    l: CoverageEligibilityResponse
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DetectedIssue
    l: DetectedIssue
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DeviceAlert
    l: DeviceAlert
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DiagnosticReport
    l: DiagnosticReport
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DocumentReference
    l: DocumentReference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Encounter
    l: Encounter
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/EpisodeOfCare
    l: EpisodeOfCare
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ExplanationOfBenefit
    l: ExplanationOfBenefit
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory
    l: FamilyMemberHistory
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/GuidanceResponse
    l: GuidanceResponse
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ImagingSelection
    l: ImagingSelection
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ImagingStudy
    l: ImagingStudy
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Immunization
    l: Immunization
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/MedicationAdministration
    l: MedicationAdministration
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/MedicationDispense
    l: MedicationDispense
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/MedicationStatement
    l: MedicationStatement
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/MessageHeader
    l: MessageHeader
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/NutritionIntake
    l: NutritionIntake
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Observation
    l: Observation
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PaymentNotice
    l: PaymentNotice
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PaymentReconciliation
    l: PaymentReconciliation
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Procedure
    l: Procedure
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Provenance
    l: Provenance
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
    l: QuestionnaireResponse
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RiskAssessment
    l: RiskAssessment
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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: Varies by domain
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=COMP].source[moodCode=EVN]

id:
  v: Event.researchStudy
path:
  v: Event.researchStudy
short:
  v: Associated research study
definition:
  v: Indicates that this {{title}} is relevant to the specified research study(ies).
comment:
  v: This relevance might mean that the {{title}} occurred as part of the study protocol, but can also include events that occurred outside the study but still have relevance.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Event.researchStudy
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ResearchStudy
    l: 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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: Varies by domain
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=PERT].target[classCode=CLNTRL, moodCode=EVN]

id:
  v: Event.status
path:
  v: Event.status
short:
  v: preparation | in-progress | not-done | suspended | aborted | completed | entered-in-error | unknown
definition:
  v: The current state of the {{title}}.
comment:
  v: A nominal state-transition diagram can be found in the (Event pattern)[event.html#statemachine] documentation Unknown does not represent "other" - one of the defined statuses must apply. Unknown is used when the authoring system is not sure what the current status is.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Event.status
  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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: true
is modifier reason:
  v: This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/binding-definition
      l: binding-definition
    value: Markdown
      v: Codes identifying the lifecycle stage of an event.
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: EventStatus
  strength:
    v: required
  description:
    v: Codes identifying the lifecycle stage of an event.
  value set:
    v: http://hl7.org/fhir/ValueSet/event-status|6.0.0-ballot4
    l: http://hl7.org/fhir/ValueSet/event-status
mapping:
  identity:
    v: v2
  map:
    v: Varies by domain
mapping:
  identity:
    v: rim
  map:
    v: .status
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status

id:
  v: Event.statusReason
path:
  v: Event.statusReason
short:
  v: Reason for current status
definition:
  v: Captures the reason for the current state of the {{title}}.
comment:
  v: This is generally only used for "exception" statuses such as "not-done", "suspended" or "cancelled". The reason for performing the event at all is captured in reasonCode, not here. [distinct reason codes for different statuses can be enforced using invariants if they are universal bindings].
alias:
  v: Suspended Reason
alias:
  v: Cancelled Reason
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Event.statusReason
  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())
  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/tools/StructureDefinition/binding-definition
      l: binding-definition
    value: Markdown
      v: Codes identifying the reason for the current state of an event.
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: EventStatusReason
  strength:
    v: example
  description:
    v: Codes identifying the reason for the current state of an event.
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN].reasonCOde

id:
  v: Event.category
path:
  v: Event.category
short:
  v: High level categorization of {{title}}
definition:
  v: Partitions the {{title}} into one or more categories that can be used to filter searching, to govern access control and/or to guide system behavior.
comment:
  v: Categorization might be done automatically (inferred by code) or manually by user assertion. The absence of a category may limit the ability to determine when the element should be handled, so strong consideration should be given to how systems will be able to determine category values for legacy data and how data that cannot be categorized will be handled. As well, some categories might not be mutually exclusive, so systems should prepare for multiple declared categories - even within a single category 'axis'. In general, there should not be a 'strong' binding ('required' or 'extensible') on the category element overall. Instead, the element can be sliced and bindings can be asserted that apply to particular repetitions.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Event.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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: Event.code
path:
  v: Event.code
short:
  v: What service was done
definition:
  v: A code that identifies the specific service or action that was or is being performed.
comment:
  v: [In some cases, the service type is implicit based on the scope of the resource and only a product element will be present].
alias:
  v: type
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Event.code
  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())
  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/tools/StructureDefinition/binding-definition
      l: binding-definition
    value: Markdown
      v: Codes indicating the details of what is/was done. These will vary significantly based on the type of event resource and will often be example/preferred rather than extensible/required.
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: EventCode
  strength:
    v: example
  description:
    v: Codes indicating the details of what is/was done. These will vary significantly based on the type of event resource and will often be example/preferred rather than extensible/required.
mapping:
  identity:
    v: v2
  map:
    v: Varies by domain
mapping:
  identity:
    v: rim
  map:
    v: .code
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]

id:
  v: Event.product
path:
  v: Event.product
short:
  v: Product used/provided
definition:
  v: Indicates the product supplied or manipulated by this {{title}}.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Event.product
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableReference
    l: CodeableReference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/BiologicallyDerivedProduct
    l: BiologicallyDerivedProduct
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    l: Device
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DeviceDefinition
    l: DeviceDefinition
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Medication
    l: Medication
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/NutritionProduct
    l: NutritionProduct
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Substance
    l: Substance
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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: Varies by domain
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PRD].role

id:
  v: Event.subject
path:
  v: Event.subject
short:
  v: Individual service was done for/to
definition:
  v: The individual or set of individuals the action is being or was performed on.
comment:
  v: [For resources that aren't patient-specific, the set of allowed resources may be extended to include other things. Group should generally be retained unless there's certainty this resource won't be used for veterinary, research or public health settings where Group may be necessary (e.g. this cage of rats/crate of chickens, group of people in a 5 mile radious of the incident, etc.)].
requirements:
  v: Links the {{title}} to the Patient context. May also affect access control.
alias:
  v: patient
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Event.subject
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Group
    l: Group
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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: PAT in proximity to EVN segment
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=SBJ].role
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject

id:
  v: Event.encounter
path:
  v: Event.encounter
short:
  v: Encounter the {{title}} is part of
definition:
  v: The Encounter during which this {{title}} was created or to which the creation of this record is tightly associated.
comment:
  v: This will typically be the encounter the {{title}} was created during, but some {{title}}s may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests).
requirements:
  v: Links the {{title}} to the Encounter context. May also affect access control.
alias:
  v: context
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Event.encounter
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Encounter
    l: 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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: PV1 in proximity to EVN segment
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.context

id:
  v: Event.occurrence[x]
path:
  v: Event.occurrence[x]
short:
  v: When {{title}} occurred/is occurring
definition:
  v: The date, period or timing when the {{title}} did occur or is occurring.
comment:
  v: This indicates when the activity actually occurred or is occurring, not when it was asked/requested/ordered to occur. For the latter, look at the occurence element of the Request this {{event}} is "basedOn". The status code allows differentiation of whether the timing reflects a historic event or an ongoing event. Ongoing events should not include an upper bound in the Period or Timing.bounds. [The list of types may be constrained as appropriate for the type of event. The use of 'Timing' in type is generally only appropriate for Events that are typically used to represent summary information.].
alias:
  v: timing
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Event.occurrence[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
type:
  code:
    v: Period
    l: Period
type:
  code:
    v: Timing
    l: Timing
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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: Varies by domain
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.done[x]

id:
  v: Event.recorded
path:
  v: Event.recorded
short:
  v: When {{title}} was first captured in the subject's record
definition:
  v: The date the occurrence of the {{title}} was first captured in the record - potentially significantly after the occurrence of the event.
comment:
  v: The recorded date indicates the date when the data was placed in the record maintained by the performing practitioner, or the date of disclosure by Patient or RelatedPerson, not a date of record transfer. If the record is transferred from one system to another (in paper or electronic form), it does not create a distinct recorded date. In most cases, performing practitioners will record on the same date the event occurred, but sometimes there are delays. If information is being relayed second-hand, the recorded date indicates when the system is first made aware of the data. The recorded date is NOT intended to be the same as a database.createdTimestamp - that would be captured as part of resource.meta or possibly Provenance. It is possible for the same event to be disclosed to different systems at different times. E.g. a patient might tell two different clinicians about a historical event at different visits. If the disclosure is from the patient rather than record transfer from clinician A to B, the recorded date would be the date each respective clinician put the data in their record. If the data flowed from clinician A to B, the recorded date would remain the recorded date as initially set in clinician A's system.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Event.recorded
  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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: Varies by domain
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=AUT].time
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.recorded

id:
  v: Event.reported[x]
path:
  v: Event.reported[x]
short:
  v: Reported rather than primary record
definition:
  v: Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record. It may also indicate the source of the report.
requirements:
  v: Reported data may have different rules on editing and may be visually distinguished from primary data.
alias:
  v: informer
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Event.reported[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    l: RelatedPerson
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    l: Practitioner
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    l: PractitionerRole
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    l: Organization
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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=RPT].role
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.source

id:
  v: Event.performer
path:
  v: Event.performer
short:
  v: Who performed {{title}} and what they did
definition:
  v: Indicates who or what performed the {{title}} and how they were involved.
comment:
  v: [Resources may choose to replace this with just a single performer or repeating where there's no need to distinguish the function performed].
min:
  v: 0
max:
  v: *
base:
  path:
    v: Event.performer
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Element
    l: Element
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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: Event.performer.function
path:
  v: Event.performer.function
short:
  v: Type of performance
definition:
  v: Distinguishes the type of involvement of the performer in the {{title}}. [Consider adding examples].
requirements:
  v: Allows disambiguation of the types of involvement of different performers.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Event.performer.function
  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())
  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/tools/StructureDefinition/binding-definition
      l: binding-definition
    value: Markdown
      v: Codes that describe the specific involvement of a performer in an event. E.g. Primary vs. secondary vs. supervising, etc.
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: EventPerformerFunction
  strength:
    v: example
  description:
    v: Codes that describe the specific involvement of a performer in an event. E.g. Primary vs. secondary vs. supervising, etc.

id:
  v: Event.performer.actor
path:
  v: Event.performer.actor
short:
  v: Who performed {{title}}
definition:
  v: Indicates who or what performed the {{title}}.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Event.performer.actor
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    l: Practitioner
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    l: PractitionerRole
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    l: Organization
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CareTeam
    l: CareTeam
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    l: Device
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    l: 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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: EVN.5 or by domain
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.actor

id:
  v: Event.location
path:
  v: Event.location
short:
  v: Where {{title}} occurred
definition:
  v: The principal physical location where the {{title}} was performed.
requirements:
  v: Ties the event to where the records are likely kept and provides context around the event occurrence (e.g. if it occurred inside or outside a dedicated healthcare setting).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Event.location
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Location
    l: 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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: EVN.7
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=LOC].role
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.where[x]

id:
  v: Event.reason
path:
  v: Event.reason
short:
  v: Why was {{title}} performed?
definition:
  v: Describes why the {{title}} occurred in coded or textual form or Indicates another resource whose existence justifies this {{title}}.
comment:
  v: Textual reasons can be captured using reasonCode.text.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Event.reason
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableReference
    l: CodeableReference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Condition
    l: Condition
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Observation
    l: Observation
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DiagnosticReport
    l: DiagnosticReport
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DocumentReference
    l: 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())
  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/tools/StructureDefinition/binding-definition
      l: binding-definition
    value: Markdown
      v: Codes identifying why this event was necessary. These may be clinical reasons (e.g. diagnoses, symptoms) and/or administrative reasons. While the detailed constraints of relevant reasons will vary by resource, some degree of consistency across resources around recommended codes would be desirable.
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: EventReason
  strength:
    v: example
  description:
    v: Codes identifying why this event was necessary. These may be clinical reasons (e.g. diagnoses, symptoms) and/or administrative reasons. While the detailed constraints of relevant reasons will vary by resource, some degree of consistency across resources around recommended codes would be desirable.
mapping:
  identity:
    v: v2
  map:
    v: EVN.4 or by domain
mapping:
  identity:
    v: rim
  map:
    v: .reasonCode
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]

id:
  v: Event.note
path:
  v: Event.note
short:
  v: Comments made about the event
definition:
  v: Comments made about the {{title}} by the performer, subject or other participants.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Event.note
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Annotation
    l: Annotation
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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: NTE
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]

id:
  v: Event.relevantHistory
path:
  v: Event.relevantHistory
short:
  v: Key events in history of {{title}}
definition:
  v: Links to Provenance records for past versions of this resource or component resources that identify key state transitions or updates that are likely to be relevant to a user looking at the current version of the resource.
comment:
  v: This element does not point to the Provenance associated with the *current* version of the resource - as it would be created after this version existed. The Provenance for the current version can be retrieved with a _revinclude. Referenced provenances should adhere to the provenance-relevant-history profile. See additional guidance [here](event.html#history).
alias:
  v: eventHistory
min:
  v: 0
max:
  v: *
base:
  path:
    v: Event.relevantHistory
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/provenance-relevant-history
    l: provenance-relevant-history
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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]