This page is part of the FHIR Specification (v1.6.0: STU 3 Ballot 4). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R4 R3 R2
This profile is marked as a draft.
The official URL for this profile is:
http://hl7.org/fhir/StructureDefinition/ehrsrle-auditevent
Defines the elements to be supported within the AuditEvent resource in order to conform with the Electronic Health Record System Functional Model Record Lifecycle Event standard
This profile was published on Thu, Dec 4, 2014 00:00+1100 as a draft by Health Level Seven International (Electronic Health Record).
Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.
This structure is derived from AuditEvent.
This structure is derived from AuditEvent.
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
AuditEvent | 0..* | |||
type | S | 1..1 | Coding | |
subtype | S | 0..* | Coding | |
action | S | 0..1 | code | |
recorded | S | 1..1 | instant | |
purposeOfEvent | S | 0..* | Coding | |
agent | S | 1..* | BackboneElement | |
role | S | 0..* | CodeableConcept | |
reference | S | 0..1 | Reference(Practitioner | Organization | Device | Patient | RelatedPerson) | |
userId | S | 0..1 | Identifier | |
requestor | S | 1..1 | boolean | |
location | S | 0..1 | Reference(Location) | |
policy | S | 0..* | uri | |
network | S | 0..1 | BackboneElement | |
address | S | 0..1 | string | |
type | S | 0..1 | code | |
purposeOfUse | S | 0..* | Coding | |
source | S | 1..1 | BackboneElement | |
site | S | 0..1 | string | |
identifier | S | 1..1 | Identifier | |
type | S | 0..* | Coding | |
entity | S | 0..* | BackboneElement | |
identifier | S | 0..1 | Identifier | |
reference | S | 0..1 | Reference(Resource) | |
type | S | 0..1 | Coding | |
role | S | 0..1 | Coding | |
lifecycle | S | 0..1 | Coding | |
securityLabel | S | 0..* | Coding | |
Documentation for this format |
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
AuditEvent | I | 0..* | Event record kept for security purposes dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource | |
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: Common Languages (extensible) | |
text | I | 0..1 | Narrative | Text summary of the resource, for human interpretation |
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 | Type/identifier of event Binding: Audit Event ID (extensible) |
subtype | S∑ | 0..* | Coding | More specific type/id for the event Binding: Audit Event Sub-Type (extensible) |
action | S∑ | 0..1 | code | Type of action performed during the event Binding: AuditEventAction (required) |
recorded | S∑ | 1..1 | instant | Time when the event occurred on source |
outcome | ∑ | 0..1 | code | Whether the event succeeded or failed Binding: AuditEventOutcome (required) |
outcomeDesc | ∑ | 0..1 | string | Description of the event outcome |
purposeOfEvent | S∑ | 0..* | Coding | The purposeOfUse of the event Binding: PurposeOfUse (extensible) |
agent | S | 1..* | BackboneElement | Actor involved in the event |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
role | S | 0..* | CodeableConcept | Agent role in the event Binding: Audit agent Role ID Code (extensible) |
reference | S∑ | 0..1 | Reference(Practitioner | Organization | Device | Patient | RelatedPerson) | Direct reference to resource |
userId | S∑ | 0..1 | Identifier | Unique identifier for the user |
altId | 0..1 | string | Alternative User id e.g. authentication | |
name | 0..1 | string | Human-meaningful name for the agent | |
requestor | S | 1..1 | boolean | Whether user is initiator |
location | S | 0..1 | Reference(Location) | Where |
policy | S | 0..* | uri | Policy that authorized event |
media | 0..1 | Coding | Type of media Binding: Media Type Code (extensible) | |
network | S | 0..1 | BackboneElement | Logical network location for application activity |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
address | S | 0..1 | string | Identifier for the network access point of the user device |
type | S | 0..1 | code | The type of network access point Binding: AuditEventAgentNetworkType (required) |
purposeOfUse | S | 0..* | Coding | Reason given for this user Binding: PurposeOfUse (extensible) |
source | S | 1..1 | BackboneElement | Audit Event Reporter |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
site | S | 0..1 | string | Logical source location within the enterprise |
identifier | S∑ | 1..1 | Identifier | The identity of source detecting the event |
type | S | 0..* | Coding | The type of source where event originated Binding: Audit Event Source Type (extensible) |
entity | SI | 0..* | BackboneElement | Data or objects used sev-1: Either a name or a query (NOT both) |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
identifier | S∑ | 0..1 | Identifier | Specific instance of object |
reference | S∑ | 0..1 | Reference(Resource) | Specific instance of resource |
type | S | 0..1 | Coding | Type of entity involved Binding: AuditEventEntityType (extensible) |
role | S | 0..1 | Coding | What role the entity played Binding: AuditEventEntityRole (extensible) |
lifecycle | S | 0..1 | Coding | Life-cycle stage for the entity Binding: AuditEventEntityLifecycle (extensible) |
securityLabel | S | 0..* | Coding | Security labels on the entity Binding: All Security Labels (extensible) |
name | ∑I | 0..1 | string | Descriptor for entity |
description | 0..1 | string | Descriptive text | |
query | ∑I | 0..1 | base64Binary | Query parameters |
detail | 0..* | BackboneElement | Additional Information about the entity | |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
type | 1..1 | string | Name of the property | |
value | 1..1 | base64Binary | Property value | |
Documentation for this format |
todo
This structure is derived from AuditEvent.
Differential View
This structure is derived from AuditEvent.
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
AuditEvent | 0..* | |||
type | S | 1..1 | Coding | |
subtype | S | 0..* | Coding | |
action | S | 0..1 | code | |
recorded | S | 1..1 | instant | |
purposeOfEvent | S | 0..* | Coding | |
agent | S | 1..* | BackboneElement | |
role | S | 0..* | CodeableConcept | |
reference | S | 0..1 | Reference(Practitioner | Organization | Device | Patient | RelatedPerson) | |
userId | S | 0..1 | Identifier | |
requestor | S | 1..1 | boolean | |
location | S | 0..1 | Reference(Location) | |
policy | S | 0..* | uri | |
network | S | 0..1 | BackboneElement | |
address | S | 0..1 | string | |
type | S | 0..1 | code | |
purposeOfUse | S | 0..* | Coding | |
source | S | 1..1 | BackboneElement | |
site | S | 0..1 | string | |
identifier | S | 1..1 | Identifier | |
type | S | 0..* | Coding | |
entity | S | 0..* | BackboneElement | |
identifier | S | 0..1 | Identifier | |
reference | S | 0..1 | Reference(Resource) | |
type | S | 0..1 | Coding | |
role | S | 0..1 | Coding | |
lifecycle | S | 0..1 | Coding | |
securityLabel | S | 0..* | Coding | |
Documentation for this format |
Snapshot View
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
AuditEvent | I | 0..* | Event record kept for security purposes dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource | |
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: Common Languages (extensible) | |
text | I | 0..1 | Narrative | Text summary of the resource, for human interpretation |
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 | Type/identifier of event Binding: Audit Event ID (extensible) |
subtype | S∑ | 0..* | Coding | More specific type/id for the event Binding: Audit Event Sub-Type (extensible) |
action | S∑ | 0..1 | code | Type of action performed during the event Binding: AuditEventAction (required) |
recorded | S∑ | 1..1 | instant | Time when the event occurred on source |
outcome | ∑ | 0..1 | code | Whether the event succeeded or failed Binding: AuditEventOutcome (required) |
outcomeDesc | ∑ | 0..1 | string | Description of the event outcome |
purposeOfEvent | S∑ | 0..* | Coding | The purposeOfUse of the event Binding: PurposeOfUse (extensible) |
agent | S | 1..* | BackboneElement | Actor involved in the event |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
role | S | 0..* | CodeableConcept | Agent role in the event Binding: Audit agent Role ID Code (extensible) |
reference | S∑ | 0..1 | Reference(Practitioner | Organization | Device | Patient | RelatedPerson) | Direct reference to resource |
userId | S∑ | 0..1 | Identifier | Unique identifier for the user |
altId | 0..1 | string | Alternative User id e.g. authentication | |
name | 0..1 | string | Human-meaningful name for the agent | |
requestor | S | 1..1 | boolean | Whether user is initiator |
location | S | 0..1 | Reference(Location) | Where |
policy | S | 0..* | uri | Policy that authorized event |
media | 0..1 | Coding | Type of media Binding: Media Type Code (extensible) | |
network | S | 0..1 | BackboneElement | Logical network location for application activity |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
address | S | 0..1 | string | Identifier for the network access point of the user device |
type | S | 0..1 | code | The type of network access point Binding: AuditEventAgentNetworkType (required) |
purposeOfUse | S | 0..* | Coding | Reason given for this user Binding: PurposeOfUse (extensible) |
source | S | 1..1 | BackboneElement | Audit Event Reporter |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
site | S | 0..1 | string | Logical source location within the enterprise |
identifier | S∑ | 1..1 | Identifier | The identity of source detecting the event |
type | S | 0..* | Coding | The type of source where event originated Binding: Audit Event Source Type (extensible) |
entity | SI | 0..* | BackboneElement | Data or objects used sev-1: Either a name or a query (NOT both) |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
identifier | S∑ | 0..1 | Identifier | Specific instance of object |
reference | S∑ | 0..1 | Reference(Resource) | Specific instance of resource |
type | S | 0..1 | Coding | Type of entity involved Binding: AuditEventEntityType (extensible) |
role | S | 0..1 | Coding | What role the entity played Binding: AuditEventEntityRole (extensible) |
lifecycle | S | 0..1 | Coding | Life-cycle stage for the entity Binding: AuditEventEntityLifecycle (extensible) |
securityLabel | S | 0..* | Coding | Security labels on the entity Binding: All Security Labels (extensible) |
name | ∑I | 0..1 | string | Descriptor for entity |
description | 0..1 | string | Descriptive text | |
query | ∑I | 0..1 | base64Binary | Query parameters |
detail | 0..* | BackboneElement | Additional Information about the entity | |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!∑ | 0..* | Extension | Extensions that cannot be ignored |
type | 1..1 | string | Name of the property | |
value | 1..1 | base64Binary | Property value | |
Documentation for this format |
XML Template
JSON Template
todo
Other representations of profile: Schematron
Path | Name | Conformance | ValueSet |
AuditEvent.language | Common Languages | extensible | Common Languages |
AuditEvent.type | Audit Event ID | extensible | Audit Event ID |
AuditEvent.subtype | Audit Event Sub-Type | extensible | Audit Event Sub-Type |
AuditEvent.action | AuditEventAction | required | AuditEventAction |
AuditEvent.outcome | AuditEventOutcome | required | AuditEventOutcome |
AuditEvent.purposeOfEvent | PurposeOfUse | extensible | PurposeOfUse |
AuditEvent.agent.role | Audit agent Role ID Code | extensible | Audit agent Role ID Code |
AuditEvent.agent.media | Media Type Code | extensible | Media Type Code |
AuditEvent.agent.network.type | AuditEventAgentNetworkType | required | AuditEventAgentNetworkType |
AuditEvent.agent.purposeOfUse | PurposeOfUse | extensible | PurposeOfUse |
AuditEvent.source.type | Audit Event Source Type | extensible | Audit Event Source Type |
AuditEvent.entity.type | AuditEventEntityType | extensible | AuditEventEntityType |
AuditEvent.entity.role | AuditEventEntityRole | extensible | AuditEventEntityRole |
AuditEvent.entity.lifecycle | AuditEventEntityLifecycle | extensible | AuditEventEntityLifecycle |
AuditEvent.entity.securityLabel | All Security Labels | extensible | All Security Labels |
Id | Path | Details | Requirements |
dom-2 | AuditEvent | If the resource is contained in another resource, it SHALL NOT contain nested Resources XPath: not(parent::f:contained and f:contained) | |
dom-1 | AuditEvent | If the resource is contained in another resource, it SHALL NOT contain any narrative XPath: not(parent::f:contained and f:text) | |
dom-4 | AuditEvent | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated XPath: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated)) | |
dom-3 | AuditEvent | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource XPath: not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))])) | |
sev-1 | AuditEvent.entity | Either a name or a query (NOT both) XPath: not(exists(f:name)) or not(exists(f:query)) |