PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch@atc-3.2.0
    http://fhir.ch/ig/ch-atc/StructureDefinition/AccessAuditTrailEvent
description: This profile defines the content of the access audit trail event which a community has to provide for a patients audit trail.
package_name: ch.fhir.ig.ch
derivation: constraint
name: AccessAuditTrailEvent
type: AuditEvent
elements:
  type:
    binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/ValueSet/audit-event-type'}
    index: 0
  subtype:
    binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-atc/ValueSet/AccessAuditTrailEventType'}
    index: 1
  recorded: {index: 2}
  agent:
    short: Patient, repeated if representative
    index: 3
    elements:
      role:
        binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-atc/ValueSet/EprParticipant'}
        index: 4
      who:
        elements:
          identifier: {type: Identifier, index: 5}
        required: [identifier]
      name: {index: 6}
      requestor: {index: 7}
    required: [role, name]
  entity:
    index: 8
    slicing:
      rules: open
      discriminator:
      - {path: type.code, type: value}
      - {path: role.code, type: value}
      min: null
      slices:
        Patient:
          match:
            type: {code: '1'}
            role: {code: '1'}
          schema:
            short: Patient
            _required: true
            index: 9
            elements:
              what:
                elements:
                  identifier:
                    type: Identifier
                    short: Patient Id (EPR-SPID)
                    index: 10
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:oid:2.16.756.5.30.1.127.3.10.3'}
                        index: 11
                    required: [system]
                required: [identifier]
              type:
                index: 12
                elements:
                  code:
                    pattern: {type: Code, value: '1'}
                    index: 13
                required: [code]
              role:
                index: 14
                elements:
                  code:
                    pattern: {type: Code, value: '1'}
                    index: 15
                required: [code]
            required: [role, type]
package_version: atc-3.2.0
class: profile
kind: resource
url: http://fhir.ch/ig/ch-atc/StructureDefinition/AccessAuditTrailEvent
base: http://hl7.org/fhir/StructureDefinition/AuditEvent
version: 3.2.0
required: [subtype]