PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-epr-fhir@4.0.1
    http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/ChAuditEventPpq3Create
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 creating a privacy policy.
package_name: ch.fhir.ig.ch-epr-fhir
derivation: constraint
name: ChAuditEventPpq3Create
type: AuditEvent
elements:
  subtype:
    array: true
    min: 2
    index: 0
    slicing:
      slices:
        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
            index: 1
          min: 1
          max: 1
  agent:
    array: true
    min: 3
    index: 2
    slicing:
      slices:
        client:
          match: {}
          schema: {short: The 'Policy Source' 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 being created, updated or deleted
    index: 17
    slicing:
      slices:
        data:
          match: {}
          schema:
            short: The privacy policy being created, updated or deleted
            index: 17
            elements:
              what:
                elements:
                  identifier:
                    index: 18
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
                        index: 19
                      value: {index: 20}
                    required: [value, system]
                required: [identifier]
              role:
                pattern:
                  type: Coding
                  value: {code: '4', system: 'http://terminology.hl7.org/CodeSystem/object-role', display: Domain Resource}
                index: 21
        patient:
          match: {}
          schema:
            short: The patient whose privacy policies are being managed
            index: 22
            elements:
              what:
                elements:
                  identifier:
                    index: 23
                    elements:
                      system: {index: 24}
                      value: {index: 25}
                    required: [value, system]
                required: [identifier]
        traceparent:
          match: {}
          schema:
            short: The 'traceparent' header value of the transaction
            index: 26
            elements:
              what:
                index: 27
                elements:
                  identifier:
                    index: 28
                    elements:
                      value: {short: The 'traceparent' header value, index: 29}
                    required: [value]
                required: [identifier]
              type:
                pattern:
                  type: Coding
                  value: {code: '4', system: 'http://terminology.hl7.org/CodeSystem/audit-entity-type', display: Other}
                index: 30
              role:
                pattern:
                  type: Coding
                  value: {code: '26', system: 'http://terminology.hl7.org/CodeSystem/object-role', display: Processing Element}
                index: 31
            required: [what, type]
package_version: 4.0.1
class: profile
kind: resource
url: http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/ChAuditEventPpq3Create
base: https://profiles.ihe.net/ITI/BALP/StructureDefinition/IHE.BasicAudit.PatientCreate
version: 4.0.1