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