profile-core-auditevent
type: StructureDefinition
node role: treeRoot
id:
  v: profile-core-auditevent
text:
  status:
    v: extensions
  div: Generated Narrative: StructureDefinition profile-core-auditevent Name Flags Card. Type Description & Constraints AuditEvent 0..* AuditEvent Record of an event category 1..1 CodeableConcept 审计事件分类（粗粒度） Binding: AuditEventID (required) code 1..1 CodeableConcept 审计事件类型（细粒度） Binding: AuditEventSubType (required) action 1..1 code 活动类型：创建、读取、更新、删除、执行 occurred[x] 1..1 dateTime 活动发生时间 recorded 1..1 instant 审计记录时间 outcome 1..1 BackboneElement 执行结果：成功、一般错误、严重错误、重大错误 agent 1..* BackboneElement 事件参与者 type 0..1 CodeableConcept 事件参与者类型 who 1..1 Reference(Practitioner | PractitionerRole | Organization | CareTeam | Patient | Device | RelatedPerson) 参与者（可以是系统或者人员） requestor 0..1 boolean 是否为事件的发起者 network[x] 1..1 Reference(Endpoint), uri, string 网络信息 source 1..1 BackboneElement 审计源，记录了提交审计事件的系统 site 0..1 Reference(Location) 审计源所处位置 observer 1..1 Reference(Practitioner | PractitionerRole | Organization | CareTeam | Patient | Device | RelatedPerson) 审计源系统标识 type 0..* CodeableConcept 审计源类型 Documentation for this format
url:
  v: http://hl7.org.cn/fhir/connectathon/StructureDefinition/profile-core-auditevent
version:
  v: 2025.3.12
name:
  v: CoreAuditEvent
title:
  v: 核心审计事件结构定义
status:
  v: draft
date:
  v: 2025-03-11T20:37:13+08:00
publisher:
  v: HL7中国
contact:
  name:
    v: HL7中国
  telecom:
    system:
      v: url
    value:
      v: http://hl7.org.cn
description:
  v: 核心审计事件资源本地化定义。
fhir version:
  v: 5.0.0
mapping:
  identity:
    v: workflow
  uri:
    v: http://hl7.org/fhir/workflow
  name:
    v: Workflow Pattern
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
  name:
    v: FiveWs Pattern Mapping
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: dicom
  uri:
    v: http://nema.org/dicom
  name:
    v: DICOM Tag Mapping
mapping:
  identity:
    v: w3c.prov
  uri:
    v: http://www.w3.org/ns/prov
  name:
    v: W3C PROV
mapping:
  identity:
    v: fhirprovenance
  uri:
    v: http://hl7.org/fhir/provenance
  name:
    v: FHIR Provenance Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: AuditEvent
base definition:
  v: http://hl7.org/fhir/StructureDefinition/AuditEvent
  link: http://hl7.org/fhir/StructureDefinition/AuditEvent
derivation:
  v: constraint
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
    value: string
      v: 5.0.0
  element:
    id:
      v: AuditEvent
    path:
      v: AuditEvent
    short:
      v: Record of an event
    definition:
      v: A record of an event relevant for purposes such as operations, privacy, security, maintenance, and performance analysis.
    comment:
      v: Based on IHE-ATNA.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: AuditEvent
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: 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
      expression:
        v: 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()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-5
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a security label
      expression:
        v: contained.meta.security.empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      extension:
        value: boolean
      extension:
        value: markdown
      key:
        v: dom-6
      severity:
        v: warning
      human:
        v: A resource should have narrative for robust management
      expression:
        v: text.`div`.exists()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    must support:
      v: false
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: Entity, Role, or Act,ControlAct[moodCode=EVN]
    mapping:
      identity:
        v: workflow
      map:
        v: Event
    mapping:
      identity:
        v: w5
      map:
        v: infrastructure.information
    mapping:
      identity:
        v: dicom

boolean
v: true

markdown
v: When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time.

v: Message

id:
  v: AuditEvent.id
path:
  v: AuditEvent.id
short:
  v: Logical id of this artifact
definition:
  v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
comment:
  v: Within the context of the FHIR RESTful interactions, the resource has an id except for cases like the create and conditional update. Otherwise, the use of the resouce id depends on the given use case.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: id
  code:
    v: http://hl7.org/fhirpath/System.String
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true

id:
  v: AuditEvent.meta
path:
  v: AuditEvent.meta
short:
  v: Metadata about the resource
definition:
  v: The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.meta
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Meta
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true

id:
  v: AuditEvent.implicitRules
path:
  v: AuditEvent.implicitRules
short:
  v: A set of rules under which this content was created
definition:
  v: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
comment:
  v: Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of its narrative along with other profiles, value sets, etc.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies its meaning or interpretation
is summary:
  v: true

id:
  v: AuditEvent.language
path:
  v: AuditEvent.language
short:
  v: Language of the resource content
definition:
  v: The base language in which the resource is written.
comment:
  v: Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: Language
  strength:
    v: required
  description:
    v: IETF language tag for a human language
  value set:
    v: http://hl7.org/fhir/ValueSet/all-languages|5.0.0
    link: 5.0
    link: .0
  additional:
    purpose:
      v: starter
    value set:
      v: http://hl7.org/fhir/ValueSet/languages
      link: http://hl7.org/fhir/ValueSet/languages

id:
  v: AuditEvent.text
path:
  v: AuditEvent.text
short:
  v: Text summary of the resource, for human interpretation
definition:
  v: A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
comment:
  v: Contained resources do not have a narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded information is added later.
alias:
  v: narrative
alias:
  v: html
alias:
  v: xhtml
alias:
  v: display
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
condition:
  v: dom-6
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: AuditEvent.contained
path:
  v: AuditEvent.contained
short:
  v: Contained, inline Resources
definition:
  v: These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning.
comment:
  v: This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags in their meta elements, but SHALL NOT have security labels.
alias:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
condition:
  v: dom-2
condition:
  v: dom-4
condition:
  v: dom-3
condition:
  v: dom-5
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: AuditEvent.extension
path:
  v: AuditEvent.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: AuditEvent.modifierExtension
path:
  v: AuditEvent.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: false
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: AuditEvent.category
path:
  v: AuditEvent.category
short:
  v: 审计事件分类（粗粒度）
definition:
  v: Classification of the type of event.
requirements:
  v: Codes that classify the general type of event that happened.
alias:
  v: type
min:
  v: 1
max:
  v: 1
base:
  path:
    v: AuditEvent.category
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/audit-event-type
    link: http://hl7.org/fhir/ValueSet/audit-event-type
mapping:
  identity:
    v: workflow
  map:
    v: Event.code
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]
mapping:
  identity:
    v: rim
  map:
    v: .code (type, subtype and action are pre-coordinated or sent as translations)
mapping:
  identity:
    v: dicom
  map:
    v: EventId
mapping:
  identity:
    v: w3c.prov
  map:
    v: Activity

id:
  v: AuditEvent.code
path:
  v: AuditEvent.code
short:
  v: 审计事件类型（细粒度）
definition:
  v: Describes what happened. The most specific code for the event.
requirements:
  v: This field enables queries of messages by implementation-defined event categories.
alias:
  v: subtype
min:
  v: 1
max:
  v: 1
base:
  path:
    v: AuditEvent.code
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/audit-event-sub-type
    link: http://hl7.org/fhir/ValueSet/audit-event-sub-type
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]
mapping:
  identity:
    v: rim
  map:
    v: .code (type, subtype and action are pre-coordinated or sent as translations)
mapping:
  identity:
    v: dicom
  map:
    v: EventTypeCode
mapping:
  identity:
    v: fhirprovenance
  map:
    v: Provenance.activity

id:
  v: AuditEvent.action
path:
  v: AuditEvent.action
short:
  v: 活动类型：创建、读取、更新、删除、执行
definition:
  v: Indicator for type of action performed during the event that generated the audit.
requirements:
  v: This broadly indicates what kind of action was done on the AuditEvent.entity by the AuditEvent.agent.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: AuditEvent.action
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: AuditEventAction
  strength:
    v: required
  description:
    v: DICOM Audit Event Action
  value set:
    v: http://hl7.org/fhir/ValueSet/audit-event-action|5.0.0
    link: 5.0
    link: .0
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]
mapping:
  identity:
    v: rim
  map:
    v: .code (type, subtype and action are pre-coordinated or sent as translations)
mapping:
  identity:
    v: dicom
  map:
    v: EventActionCode

id:
  v: AuditEvent.severity
path:
  v: AuditEvent.severity
short:
  v: emergency | alert | critical | error | warning | notice | informational | debug
definition:
  v: Indicates and enables segmentation of various severity including debugging from critical.
comment:
  v: ATNA will map this to the SYSLOG PRI element.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AuditEvent.severity
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: AuditEventSeverity
  strength:
    v: required
  description:
    v: This is in the SysLog header, PRI. http://tools.ietf.org/html/rfc5424#appendix-A.3
  value set:
    v: http://hl7.org/fhir/ValueSet/audit-event-severity|5.0.0
    link: 5.0
    link: .0
mapping:
  identity:
    v: rim
  map:
    v: N/A
mapping:
  identity:
    v: dicom
  map:
    v: PRI

id:
  v: AuditEvent.occurred[x]
path:
  v: AuditEvent.occurred[x]
short:
  v: 活动发生时间
definition:
  v: The time or period during which the activity occurred.
comment:
  v: The time or period can be a little arbitrary; where possible, the time should correspond to human assessment of the activity time.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: AuditEvent.occurred[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.occurrence
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.done[x]
mapping:
  identity:
    v: rim
  map:
    v: ./effectiveTime[type=IVL_TS]
mapping:
  identity:
    v: w3c.prov
  map:
    v: Activity.startTime & Activity.endTime
mapping:
  identity:
    v: fhirprovenance
  map:
    v: Provenance.occurred[x]

id:
  v: AuditEvent.recorded
path:
  v: AuditEvent.recorded
short:
  v: 审计记录时间
definition:
  v: The time when the event was recorded.
comment:
  v: In a distributed system, some sort of common time base (e.g. an NTP [RFC1305] server) is a good implementation tactic.
requirements:
  v: This ties an event to a specific date and time. Security audits typically require a consistent time base (e.g. UTC), to eliminate time-zone issues arising from geographical distribution.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: AuditEvent.recorded
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: instant
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.recorded
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime
mapping:
  identity:
    v: dicom
  map:
    v: EventDateTime
mapping:
  identity:
    v: w3c.prov
  map:
    v: Activity.when
mapping:
  identity:
    v: fhirprovenance
  map:
    v: Provenance.recorded

id:
  v: AuditEvent.outcome
path:
  v: AuditEvent.outcome
short:
  v: 执行结果：成功、一般错误、严重错误、重大错误
definition:
  v: Indicates whether the event succeeded or failed. A free text descripiton can be given in outcome.text.
comment:
  v: In some cases a "success" may be partial, for example, an incomplete or interrupted transfer of a radiological study. For the purpose of establishing accountability, these distinctions are not relevant.
requirements:
  v: when a code is given there must be one code from the given codeSystem, and may be other equivilant codes from other codeSystems (for example http response codes such as 2xx, 4xx, or 5xx).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: AuditEvent.outcome
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=OUT].target.text

id:
  v: AuditEvent.outcome.id
path:
  v: AuditEvent.outcome.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: AuditEvent.outcome.extension
path:
  v: AuditEvent.outcome.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: AuditEvent.outcome.modifierExtension
path:
  v: AuditEvent.outcome.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: AuditEvent.outcome.code
path:
  v: AuditEvent.outcome.code
short:
  v: Whether the event succeeded or failed
definition:
  v: Indicates whether the event succeeded or failed.
comment:
  v: In some cases a "success" may be partial, for example, an incomplete or interrupted transfer of a radiological study. For the purpose of establishing accountability, these distinctions are not relevant.
requirements:
  v: when a code is given there must be one code from the given codeSystem.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: AuditEvent.outcome.code
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Coding
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: AuditEventOutcome
  strength:
    v: preferred
  description:
    v: DICOM Audit Event Outcome
  value set:
    v: http://hl7.org/fhir/ValueSet/audit-event-outcome
    link: http://hl7.org/fhir/ValueSet/audit-event-outcome
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=OUT].target.text
mapping:
  identity:
    v: dicom
  map:
    v: EventOutcomeIndicator EventOutcomeIndicator

id:
  v: AuditEvent.outcome.detail
path:
  v: AuditEvent.outcome.detail
short:
  v: Additional outcome detail
definition:
  v: Additional details about the error. This may be a text description of the error or a system code that identifies the error.
comment:
  v: A human readable description of the error issue SHOULD be placed in details.text.
min:
  v: 0
max:
  v: *
base:
  path:
    v: AuditEvent.outcome.detail
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: AuditEventOutcomeDetail
  strength:
    v: example
  description:
    v: A code that provides details as the exact issue.
  value set:
    v: http://hl7.org/fhir/ValueSet/audit-event-outcome-detail
    link: http://hl7.org/fhir/ValueSet/audit-event-outcome-detail
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=OUT].target.text

id:
  v: AuditEvent.authorization
path:
  v: AuditEvent.authorization
short:
  v: Authorization related to the event
definition:
  v: The authorization (e.g., PurposeOfUse) that was used during the event being recorded.
comment:
  v: Use AuditEvent.agent.authorization when you know that it is specific to the agent, otherwise use AuditEvent.authorization. For example, during a machine-to-machine transfer it might not be obvious to the audit system who caused the event, but it does know why.
requirements:
  v: Record of any relevant security context, not restricted to purposeOfUse valueSet. May include security compartments, refrain, obligation, or other security tags.
alias:
  v: PurposeOfEvent
min:
  v: 0
max:
  v: *
base:
  path:
    v: AuditEvent.authorization
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: AuditPurposeOfUse
  strength:
    v: example
  description:
    v: The authorized purposeOfUse for the activity.
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-PurposeOfUse
    link: http://terminology.hl7.org/ValueSet/v3-PurposeOfUse
mapping:
  identity:
    v: workflow
  map:
    v: Event.reason
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: rim
  map:
    v: * .reasonCode [ControlActReason when Act.class = CACT Control Act] *.outboundRelationship[typeCode=RSON].target
mapping:
  identity:
    v: dicom
  map:
    v: EventPurposeOfUse
mapping:
  identity:
    v: w3c.prov
  map:
    v: Activity.Activity
mapping:
  identity:
    v: fhirprovenance
  map:
    v: Provenance.authorization

id:
  v: AuditEvent.basedOn
path:
  v: AuditEvent.basedOn
short:
  v: Workflow authorization within which this event occurred
definition:
  v: Allows tracing of authorizatino for the events and tracking whether proposals/recommendations were acted upon.
min:
  v: 0
max:
  v: *
base:
  path:
    v: AuditEvent.basedOn
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CarePlan
    link: http://hl7.org/fhir/StructureDefinition/CarePlan
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DeviceRequest
    link: http://hl7.org/fhir/StructureDefinition/DeviceRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation
    link: http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
    link: http://hl7.org/fhir/StructureDefinition/MedicationRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/NutritionOrder
    link: http://hl7.org/fhir/StructureDefinition/NutritionOrder
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ServiceRequest
    link: http://hl7.org/fhir/StructureDefinition/ServiceRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Task
    link: http://hl7.org/fhir/StructureDefinition/Task
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.code
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: rim
  map:
    v: Act.code
mapping:
  identity:
    v: w3c.prov
  map:
    v: Activity.Activity

id:
  v: AuditEvent.patient
path:
  v: AuditEvent.patient
short:
  v: The patient is the subject of the data used/created/updated/deleted during the activity
definition:
  v: The patient element is available to enable deterministic tracking of activities that involve the patient as the subject of the data used in an activity.
requirements:
  v: When the .patient is populated it shall be accurate to the subject of the used data. The .patient shall not be populated when the used data used/created/updated/deleted (.entity) by the activity does not involve a subject. Note that when the patient is an agent, they will be recorded as an agent. When the Patient resource is Created, Updated, or Deleted it will be recorded as an entity.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AuditEvent.patient
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.subject
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject[x]
mapping:
  identity:
    v: rim
  map:
    v: participation[typeCode=RTGT]
mapping:
  identity:
    v: w3c.prov
  map:
    v: Entity.Identity

id:
  v: AuditEvent.encounter
path:
  v: AuditEvent.encounter
short:
  v: Encounter within which this event occurred or which the event is tightly associated
definition:
  v: This will typically be the encounter the event occurred, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AuditEvent.encounter
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Encounter
    link: http://hl7.org/fhir/StructureDefinition/Encounter
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.code
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: rim
  map:
    v: Act.code
mapping:
  identity:
    v: w3c.prov
  map:
    v: Activity.Activity

id:
  v: AuditEvent.agent
path:
  v: AuditEvent.agent
short:
  v: 事件参与者
definition:
  v: An actor taking an active role in the event or activity that is logged.
comment:
  v: Several agents may be associated (i.e. have some responsibility for an activity) with an event or activity. For example, an activity may be initiated by one user for other users or involve more than one user. However, only one user may be the initiator/requestor for the activity. When a network are used in an event being recorded, there should be distinct agent elements for the known actors using the network. The agent with a network detail would be the responsible agent for use of that network.
requirements:
  v: An agent can be a person, an organization, software, device, or other actors that may be ascribed responsibility.
alias:
  v: ActiveParticipant
min:
  v: 1
max:
  v: *
base:
  path:
    v: AuditEvent.agent
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.who
mapping:
  identity:
    v: rim
  map:
    v: .participation
mapping:
  identity:
    v: dicom
  map:
    v: ActiveParticipant
mapping:
  identity:
    v: w3c.prov
  map:
    v: Agent
mapping:
  identity:
    v: fhirprovenance
  map:
    v: Provenance.agent

id:
  v: AuditEvent.agent.id
path:
  v: AuditEvent.agent.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: AuditEvent.agent.extension
path:
  v: AuditEvent.agent.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: AuditEvent.agent.modifierExtension
path:
  v: AuditEvent.agent.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: AuditEvent.agent.type
path:
  v: AuditEvent.agent.type
short:
  v: 事件参与者类型
definition:
  v: The Functional Role of the user when performing the event.
comment:
  v: For example: assembler, author, prescriber, signer, investigator, etc.
requirements:
  v: Functional roles reflect functional aspects of relationships between entities. Functional roles are bound to the realization/performance of acts, where actions might be concatenated to an activity or even to a process. This element will hold the functional role that the agent played in the activity that is the focus of this Provenance. Where an agent played multiple functional roles, they will be listed as multiple .agent elements representing each functional participation. See ISO 21298:2018 - Health Informatics - Functional and structural roles, and ISO 22600-2:2014 - Health Informatics - Privilege Management and Access Control - Part 2: formal models.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AuditEvent.agent.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: AuditAgentType
  strength:
    v: preferred
  description:
    v: The Participation type of the agent to the event.
  value set:
    v: http://hl7.org/fhir/ValueSet/participation-role-type
    link: http://hl7.org/fhir/ValueSet/participation-role-type
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer.function
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.who
mapping:
  identity:
    v: rim
  map:
    v: .typeCode and/or .functionCode
mapping:
  identity:
    v: dicom
  map:
    v: prime RoleIdCode
mapping:
  identity:
    v: w3c.prov
  map:
    v: Agent.Attribution
mapping:
  identity:
    v: fhirprovenance
  map:
    v: Provenance.agent.type

id:
  v: AuditEvent.agent.role
path:
  v: AuditEvent.agent.role
short:
  v: Agent role in the event
definition:
  v: The structural roles of the agent indicating the agent's competency. The security role enabling the agent with respect to the activity.
comment:
  v: For example: Chief-of-Radiology, Nurse, Physician, Medical-Student, etc.
requirements:
  v: Structural roles reflect the structural aspects of relationships between entities. Structural roles describe prerequisites, feasibilities, or competences for acts. Functional roles reflect functional aspects of relationships between entities. Functional roles are bound to the realization/performance of acts, where actions might be concatenated to an activity or even to a process. See ISO 21298:2018 - Health Informatics - Functional and structural roles, and ISO 22600-2:2014 - Health Informatics - Privilege Management and Access Control - Part 2: formal models..
min:
  v: 0
max:
  v: *
base:
  path:
    v: AuditEvent.agent.role
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: AuditAgentRole
  strength:
    v: example
  description:
    v: What security role enabled the agent to participate in the event.
  value set:
    v: http://hl7.org/fhir/ValueSet/security-role-type
    link: http://hl7.org/fhir/ValueSet/security-role-type
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.who
mapping:
  identity:
    v: rim
  map:
    v: .role
mapping:
  identity:
    v: dicom
  map:
    v: all RoleIdCode
mapping:
  identity:
    v: w3c.prov
  map:
    v: Agent.Attribution
mapping:
  identity:
    v: fhirprovenance
  map:
    v: Provenance.agent.role

id:
  v: AuditEvent.agent.who
path:
  v: AuditEvent.agent.who
short:
  v: 参与者（可以是系统或者人员）
definition:
  v: Reference to who this agent is that was involved in the event.
comment:
  v: Where a User ID is available it will go into who.identifier. Where a name of the user (human readable) it will go into who.display.
requirements:
  v: This field ties an audit event to a specific resource or identifier.
alias:
  v: userId
min:
  v: 1
max:
  v: 1
base:
  path:
    v: AuditEvent.agent.who
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    link: http://hl7.org/fhir/StructureDefinition/PractitionerRole
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CareTeam
    link: http://hl7.org/fhir/StructureDefinition/CareTeam
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    link: http://hl7.org/fhir/StructureDefinition/Device
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    link: http://hl7.org/fhir/StructureDefinition/RelatedPerson
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer.actor
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.who
mapping:
  identity:
    v: rim
  map:
    v: .id
mapping:
  identity:
    v: dicom
  map:
    v: UserName and UserId
mapping:
  identity:
    v: w3c.prov
  map:
    v: Agent.Identity
mapping:
  identity:
    v: fhirprovenance
  map:
    v: Provenance.agent.who

id:
  v: AuditEvent.agent.requestor
path:
  v: AuditEvent.agent.requestor
short:
  v: 是否为事件的发起者
definition:
  v: Indicator that the user is or is not the requestor, or initiator, for the event being audited.
comment:
  v: There can only be one initiator. If the initiator is not clear, then do not choose any one agent as the initiator.
requirements:
  v: This value is used to distinguish between requestor-users and recipient-users. For example, one person may initiate a report-output to be sent to another user.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AuditEvent.agent.requestor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
meaning when missing:
  v: false
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.who
mapping:
  identity:
    v: rim
  map:
    v: If participation.typeCode was author, then true
mapping:
  identity:
    v: dicom
  map:
    v: UserIsRequestor

id:
  v: AuditEvent.agent.location
path:
  v: AuditEvent.agent.location
short:
  v: The agent location when the event occurred
definition:
  v: Where the agent location is known, the agent location when the event occurred.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AuditEvent.agent.location
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Location
    link: http://hl7.org/fhir/StructureDefinition/Location
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.location
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.where[x]
mapping:
  identity:
    v: rim
  map:
    v: * Role.Class =SDLOC *Role.Code = ServiceDeliveryLocationRoleType *Entity.Code = PlaceEntityType = df.Types of places for Entity.Class = PLC *EntityClass = PLC = df.A physical place or site with its containing structure. May be natural or man-made. The geographic position of a place might or might not be constant.
mapping:
  identity:
    v: w3c.prov
  map:
    v: Activity.location
mapping:
  identity:
    v: fhirprovenance
  map:
    v: Provenance.location

id:
  v: AuditEvent.agent.policy
path:
  v: AuditEvent.agent.policy
short:
  v: Policy that authorized the agent participation in the event
definition:
  v: Where the policy(ies) are known that authorized the agent participation in the event. Typically, a single activity may have multiple applicable policies, such as patient consent, guarantor funding, etc. The policy would also indicate the security token used.
comment:
  v: For example: Where an OAuth token authorizes, the unique identifier from the OAuth token is placed into the policy element Where a policy engine (e.g. XACML) holds policy logic, the unique policy identifier is placed into the policy element.
requirements:
  v: This value is used retrospectively to determine the authorization policies.
min:
  v: 0
max:
  v: *
base:
  path:
    v: AuditEvent.agent.policy
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: rim
  map:
    v: ActPolicyType
mapping:
  identity:
    v: dicom
  map:
    v: ParticipantRoleIDCode
mapping:
  identity:
    v: fhirprovenance
  map:
    v: Provenance.policy

id:
  v: AuditEvent.agent.network[x]
path:
  v: AuditEvent.agent.network[x]
short:
  v: 网络信息
definition:
  v: When the event utilizes a network there should be an agent describing the local system, and an agent describing remote system, with the network interface details.
comment:
  v: When remote network endpoint is known, another agent representing the remote agent would indicate the remote network endpoint used. Convention is to indicate data flowing from Source to Destination. The convention for Search, given data flows both ways (query parameters vs results), is to have the Source as the initiator of the Search Transaction, and the Destination the responder to the Search transaction.
requirements:
  v: When a network protocol is used the endpoint is associated with the agent most directly using the endpoint. This is usually the software agent that has implemented the application level protocol. Preference is to define network in terms of a Reference(Endpoint), or URI; use string only when address or hostname is all that is known. When encoding using string it is best to encode using the formal canonical host name, but if you can't, then you can encode numeric in Literal address form using square brackets '[]' as a v4 string (in dotted notation), or v6 string (in colon notation).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: AuditEvent.agent.network[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Endpoint
    link: http://hl7.org/fhir/StructureDefinition/Endpoint
type:
  code:
    v: uri
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.where[x]
mapping:
  identity:
    v: rim
  map:
    v: .player.description
mapping:
  identity:
    v: dicom
  map:
    v: NetworkAccessPointID and NetworkAccessPointTypeCode
mapping:
  identity:
    v: w3c.prov
  map:
    v: Agent.Location

id:
  v: AuditEvent.agent.authorization
path:
  v: AuditEvent.agent.authorization
short:
  v: Allowable authorization for this agent
definition:
  v: The authorization (e.g., PurposeOfUse) that was used during the event being recorded.
comment:
  v: Use AuditEvent.agent.authorization when you know that is specific to the agent, otherwise use AuditEvent.authorization. For example, during a machine-to-machine transfer it might not be obvious to the audit system who caused the event, but it does know why.
requirements:
  v: Record of any relevant security context, not restricted to purposeOfUse valueSet. May include security compartments, refrain, obligation, or other security tags.
alias:
  v: PurposeOfUse
min:
  v: 0
max:
  v: *
base:
  path:
    v: AuditEvent.agent.authorization
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: AuditPurposeOfUse
  strength:
    v: example
  description:
    v: The reason the activity took place.
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-PurposeOfUse
    link: http://terminology.hl7.org/ValueSet/v3-PurposeOfUse
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: rim
  map:
    v: *.reasonCode [ActHealthInformationPurposeOfUseReason codes/v:PurposeOfUse (2.16.840.1.113883.1.11.20448) * .outboundRelationship[typeCode=RSON or SUBJ].target
mapping:
  identity:
    v: w3c.prov
  map:
    v: Agent.Activity

id:
  v: AuditEvent.source
path:
  v: AuditEvent.source
short:
  v: 审计源，记录了提交审计事件的系统
definition:
  v: The actor that is reporting the event.
comment:
  v: Events are reported by the actor that detected them. This may be one of the participating actors, but may also be different. The actor may be a human such as a medical-records clerk disclosing data manually, that clerk would be the source for the record of disclosure.
requirements:
  v: The event is reported by one source.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: AuditEvent.source
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.witness
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=INF].role[classCode=ASSIGN].player[classCode=DEV, determinerCode=INSTANCE]
mapping:
  identity:
    v: dicom
  map:
    v: AuditSourceIdentification

id:
  v: AuditEvent.source.id
path:
  v: AuditEvent.source.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: AuditEvent.source.extension
path:
  v: AuditEvent.source.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: AuditEvent.source.modifierExtension
path:
  v: AuditEvent.source.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: AuditEvent.source.site
path:
  v: AuditEvent.source.site
short:
  v: 审计源所处位置
definition:
  v: Logical source location within the healthcare enterprise network. For example, a hospital or other provider location within a multi-entity provider group.
requirements:
  v: This value differentiates among the sites in a multi-site enterprise health information system.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AuditEvent.source.site
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Location
    link: http://hl7.org/fhir/StructureDefinition/Location
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.witness
mapping:
  identity:
    v: rim
  map:
    v: .scopedRole[classCode=LOCE].player.desc
mapping:
  identity:
    v: dicom
  map:
    v: AuditEnterpriseSiteId

id:
  v: AuditEvent.source.observer
path:
  v: AuditEvent.source.observer
short:
  v: 审计源系统标识
definition:
  v: Identifier of the source where the event was detected.
requirements:
  v: This field ties the event to a specific source system. It may be used to group events for analysis according to where the event was detected.
alias:
  v: SourceId
min:
  v: 1
max:
  v: 1
base:
  path:
    v: AuditEvent.source.observer
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    link: http://hl7.org/fhir/StructureDefinition/PractitionerRole
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CareTeam
    link: http://hl7.org/fhir/StructureDefinition/CareTeam
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    link: http://hl7.org/fhir/StructureDefinition/Device
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    link: http://hl7.org/fhir/StructureDefinition/RelatedPerson
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.witness
mapping:
  identity:
    v: rim
  map:
    v: .id
mapping:
  identity:
    v: dicom
  map:
    v: AuditSourceId

id:
  v: AuditEvent.source.type
path:
  v: AuditEvent.source.type
short:
  v: 审计源类型
definition:
  v: Code specifying the type of source where event originated.
requirements:
  v: This field indicates which type of source is identified by the Audit Source ID. It is an optional value that may be used to group events for analysis according to the type of source where the event occurred.
min:
  v: 0
max:
  v: *
base:
  path:
    v: AuditEvent.source.type
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: AuditEventSourceType
  strength:
    v: preferred
  description:
    v: 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.
  value set:
    v: http://hl7.org/fhir/ValueSet/security-source-type
    link: http://hl7.org/fhir/ValueSet/security-source-type
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.witness
mapping:
  identity:
    v: rim
  map:
    v: .code
mapping:
  identity:
    v: dicom
  map:
    v: AuditSourceTypeCode

id:
  v: AuditEvent.entity
path:
  v: AuditEvent.entity
short:
  v: Data or objects used
definition:
  v: Specific instances of data or objects that have been accessed.
comment:
  v: Required unless the values for event identification, agent identification, and audit source identification are sufficient to document the entire auditable event. Because events may have more than one entity, this group can be a repeating set of values.
requirements:
  v: The event may have other entities involved.
alias:
  v: ParticipantObject
min:
  v: 0
max:
  v: *
base:
  path:
    v: AuditEvent.entity
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=SUBJ].target or .participation[typeCode=SBJ].role
mapping:
  identity:
    v: dicom
  map:
    v: ParticipantObjectIdentification
mapping:
  identity:
    v: w3c.prov
  map:
    v: Entity
mapping:
  identity:
    v: fhirprovenance
  map:
    v: Provenance.target, Provenance.entity

id:
  v: AuditEvent.entity.id
path:
  v: AuditEvent.entity.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: AuditEvent.entity.extension
path:
  v: AuditEvent.entity.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: AuditEvent.entity.modifierExtension
path:
  v: AuditEvent.entity.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: AuditEvent.entity.what
path:
  v: AuditEvent.entity.what
short:
  v: Specific instance of resource
definition:
  v: Identifies a specific instance of the entity. The reference should be version specific. This is allowed to be a Parameters resource.
comment:
  v: Use .what.display when all you have is a string (e.g. ParticipantObjectName).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AuditEvent.entity.what
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource
    link: http://hl7.org/fhir/StructureDefinition/Resource
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]
mapping:
  identity:
    v: rim
  map:
    v: .id
mapping:
  identity:
    v: dicom
  map:
    v: ParticipantObjectTypeCode, ParticipantObjectName, ParticipantObjectID and ParticipantObjectIDTypeCode
mapping:
  identity:
    v: fhirprovenance
  map:
    v: Provenance.target, Provenance.entity.what

id:
  v: AuditEvent.entity.role
path:
  v: AuditEvent.entity.role
short:
  v: What role the entity played
definition:
  v: Code representing the role the entity played in the event being audited.
requirements:
  v: For some detailed audit analysis it may be necessary to indicate a more granular type of entity, based on the application role it serves.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AuditEvent.entity.role
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: AuditEventEntityRole
  strength:
    v: example
  description:
    v: DICOM Audit Event Entity Role
  value set:
    v: http://hl7.org/fhir/ValueSet/object-role
    link: http://hl7.org/fhir/ValueSet/object-role
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.context
mapping:
  identity:
    v: rim
  map:
    v: role.code (not sure what this would mean for an Act)
mapping:
  identity:
    v: dicom
  map:
    v: ParticipantObjectTypeCodeRole
mapping:
  identity:
    v: w3c.prov
  map:
    v: Entity.role

id:
  v: AuditEvent.entity.securityLabel
path:
  v: AuditEvent.entity.securityLabel
short:
  v: Security labels on the entity
definition:
  v: Security labels for the identified entity.
comment:
  v: Copied from entity meta security tags.
requirements:
  v: This field identifies the security labels for a specific instance of an object, such as a patient, to detect/track privacy and security issues.
min:
  v: 0
max:
  v: *
base:
  path:
    v: AuditEvent.entity.securityLabel
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: SecurityLabels
  strength:
    v: example
  description:
    v: Example Security Labels from the Healthcare Privacy and Security Classification System.
  value set:
    v: http://hl7.org/fhir/ValueSet/security-label-examples
    link: http://hl7.org/fhir/ValueSet/security-label-examples
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.context
mapping:
  identity:
    v: rim
  map:
    v: .confidentialityCode
mapping:
  identity:
    v: dicom
  map:
    v: ParticipantObjectSensitivity

id:
  v: AuditEvent.entity.query
path:
  v: AuditEvent.entity.query
short:
  v: Query parameters
definition:
  v: The query parameters for a query-type entities.
comment:
  v: The meaning and secondary-encoding of the content of base64 encoded blob is specific to the AuditEvent.type, AuditEvent.subtype, and AuditEvent.entity.role. The base64 is a general-use and safe container for event specific data blobs regardless of the encoding used by the transaction being recorded. An AuditEvent consuming application must understand the event it is consuming and the formats used by the event. For example, if auditing an Oracle network database access, the Oracle formats must be understood as they will be simply encoded in the base64binary blob. The DICOM AuditMessage schema does not support both .name and .query being populated.
requirements:
  v: For query events, it may be necessary to capture the actual query input to the query process in order to identify the specific event. Because of differences among query implementations and data encoding for them, this is a base 64 encoded data blob. It may be subsequently decoded or interpreted by downstream audit analysis processing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: AuditEvent.entity.query
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: base64Binary
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.context
mapping:
  identity:
    v: rim
  map:
    v: No mapping
mapping:
  identity:
    v: dicom
  map:
    v: ParticipantObjectQuery

id:
  v: AuditEvent.entity.detail
path:
  v: AuditEvent.entity.detail
short:
  v: Additional Information about the entity
definition:
  v: Tagged value pairs for conveying additional information about the entity.
requirements:
  v: Implementation-defined data about specific details of the object accessed or used.
min:
  v: 0
max:
  v: *
base:
  path:
    v: AuditEvent.entity.detail
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.context
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN]
mapping:
  identity:
    v: dicom
  map:
    v: ParticipantObjectDetail

id:
  v: AuditEvent.entity.detail.id
path:
  v: AuditEvent.entity.detail.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: AuditEvent.entity.detail.extension
path:
  v: AuditEvent.entity.detail.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: AuditEvent.entity.detail.modifierExtension
path:
  v: AuditEvent.entity.detail.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: AuditEvent.entity.detail.type
path:
  v: AuditEvent.entity.detail.type
short:
  v: Name of the property
definition:
  v: The type of extra detail provided in the value.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: AuditEvent.entity.detail.type
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: AuditEventDetailType
  strength:
    v: example
  description:
    v: Additional detail about an entity used in an event.
  value set:
    v: http://hl7.org/fhir/ValueSet/audit-event-type
    link: http://hl7.org/fhir/ValueSet/audit-event-type
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.context
mapping:
  identity:
    v: rim
  map:
    v: .code
mapping:
  identity:
    v: dicom
  map:
    v: ParticipantObjectDetail.type

id:
  v: AuditEvent.entity.detail.value[x]
path:
  v: AuditEvent.entity.detail.value[x]
short:
  v: Property value
definition:
  v: The value of the extra detail.
requirements:
  v: Should not duplicate the entity value unless absolutely necessary.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: AuditEvent.entity.detail.value[x]
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Quantity
type:
  code:
    v: CodeableConcept
type:
  code:
    v: string
type:
  code:
    v: boolean
type:
  code:
    v: integer
type:
  code:
    v: Range
type:
  code:
    v: Ratio
type:
  code:
    v: time
type:
  code:
    v: dateTime
type:
  code:
    v: Period
type:
  code:
    v: base64Binary
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.context
mapping:
  identity:
    v: rim
  map:
    v: .value
mapping:
  identity:
    v: dicom
  map:
    v: ParticipantObjectDetail.value

id:
  v: AuditEvent.entity.agent
path:
  v: AuditEvent.entity.agent
short:
  v: Entity is attributed to this agent
definition:
  v: The entity is attributed to an agent to express the agent's responsibility for that entity in the activity. This is most used to indicate when persistence media (the entity) are used by an agent. For example when importing data from a device, the device would be described in an entity, and the user importing data from that media would be indicated as the entity.agent.
comment:
  v: A usecase where one AuditEvent.entity.agent is used where the Entity that was used in the creation/updating of a target resource, is not in the context of the same custodianship as the target resource, and thus the meaning of AuditEvent.entity.agent is to say that the entity referenced is managed elsewhere and that this Agent provided access to it. This would be similar to where the Entity being referenced is managed outside FHIR, such as through HL7 V2, v3, or XDS. This might be where the Entity being referenced is managed in another FHIR resource server. Thus it explains the provenance of that Entity's use in the context of this AuditEvent activity.
min:
  v: 0
max:
  v: *
base:
  path:
    v: AuditEvent.entity.agent
  min:
    v: 0
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/AuditEvent#AuditEvent.agent
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: ./author/role
mapping:
  identity:
    v: dicom
  map:
    v: ActiveParticipant.MediaType
mapping:
  identity:
    v: fhirprovenance
  map:
    v: Provenance.entity.agent

element:
  id:
    v: AuditEvent
  path:
    v: AuditEvent
element:
  id:
    v: AuditEvent.category
  path:
    v: AuditEvent.category
  short:
    v: 审计事件分类（粗粒度）
  min:
    v: 1
  max:
    v: 1
  binding:
    strength:
      v: required
    value set:
      v: http://hl7.org/fhir/ValueSet/audit-event-type
      link: http://hl7.org/fhir/ValueSet/audit-event-type
element:
  id:
    v: AuditEvent.code
  path:
    v: AuditEvent.code
  short:
    v: 审计事件类型（细粒度）
  binding:
    strength:
      v: required
    value set:
      v: http://hl7.org/fhir/ValueSet/audit-event-sub-type
      link: http://hl7.org/fhir/ValueSet/audit-event-sub-type
element:
  id:
    v: AuditEvent.action
  path:
    v: AuditEvent.action
  short:
    v: 活动类型：创建、读取、更新、删除、执行
  min:
    v: 1
element:
  id:
    v: AuditEvent.occurred[x]
  path:
    v: AuditEvent.occurred[x]
  short:
    v: 活动发生时间
  min:
    v: 1
  type:
    code:
      v: dateTime
element:
  id:
    v: AuditEvent.recorded
  path:
    v: AuditEvent.recorded
  short:
    v: 审计记录时间
element:
  id:
    v: AuditEvent.outcome
  path:
    v: AuditEvent.outcome
  short:
    v: 执行结果：成功、一般错误、严重错误、重大错误
  min:
    v: 1
element:
  id:
    v: AuditEvent.agent
  path:
    v: AuditEvent.agent
  short:
    v: 事件参与者
element:
  id:
    v: AuditEvent.agent.type
  path:
    v: AuditEvent.agent.type
  short:
    v: 事件参与者类型
element:
  id:
    v: AuditEvent.agent.who
  path:
    v: AuditEvent.agent.who
  short:
    v: 参与者（可以是系统或者人员）
element:
  id:
    v: AuditEvent.agent.requestor
  path:
    v: AuditEvent.agent.requestor
  short:
    v: 是否为事件的发起者
element:
  id:
    v: AuditEvent.agent.network[x]
  path:
    v: AuditEvent.agent.network[x]
  short:
    v: 网络信息
  min:
    v: 1
element:
  id:
    v: AuditEvent.source
  path:
    v: AuditEvent.source
  short:
    v: 审计源，记录了提交审计事件的系统
element:
  id:
    v: AuditEvent.source.site
  path:
    v: AuditEvent.source.site
  short:
    v: 审计源所处位置
element:
  id:
    v: AuditEvent.source.observer
  path:
    v: AuditEvent.source.observer
  short:
    v: 审计源系统标识
element:
  id:
    v: AuditEvent.source.type
  path:
    v: AuditEvent.source.type
  short:
    v: 审计源类型