Inera Core Implementation Guide
0.2.0 - ci-build Sweden

Inera Core Implementation Guide - Local Development build (v0.2.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Resource Profile: AuditEvent Base Inera ( Experimental )

Official URL: https://inera.se/fhir/core/StructureDefinition/auditevent-base-inera Version: 0.2.0
Draft as of 2025-11-24 Computable Name: AuditEventBaseInera

Svensk profil för åtkomstloggar baserad på TKB GetAccessLogsForPatient v2.0.

Används för PDL-krävd åtkomstloggning:

  • Loggning av åtkomst till patientdata
  • Vårdrelation och behörighetskontroll
  • Spårbarhet enligt Patientdatalagen

PDL-krav: Obligatorisk åtkomstloggning enligt Patientdatalagen (SFS 2008:355)

Källa: TKB GetAccessLogsForPatient v2.0 (ehr:log)

Usages:

  • This Profile is not used by any profiles in this Implementation Guide

You can also check for usages in the FHIR IG Statistics

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. AuditEvent 0..* AuditEvent Event record kept for security purposes
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... type SΣ 1..1 Coding Händelsetyp
Binding: AuditEventID (extensible)
... subtype SΣ 0..* Coding Operation
Binding: AuditEventSub-Type (extensible)
... action SΣ 0..1 code Åtgärd
Binding: AuditEventAction (required)
... period S 0..1 Period Period
... recorded SΣ 1..1 instant Loggtidpunkt
... outcome SΣ 0..1 code Utfall
Binding: AuditEventOutcome (required)
... outcomeDesc SΣ 0..1 string Utfallsbeskrivning
... purposeOfEvent SΣ 0..* CodeableConcept Syfte med händelsen
Binding: PurposeOfUse (extensible)
... agent S 1..* BackboneElement Aktör
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... type S 0..1 CodeableConcept Aktörstyp
Binding: ParticipationRoleType (extensible): The Participation type of the agent to the event.
.... role S 0..* CodeableConcept Aktörsroll
Binding: SecurityRoleType (example): What security role enabled the agent to participate in the event.
.... who SΣ 0..1 Reference(PractitionerRole Base Inera | Organization Base Inera | Device | Patient Base Inera | RelatedPerson) Aktör (vem)
.... altId S 0..1 string Alternativt ID
.... name S 0..1 string Aktörsnamn
.... requestor SΣ 1..1 boolean Begärare
.... location S 0..1 Reference(Location) Plats
.... policy S 0..* uri Policy-URI
.... media S 0..1 Coding Media
Binding: MediaTypeCode (extensible): Used when the event is about exporting/importing onto media.
.... network S 0..1 BackboneElement Nätverk
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... address S 0..1 string Nätverksadress
..... type S 0..1 code Nätverkstyp
Binding: AuditEventAgentNetworkType (required): The type of network access point of this agent in the audit event.
.... purposeOfUse S 0..* CodeableConcept Vårdrelation
Binding: PurposeOfUse (extensible): The reason the activity took place.
... source S 1..1 BackboneElement Källa
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... site S 0..1 string Plats
.... observer SΣ 1..1 Reference(Device | Organization Base Inera | PractitionerRole Base Inera | Patient Base Inera) Observatör
.... type S 0..* Coding Källtyp
Binding: AuditEventSourceType (extensible): Code specifying the type of system that detected and recorded the event.
... entity SC 0..* BackboneElement Entitet
Constraints: sev-1
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... what SΣ 0..1 Reference(Patient Base Inera | Resource) Vad
.... type S 0..1 Coding Entitetstyp
Binding: AuditEventEntityType (extensible): Code for the entity type involved in the audit event.
.... role S 0..1 Coding Entitetsroll
Binding: AuditEventEntityRole (extensible): Code representing the role the entity played in the audit event.
.... lifecycle S 0..1 Coding Livscykel
Binding: ObjectLifecycleEvents (extensible): Identifier for the data life-cycle stage for the entity.
.... securityLabel S 0..* Coding Säkerhetsmärkning
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
.... name SΣC 0..1 string Entitetsnamn
.... description S 0..1 string Beskrivning
.... query SΣC 0..1 base64Binary Fråga
.... detail S 0..* BackboneElement Detaljer
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... type S 1..1 string Detaljtyp
..... value[x] S 1..1 Detaljvärde
...... valueString string
...... valueBase64Binary base64Binary

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
AuditEvent.type Base extensible Audit Event ID 📦4.0.1 FHIR Std.
AuditEvent.subtype Base extensible Audit Event Sub-Type 📦4.0.1 FHIR Std.
AuditEvent.action Base required AuditEventAction 📦4.0.1 FHIR Std.
AuditEvent.outcome Base required AuditEventOutcome 📦4.0.1 FHIR Std.
AuditEvent.purposeOfEvent Base extensible http://hl7.org/fhir/ValueSet/v3-PurposeOfUse Not State Unknown
AuditEvent.agent.type Base extensible ParticipationRoleType 📍4.0.1 FHIR Std.
AuditEvent.agent.role Base example SecurityRoleType 📍4.0.1 FHIR Std.
AuditEvent.agent.media Base extensible Media Type Code 📍4.0.1 FHIR Std.
AuditEvent.agent.network.​type Base required AuditEventAgentNetworkType 📍4.0.1 FHIR Std.
AuditEvent.agent.purposeOfUse Base extensible PurposeOfUse 📦3.1.0 THO v7.0
AuditEvent.source.type Base extensible Audit Event Source Type 📍4.0.1 FHIR Std.
AuditEvent.entity.type Base extensible Audit event entity type 📍4.0.1 FHIR Std.
AuditEvent.entity.role Base extensible AuditEventEntityRole 📍4.0.1 FHIR Std.
AuditEvent.entity.lifecycle Base extensible ObjectLifecycleEvents 📍4.0.1 FHIR Std.
AuditEvent.entity.securityLabel Base extensible SecurityLabels 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error AuditEvent If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error AuditEvent 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 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()
dom-4 error AuditEvent If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error AuditEvent If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice AuditEvent A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
sev-1 error AuditEvent.entity Either a name or a query (NOT both) name.empty() or query.empty()

This structure is derived from AuditEvent

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. AuditEvent 0..* AuditEvent Event record kept for security purposes
... type S 1..1 Coding Händelsetyp
Binding: AuditEventID (extensible)
... subtype S 0..* Coding Operation
Binding: AuditEventSub-Type (extensible)
... action S 0..1 code Åtgärd
Binding: AuditEventAction (required)
... period S 0..1 Period Period
... recorded S 1..1 instant Loggtidpunkt
... outcome S 0..1 code Utfall
Binding: AuditEventOutcome (required)
... outcomeDesc S 0..1 string Utfallsbeskrivning
... purposeOfEvent S 0..* CodeableConcept Syfte med händelsen
Binding: PurposeOfUse (extensible)
... agent S 1..* BackboneElement Aktör
.... type S 0..1 CodeableConcept Aktörstyp
.... role S 0..* CodeableConcept Aktörsroll
.... who S 0..1 Reference(PractitionerRole Base Inera | Organization Base Inera | Device | Patient Base Inera | RelatedPerson) Aktör (vem)
.... altId S 0..1 string Alternativt ID
.... name S 0..1 string Aktörsnamn
.... requestor S 1..1 boolean Begärare
.... location S 0..1 Reference(Location) Plats
.... policy S 0..* uri Policy-URI
.... media S 0..1 Coding Media
.... network S 0..1 BackboneElement Nätverk
..... address S 0..1 string Nätverksadress
..... type S 0..1 code Nätverkstyp
.... purposeOfUse S 0..* CodeableConcept Vårdrelation
... source S 1..1 BackboneElement Källa
.... site S 0..1 string Plats
.... observer S 1..1 Reference(Device | Organization Base Inera | PractitionerRole Base Inera | Patient Base Inera) Observatör
.... type S 0..* Coding Källtyp
... entity S 0..* BackboneElement Entitet
.... what S 0..1 Reference(Patient Base Inera | Resource) Vad
.... type S 0..1 Coding Entitetstyp
.... role S 0..1 Coding Entitetsroll
.... lifecycle S 0..1 Coding Livscykel
.... securityLabel S 0..* Coding Säkerhetsmärkning
.... name S 0..1 string Entitetsnamn
.... description S 0..1 string Beskrivning
.... query S 0..1 base64Binary Fråga
.... detail S 0..* BackboneElement Detaljer
..... type S 1..1 string Detaljtyp
..... value[x] S 1..1 string, base64Binary Detaljvärde

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
AuditEvent.type Base extensible Audit Event ID 📦4.0.1 FHIR Std.
AuditEvent.subtype Base extensible Audit Event Sub-Type 📦4.0.1 FHIR Std.
AuditEvent.action Base required AuditEventAction 📦4.0.1 FHIR Std.
AuditEvent.outcome Base required AuditEventOutcome 📦4.0.1 FHIR Std.
AuditEvent.purposeOfEvent Base extensible http://hl7.org/fhir/ValueSet/v3-PurposeOfUse Not State Unknown
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. AuditEvent 0..* AuditEvent Event record kept for security purposes
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages 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
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... type SΣ 1..1 Coding Händelsetyp
Binding: AuditEventID (extensible)
... subtype SΣ 0..* Coding Operation
Binding: AuditEventSub-Type (extensible)
... action SΣ 0..1 code Åtgärd
Binding: AuditEventAction (required)
... period S 0..1 Period Period
... recorded SΣ 1..1 instant Loggtidpunkt
... outcome SΣ 0..1 code Utfall
Binding: AuditEventOutcome (required)
... outcomeDesc SΣ 0..1 string Utfallsbeskrivning
... purposeOfEvent SΣ 0..* CodeableConcept Syfte med händelsen
Binding: PurposeOfUse (extensible)
... agent S 1..* BackboneElement Aktör
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... type S 0..1 CodeableConcept Aktörstyp
Binding: ParticipationRoleType (extensible): The Participation type of the agent to the event.
.... role S 0..* CodeableConcept Aktörsroll
Binding: SecurityRoleType (example): What security role enabled the agent to participate in the event.
.... who SΣ 0..1 Reference(PractitionerRole Base Inera | Organization Base Inera | Device | Patient Base Inera | RelatedPerson) Aktör (vem)
.... altId S 0..1 string Alternativt ID
.... name S 0..1 string Aktörsnamn
.... requestor SΣ 1..1 boolean Begärare
.... location S 0..1 Reference(Location) Plats
.... policy S 0..* uri Policy-URI
.... media S 0..1 Coding Media
Binding: MediaTypeCode (extensible): Used when the event is about exporting/importing onto media.
.... network S 0..1 BackboneElement Nätverk
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... address S 0..1 string Nätverksadress
..... type S 0..1 code Nätverkstyp
Binding: AuditEventAgentNetworkType (required): The type of network access point of this agent in the audit event.
.... purposeOfUse S 0..* CodeableConcept Vårdrelation
Binding: PurposeOfUse (extensible): The reason the activity took place.
... source S 1..1 BackboneElement Källa
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... site S 0..1 string Plats
.... observer SΣ 1..1 Reference(Device | Organization Base Inera | PractitionerRole Base Inera | Patient Base Inera) Observatör
.... type S 0..* Coding Källtyp
Binding: AuditEventSourceType (extensible): Code specifying the type of system that detected and recorded the event.
... entity SC 0..* BackboneElement Entitet
Constraints: sev-1
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... what SΣ 0..1 Reference(Patient Base Inera | Resource) Vad
.... type S 0..1 Coding Entitetstyp
Binding: AuditEventEntityType (extensible): Code for the entity type involved in the audit event.
.... role S 0..1 Coding Entitetsroll
Binding: AuditEventEntityRole (extensible): Code representing the role the entity played in the audit event.
.... lifecycle S 0..1 Coding Livscykel
Binding: ObjectLifecycleEvents (extensible): Identifier for the data life-cycle stage for the entity.
.... securityLabel S 0..* Coding Säkerhetsmärkning
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
.... name SΣC 0..1 string Entitetsnamn
.... description S 0..1 string Beskrivning
.... query SΣC 0..1 base64Binary Fråga
.... detail S 0..* BackboneElement Detaljer
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... type S 1..1 string Detaljtyp
..... value[x] S 1..1 Detaljvärde
...... valueString string
...... valueBase64Binary base64Binary

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
AuditEvent.language Base preferred Common Languages 📍4.0.1 FHIR Std.
AuditEvent.type Base extensible Audit Event ID 📦4.0.1 FHIR Std.
AuditEvent.subtype Base extensible Audit Event Sub-Type 📦4.0.1 FHIR Std.
AuditEvent.action Base required AuditEventAction 📦4.0.1 FHIR Std.
AuditEvent.outcome Base required AuditEventOutcome 📦4.0.1 FHIR Std.
AuditEvent.purposeOfEvent Base extensible http://hl7.org/fhir/ValueSet/v3-PurposeOfUse Not State Unknown
AuditEvent.agent.type Base extensible ParticipationRoleType 📍4.0.1 FHIR Std.
AuditEvent.agent.role Base example SecurityRoleType 📍4.0.1 FHIR Std.
AuditEvent.agent.media Base extensible Media Type Code 📍4.0.1 FHIR Std.
AuditEvent.agent.network.​type Base required AuditEventAgentNetworkType 📍4.0.1 FHIR Std.
AuditEvent.agent.purposeOfUse Base extensible PurposeOfUse 📦3.1.0 THO v7.0
AuditEvent.source.type Base extensible Audit Event Source Type 📍4.0.1 FHIR Std.
AuditEvent.entity.type Base extensible Audit event entity type 📍4.0.1 FHIR Std.
AuditEvent.entity.role Base extensible AuditEventEntityRole 📍4.0.1 FHIR Std.
AuditEvent.entity.lifecycle Base extensible ObjectLifecycleEvents 📍4.0.1 FHIR Std.
AuditEvent.entity.securityLabel Base extensible SecurityLabels 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error AuditEvent If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error AuditEvent 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 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()
dom-4 error AuditEvent If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error AuditEvent If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice AuditEvent A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
sev-1 error AuditEvent.entity Either a name or a query (NOT both) name.empty() or query.empty()

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. AuditEvent 0..* AuditEvent Event record kept for security purposes
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... type SΣ 1..1 Coding Händelsetyp
Binding: AuditEventID (extensible)
... subtype SΣ 0..* Coding Operation
Binding: AuditEventSub-Type (extensible)
... action SΣ 0..1 code Åtgärd
Binding: AuditEventAction (required)
... period S 0..1 Period Period
... recorded SΣ 1..1 instant Loggtidpunkt
... outcome SΣ 0..1 code Utfall
Binding: AuditEventOutcome (required)
... outcomeDesc SΣ 0..1 string Utfallsbeskrivning
... purposeOfEvent SΣ 0..* CodeableConcept Syfte med händelsen
Binding: PurposeOfUse (extensible)
... agent S 1..* BackboneElement Aktör
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... type S 0..1 CodeableConcept Aktörstyp
Binding: ParticipationRoleType (extensible): The Participation type of the agent to the event.
.... role S 0..* CodeableConcept Aktörsroll
Binding: SecurityRoleType (example): What security role enabled the agent to participate in the event.
.... who SΣ 0..1 Reference(PractitionerRole Base Inera | Organization Base Inera | Device | Patient Base Inera | RelatedPerson) Aktör (vem)
.... altId S 0..1 string Alternativt ID
.... name S 0..1 string Aktörsnamn
.... requestor SΣ 1..1 boolean Begärare
.... location S 0..1 Reference(Location) Plats
.... policy S 0..* uri Policy-URI
.... media S 0..1 Coding Media
Binding: MediaTypeCode (extensible): Used when the event is about exporting/importing onto media.
.... network S 0..1 BackboneElement Nätverk
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... address S 0..1 string Nätverksadress
..... type S 0..1 code Nätverkstyp
Binding: AuditEventAgentNetworkType (required): The type of network access point of this agent in the audit event.
.... purposeOfUse S 0..* CodeableConcept Vårdrelation
Binding: PurposeOfUse (extensible): The reason the activity took place.
... source S 1..1 BackboneElement Källa
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... site S 0..1 string Plats
.... observer SΣ 1..1 Reference(Device | Organization Base Inera | PractitionerRole Base Inera | Patient Base Inera) Observatör
.... type S 0..* Coding Källtyp
Binding: AuditEventSourceType (extensible): Code specifying the type of system that detected and recorded the event.
... entity SC 0..* BackboneElement Entitet
Constraints: sev-1
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... what SΣ 0..1 Reference(Patient Base Inera | Resource) Vad
.... type S 0..1 Coding Entitetstyp
Binding: AuditEventEntityType (extensible): Code for the entity type involved in the audit event.
.... role S 0..1 Coding Entitetsroll
Binding: AuditEventEntityRole (extensible): Code representing the role the entity played in the audit event.
.... lifecycle S 0..1 Coding Livscykel
Binding: ObjectLifecycleEvents (extensible): Identifier for the data life-cycle stage for the entity.
.... securityLabel S 0..* Coding Säkerhetsmärkning
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
.... name SΣC 0..1 string Entitetsnamn
.... description S 0..1 string Beskrivning
.... query SΣC 0..1 base64Binary Fråga
.... detail S 0..* BackboneElement Detaljer
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... type S 1..1 string Detaljtyp
..... value[x] S 1..1 Detaljvärde
...... valueString string
...... valueBase64Binary base64Binary

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
AuditEvent.type Base extensible Audit Event ID 📦4.0.1 FHIR Std.
AuditEvent.subtype Base extensible Audit Event Sub-Type 📦4.0.1 FHIR Std.
AuditEvent.action Base required AuditEventAction 📦4.0.1 FHIR Std.
AuditEvent.outcome Base required AuditEventOutcome 📦4.0.1 FHIR Std.
AuditEvent.purposeOfEvent Base extensible http://hl7.org/fhir/ValueSet/v3-PurposeOfUse Not State Unknown
AuditEvent.agent.type Base extensible ParticipationRoleType 📍4.0.1 FHIR Std.
AuditEvent.agent.role Base example SecurityRoleType 📍4.0.1 FHIR Std.
AuditEvent.agent.media Base extensible Media Type Code 📍4.0.1 FHIR Std.
AuditEvent.agent.network.​type Base required AuditEventAgentNetworkType 📍4.0.1 FHIR Std.
AuditEvent.agent.purposeOfUse Base extensible PurposeOfUse 📦3.1.0 THO v7.0
AuditEvent.source.type Base extensible Audit Event Source Type 📍4.0.1 FHIR Std.
AuditEvent.entity.type Base extensible Audit event entity type 📍4.0.1 FHIR Std.
AuditEvent.entity.role Base extensible AuditEventEntityRole 📍4.0.1 FHIR Std.
AuditEvent.entity.lifecycle Base extensible ObjectLifecycleEvents 📍4.0.1 FHIR Std.
AuditEvent.entity.securityLabel Base extensible SecurityLabels 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error AuditEvent If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error AuditEvent 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 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()
dom-4 error AuditEvent If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error AuditEvent If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice AuditEvent A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
sev-1 error AuditEvent.entity Either a name or a query (NOT both) name.empty() or query.empty()

Differential View

This structure is derived from AuditEvent

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. AuditEvent 0..* AuditEvent Event record kept for security purposes
... type S 1..1 Coding Händelsetyp
Binding: AuditEventID (extensible)
... subtype S 0..* Coding Operation
Binding: AuditEventSub-Type (extensible)
... action S 0..1 code Åtgärd
Binding: AuditEventAction (required)
... period S 0..1 Period Period
... recorded S 1..1 instant Loggtidpunkt
... outcome S 0..1 code Utfall
Binding: AuditEventOutcome (required)
... outcomeDesc S 0..1 string Utfallsbeskrivning
... purposeOfEvent S 0..* CodeableConcept Syfte med händelsen
Binding: PurposeOfUse (extensible)
... agent S 1..* BackboneElement Aktör
.... type S 0..1 CodeableConcept Aktörstyp
.... role S 0..* CodeableConcept Aktörsroll
.... who S 0..1 Reference(PractitionerRole Base Inera | Organization Base Inera | Device | Patient Base Inera | RelatedPerson) Aktör (vem)
.... altId S 0..1 string Alternativt ID
.... name S 0..1 string Aktörsnamn
.... requestor S 1..1 boolean Begärare
.... location S 0..1 Reference(Location) Plats
.... policy S 0..* uri Policy-URI
.... media S 0..1 Coding Media
.... network S 0..1 BackboneElement Nätverk
..... address S 0..1 string Nätverksadress
..... type S 0..1 code Nätverkstyp
.... purposeOfUse S 0..* CodeableConcept Vårdrelation
... source S 1..1 BackboneElement Källa
.... site S 0..1 string Plats
.... observer S 1..1 Reference(Device | Organization Base Inera | PractitionerRole Base Inera | Patient Base Inera) Observatör
.... type S 0..* Coding Källtyp
... entity S 0..* BackboneElement Entitet
.... what S 0..1 Reference(Patient Base Inera | Resource) Vad
.... type S 0..1 Coding Entitetstyp
.... role S 0..1 Coding Entitetsroll
.... lifecycle S 0..1 Coding Livscykel
.... securityLabel S 0..* Coding Säkerhetsmärkning
.... name S 0..1 string Entitetsnamn
.... description S 0..1 string Beskrivning
.... query S 0..1 base64Binary Fråga
.... detail S 0..* BackboneElement Detaljer
..... type S 1..1 string Detaljtyp
..... value[x] S 1..1 string, base64Binary Detaljvärde

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
AuditEvent.type Base extensible Audit Event ID 📦4.0.1 FHIR Std.
AuditEvent.subtype Base extensible Audit Event Sub-Type 📦4.0.1 FHIR Std.
AuditEvent.action Base required AuditEventAction 📦4.0.1 FHIR Std.
AuditEvent.outcome Base required AuditEventOutcome 📦4.0.1 FHIR Std.
AuditEvent.purposeOfEvent Base extensible http://hl7.org/fhir/ValueSet/v3-PurposeOfUse Not State Unknown

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. AuditEvent 0..* AuditEvent Event record kept for security purposes
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages 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
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... type SΣ 1..1 Coding Händelsetyp
Binding: AuditEventID (extensible)
... subtype SΣ 0..* Coding Operation
Binding: AuditEventSub-Type (extensible)
... action SΣ 0..1 code Åtgärd
Binding: AuditEventAction (required)
... period S 0..1 Period Period
... recorded SΣ 1..1 instant Loggtidpunkt
... outcome SΣ 0..1 code Utfall
Binding: AuditEventOutcome (required)
... outcomeDesc SΣ 0..1 string Utfallsbeskrivning
... purposeOfEvent SΣ 0..* CodeableConcept Syfte med händelsen
Binding: PurposeOfUse (extensible)
... agent S 1..* BackboneElement Aktör
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... type S 0..1 CodeableConcept Aktörstyp
Binding: ParticipationRoleType (extensible): The Participation type of the agent to the event.
.... role S 0..* CodeableConcept Aktörsroll
Binding: SecurityRoleType (example): What security role enabled the agent to participate in the event.
.... who SΣ 0..1 Reference(PractitionerRole Base Inera | Organization Base Inera | Device | Patient Base Inera | RelatedPerson) Aktör (vem)
.... altId S 0..1 string Alternativt ID
.... name S 0..1 string Aktörsnamn
.... requestor SΣ 1..1 boolean Begärare
.... location S 0..1 Reference(Location) Plats
.... policy S 0..* uri Policy-URI
.... media S 0..1 Coding Media
Binding: MediaTypeCode (extensible): Used when the event is about exporting/importing onto media.
.... network S 0..1 BackboneElement Nätverk
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... address S 0..1 string Nätverksadress
..... type S 0..1 code Nätverkstyp
Binding: AuditEventAgentNetworkType (required): The type of network access point of this agent in the audit event.
.... purposeOfUse S 0..* CodeableConcept Vårdrelation
Binding: PurposeOfUse (extensible): The reason the activity took place.
... source S 1..1 BackboneElement Källa
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... site S 0..1 string Plats
.... observer SΣ 1..1 Reference(Device | Organization Base Inera | PractitionerRole Base Inera | Patient Base Inera) Observatör
.... type S 0..* Coding Källtyp
Binding: AuditEventSourceType (extensible): Code specifying the type of system that detected and recorded the event.
... entity SC 0..* BackboneElement Entitet
Constraints: sev-1
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... what SΣ 0..1 Reference(Patient Base Inera | Resource) Vad
.... type S 0..1 Coding Entitetstyp
Binding: AuditEventEntityType (extensible): Code for the entity type involved in the audit event.
.... role S 0..1 Coding Entitetsroll
Binding: AuditEventEntityRole (extensible): Code representing the role the entity played in the audit event.
.... lifecycle S 0..1 Coding Livscykel
Binding: ObjectLifecycleEvents (extensible): Identifier for the data life-cycle stage for the entity.
.... securityLabel S 0..* Coding Säkerhetsmärkning
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
.... name SΣC 0..1 string Entitetsnamn
.... description S 0..1 string Beskrivning
.... query SΣC 0..1 base64Binary Fråga
.... detail S 0..* BackboneElement Detaljer
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... type S 1..1 string Detaljtyp
..... value[x] S 1..1 Detaljvärde
...... valueString string
...... valueBase64Binary base64Binary

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
AuditEvent.language Base preferred Common Languages 📍4.0.1 FHIR Std.
AuditEvent.type Base extensible Audit Event ID 📦4.0.1 FHIR Std.
AuditEvent.subtype Base extensible Audit Event Sub-Type 📦4.0.1 FHIR Std.
AuditEvent.action Base required AuditEventAction 📦4.0.1 FHIR Std.
AuditEvent.outcome Base required AuditEventOutcome 📦4.0.1 FHIR Std.
AuditEvent.purposeOfEvent Base extensible http://hl7.org/fhir/ValueSet/v3-PurposeOfUse Not State Unknown
AuditEvent.agent.type Base extensible ParticipationRoleType 📍4.0.1 FHIR Std.
AuditEvent.agent.role Base example SecurityRoleType 📍4.0.1 FHIR Std.
AuditEvent.agent.media Base extensible Media Type Code 📍4.0.1 FHIR Std.
AuditEvent.agent.network.​type Base required AuditEventAgentNetworkType 📍4.0.1 FHIR Std.
AuditEvent.agent.purposeOfUse Base extensible PurposeOfUse 📦3.1.0 THO v7.0
AuditEvent.source.type Base extensible Audit Event Source Type 📍4.0.1 FHIR Std.
AuditEvent.entity.type Base extensible Audit event entity type 📍4.0.1 FHIR Std.
AuditEvent.entity.role Base extensible AuditEventEntityRole 📍4.0.1 FHIR Std.
AuditEvent.entity.lifecycle Base extensible ObjectLifecycleEvents 📍4.0.1 FHIR Std.
AuditEvent.entity.securityLabel Base extensible SecurityLabels 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error AuditEvent If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error AuditEvent 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 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()
dom-4 error AuditEvent If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error AuditEvent If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice AuditEvent A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
sev-1 error AuditEvent.entity Either a name or a query (NOT both) name.empty() or query.empty()

 

Other representations of profile: CSV, Excel, Schematron