description: This profile defines the content of the document audit events which a community has to provide for a patients audit trail. package_name: ch.fhir.ig.ch derivation: constraint name: DocumentAuditEvent type: AuditEvent elements: type: binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/ValueSet/audit-event-type'} index: 0 subtype: index: 1 slicing: rules: open discriminator: - {path: system, type: value} min: 1 slices: DocumentAuditEventType: match: {system: 'urn:oid:2.16.756.5.30.1.127.3.10.7'} schema: short: DocumentAuditEventType binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-atc/ValueSet/DocumentAuditEventType'} _required: true index: 2 elements: system: pattern: {type: Uri, value: 'urn:oid:2.16.756.5.30.1.127.3.10.7'} index: 3 required: [system] recorded: {index: 4} purposeOfEvent: binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/EprPurposeOfUse'} index: 5 agent: short: Participants index: 6 elements: role: binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-atc/ValueSet/EprParticipant'} index: 7 who: elements: identifier: {type: Identifier, index: 8} required: [identifier] name: {index: 9} requestor: {index: 10} required: [role, name] entity: index: 11 slicing: rules: open discriminator: - {path: type.code, type: value} - {path: role.code, type: value} min: null slices: Patient: match: type: {code: null} role: {code: null} schema: _required: true index: 12 elements: what: elements: identifier: {index: 13} Document: match: type: {code: '2'} role: {code: '3'} schema: short: Document index: 14 elements: what: elements: identifier: {type: Identifier, short: XDSDocumentEntry.uniqueId, index: 15} required: [identifier] type: index: 16 elements: code: pattern: {type: Code, value: '2'} index: 17 required: [code] role: index: 18 elements: code: pattern: {type: Code, value: '3'} index: 19 required: [code] detail: array: true min: 4 index: 20 slicing: rules: open discriminator: - {path: type, type: value} min: 4 slices: repositoryUniqueId: match: {type: Repository Unique Id} schema: short: repositoryUniqueId _required: true index: 21 elements: type: pattern: {type: String, value: Repository Unique Id} index: 22 value: {type: base64Binary, index: 23} homeCommunityID: match: {type: homeCommunityID} schema: short: homeCommunityID _required: true index: 24 elements: type: pattern: {type: String, value: homeCommunityID} index: 25 value: {type: base64Binary, index: 26} EprDocumentTypeCode: match: {type: EprDocumentTypeCode} schema: short: EprDocumentTypeCode _required: true index: 27 elements: type: pattern: {type: String, value: EprDocumentTypeCode} index: 28 value: {type: base64Binary, index: 29} title: match: {type: title} schema: short: title _required: true index: 30 elements: type: pattern: {type: String, value: title} index: 31 value: {type: base64Binary, index: 32} required: [role, type] Query: match: type: {code: '2'} role: {code: '24'} schema: short: Query index: 33 elements: what: elements: identifier: {type: Identifier, short: Query ID (UUID), index: 34} required: [identifier] type: index: 35 elements: code: pattern: {type: Code, value: '2'} index: 36 required: [code] role: index: 37 elements: code: pattern: {type: Code, value: '24'} index: 38 required: [code] required: [role, type] package_version: atc-3.3.0-ballot class: profile kind: resource url: http://fhir.ch/ig/ch-atc/StructureDefinition/DocumentAuditEvent base: http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/ch-epr-fhir-auditevent version: 3.3.0-ballot required: [subtype, purposeOfEvent]