description: Defines the data structure for audit events in the ePA system. package_name: 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: 67 elements: observer: elements: display: pattern: {type: String, value: Elektronische Patientenakte Fachdienst} index: 68 type: binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa/ValueSet/epa-auditevent-service-type-vs'} mustSupport: true index: 69 elements: system: {mustSupport: true, index: 70} version: {mustSupport: true, index: 71} code: {mustSupport: true, index: 72} display: {mustSupport: true, index: 73} required: [type] recorded: {mustSupport: true, index: 4} agent: mustSupport: true index: 7 slicing: rules: open discriminator: - {path: type, type: value} 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: 8 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-structural-role-of-healthcare-professional-vs'} mustSupport: true index: 17 elements: coding: mustSupport: true index: 18 elements: system: {mustSupport: true, index: 19} code: {mustSupport: true, index: 20} display: {mustSupport: true, index: 21} required: [system, code] requestor: {short: Shall be set to true if agent is initiator of the event, index: 28} who: short: The subject Id of the IDToken mustSupport: true index: 22 elements: identifier: type: Identifier mustSupport: true index: 23 elements: system: {mustSupport: true, index: 24} value: {mustSupport: true, index: 25} required: [identifier] altId: {short: Alternative User identity (e.g. Telematik-ID or the KVNR), mustSupport: true, index: 26} name: {short: Name of HCP or Insurant, mustSupport: true, index: 27} type: binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa/ValueSet/epa-audit-event-agent-type-user-vs'} mustSupport: true index: 11 elements: coding: mustSupport: true index: 12 elements: system: {mustSupport: true, index: 13} version: {mustSupport: true, index: 14} code: {mustSupport: true, index: 15} display: {mustSupport: true, index: 16} policy: {index: 30} extension: index: 9 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: null slices: healthcareFacilityType: match: {url: null} 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: 32} location: {index: 29} media: {index: 31} 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: 33 elements: role: {mustSupport: true, index: 40} requestor: {short: Shall be set to true if agent is initiator of the event, index: 47} who: short: The subject Id of the IDToken mustSupport: true index: 41 elements: identifier: type: Identifier mustSupport: true index: 42 elements: system: {mustSupport: true, index: 43} value: {mustSupport: true, index: 44} required: [identifier] altId: {short: Alternative client identity (e.g. Telematik-ID)), mustSupport: true, index: 45} name: {short: 'Name e.g. eRezept, EU access/country name or DiGA', mustSupport: true, index: 46} type: binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa/ValueSet/epa-audit-event-agent-type-client-vs'} mustSupport: true index: 34 elements: coding: mustSupport: true index: 35 elements: system: {mustSupport: true, index: 36} version: {mustSupport: true, index: 37} code: {mustSupport: true, index: 38} display: {mustSupport: true, index: 39} policy: {index: 49} network: {index: 51} location: {index: 48} media: {index: 50} required: [who, name, type] 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: 52 elements: role: {index: 59} requestor: {short: Shall be set to true if agent is initiator of the event, index: 62} altId: short: altId MUST be epa pattern: {type: String, value: epa} mustSupport: true index: 60 name: short: Name MUST be ePA pattern: {type: String, value: ePA} mustSupport: true index: 61 type: binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa/ValueSet/epa-auditevent-service-type-vs'} mustSupport: true index: 53 elements: coding: mustSupport: true index: 54 elements: system: {mustSupport: true, index: 55} version: {mustSupport: true, index: 56} code: {mustSupport: true, index: 57} display: {mustSupport: true, index: 58} policy: {index: 64} network: {index: 66} location: {index: 63} media: {index: 65} required: [name, type] 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: 74 elements: type: {index: 75} role: {index: 76} lifecycle: {index: 77} securityLabel: {index: 78} 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: 79} description: {short: The OperationId, mustSupport: true, index: 80} query: {index: 81} detail: mustSupport: true index: 82 elements: type: {short: 'The Name of the property (e.g. Document Format, DocumentID, ...).', mustSupport: true, index: 83} value: choices: [] index: 85 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: 87 min: 1 max: 1 valueString: short: Property value (e.g. urn:gematik:ig:Zahnbonusheft:v1.1.0) type: string mustSupport: true choiceOf: value index: 88 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: 88} min: 1 max: 1 required: [valueString] subtype: {index: 1} package_version: 1.4.0-ballot.1 class: profile kind: resource url: https://gematik.de/fhir/epa/StructureDefinition/epa-auditevent base: http://hl7.org/fhir/StructureDefinition/AuditEvent version: 1.4.0 required: [action, entity, outcome]