PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-epr-fhir@4.0.1
    http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/ChAuditEventBasicToken
description: This is the profile for Swiss Audit Events when a transaction is secured with a Basic Authorization Token.
package_name: ch.fhir.ig.ch-epr-fhir
derivation: constraint
name: ChAuditEventBasicToken
type: AuditEvent
elements:
  agent:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: type, type: value}
      min: null
      slices:
        mainUser:
          match:
            type:
              coding:
              - {code: RESP, system: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType', display: responsible party}
          schema:
            short: The main user (patient, representative, healthcare professional, or administrator)
            index: 1
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: RESP, system: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType', display: responsible party}
                index: 2
              role: {index: 3}
              altId: {index: 4}
              name: {index: 5}
              purposeOfUse:
                binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/EprPurposeOfUse'}
                index: 6
            required: [role, name, type, altId]
        delegatedUser:
          match:
            type:
              coding:
              - {code: PPRF, system: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType', display: primary performer}
          schema:
            short: The person who acted on behalf of the main user (an assistant or technical user)
            index: 7
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: PPRF, system: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType', display: primary performer}
                index: 8
              role: {index: 9}
              altId: {index: 10}
              name: {index: 11}
            required: [role, name, type, altId]
  source:
    elements:
      site: {short: The OID of the audit source, index: 12}
    required: [site]
  entity:
    index: 13
    slicing:
      rules: open
      discriminator:
      - {path: type, type: value}
      min: null
      slices:
        traceparent:
          match:
            type: {code: '4', system: 'http://terminology.hl7.org/CodeSystem/audit-entity-type', display: Other}
          schema:
            short: The 'traceparent' header value of the transaction
            index: 14
            elements:
              what:
                index: 15
                elements:
                  identifier:
                    index: 16
                    elements:
                      value: {short: The 'traceparent' header value, index: 17}
                    required: [value]
                required: [identifier]
              type:
                pattern:
                  type: Coding
                  value: {code: '4', system: 'http://terminology.hl7.org/CodeSystem/audit-entity-type', display: Other}
                index: 18
              role:
                pattern:
                  type: Coding
                  value: {code: '26', system: 'http://terminology.hl7.org/CodeSystem/object-role', display: Processing Element}
                index: 19
            required: [what, type]
package_version: 4.0.1
class: profile
kind: resource
url: http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/ChAuditEventBasicToken
base: http://hl7.org/fhir/StructureDefinition/AuditEvent
version: 4.0.1