## Profile Comparison between https://gematik.de/fhir/epa/StructureDefinition/epa-auditevent vs https://gematik.de/fhir/epa/StructureDefinition/epa-auditevent

Left: | EPA AuditEvent (https://gematik.de/fhir/epa/StructureDefinition/epa-auditevent)
Right: | EPA AuditEvent (https://gematik.de/fhir/epa/StructureDefinition/epa-auditevent)

### Messages

Error | StructureDefinition.version | Values for version differ: '1.3.0' vs '1.4.0'

### Metadata

Name | Value | Comments
--- | --- | ---
abstract | false |
baseDefinition | http://hl7.org/fhir/StructureDefinition/AuditEvent |
copyright | gematik GmbH / Dieses Artefakt ist lizenziert unter [Apache License](./license.html), Version 2.0. |
date | 2025-12-15 |
description | Defines the data structure for audit events in the ePA system. |
experimental | false |
fhirVersion | 4.0.1 |
jurisdiction |  |
jurisdiction[0] | urn:iso:std:iso:3166#DE |
kind | resource |
name | EPAAuditEvent |
publisher | gematik GmbH |
purpose |  |
status | active |
title | EPA AuditEvent |
type | AuditEvent |
url | https://gematik.de/fhir/epa/StructureDefinition/epa-auditevent |
version | 1.3.0 | 1.4.0 | Values Differ

### Structure

Name | L Flags | L Card. | L Type | L Description & Constraints | R Flags | R Card. | R Type | R Description & Constraints | Comments
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---
AuditEvent |  | 0..* | AuditEvent | Event record kept for security purposes |  | 0..* | AuditEvent | Event record kept for security purposes |
id | Σ | 0..1 | id | Logical id of this artifact | Σ | 0..1 | id | Logical id of this artifact |
meta | Σ | 0..1 | Meta | Metadata about the resource | Σ | 0..1 | Meta | Metadata about the resource |
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
language |  | 0..1 | code | Language of the resource content Binding: ?? (preferred): A human language.
Additional Bindings | Purpose
?? | Max Binding
|  | 0..1 | code | Language of the resource content Binding: ?? (preferred): A human language.
Additional Bindings | Purpose
?? | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements |
contained |  | 0..* | Resource | Contained, inline Resources |  | 0..* | Resource | Contained, inline Resources |
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |
Slices for modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url | ?! | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url |
type | Σ | 1..1 | Coding | Type/identifier of event Binding: ?? (required) | Σ | 1..1 | Coding | Type/identifier of event Binding: ?? (required) |
subtype | Σ | 0..0 |  | More specific type/id for the event Binding: ?? (extensible): Sub-type of event. | Σ | 0..0 |  | More specific type/id for the event Binding: ?? (extensible): Sub-type of event. |
action | S Σ | 1..1 | code | Type of action performed during the event. CREATE: C | READ: R | UPDATE: U | DELETE: D | EXECUTE: E Binding: ?? (required): Indicator for type of action performed during the event that generated the event. | S Σ | 1..1 | code | Type of action performed during the event. CREATE: C | READ: R | UPDATE: U | DELETE: D | EXECUTE: E Binding: ?? (required): Indicator for type of action performed during the event that generated the event. |
period | C | 0..0 |  | When the activity occurred | C | 0..0 |  | When the activity occurred |
recorded | S Σ | 1..1 | instant | Time when the event was recorded | S Σ | 1..1 | instant | Time when the event was recorded |
outcome | S Σ | 1..1 | code | success: 0; failure: 4; major failure: 12 Binding: ?? (required): Indicates whether the event succeeded or failed. | S Σ | 1..1 | code | success: 0; failure: 4; major failure: 12 Binding: ?? (required): Indicates whether the event succeeded or failed. |
outcomeDesc | Σ | 0..0 |  | Description of the event outcome | Σ | 0..0 |  | Description of the event outcome |
purposeOfEvent | Σ | 0..* | CodeableConcept | The purposeOfUse of the event Binding: ?? (extensible): The reason the activity took place. | Σ | 0..* | CodeableConcept | The purposeOfUse of the event Binding: ?? (extensible): The reason the activity took place. |
Slices for agent | S | 1..* | BackboneElement | Actor involved in the event Slice: Unordered, Open by value:type | S | 1..* | BackboneElement | Actor involved in the event Slice: Unordered, Open by value:type |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
type |  | 0..1 | CodeableConcept | How agent participated Binding: ?? (extensible): The Participation type of the agent to the event. |  | 0..1 | CodeableConcept | How agent participated Binding: ?? (extensible): The Participation type of the agent to the event. |
role |  | 0..* | CodeableConcept | Agent role in the event Binding: ?? (example): What security role enabled the agent to participate in the event. |  | 0..* | CodeableConcept | Agent role in the event Binding: ?? (example): What security role enabled the agent to participate in the event. |
who | Σ C | 0..1 | Reference(PractitionerRole | Practitioner | Organization | Device | Patient | RelatedPerson) | Identifier of who | Σ C | 0..1 | Reference(PractitionerRole | Practitioner | Organization | Device | Patient | RelatedPerson) | Identifier of who |
altId |  | 0..1 | string | Alternative User identity |  | 0..1 | string | Alternative User identity |
name |  | 0..1 | string | Human friendly name for the agent |  | 0..1 | string | Human friendly name for the agent |
requestor | Σ | 1..1 | boolean | Whether user is initiator | Σ | 1..1 | boolean | Whether user is initiator |
location | C | 0..1 | Reference(Location) | Where | C | 0..1 | Reference(Location) | Where |
policy |  | 0..* | uri | Policy that authorized event |  | 0..* | uri | Policy that authorized event |
media |  | 0..1 | Coding | Type of media Binding: ?? (extensible): Used when the event is about exporting/importing onto media. |  | 0..1 | Coding | Type of media Binding: ?? (extensible): Used when the event is about exporting/importing onto media. |
network |  | 0..1 | BackboneElement | Logical network location for application activity |  | 0..1 | BackboneElement | Logical network location for application activity |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
address |  | 0..1 | string | Identifier for the network access point of the user device |  | 0..1 | string | Identifier for the network access point of the user device |
type |  | 0..1 | code | The type of network access point Binding: ?? (required): The type of network access point of this agent in the audit event. |  | 0..1 | code | The type of network access point Binding: ?? (required): The type of network access point of this agent in the audit event. |
purposeOfUse |  | 0..* | CodeableConcept | Reason given for this user Binding: ?? (extensible): The reason the activity took place. |  | 0..* | CodeableConcept | Reason given for this user Binding: ?? (extensible): The reason the activity took place. |
source | S | 1..1 | BackboneElement | Audit Event Reporter | S | 1..1 | BackboneElement | Audit Event Reporter |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
site |  | 0..1 | string | Logical source location within the enterprise |  | 0..1 | string | Logical source location within the enterprise |
observer | Σ C | 1..1 | Reference(PractitionerRole | Practitioner | Organization | Device | Patient | RelatedPerson) | The identity of source detecting the event | Σ C | 1..1 | Reference(PractitionerRole | Practitioner | Organization | Device | Patient | RelatedPerson) | The identity of source detecting the event |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |
reference | Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL | Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL |
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ?? (extensible): Aa resource (or, for logical models, the URI of the logical model). | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ?? (extensible): Aa resource (or, for logical models, the URI of the logical model). |
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known |
display | Σ | 0..1 | string | Text alternative for the resource Fixed Value: Elektronische Patientenakte Fachdienst | Σ | 0..1 | string | Text alternative for the resource Fixed Value: Elektronische Patientenakte Fachdienst |
type | S | 1..1 | Coding | The type of source where event originated Binding: ?? (required) | S | 1..1 | Coding | The type of source where event originated Binding: ?? (required) |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |
system | S Σ | 0..1 | uri | Identity of the terminology system | S Σ | 0..1 | uri | Identity of the terminology system |
version | S Σ | 0..1 | string | Version of the system - if relevant | S Σ | 0..1 | string | Version of the system - if relevant |
code | S Σ | 0..1 | code | Symbol in syntax defined by the system | S Σ | 0..1 | code | Symbol in syntax defined by the system |
display | S Σ | 0..1 | string | Representation defined by the system | S Σ | 0..1 | string | Representation defined by the system |
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user | Σ | 0..1 | boolean | If this coding was chosen directly by the user |
entity | S C | 1..* | BackboneElement | Data or objects used | S C | 1..* | BackboneElement | Data or objects used |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
what | Σ C | 0..0 |  | Specific instance of resource | Σ C | 0..0 |  | Specific instance of resource |
type |  | 0..0 |  | Type of entity involved Binding: ?? (extensible): Code for the entity type involved in the audit event. |  | 0..0 |  | Type of entity involved Binding: ?? (extensible): Code for the entity type involved in the audit event. |
role |  | 0..0 |  | What role the entity played Binding: ?? (extensible): Code representing the role the entity played in the audit event. |  | 0..0 |  | What role the entity played Binding: ?? (extensible): Code representing the role the entity played in the audit event. |
lifecycle |  | 0..0 |  | Life-cycle stage for the entity Binding: ?? (extensible): Identifier for the data life-cycle stage for the entity. |  | 0..0 |  | Life-cycle stage for the entity Binding: ?? (extensible): Identifier for the data life-cycle stage for the entity. |
securityLabel |  | 0..0 |  | Security labels on the entity Binding: ?? (extensible): Security Labels from the Healthcare Privacy and Security Classification System. |  | 0..0 |  | Security labels on the entity Binding: ?? (extensible): Security Labels from the Healthcare Privacy and Security Classification System. |
name | S Σ C | 0..1 | string | The title of the XDS document, FHIR resource or object name of a service (e.g. Entitlement Service, Device Management, ...). | S Σ C | 0..1 | string | The title of the XDS document, FHIR resource or object name of a service (e.g. Entitlement Service, Device Management, ...). |
description | S | 0..1 | string | The OperationId | S | 0..1 | string | The OperationId |
query | Σ C | 0..0 |  | Query parameters | Σ C | 0..0 |  | Query parameters |
detail | S | 0..* | BackboneElement | Additional Information about the entity | S | 0..* | BackboneElement | Additional Information about the entity |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
type | S | 1..1 | string | The Name of the property (e.g. Document Format, DocumentID, ...). | S | 1..1 | string | The Name of the property (e.g. Document Format, DocumentID, ...). |
Slices for value[x] |  | 1..1 | string | Property value Slice: Unordered, Closed by type:$this |  | 1..1 | string | Property value Slice: Unordered, Closed by type:$this |
Documentation for this format