PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch@epr-fhir-4.0.1-ballot-2
    http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/ChAuditEventPpq5Repository
description: This profile is used to define the CH Audit Event for the [PPQ-5] transaction and the actor 'Policy\nRepository'.
package_name: ch.fhir.ig.ch
derivation: constraint
name: ChAuditEventPpq5Repository
type: AuditEvent
elements:
  subtype:
    array: true
    min: 2
    index: 0
    slicing:
      slices:
        ppq5:
          match: {}
          schema:
            pattern:
              type: Coding
              value: {code: PPQ-5, system: 'urn:e-health-suisse:event-type-code', display: Mobile Privacy Policy Retrieve}
            _required: true
            index: 1
          min: 1
          max: 1
  agent:
    array: true
    min: 3
    index: 2
    slicing:
      slices:
        client:
          match: {}
          schema: {short: The 'Policy Consumer' actor (EPR application), index: 3}
        server:
          match: {}
          schema: {short: The 'Policy Repository' actor (EPR API), index: 4}
        mainUser:
          match: {}
          schema:
            short: The main user (patient, representative, healthcare professional, or administrator)
            _required: true
            index: 5
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: RESP, system: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType', display: responsible party}
                index: 6
              role: {index: 7}
              altId: {index: 8}
              name: {index: 9}
              purposeOfUse:
                binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/EprPurposeOfUse'}
                index: 10
            required: [role, purposeOfUse, name, type, altId]
        delegatedUser:
          match: {}
          schema:
            short: The person who acted on behalf of the main user (an assistant or technical user)
            index: 11
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: PPRF, system: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType', display: primary performer}
                index: 12
              role: {index: 13}
              altId: {index: 14}
              name: {index: 15}
            required: [role, name, type, altId]
  source:
    elements:
      site: {short: The OID of the audit source, index: 16}
    required: [site]
  entity:
    short: The privacy policy query
    index: 17
    slicing:
      slices:
        query:
          match: {}
          schema: {short: The privacy policy query, index: 17}
        patient:
          match: {}
          schema:
            short: The patient whose privacy policies are being accessed
            index: 18
            elements:
              what:
                elements:
                  identifier:
                    index: 19
                    elements:
                      system: {index: 20}
                      value: {index: 21}
                    required: [value, system]
                required: [identifier]
        traceparent:
          match: {}
          schema:
            short: The 'traceparent' header value of the transaction
            index: 22
            elements:
              what:
                index: 23
                elements:
                  identifier:
                    index: 24
                    elements:
                      value: {short: The 'traceparent' header value, index: 25}
                    required: [value]
                required: [identifier]
              type:
                pattern:
                  type: Coding
                  value: {code: '4', system: 'http://terminology.hl7.org/CodeSystem/audit-entity-type', display: Other}
                index: 26
              role:
                pattern:
                  type: Coding
                  value: {code: '26', system: 'http://terminology.hl7.org/CodeSystem/object-role', display: Processing Element}
                index: 27
            required: [what, type]
package_version: epr-fhir-4.0.1-ballot-2
class: profile
kind: resource
url: http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/ChAuditEventPpq5Repository
base: https://profiles.ihe.net/ITI/BALP/StructureDefinition/IHE.BasicAudit.PatientQuery
version: 4.0.1-ballot-2