Foundation
Publish-box
(todo)
This
is
the
Continuous
Integration
Build
of
FHIR
(will
be
incorrect/inconsistent
at
times).
See
the
Directory
of
published
versions
| Responsible Owner: Security Work Group | Standards Status : Informative | Compartments : Device , Group , Patient , Practitioner |
ShEx statement for auditevent
PREFIX fhir: <http://hl7.org/fhir/> PREFIX fhirvs: <http://hl7.org/fhir/ValueSet/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>IMPORT <uri.shex> IMPORT <code.shex> IMPORT <time.shex># ShEx Version 2.2 IMPORT <Uri.shex> IMPORT <Code.shex> IMPORT <Time.shex> IMPORT <Range.shex> IMPORT <Ratio.shex> IMPORT <Group.shex> IMPORT <Period.shex>IMPORT <string.shex>IMPORT <String.shex> IMPORT <Device.shex> IMPORT <Coding.shex>IMPORT <instant.shex>IMPORT <Instant.shex> IMPORT <Patient.shex>IMPORT <boolean.shex> IMPORT <integer.shex> IMPORT <dateTime.shex>IMPORT <Boolean.shex> IMPORT <Integer.shex> IMPORT <DateTime.shex> IMPORT <Quantity.shex> IMPORT <Location.shex> IMPORT <CareTeam.shex>IMPORT <Resource.shex>IMPORT <Endpoint.shex> IMPORT <Resource.shex> IMPORT <Reference.shex> IMPORT <Encounter.shex>IMPORT <base64Binary.shex>IMPORT <Base64Binary.shex> IMPORT <Organization.shex> IMPORT <Practitioner.shex> IMPORT <RelatedPerson.shex> IMPORT <DomainResource.shex> IMPORT <CodeableConcept.shex> IMPORT <BackboneElement.shex> IMPORT <PractitionerRole.shex> IMPORT <DeviceDefinition.shex> IMPORT <HealthcareService.shex> start=@<AuditEvent> AND {fhir:nodeRole [fhir:treeRoot]} # Record of an event <AuditEvent> EXTENDS @<DomainResource> CLOSED { a [fhir:AuditEvent]?;fhir:nodeRole [fhir:treeRoot]?; fhir:type @<CodeableConcept>; # High level categorization of audit # event fhir:subtype @<OneOrMore_CodeableConcept>?; # Specific type of eventfhir:action @<code> ANDfhir:action @<Code> AND {fhir:v @fhirvs:audit-event-action}?; # Type of action performed during # the eventfhir:severity @<code> ANDfhir:severity @<Code> AND {fhir:v @fhirvs:audit-event-severity}?; # emergency | alert | critical | # error | warning | notice | # informational | debug fhir:occurred @<Period> OR@<dateTime> ?; # When the activity occurred fhir:recorded @<instant>; # Time when the event was recorded@<DateTime> ?; # When the activity occurred fhir:recorded @<Instant>; # Time when the event was recorded fhir:outcome @<AuditEvent.outcome>?; # Whether the event succeeded or # failed fhir:authorization @<OneOrMore_CodeableConcept>?; # Authorization related to the event fhir:basedOn @<OneOrMore_Reference_Resource>?; # Workflow authorization within # which this event occurredfhir:patient @<Reference> AND {fhir:linkfhir:patient @<Reference> AND {fhir:l @<Patient> ? }?; # The patient is the subject of the # data used/created/updated/deleted # during the activityfhir:encounter @<Reference> AND {fhir:linkfhir:encounter @<Reference> AND {fhir:l @<Encounter> ? }?; # Encounter within which this event # occurred or which the event is # tightly associated fhir:agent @<OneOrMore_AuditEvent.agent>; # Actor involved in the event fhir:source @<AuditEvent.source>; # Audit Event Reporter fhir:entity @<OneOrMore_AuditEvent.entity>?; # Data or objects used } # Additional Information about the entity <AuditEvent.entity.detail> EXTENDS @<BackboneElement> CLOSED { fhir:type @<CodeableConcept>; # The name of the extra detail # property fhir:value @<Quantity> OR @<CodeableConcept> OR@<string> OR @<boolean> OR @<integer> OR@<String> OR @<Boolean> OR @<Integer> OR @<Range> OR @<Ratio> OR@<time> OR @<dateTime> OR@<Time> OR @<DateTime> OR @<Period> OR@<base64Binary> ; # Property value@<Base64Binary> ; # Property value } # Audit Event Reporter <AuditEvent.source> EXTENDS @<BackboneElement> CLOSED {fhir:site @<Reference> AND {fhir:linkfhir:site @<Reference> AND {fhir:l @<Location> ? }?; # Logical source location within the # enterprisefhir:observer @<Reference> AND {fhir:linkfhir:observer @<Reference> AND {fhir:l @<CareTeam> OR @<Device> OR @<Organization> OR @<Patient> OR @<Practitioner> OR @<PractitionerRole> OR @<RelatedPerson> ? }; # The identity of source detecting # the event fhir:type @<OneOrMore_CodeableConcept>?; # The type of source where event # originated }# Data or objects used <AuditEvent.entity> EXTENDS @<BackboneElement> CLOSED { fhir:what @<Reference> AND {fhir:link @<Resource> ? }?; # Specific instance of resource fhir:role @<CodeableConcept>?; # What role the entity played fhir:securityLabel @<OneOrMore_CodeableConcept>?; # Security labels on the entity fhir:description @<string>?; # Descriptive text fhir:query @<base64Binary>?; # Query parameters fhir:detail @<OneOrMore_AuditEvent.entity.detail>?; # Additional Information about the # entity fhir:agent @<OneOrMore_AuditEvent.agent>?; # Entity is attributed to this agent }# Actor involved in the event <AuditEvent.agent> EXTENDS @<BackboneElement> CLOSED { fhir:type @<CodeableConcept>?; # How agent participated fhir:role @<OneOrMore_CodeableConcept>?; # Agent role in the eventfhir:who @<Reference> AND {fhir:linkfhir:who @<Reference> AND {fhir:l @<CareTeam> OR @<Device> OR @<DeviceDefinition> OR @<Group> OR @<HealthcareService> OR @<Organization> OR @<Patient> OR @<Practitioner> OR @<PractitionerRole> OR @<RelatedPerson> ? }; # Identifier of whofhir:requestor @<boolean>?; # Whether user is initiator fhir:location @<Reference> AND {fhir:linkfhir:requestor @<Boolean>?; # Whether user is initiator fhir:location @<Reference> AND {fhir:l @<Location> ? }?; # The agent location when the event # occurredfhir:policy @<OneOrMore_uri>?; # Policy that authorized the agentfhir:policy @<OneOrMore_Uri>?; # Policy that authorized the agent # participation in the eventfhir:network (@<Reference> AND {fhir:link @<Endpoint> }) OR @<uri> OR @<string> ?; # This agent network location forfhir:network (@<Reference> AND {fhir:l @<Endpoint> }) OR @<Uri> OR @<String> ?; # This agent network location for # the activity fhir:authorization @<OneOrMore_CodeableConcept>?; # Allowable authorization for this # agent } # Whether the event succeeded or failed <AuditEvent.outcome> EXTENDS @<BackboneElement> CLOSED { fhir:code @<Coding>; # Whether the event succeeded or # failed fhir:detail @<OneOrMore_CodeableConcept>?; # Additional outcome detail } # Data or objects used <AuditEvent.entity> EXTENDS @<BackboneElement> CLOSED { fhir:what @<Reference> AND {fhir:l @<Resource> ? }?; # Specific instance of resource fhir:role @<CodeableConcept>?; # What role the entity played fhir:securityLabel @<OneOrMore_CodeableConcept>?; # Security labels on the entity fhir:description @<String>?; # Descriptive text fhir:query @<Base64Binary>?; # Query parameters fhir:detail @<OneOrMore_AuditEvent.entity.detail>?; # Additional Information about the # entity fhir:agent @<OneOrMore_AuditEvent.agent>?; # Entity is attributed to this agent } #---------------------- Cardinality Types (OneOrMore) ------------------- <OneOrMore_CodeableConcept> CLOSED { rdf:first @<CodeableConcept> ; rdf:rest [rdf:nil] OR @<OneOrMore_CodeableConcept> } <OneOrMore_Reference_Resource> CLOSED {rdf:first @<Reference> AND {fhir:linkrdf:first @<Reference> AND {fhir:l @<Resource> } ; rdf:rest [rdf:nil] OR @<OneOrMore_Reference_Resource> } <OneOrMore_AuditEvent.agent> CLOSED { rdf:first @<AuditEvent.agent> ; rdf:rest [rdf:nil] OR @<OneOrMore_AuditEvent.agent> } <OneOrMore_AuditEvent.entity> CLOSED { rdf:first @<AuditEvent.entity> ; rdf:rest [rdf:nil] OR @<OneOrMore_AuditEvent.entity> } <OneOrMore_Uri> CLOSED { rdf:first @<Uri> ; rdf:rest [rdf:nil] OR @<OneOrMore_Uri> } <OneOrMore_AuditEvent.entity.detail> CLOSED { rdf:first @<AuditEvent.entity.detail> ; rdf:rest [rdf:nil] OR @<OneOrMore_AuditEvent.entity.detail> }<OneOrMore_uri> CLOSED { rdf:first @<uri> ; rdf:rest [rdf:nil] OR @<OneOrMore_uri> }#---------------------- Value Sets ------------------------# Indicator for type of action performed during the event that generated the event.# Indicator value set for type of action performed during the event that generated the event. fhirvs:audit-event-action ["C" "R" "U" "D" "E"] # The severity of the audit entry. fhirvs:audit-event-severity ["emergency" "alert" "critical" "error" "warning" "notice" "informational" "debug"]
Usage note: every effort has been made to ensure that the ShEx files are correct and useful, but they are not a normative part of the specification.
FHIR
®©
HL7.org
2011+.
FHIR
R6
hl7.fhir.core#6.0.0-ballot3
generated
on
Tue,
Apr
1,
Wed,
Dec
17,
2025
12:24+1100.
09:53+0000.
Links:
Search
|
Version
History
|
Contents
|
Glossary
|
QA
|
Compare
to
R4
|
Compare
to
R5
|
Compare
to
Last
Ballot
|
|
Propose
a
change