PackagesCanonicalsLogsProblems
    Packages
    rs/de.gematik.dev.epa@1.1.0-alpha.6
    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: 34
    elements:
      observer:
        elements:
          display:
            pattern: {type: string, value: Elektronische Patientenakte Fachdienst}
            type: string
            index: 35
      type:
        binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa/ValueSet/epa-auditevent-sourcetype-vs'}
        mustSupport: true
        index: 36
    required: [type]
  recorded: {mustSupport: true, index: 4}
  agent:
    mustSupport: true
    index: 8
    elements:
      type: {mustSupport: true, index: 9}
      requestor:
        pattern: {type: boolean, value: false}
        type: boolean
        index: 10
      location: {index: 11}
      policy: {index: 12}
      media: {index: 13}
      network: {index: 14}
    required: [type]
    slicing:
      rules: open
      discriminator:
      - {path: type, type: pattern}
      min: null
      slices:
        user:
          match: {type: null}
          schema:
            mustSupport: true
            index: 15
            extensions:
              healthcareFacilityType: {url: 'https://gematik.de/fhir/epa/StructureDefinition/epa-healthcare-facility-type-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 16}
            elements:
              extension:
                type: Extension
                mustSupport: true
                url: https://gematik.de/fhir/epa/StructureDefinition/epa-healthcare-facility-type-extension
                index: 16
                slicing:
                  slices:
                    healthcareFacilityType:
                      match: {}
                      schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/epa/StructureDefinition/epa-healthcare-facility-type-extension', index: 16}
                      min: 0
                      max: 1
              type:
                binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa/ValueSet/epa-participation-role-type-user-vs'}
                index: 17
              role:
                short: Professional role of the service provider
                binding: {strength: required, valueSet: 'https://simplifier.net/gem-terminology/epa-ehealth-dsi-healthcare-facility-type-vs'}
                mustSupport: true
                index: 18
                elements:
                  coding:
                    mustSupport: true
                    index: 19
                    elements:
                      system: {mustSupport: true, index: 20}
                      code: {mustSupport: true, index: 21}
                      display: {mustSupport: true, index: 22}
                    required: [code, system]
              who:
                short: The subject Id of the IDToken
                mustSupport: true
                index: 23
                elements:
                  identifier: {type: Identifier, mustSupport: true, index: 24}
                required: [identifier]
              altId: {short: Alternative User identity (e.g. Telematik-ID or the KVNR), mustSupport: true, index: 25}
              name: {short: Name of HCP or Insurant, index: 26}
            required: [name]
        client:
          match: {type: null}
          schema:
            mustSupport: true
            index: 27
            elements:
              type:
                binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa/ValueSet/epa-participation-role-type-client-vs'}
                index: 28
              role: {mustSupport: true, index: 29}
              who:
                short: The subject Id of the IDToken
                mustSupport: true
                index: 30
                elements:
                  identifier: {type: Identifier, mustSupport: true, index: 31}
                required: [identifier]
              altId: {short: Alternative client identity (e.g. Telematik-ID)), mustSupport: true, index: 32}
              name: {short: 'Name of a service e.g. eRezept, EU access/country name or DiGA', index: 33}
            required: [name, who]
  purposeOfEvent: {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: 37
    elements:
      role: {index: 40}
      description: {short: The OperationId, mustSupport: true, index: 44}
      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: 43}
      type: {index: 39}
      lifecycle: {index: 41}
      query: {index: 45}
      securityLabel: {index: 42}
      what: {index: 38}
      detail:
        mustSupport: true
        index: 46
        elements:
          type: {short: 'The Name of the property (e.g. Document Format, DocumentID, ...).', mustSupport: true, index: 47}
          value:
            choices: []
            index: 49
            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: 51
                  min: 1
                  max: 1
          valueString:
            short: Property value (e.g. urn:gematik:ig:Zahnbonusheft:v1.1.0)
            type: string
            mustSupport: true
            choiceOf: value
            index: 52
            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: 52}
                  min: 1
                  max: 1
        required: [valueString]
  subtype: {index: 1}
package_version: 1.1.0-alpha.6
class: profile
kind: resource
url: https://gematik.de/fhir/epa/StructureDefinition/epa-auditevent
base: http://hl7.org/fhir/StructureDefinition/AuditEvent
version: 1.1.0-rc1
required: [action, entity, outcome]