PackagesCanonicalsLogsProblems
    Packages
    rs/de.gematik.epa@1.0.1
    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.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: 21
    elements:
      observer:
        elements:
          display:
            pattern: {type: string, value: Elektronische Patientenakte Fachdienst}
            type: string
            index: 22
      type:
        binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa/ValueSet/epa-auditevent-sourcetype-vs'}
        mustSupport: true
        index: 23
    required: [type]
  recorded: {mustSupport: true, index: 4}
  agent:
    mustSupport: true
    index: 8
    elements:
      role: {index: 10}
      requestor:
        pattern: {type: boolean, value: false}
        type: boolean
        index: 15
      who:
        short: The subject Id of the IDToken
        index: 11
        elements:
          identifier: {type: Identifier, index: 12}
        required: [identifier]
      altId: {short: Alternative User identity (e.g. Telematik-ID or the KVNR), mustSupport: true, index: 13}
      name: {short: Name of HCP or Insurant or a Service (e.g. E-Rezept-Fachdienst), index: 14}
      type:
        binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa/ValueSet/epa-participlationrole-type-vs'}
        mustSupport: true
        index: 9
      policy: {index: 17}
      purposeOfUse: {index: 20}
      network: {index: 19}
      location: {index: 16}
      media: {index: 18}
    required: [name, type, 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: 24
    elements:
      role: {index: 27}
      description: {short: The OperationId, mustSupport: true, index: 31}
      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: 30}
      type: {index: 26}
      lifecycle: {index: 28}
      query: {index: 32}
      securityLabel: {index: 29}
      what: {index: 25}
      detail:
        mustSupport: true
        index: 33
        elements:
          type: {short: 'The Name of the property (e.g. Document Format, DocumentID, ...).', mustSupport: true, index: 34}
          value:
            choices: []
            index: 36
            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: 38
                  min: 1
                  max: 1
          valueString:
            short: Property value (e.g. urn:gematik:ig:Zahnbonusheft:v1.1.0)
            type: string
            mustSupport: true
            choiceOf: value
            index: 39
            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: 39}
                  min: 1
                  max: 1
        required: [valueString]
  subtype: {index: 1}
package_version: 1.0.1
class: profile
kind: resource
url: https://gematik.de/fhir/epa/StructureDefinition/epa-auditevent
base: http://hl7.org/fhir/StructureDefinition/AuditEvent
version: 1.0.1
required: [action, entity, outcome]