HL7中国FHIR Connectathon测试实施指南
2024.5.5 - release
本指南适用于HL7中国的FHIR Connectathon测试。
Defining URL: | http://hl7.org.cn/fhir/StructureDefinition/profile-core-auditevent |
Version: | 2024.5.5 |
Name: | CoreAuditEvent |
Title: | 核心审计事件结构定义 |
Status: | Active as of 2024-05-05 21:11:47+0800 |
Definition: | 核心审计事件资源本地化定义。 |
Publisher: | HL7中国. HL7中国, |
Source Resource: | XML / JSON / Turtle |
本定义的正式URL为:
http://hl7.org.cn/fhir/StructureDefinition/profile-core-auditevent
这种结构源自 AuditEvent
Summary
Mandatory: 6 elements
Slices
This structure defines the following Slices:
这种结构源自 AuditEvent
Name | Flags | Card. | Type | Description & Constraints | ||||
---|---|---|---|---|---|---|---|---|
AuditEvent | 0..* | AuditEvent | Record of an event | |||||
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: AllLanguages (required): IETF language tag for a human language
| |||||
text | 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 | ||||
category | Σ | 1..1 | CodeableConcept | 审计事件分类(粗粒度) Binding: AuditEventID (required) | ||||
code | Σ | 1..1 | CodeableConcept | 审计事件类型(细粒度) Binding: AuditEventSubType (required) | ||||
action | Σ | 1..1 | code | 活动类型:创建、读取、更新、删除、执行 Binding: AuditEventAction (required): DICOM Audit Event Action | ||||
severity | Σ | 0..1 | code | emergency | alert | critical | error | warning | notice | informational | debug Binding: AuditEventSeverity (required): This is in the SysLog header, PRI. http://tools.ietf.org/html/rfc5424#appendix-A.3 | ||||
Slices for occurred[x] | 1..1 | dateTime | When the activity occurred Slice: Unordered, Closed by type:$this | |||||
occurred[x]:occurredDateTime | 1..1 | dateTime | 活动发生时间 | |||||
recorded | Σ | 1..1 | instant | 审计记录时间 | ||||
outcome | Σ | 1..1 | BackboneElement | 执行结果:成功、一般错误、严重错误、重大错误 | ||||
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 | ||||
code | Σ | 1..1 | Coding | Whether the event succeeded or failed Binding: AuditEventOutcome (preferred): DICOM Audit Event Outcome | ||||
detail | Σ | 0..* | CodeableConcept | Additional outcome detail Binding: AuditEventOutcomeDetail (example): A code that provides details as the exact issue. | ||||
authorization | Σ | 0..* | CodeableConcept | Authorization related to the event Binding: PurposeOfUse (example): The authorized purposeOfUse for the activity. | ||||
basedOn | 0..* | Reference(CarePlan | DeviceRequest | ImmunizationRecommendation | MedicationRequest | NutritionOrder | ServiceRequest | Task) | Workflow authorization within which this event occurred | |||||
patient | 0..1 | Reference(Patient) | The patient is the subject of the data used/created/updated/deleted during the activity | |||||
encounter | 0..1 | Reference(Encounter) | Encounter within which this event occurred or which the event is tightly associated | |||||
agent | Σ | 1..* | BackboneElement | 事件参与者 | ||||
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 | 0..1 | CodeableConcept | 事件参与者类型 Binding: ParticipationRoleType (preferred): The Participation type of the agent to the event. | |||||
role | 0..* | CodeableConcept | Agent role in the event Binding: SecurityRoleType (example): What security role enabled the agent to participate in the event. | |||||
who | Σ | 1..1 | Reference(Practitioner | PractitionerRole | Organization | CareTeam | Patient | Device | RelatedPerson) | 参与者(可以是系统或者人员) | ||||
requestor | Σ | 0..1 | boolean | 是否为事件的发起者 | ||||
location | 0..1 | Reference(Location) | The agent location when the event occurred | |||||
policy | 0..* | uri | Policy that authorized the agent participation in the event | |||||
network[x] | 1..1 | 网络信息 | ||||||
networkReference | Reference(Endpoint) | |||||||
networkUri | uri | |||||||
networkString | string | |||||||
authorization | 0..* | CodeableConcept | Allowable authorization for this agent Binding: PurposeOfUse (example): The reason the activity took place. | |||||
source | Σ | 1..1 | BackboneElement | 审计源,记录了提交审计事件的系统 | ||||
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 | 0..1 | Reference(Location) | 审计源所处位置 | |||||
observer | Σ | 1..1 | Reference(Practitioner | PractitionerRole | Organization | CareTeam | Patient | Device | RelatedPerson) | 审计源系统标识 | ||||
type | 0..* | CodeableConcept | 审计源类型 Binding: AuditEventSourceType (preferred): Code specifying the type of system that detected and recorded the event. Use of these codes is not required but is encouraged to maintain translation with DICOM AuditMessage schema. | |||||
entity | Σ | 0..* | BackboneElement | Data or objects used | ||||
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 | Σ | 0..1 | Reference(Resource) | Specific instance of resource | ||||
role | 0..1 | CodeableConcept | What role the entity played Binding: AuditEventEntityRole (example): DICOM Audit Event Entity Role | |||||
securityLabel | 0..* | CodeableConcept | Security labels on the entity Binding: SecurityLabelExamples (example): Example Security Labels from the Healthcare Privacy and Security Classification System. | |||||
query | Σ | 0..1 | base64Binary | Query parameters | ||||
detail | 0..* | BackboneElement | Additional Information about the entity | |||||
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 | 1..1 | CodeableConcept | Name of the property Binding: AuditEventID (example): Additional detail about an entity used in an event. | |||||
value[x] | 1..1 | Property value | ||||||
valueQuantity | Quantity | |||||||
valueCodeableConcept | CodeableConcept | |||||||
valueString | string | |||||||
valueBoolean | boolean | |||||||
valueInteger | integer | |||||||
valueRange | Range | |||||||
valueRatio | Ratio | |||||||
valueTime | time | |||||||
valueDateTime | dateTime | |||||||
valuePeriod | Period | |||||||
valueBase64Binary | base64Binary | |||||||
agent | 0..* | See agent (AuditEvent) | Entity is attributed to this agent | |||||
Documentation for this format |
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
AuditEvent | 0..* | AuditEvent | Record of an event | |
Documentation for this format |
这种结构源自 AuditEvent
Summary
Mandatory: 6 elements
Slices
This structure defines the following Slices:
差异视图
这种结构源自 AuditEvent
快照视图
Name | Flags | Card. | Type | Description & Constraints | ||||
---|---|---|---|---|---|---|---|---|
AuditEvent | 0..* | AuditEvent | Record of an event | |||||
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: AllLanguages (required): IETF language tag for a human language
| |||||
text | 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 | ||||
category | Σ | 1..1 | CodeableConcept | 审计事件分类(粗粒度) Binding: AuditEventID (required) | ||||
code | Σ | 1..1 | CodeableConcept | 审计事件类型(细粒度) Binding: AuditEventSubType (required) | ||||
action | Σ | 1..1 | code | 活动类型:创建、读取、更新、删除、执行 Binding: AuditEventAction (required): DICOM Audit Event Action | ||||
severity | Σ | 0..1 | code | emergency | alert | critical | error | warning | notice | informational | debug Binding: AuditEventSeverity (required): This is in the SysLog header, PRI. http://tools.ietf.org/html/rfc5424#appendix-A.3 | ||||
Slices for occurred[x] | 1..1 | dateTime | When the activity occurred Slice: Unordered, Closed by type:$this | |||||
occurred[x]:occurredDateTime | 1..1 | dateTime | 活动发生时间 | |||||
recorded | Σ | 1..1 | instant | 审计记录时间 | ||||
outcome | Σ | 1..1 | BackboneElement | 执行结果:成功、一般错误、严重错误、重大错误 | ||||
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 | ||||
code | Σ | 1..1 | Coding | Whether the event succeeded or failed Binding: AuditEventOutcome (preferred): DICOM Audit Event Outcome | ||||
detail | Σ | 0..* | CodeableConcept | Additional outcome detail Binding: AuditEventOutcomeDetail (example): A code that provides details as the exact issue. | ||||
authorization | Σ | 0..* | CodeableConcept | Authorization related to the event Binding: PurposeOfUse (example): The authorized purposeOfUse for the activity. | ||||
basedOn | 0..* | Reference(CarePlan | DeviceRequest | ImmunizationRecommendation | MedicationRequest | NutritionOrder | ServiceRequest | Task) | Workflow authorization within which this event occurred | |||||
patient | 0..1 | Reference(Patient) | The patient is the subject of the data used/created/updated/deleted during the activity | |||||
encounter | 0..1 | Reference(Encounter) | Encounter within which this event occurred or which the event is tightly associated | |||||
agent | Σ | 1..* | BackboneElement | 事件参与者 | ||||
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 | 0..1 | CodeableConcept | 事件参与者类型 Binding: ParticipationRoleType (preferred): The Participation type of the agent to the event. | |||||
role | 0..* | CodeableConcept | Agent role in the event Binding: SecurityRoleType (example): What security role enabled the agent to participate in the event. | |||||
who | Σ | 1..1 | Reference(Practitioner | PractitionerRole | Organization | CareTeam | Patient | Device | RelatedPerson) | 参与者(可以是系统或者人员) | ||||
requestor | Σ | 0..1 | boolean | 是否为事件的发起者 | ||||
location | 0..1 | Reference(Location) | The agent location when the event occurred | |||||
policy | 0..* | uri | Policy that authorized the agent participation in the event | |||||
network[x] | 1..1 | 网络信息 | ||||||
networkReference | Reference(Endpoint) | |||||||
networkUri | uri | |||||||
networkString | string | |||||||
authorization | 0..* | CodeableConcept | Allowable authorization for this agent Binding: PurposeOfUse (example): The reason the activity took place. | |||||
source | Σ | 1..1 | BackboneElement | 审计源,记录了提交审计事件的系统 | ||||
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 | 0..1 | Reference(Location) | 审计源所处位置 | |||||
observer | Σ | 1..1 | Reference(Practitioner | PractitionerRole | Organization | CareTeam | Patient | Device | RelatedPerson) | 审计源系统标识 | ||||
type | 0..* | CodeableConcept | 审计源类型 Binding: AuditEventSourceType (preferred): Code specifying the type of system that detected and recorded the event. Use of these codes is not required but is encouraged to maintain translation with DICOM AuditMessage schema. | |||||
entity | Σ | 0..* | BackboneElement | Data or objects used | ||||
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 | Σ | 0..1 | Reference(Resource) | Specific instance of resource | ||||
role | 0..1 | CodeableConcept | What role the entity played Binding: AuditEventEntityRole (example): DICOM Audit Event Entity Role | |||||
securityLabel | 0..* | CodeableConcept | Security labels on the entity Binding: SecurityLabelExamples (example): Example Security Labels from the Healthcare Privacy and Security Classification System. | |||||
query | Σ | 0..1 | base64Binary | Query parameters | ||||
detail | 0..* | BackboneElement | Additional Information about the entity | |||||
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 | 1..1 | CodeableConcept | Name of the property Binding: AuditEventID (example): Additional detail about an entity used in an event. | |||||
value[x] | 1..1 | Property value | ||||||
valueQuantity | Quantity | |||||||
valueCodeableConcept | CodeableConcept | |||||||
valueString | string | |||||||
valueBoolean | boolean | |||||||
valueInteger | integer | |||||||
valueRange | Range | |||||||
valueRatio | Ratio | |||||||
valueTime | time | |||||||
valueDateTime | dateTime | |||||||
valuePeriod | Period | |||||||
valueBase64Binary | base64Binary | |||||||
agent | 0..* | See agent (AuditEvent) | Entity is attributed to this agent | |||||
Documentation for this format |
本定义的其它表示法: Schematron
Path | Conformance | ValueSet | URI |
AuditEvent.language | required | AllLanguageshttp://hl7.org/fhir/ValueSet/all-languages|5.0.0 from the FHIR Standard | |
AuditEvent.category | required | AuditEventIDhttp://hl7.org/fhir/ValueSet/audit-event-type from the FHIR Standard | |
AuditEvent.code | required | AuditEventSubTypehttp://hl7.org/fhir/ValueSet/audit-event-sub-type from the FHIR Standard | |
AuditEvent.action | required | AuditEventActionhttp://hl7.org/fhir/ValueSet/audit-event-action|5.0.0 from the FHIR Standard | |
AuditEvent.severity | required | AuditEventSeverityhttp://hl7.org/fhir/ValueSet/audit-event-severity|5.0.0 from the FHIR Standard | |
AuditEvent.outcome.code | preferred | AuditEventOutcomehttp://hl7.org/fhir/ValueSet/audit-event-outcome from the FHIR Standard | |
AuditEvent.outcome.detail | example | AuditEventOutcomeDetailhttp://hl7.org/fhir/ValueSet/audit-event-outcome-detail from the FHIR Standard | |
AuditEvent.authorization | example | PurposeOfUsehttp://terminology.hl7.org/ValueSet/v3-PurposeOfUse | |
AuditEvent.agent.type | preferred | ParticipationRoleTypehttp://hl7.org/fhir/ValueSet/participation-role-type from the FHIR Standard | |
AuditEvent.agent.role | example | SecurityRoleTypehttp://hl7.org/fhir/ValueSet/security-role-type from the FHIR Standard | |
AuditEvent.agent.authorization | example | PurposeOfUsehttp://terminology.hl7.org/ValueSet/v3-PurposeOfUse | |
AuditEvent.source.type | preferred | AuditEventSourceTypehttp://hl7.org/fhir/ValueSet/security-source-type from the FHIR Standard | |
AuditEvent.entity.role | example | AuditEventEntityRolehttp://hl7.org/fhir/ValueSet/object-role from the FHIR Standard | |
AuditEvent.entity.securityLabel | example | SecurityLabelExampleshttp://hl7.org/fhir/ValueSet/security-label-examples from the FHIR Standard | |
AuditEvent.entity.detail.type | example | AuditEventIDhttp://hl7.org/fhir/ValueSet/audit-event-type from the FHIR Standard |
Id | Grade | Path(s) | Details | Requirements |
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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(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() |