PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-epr-fhir@4.0.1-ballot-2
    http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/ChAuditEventIti65Source
description: This profile is used to define the CH Audit Event for the [ITI-65] transaction and the actor 'Document\nSource'.
package_name: ch.fhir.ig.ch-epr-fhir
derivation: constraint
name: ChAuditEventIti65Source
type: AuditEvent
elements:
  agent:
    array: true
    min: 3
    index: 0
    slicing:
      slices:
        documentSource:
          match: {}
          schema: {short: The 'Document Source' actor (EPR application), index: 1}
        documentRecipient:
          match: {}
          schema: {short: The 'Document Recipient' actor (EPR API), index: 2}
        mainUser:
          match: {}
          schema:
            short: The main user (patient, representative, healthcare professional, or administrator)
            _required: true
            index: 3
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: RESP, system: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType', display: responsible party}
                index: 4
              role: {index: 5}
              altId: {index: 6}
              name: {index: 7}
              purposeOfUse:
                binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/EprPurposeOfUse'}
                index: 8
            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: 9
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: PPRF, system: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType', display: primary performer}
                index: 10
              role: {index: 11}
              altId: {index: 12}
              name: {index: 13}
            required: [role, name, type, altId]
  source:
    elements:
      site: {short: The OID of the audit source, index: 14}
    required: [site]
  entity:
    index: 15
    slicing:
      slices:
        patient:
          match: {}
          schema:
            index: 15
            elements:
              what:
                elements:
                  identifier:
                    index: 16
                    elements:
                      system: {index: 17}
                      value: {index: 18}
                    required: [value, system]
                required: [identifier]
        submissionSet:
          match: {}
          schema:
            index: 19
            elements:
              what:
                elements:
                  identifier:
                    index: 20
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
                        index: 21
                      value: {index: 22}
                    required: [value, system]
                required: [identifier]
        traceparent:
          match: {}
          schema:
            short: The 'traceparent' header value of the transaction
            index: 23
            elements:
              what:
                index: 24
                elements:
                  identifier:
                    index: 25
                    elements:
                      value: {short: The 'traceparent' header value, index: 26}
                    required: [value]
                required: [identifier]
              type:
                pattern:
                  type: Coding
                  value: {code: '4', system: 'http://terminology.hl7.org/CodeSystem/audit-entity-type', display: Other}
                index: 27
              role:
                pattern:
                  type: Coding
                  value: {code: '26', system: 'http://terminology.hl7.org/CodeSystem/object-role', display: Processing Element}
                index: 28
            required: [what, type]
package_version: 4.0.1-ballot-2
class: profile
kind: resource
url: http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/ChAuditEventIti65Source
base: https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.ProvideBundle.Audit.Source
version: 4.0.1-ballot-2