PackagesCanonicalsLogsProblems
    Packages
    rs/de.gematik.dev.epa@1.1.0-alpha.12
    https://gematik.de/fhir/epa/StructureDefinition/epa-auditevent
description: Defines the data structure for audit events in the ePA system.
package_name: rs/de.gematik.dev.epa
derivation: constraint
name: EPAAuditEvent
type: AuditEvent
elements:
  outcomeDesc: {index: 6}
  type:
    binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa/ValueSet/epa-auditevent-type-vs'}
    index: 0
  outcome: {short: 'success: 0; failure: 4; major failure: 12', mustSupport: true, index: 5}
  source:
    mustSupport: true
    index: 48
    elements:
      observer:
        elements:
          display:
            pattern: {type: string, value: Elektronische Patientenakte Fachdienst}
            type: string
            index: 49
      type:
        binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa/ValueSet/epa-auditevent-sourcetype-vs'}
        mustSupport: true
        index: 50
    required: [type]
  recorded: {mustSupport: true, index: 4}
  agent:
    mustSupport: true
    index: 8
    slicing:
      rules: open
      discriminator:
      - {path: type, type: pattern}
      min: null
      slices:
        user:
          match: {type: null}
          schema:
            short: The agent user refers to the service provider (LE) or the service provider institution (LEI)
            mustSupport: true
            index: 9
            extensions:
              healthcareFacilityType: {url: 'https://gematik.de/fhir/epa/StructureDefinition/epa-healthcare-facility-type-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 10}
            elements:
              role:
                short: Professional role of the service provider
                binding: {strength: required, valueSet: 'https://gematik.de/fhir/terminology/ValueSet/epa-ehealth-dsi-healthcare-facility-type-vs'}
                mustSupport: true
                index: 12
                elements:
                  coding:
                    mustSupport: true
                    index: 13
                    elements:
                      system: {mustSupport: true, index: 14}
                      code: {mustSupport: true, index: 15}
                      display: {mustSupport: true, index: 16}
                    required: [code, system]
              requestor:
                pattern: {type: boolean, value: true}
                type: boolean
                index: 21
              who:
                short: The subject Id of the IDToken
                mustSupport: true
                index: 17
                elements:
                  identifier: {type: Identifier, mustSupport: true, index: 18}
                required: [identifier]
              altId: {short: Alternative User identity (e.g. Telematik-ID or the KVNR), mustSupport: true, index: 19}
              name: {short: Name of HCP or Insurant, mustSupport: true, index: 20}
              type:
                binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa/ValueSet/epa-audit-event-agent-type-user-vs'}
                mustSupport: true
                index: 11
              policy: {index: 23}
              extension:
                type: Extension
                mustSupport: true
                url: https://gematik.de/fhir/epa/StructureDefinition/epa-healthcare-facility-type-extension
                index: 10
                slicing:
                  slices:
                    healthcareFacilityType:
                      match: {}
                      schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/epa/StructureDefinition/epa-healthcare-facility-type-extension', index: 10}
                      min: 0
                      max: 1
              network: {index: 25}
              location: {index: 22}
              media: {index: 24}
            required: [name, type]
        client:
          match: {type: null}
          schema:
            short: The agent client refers to a software system that has executed the action, for example, E-Rezept Fachdienst
            mustSupport: true
            index: 26
            elements:
              role: {mustSupport: true, index: 28}
              requestor:
                pattern: {type: boolean, value: true}
                type: boolean
                index: 33
              who:
                short: The subject Id of the IDToken
                mustSupport: true
                index: 29
                elements:
                  identifier: {type: Identifier, mustSupport: true, index: 30}
                required: [identifier]
              altId: {short: Alternative client identity (e.g. Telematik-ID)), mustSupport: true, index: 31}
              name: {short: 'Name e.g. eRezept, EU access/country name or DiGA', mustSupport: true, index: 32}
              type:
                binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa/ValueSet/epa-audit-event-agent-type-client-vs'}
                mustSupport: true
                index: 27
              policy: {index: 35}
              network: {index: 37}
              location: {index: 34}
              media: {index: 36}
            required: [name, type, who]
        internal:
          match: {type: null}
          schema:
            short: The agent internal refers to internal actions of the Elektronische Patientenakte Fachdienst (ePA) service, such as data export submissions
            mustSupport: true
            index: 38
            elements:
              role: {index: 40}
              requestor:
                pattern: {type: boolean, value: true}
                type: boolean
                index: 43
              altId:
                short: altId MUST be epa
                pattern: {type: string, value: epa}
                mustSupport: true
                type: string
                index: 41
              name:
                short: Name MUST be ePA
                pattern: {type: string, value: ePA}
                mustSupport: true
                type: string
                index: 42
              type:
                binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa/ValueSet/epa-audit-event-agent-type-internal-vs'}
                mustSupport: true
                index: 39
              policy: {index: 45}
              network: {index: 47}
              location: {index: 44}
              media: {index: 46}
            required: [name, type]
  purposeOfEvent:
    binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa/ValueSet/epa-auditevent-purpose-of-event-vs'}
    index: 7
  action: {short: 'Type of action performed during the event. CREATE: C | READ: R | UPDATE: U | DELETE: D | EXECUTE: E', mustSupport: true, index: 2}
  period: {index: 3}
  entity:
    mustSupport: true
    index: 51
    elements:
      role: {index: 54}
      description: {short: The OperationId, mustSupport: true, index: 58}
      name: {short: 'The title of the XDS document, FHIR resource or object name of a service (e.g. Entitlement Service, Device Management, ...).', mustSupport: true, index: 57}
      type: {index: 53}
      lifecycle: {index: 55}
      query: {index: 59}
      securityLabel: {index: 56}
      what: {index: 52}
      detail:
        mustSupport: true
        index: 60
        elements:
          type: {short: 'The Name of the property (e.g. Document Format, DocumentID, ...).', mustSupport: true, index: 61}
          value:
            choices: []
            index: 63
            slicing:
              rules: open
              ordered: false
              discriminator:
              - {path: $this, type: type}
              min: null
              slices:
                valueString:
                  match: {}
                  schema:
                    short: Property value (e.g. urn:gematik:ig:Zahnbonusheft:v1.1.0)
                    mustSupport: true
                    choices: [valueString]
                    _required: true
                    index: 65
                  min: 1
                  max: 1
          valueString:
            short: Property value (e.g. urn:gematik:ig:Zahnbonusheft:v1.1.0)
            type: string
            mustSupport: true
            choiceOf: value
            index: 66
            slicing:
              slices:
                valueString:
                  match: {}
                  schema: {short: 'Property value (e.g. urn:gematik:ig:Zahnbonusheft:v1.1.0)', type: string, mustSupport: true, _required: true, choiceOf: value, index: 66}
                  min: 1
                  max: 1
        required: [valueString]
  subtype: {index: 1}
package_version: 1.1.0-alpha.12
class: profile
kind: resource
url: https://gematik.de/fhir/epa/StructureDefinition/epa-auditevent
base: http://hl7.org/fhir/StructureDefinition/AuditEvent
version: 1.1.0
required: [action, entity, outcome]