臺灣社政領域基礎實作指引
0.0.1 - ci-build

臺灣社政領域基礎實作指引, published by 衛生福利部社會及家庭署. This guide is not an authorized publication; it is the continuous build for version 0.0.1 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/sfaassn2025-source/base/ and changes regularly. See the Directory of published versions

Resource Profile: 資訊記錄-AuditEvent TWSS Base

Official URL: https://sfaa.gov.tw/base/StructureDefinition/AuditEvent-twss-base Version: 0.0.1
Draft as of 2026-10-20 Computable Name: AuditEventTWSSBase

本 Profile 繼承 FHIR R4 原生 AuditEvent。TW Core IG 0.3.2 未提供 AuditEvent Profile,因此以原生 AuditEvent 表達臺灣社政領域系統的資訊記錄與稽核軌跡。

Usages:

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: doco
AuditEvent 0..* AuditEvent Event record kept for security purposes
AuditEvent.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri A set of rules under which this content was created
AuditEvent.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
AuditEvent.type This element must be supported. This element is included in summaries. 1..1 Coding 活動記錄類型
Binding: AuditEventID (extensible): Type of event.
AuditEvent.period This element must be supported. 0..1 Period 活動發生時間
AuditEvent.recorded This element must be supported. This element is included in summaries. 1..1 instant 事件被記錄時間
AuditEvent.Slices for agent 1..* BackboneElement Actor involved in the event
Slice: Unordered, Open by value:network.type

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
AuditEvent.Slices for agent.agent:All Slices Content/Rules for all slices
AuditEvent.Slices for agent.agent:All Slices.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.Slices for agent.agent:All Slices.requestor This element is included in summaries. 1..1 boolean Whether user is initiator
AuditEvent.Slices for agent.agent:ipAddress This element must be supported. 0..* BackboneElement Actor involved in the event
AuditEvent.Slices for agent.agent:ipAddress.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.Slices for agent.agent:ipAddress.altId This element must be supported. 0..1 string 行為人識別碼
AuditEvent.Slices for agent.agent:ipAddress.requestor This element must be supported. This element is included in summaries. 1..1 boolean 是否為事件發起人
AuditEvent.Slices for agent.agent:ipAddress.location This element must be supported. 0..1 Reference(服務地點及托育地址-Location TWSS Base) 行為人所在位置
AuditEvent.Slices for agent.agent:ipAddress.network 0..1 BackboneElement Logical network location for application activity
AuditEvent.Slices for agent.agent:ipAddress.network.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.Slices for agent.agent:ipAddress.network.address This element must be supported. 0..1 string 行為人裝置網路識別碼
AuditEvent.Slices for agent.agent:ipAddress.network.type 1..1 code The type of network access point
Binding: AuditEventAgentNetworkType (required): The type of network access point of this agent in the audit event.
Required Pattern: 2 (extensions allowed)
AuditEvent.source 1..1 BackboneElement Audit Event Reporter
AuditEvent.source.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.source.observer This element must be supported. This element is included in summaries. 1..1 Reference(機構資料-Organization TWSS Base | Device) 事件記錄來源

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.agent:ipAddress.​network.type Base required AuditEventAgentNetworkType 📍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()

This structure is derived from AuditEvent

NameFlagsCard.TypeDescription & Constraints    Filter: doco
AuditEvent 0..* AuditEvent Event record kept for security purposes
AuditEvent.type This element must be supported. 1..1 Coding 活動記錄類型
AuditEvent.period This element must be supported. 0..1 Period 活動發生時間
AuditEvent.recorded This element must be supported. 1..1 instant 事件被記錄時間
AuditEvent.Slices for agent.agent:ipAddress This element must be supported. 0..* BackboneElement Actor involved in the event
AuditEvent.Slices for agent.agent:ipAddress.altId This element must be supported. 0..1 string 行為人識別碼
AuditEvent.Slices for agent.agent:ipAddress.requestor This element must be supported. 1..1 boolean 是否為事件發起人
AuditEvent.Slices for agent.agent:ipAddress.location This element must be supported. 0..1 Reference(服務地點及托育地址-Location TWSS Base) 行為人所在位置
AuditEvent.Slices for agent.agent:ipAddress.network
AuditEvent.Slices for agent.agent:ipAddress.network.address This element must be supported. 0..1 string 行為人裝置網路識別碼
AuditEvent.Slices for agent.agent:ipAddress.network.type 1..1 code The type of network access point
Required Pattern: 2 (extensions allowed)
AuditEvent.source
AuditEvent.source.observer This element must be supported. 1..1 Reference(機構資料-Organization TWSS Base | Device) 事件記錄來源

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraints    Filter: doco
AuditEvent 0..* AuditEvent Event record kept for security purposes
AuditEvent.id This element is included in summaries. 0..1 id Logical id of this artifact
AuditEvent.meta This element is included in summaries. 0..1 Meta Metadata about the resource
AuditEvent.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri A set of rules under which this content was created
AuditEvent.language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
AuditEvent.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
AuditEvent.contained 0..* Resource Contained, inline Resources
AuditEvent.extension 0..* Extension Additional content defined by implementations
AuditEvent.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
AuditEvent.type This element must be supported. This element is included in summaries. 1..1 Coding 活動記錄類型
Binding: AuditEventID (extensible): Type of event.
AuditEvent.subtype This element is included in summaries. 0..* Coding More specific type/id for the event
Binding: AuditEventSub-Type (extensible): Sub-type of event.
AuditEvent.action This element is included in summaries. 0..1 code Type of action performed during the event
Binding: AuditEventAction (required): Indicator for type of action performed during the event that generated the event.
AuditEvent.period This element must be supported. 0..1 Period 活動發生時間
AuditEvent.recorded This element must be supported. This element is included in summaries. 1..1 instant 事件被記錄時間
AuditEvent.outcome This element is included in summaries. 0..1 code Whether the event succeeded or failed
Binding: AuditEventOutcome (required): Indicates whether the event succeeded or failed.
AuditEvent.outcomeDesc This element is included in summaries. 0..1 string Description of the event outcome
AuditEvent.purposeOfEvent This element is included in summaries. 0..* CodeableConcept The purposeOfUse of the event
Binding: PurposeOfUse (3.1.0) (extensible): The reason the activity took place.
AuditEvent.Slices for agent 1..* BackboneElement Actor involved in the event
Slice: Unordered, Open by value:network.type

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
AuditEvent.Slices for agent.agent:All Slices Content/Rules for all slices
AuditEvent.Slices for agent.agent:All Slices.id 0..1 string Unique id for inter-element referencing
AuditEvent.Slices for agent.agent:All Slices.extension 0..* Extension Additional content defined by implementations
AuditEvent.Slices for agent.agent:All Slices.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.Slices for agent.agent:All Slices.type 0..1 CodeableConcept How agent participated
Binding: ParticipationRoleType (extensible): The Participation type of the agent to the event.
AuditEvent.Slices for agent.agent:All Slices.role 0..* CodeableConcept Agent role in the event
Binding: SecurityRoleType (example): What security role enabled the agent to participate in the event.
AuditEvent.Slices for agent.agent:All Slices.who This element is included in summaries. 0..1 Reference(PractitionerRole | Practitioner | Organization | Device | Patient | RelatedPerson) Identifier of who
AuditEvent.Slices for agent.agent:All Slices.altId 0..1 string Alternative User identity
AuditEvent.Slices for agent.agent:All Slices.name 0..1 string Human friendly name for the agent
AuditEvent.Slices for agent.agent:All Slices.requestor This element is included in summaries. 1..1 boolean Whether user is initiator
AuditEvent.Slices for agent.agent:All Slices.location 0..1 Reference(Location) Where
AuditEvent.Slices for agent.agent:All Slices.policy 0..* uri Policy that authorized event
AuditEvent.Slices for agent.agent:All Slices.media 0..1 Coding Type of media
Binding: MediaTypeCode (extensible): Used when the event is about exporting/importing onto media.
AuditEvent.Slices for agent.agent:All Slices.network 0..1 BackboneElement Logical network location for application activity
AuditEvent.Slices for agent.agent:All Slices.network.id 0..1 string Unique id for inter-element referencing
AuditEvent.Slices for agent.agent:All Slices.network.extension 0..* Extension Additional content defined by implementations
AuditEvent.Slices for agent.agent:All Slices.network.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.Slices for agent.agent:All Slices.network.address 0..1 string Identifier for the network access point of the user device
AuditEvent.Slices for agent.agent:All Slices.network.type 0..1 code The type of network access point
Binding: AuditEventAgentNetworkType (required): The type of network access point of this agent in the audit event.
AuditEvent.Slices for agent.agent:All Slices.purposeOfUse 0..* CodeableConcept Reason given for this user
Binding: PurposeOfUse (3.1.0) (extensible): The reason the activity took place.
AuditEvent.Slices for agent.agent:ipAddress This element must be supported. 0..* BackboneElement Actor involved in the event
AuditEvent.Slices for agent.agent:ipAddress.id 0..1 string Unique id for inter-element referencing
AuditEvent.Slices for agent.agent:ipAddress.extension 0..* Extension Additional content defined by implementations
AuditEvent.Slices for agent.agent:ipAddress.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.Slices for agent.agent:ipAddress.type 0..1 CodeableConcept How agent participated
Binding: ParticipationRoleType (extensible): The Participation type of the agent to the event.
AuditEvent.Slices for agent.agent:ipAddress.role 0..* CodeableConcept Agent role in the event
Binding: SecurityRoleType (example): What security role enabled the agent to participate in the event.
AuditEvent.Slices for agent.agent:ipAddress.who This element is included in summaries. 0..1 Reference(PractitionerRole | Practitioner | Organization | Device | Patient | RelatedPerson) Identifier of who
AuditEvent.Slices for agent.agent:ipAddress.altId This element must be supported. 0..1 string 行為人識別碼
AuditEvent.Slices for agent.agent:ipAddress.name 0..1 string Human friendly name for the agent
AuditEvent.Slices for agent.agent:ipAddress.requestor This element must be supported. This element is included in summaries. 1..1 boolean 是否為事件發起人
AuditEvent.Slices for agent.agent:ipAddress.location This element must be supported. 0..1 Reference(服務地點及托育地址-Location TWSS Base) 行為人所在位置
AuditEvent.Slices for agent.agent:ipAddress.policy 0..* uri Policy that authorized event
AuditEvent.Slices for agent.agent:ipAddress.media 0..1 Coding Type of media
Binding: MediaTypeCode (extensible): Used when the event is about exporting/importing onto media.
AuditEvent.Slices for agent.agent:ipAddress.network 0..1 BackboneElement Logical network location for application activity
AuditEvent.Slices for agent.agent:ipAddress.network.id 0..1 string Unique id for inter-element referencing
AuditEvent.Slices for agent.agent:ipAddress.network.extension 0..* Extension Additional content defined by implementations
AuditEvent.Slices for agent.agent:ipAddress.network.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.Slices for agent.agent:ipAddress.network.address This element must be supported. 0..1 string 行為人裝置網路識別碼
AuditEvent.Slices for agent.agent:ipAddress.network.type 1..1 code The type of network access point
Binding: AuditEventAgentNetworkType (required): The type of network access point of this agent in the audit event.
Required Pattern: 2 (extensions allowed)
AuditEvent.Slices for agent.agent:ipAddress.purposeOfUse 0..* CodeableConcept Reason given for this user
Binding: PurposeOfUse (3.1.0) (extensible): The reason the activity took place.
AuditEvent.source 1..1 BackboneElement Audit Event Reporter
AuditEvent.source.id 0..1 string Unique id for inter-element referencing
AuditEvent.source.extension 0..* Extension Additional content defined by implementations
AuditEvent.source.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.source.site 0..1 string Logical source location within the enterprise
AuditEvent.source.observer This element must be supported. This element is included in summaries. 1..1 Reference(機構資料-Organization TWSS Base | Device) 事件記錄來源
AuditEvent.source.type 0..* Coding The type of source where event originated
Binding: AuditEventSourceType (extensible): Code specifying the type of system that detected and recorded the event.
AuditEvent.entity C 0..* BackboneElement Data or objects used
Constraints: sev-1
AuditEvent.entity.id 0..1 string Unique id for inter-element referencing
AuditEvent.entity.extension 0..* Extension Additional content defined by implementations
AuditEvent.entity.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.entity.what This element is included in summaries. 0..1 Reference(Resource) Specific instance of resource
AuditEvent.entity.type 0..1 Coding Type of entity involved
Binding: AuditEventEntityType (extensible): Code for the entity type involved in the audit event.
AuditEvent.entity.role 0..1 Coding What role the entity played
Binding: AuditEventEntityRole (extensible): Code representing the role the entity played in the audit event.
AuditEvent.entity.lifecycle 0..1 Coding Life-cycle stage for the entity
Binding: ObjectLifecycleEvents (extensible): Identifier for the data life-cycle stage for the entity.
AuditEvent.entity.securityLabel 0..* Coding Security labels on the entity
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
AuditEvent.entity.name This element is included in summaries. C 0..1 string Descriptor for entity
AuditEvent.entity.description 0..1 string Descriptive text
AuditEvent.entity.query This element is included in summaries. C 0..1 base64Binary Query parameters
AuditEvent.entity.detail 0..* BackboneElement Additional Information about the entity
AuditEvent.entity.detail.id 0..1 string Unique id for inter-element referencing
AuditEvent.entity.detail.extension 0..* Extension Additional content defined by implementations
AuditEvent.entity.detail.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.entity.detail.type 1..1 string Name of the property
AuditEvent.entity.detail.value[x] 1..1 Property value
AuditEvent.entity.detail.value[x].valueString string
AuditEvent.entity.detail.value[x].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 PurposeOfUse 📍3.1.0 THO v7.4
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.4
AuditEvent.agent:ipAddress.​type Base extensible ParticipationRoleType 📍4.0.1 FHIR Std.
AuditEvent.agent:ipAddress.​role Base example SecurityRoleType 📍4.0.1 FHIR Std.
AuditEvent.agent:ipAddress.​media Base extensible Media Type Code 📍4.0.1 FHIR Std.
AuditEvent.agent:ipAddress.​network.type Base required AuditEventAgentNetworkType 📍4.0.1 FHIR Std.
AuditEvent.agent:ipAddress.​purposeOfUse Base extensible PurposeOfUse 📍3.1.0 THO v7.4
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

Summary

Mandatory: 0 element(1 nested mandatory element)
Must-Support: 9 elements

Structures

This structure refers to these other structures:

Slices

This structure defines the following Slices:

  • The element 1 is sliced based on the value of AuditEvent.agent

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
AuditEvent 0..* AuditEvent Event record kept for security purposes
AuditEvent.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri A set of rules under which this content was created
AuditEvent.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
AuditEvent.type This element must be supported. This element is included in summaries. 1..1 Coding 活動記錄類型
Binding: AuditEventID (extensible): Type of event.
AuditEvent.period This element must be supported. 0..1 Period 活動發生時間
AuditEvent.recorded This element must be supported. This element is included in summaries. 1..1 instant 事件被記錄時間
AuditEvent.Slices for agent 1..* BackboneElement Actor involved in the event
Slice: Unordered, Open by value:network.type

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
AuditEvent.Slices for agent.agent:All Slices Content/Rules for all slices
AuditEvent.Slices for agent.agent:All Slices.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.Slices for agent.agent:All Slices.requestor This element is included in summaries. 1..1 boolean Whether user is initiator
AuditEvent.Slices for agent.agent:ipAddress This element must be supported. 0..* BackboneElement Actor involved in the event
AuditEvent.Slices for agent.agent:ipAddress.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.Slices for agent.agent:ipAddress.altId This element must be supported. 0..1 string 行為人識別碼
AuditEvent.Slices for agent.agent:ipAddress.requestor This element must be supported. This element is included in summaries. 1..1 boolean 是否為事件發起人
AuditEvent.Slices for agent.agent:ipAddress.location This element must be supported. 0..1 Reference(服務地點及托育地址-Location TWSS Base) 行為人所在位置
AuditEvent.Slices for agent.agent:ipAddress.network 0..1 BackboneElement Logical network location for application activity
AuditEvent.Slices for agent.agent:ipAddress.network.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.Slices for agent.agent:ipAddress.network.address This element must be supported. 0..1 string 行為人裝置網路識別碼
AuditEvent.Slices for agent.agent:ipAddress.network.type 1..1 code The type of network access point
Binding: AuditEventAgentNetworkType (required): The type of network access point of this agent in the audit event.
Required Pattern: 2 (extensions allowed)
AuditEvent.source 1..1 BackboneElement Audit Event Reporter
AuditEvent.source.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.source.observer This element must be supported. This element is included in summaries. 1..1 Reference(機構資料-Organization TWSS Base | Device) 事件記錄來源

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.agent:ipAddress.​network.type Base required AuditEventAgentNetworkType 📍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()

Differential View

This structure is derived from AuditEvent

NameFlagsCard.TypeDescription & Constraints    Filter: doco
AuditEvent 0..* AuditEvent Event record kept for security purposes
AuditEvent.type This element must be supported. 1..1 Coding 活動記錄類型
AuditEvent.period This element must be supported. 0..1 Period 活動發生時間
AuditEvent.recorded This element must be supported. 1..1 instant 事件被記錄時間
AuditEvent.Slices for agent 1..* BackboneElement Actor involved in the event
Slice: Unordered, Open by value:network.type
Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
AuditEvent.Slices for agent.agent:ipAddress This element must be supported. 0..* BackboneElement Actor involved in the event
AuditEvent.Slices for agent.agent:ipAddress.altId This element must be supported. 0..1 string 行為人識別碼
AuditEvent.Slices for agent.agent:ipAddress.requestor This element must be supported. 1..1 boolean 是否為事件發起人
AuditEvent.Slices for agent.agent:ipAddress.location This element must be supported. 0..1 Reference(服務地點及托育地址-Location TWSS Base) 行為人所在位置
AuditEvent.Slices for agent.agent:ipAddress.network
AuditEvent.Slices for agent.agent:ipAddress.network.address This element must be supported. 0..1 string 行為人裝置網路識別碼
AuditEvent.Slices for agent.agent:ipAddress.network.type 1..1 code The type of network access point
Required Pattern: 2 (extensions allowed)
AuditEvent.source
AuditEvent.source.observer This element must be supported. 1..1 Reference(機構資料-Organization TWSS Base | Device) 事件記錄來源

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
AuditEvent 0..* AuditEvent Event record kept for security purposes
AuditEvent.id This element is included in summaries. 0..1 id Logical id of this artifact
AuditEvent.meta This element is included in summaries. 0..1 Meta Metadata about the resource
AuditEvent.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri A set of rules under which this content was created
AuditEvent.language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
AuditEvent.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
AuditEvent.contained 0..* Resource Contained, inline Resources
AuditEvent.extension 0..* Extension Additional content defined by implementations
AuditEvent.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
AuditEvent.type This element must be supported. This element is included in summaries. 1..1 Coding 活動記錄類型
Binding: AuditEventID (extensible): Type of event.
AuditEvent.subtype This element is included in summaries. 0..* Coding More specific type/id for the event
Binding: AuditEventSub-Type (extensible): Sub-type of event.
AuditEvent.action This element is included in summaries. 0..1 code Type of action performed during the event
Binding: AuditEventAction (required): Indicator for type of action performed during the event that generated the event.
AuditEvent.period This element must be supported. 0..1 Period 活動發生時間
AuditEvent.recorded This element must be supported. This element is included in summaries. 1..1 instant 事件被記錄時間
AuditEvent.outcome This element is included in summaries. 0..1 code Whether the event succeeded or failed
Binding: AuditEventOutcome (required): Indicates whether the event succeeded or failed.
AuditEvent.outcomeDesc This element is included in summaries. 0..1 string Description of the event outcome
AuditEvent.purposeOfEvent This element is included in summaries. 0..* CodeableConcept The purposeOfUse of the event
Binding: PurposeOfUse (3.1.0) (extensible): The reason the activity took place.
AuditEvent.Slices for agent 1..* BackboneElement Actor involved in the event
Slice: Unordered, Open by value:network.type

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
AuditEvent.Slices for agent.agent:All Slices Content/Rules for all slices
AuditEvent.Slices for agent.agent:All Slices.id 0..1 string Unique id for inter-element referencing
AuditEvent.Slices for agent.agent:All Slices.extension 0..* Extension Additional content defined by implementations
AuditEvent.Slices for agent.agent:All Slices.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.Slices for agent.agent:All Slices.type 0..1 CodeableConcept How agent participated
Binding: ParticipationRoleType (extensible): The Participation type of the agent to the event.
AuditEvent.Slices for agent.agent:All Slices.role 0..* CodeableConcept Agent role in the event
Binding: SecurityRoleType (example): What security role enabled the agent to participate in the event.
AuditEvent.Slices for agent.agent:All Slices.who This element is included in summaries. 0..1 Reference(PractitionerRole | Practitioner | Organization | Device | Patient | RelatedPerson) Identifier of who
AuditEvent.Slices for agent.agent:All Slices.altId 0..1 string Alternative User identity
AuditEvent.Slices for agent.agent:All Slices.name 0..1 string Human friendly name for the agent
AuditEvent.Slices for agent.agent:All Slices.requestor This element is included in summaries. 1..1 boolean Whether user is initiator
AuditEvent.Slices for agent.agent:All Slices.location 0..1 Reference(Location) Where
AuditEvent.Slices for agent.agent:All Slices.policy 0..* uri Policy that authorized event
AuditEvent.Slices for agent.agent:All Slices.media 0..1 Coding Type of media
Binding: MediaTypeCode (extensible): Used when the event is about exporting/importing onto media.
AuditEvent.Slices for agent.agent:All Slices.network 0..1 BackboneElement Logical network location for application activity
AuditEvent.Slices for agent.agent:All Slices.network.id 0..1 string Unique id for inter-element referencing
AuditEvent.Slices for agent.agent:All Slices.network.extension 0..* Extension Additional content defined by implementations
AuditEvent.Slices for agent.agent:All Slices.network.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.Slices for agent.agent:All Slices.network.address 0..1 string Identifier for the network access point of the user device
AuditEvent.Slices for agent.agent:All Slices.network.type 0..1 code The type of network access point
Binding: AuditEventAgentNetworkType (required): The type of network access point of this agent in the audit event.
AuditEvent.Slices for agent.agent:All Slices.purposeOfUse 0..* CodeableConcept Reason given for this user
Binding: PurposeOfUse (3.1.0) (extensible): The reason the activity took place.
AuditEvent.Slices for agent.agent:ipAddress This element must be supported. 0..* BackboneElement Actor involved in the event
AuditEvent.Slices for agent.agent:ipAddress.id 0..1 string Unique id for inter-element referencing
AuditEvent.Slices for agent.agent:ipAddress.extension 0..* Extension Additional content defined by implementations
AuditEvent.Slices for agent.agent:ipAddress.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.Slices for agent.agent:ipAddress.type 0..1 CodeableConcept How agent participated
Binding: ParticipationRoleType (extensible): The Participation type of the agent to the event.
AuditEvent.Slices for agent.agent:ipAddress.role 0..* CodeableConcept Agent role in the event
Binding: SecurityRoleType (example): What security role enabled the agent to participate in the event.
AuditEvent.Slices for agent.agent:ipAddress.who This element is included in summaries. 0..1 Reference(PractitionerRole | Practitioner | Organization | Device | Patient | RelatedPerson) Identifier of who
AuditEvent.Slices for agent.agent:ipAddress.altId This element must be supported. 0..1 string 行為人識別碼
AuditEvent.Slices for agent.agent:ipAddress.name 0..1 string Human friendly name for the agent
AuditEvent.Slices for agent.agent:ipAddress.requestor This element must be supported. This element is included in summaries. 1..1 boolean 是否為事件發起人
AuditEvent.Slices for agent.agent:ipAddress.location This element must be supported. 0..1 Reference(服務地點及托育地址-Location TWSS Base) 行為人所在位置
AuditEvent.Slices for agent.agent:ipAddress.policy 0..* uri Policy that authorized event
AuditEvent.Slices for agent.agent:ipAddress.media 0..1 Coding Type of media
Binding: MediaTypeCode (extensible): Used when the event is about exporting/importing onto media.
AuditEvent.Slices for agent.agent:ipAddress.network 0..1 BackboneElement Logical network location for application activity
AuditEvent.Slices for agent.agent:ipAddress.network.id 0..1 string Unique id for inter-element referencing
AuditEvent.Slices for agent.agent:ipAddress.network.extension 0..* Extension Additional content defined by implementations
AuditEvent.Slices for agent.agent:ipAddress.network.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.Slices for agent.agent:ipAddress.network.address This element must be supported. 0..1 string 行為人裝置網路識別碼
AuditEvent.Slices for agent.agent:ipAddress.network.type 1..1 code The type of network access point
Binding: AuditEventAgentNetworkType (required): The type of network access point of this agent in the audit event.
Required Pattern: 2 (extensions allowed)
AuditEvent.Slices for agent.agent:ipAddress.purposeOfUse 0..* CodeableConcept Reason given for this user
Binding: PurposeOfUse (3.1.0) (extensible): The reason the activity took place.
AuditEvent.source 1..1 BackboneElement Audit Event Reporter
AuditEvent.source.id 0..1 string Unique id for inter-element referencing
AuditEvent.source.extension 0..* Extension Additional content defined by implementations
AuditEvent.source.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.source.site 0..1 string Logical source location within the enterprise
AuditEvent.source.observer This element must be supported. This element is included in summaries. 1..1 Reference(機構資料-Organization TWSS Base | Device) 事件記錄來源
AuditEvent.source.type 0..* Coding The type of source where event originated
Binding: AuditEventSourceType (extensible): Code specifying the type of system that detected and recorded the event.
AuditEvent.entity C 0..* BackboneElement Data or objects used
Constraints: sev-1
AuditEvent.entity.id 0..1 string Unique id for inter-element referencing
AuditEvent.entity.extension 0..* Extension Additional content defined by implementations
AuditEvent.entity.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.entity.what This element is included in summaries. 0..1 Reference(Resource) Specific instance of resource
AuditEvent.entity.type 0..1 Coding Type of entity involved
Binding: AuditEventEntityType (extensible): Code for the entity type involved in the audit event.
AuditEvent.entity.role 0..1 Coding What role the entity played
Binding: AuditEventEntityRole (extensible): Code representing the role the entity played in the audit event.
AuditEvent.entity.lifecycle 0..1 Coding Life-cycle stage for the entity
Binding: ObjectLifecycleEvents (extensible): Identifier for the data life-cycle stage for the entity.
AuditEvent.entity.securityLabel 0..* Coding Security labels on the entity
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
AuditEvent.entity.name This element is included in summaries. C 0..1 string Descriptor for entity
AuditEvent.entity.description 0..1 string Descriptive text
AuditEvent.entity.query This element is included in summaries. C 0..1 base64Binary Query parameters
AuditEvent.entity.detail 0..* BackboneElement Additional Information about the entity
AuditEvent.entity.detail.id 0..1 string Unique id for inter-element referencing
AuditEvent.entity.detail.extension 0..* Extension Additional content defined by implementations
AuditEvent.entity.detail.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
AuditEvent.entity.detail.type 1..1 string Name of the property
AuditEvent.entity.detail.value[x] 1..1 Property value
AuditEvent.entity.detail.value[x].valueString string
AuditEvent.entity.detail.value[x].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 PurposeOfUse 📍3.1.0 THO v7.4
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.4
AuditEvent.agent:ipAddress.​type Base extensible ParticipationRoleType 📍4.0.1 FHIR Std.
AuditEvent.agent:ipAddress.​role Base example SecurityRoleType 📍4.0.1 FHIR Std.
AuditEvent.agent:ipAddress.​media Base extensible Media Type Code 📍4.0.1 FHIR Std.
AuditEvent.agent:ipAddress.​network.type Base required AuditEventAgentNetworkType 📍4.0.1 FHIR Std.
AuditEvent.agent:ipAddress.​purposeOfUse Base extensible PurposeOfUse 📍3.1.0 THO v7.4
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

Summary

Mandatory: 0 element(1 nested mandatory element)
Must-Support: 9 elements

Structures

This structure refers to these other structures:

Slices

This structure defines the following Slices:

  • The element 1 is sliced based on the value of AuditEvent.agent

 

Other representations of profile: CSV, Excel, Schematron

Notes:

可能可以(MAY)支援以下查詢參數:

此 Profile 使用 FHIR R4 AuditEvent Resource;伺服端可能可以(MAY)支援 FHIR R4 AuditEvent 所定義之查詢參數。完整定義請參考 FHIR R4 AuditEvent 原生查詢參數。

查詢參數 類型 說明
altid token 依行為人識別碼查詢。
date date 依事件被記錄時間查詢。
source reference 依事件記錄來源查詢。
type token 依活動記錄類型查詢。
address string 依行為人裝置網路識別碼查詢。