PackagesCanonicalsLogsProblems
    Packages
    ihe.iti.mhd@5.0.0-comment
    https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.RetrieveDocument.Audit.Consumer
description: Defines constraints on the Document Consumer AuditEvent Resource to record when a Retrieve Document Transaction happens, as recorded by the Document Consumer.\n- Build off of the IHE BasicAudit PatientRead event\n- add the ITI-68 as a subtype\n- client is Document Consumer\n- server is Document Responder\n- entity slices for data, and patient are required\n- entity slice for transaction is available
package_name: ihe.iti.mhd
derivation: constraint
name: AuditRetrieveDocumentConsumer
type: AuditEvent
elements:
  modifierExtension: {index: 0}
  category:
    array: true
    min: 2
    index: 1
    slicing:
      slices:
        iti68:
          match: {}
          schema:
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: ITI-68, system: 'urn:ihe:event-type-code', display: Retrieve Document}
            _required: true
            index: 2
          min: 1
          max: 1
  agent:
    short: Document Consumer
    constraint:
      val-audit-source: {human: The Audit Source is this agent too., source: 'https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.RetrieveDocument.Audit.Consumer', severity: error, expression: $this.who = %resource.source.observer}
    index: 3
    slicing:
      slices:
        client:
          match: {}
          schema:
            short: Document Consumer
            constraint:
              val-audit-source: {human: The Audit Source is this agent too., source: 'https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.RetrieveDocument.Audit.Consumer', severity: error, expression: $this.who = %resource.source.observer}
            index: 3
        server:
          match: {}
          schema: {short: Document Responder, index: 4}
  entity:
    short: the data
    index: 5
    slicing:
      slices:
        data:
          match: {}
          schema:
            short: the data
            index: 5
            elements:
              role:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: '3', system: 'http://terminology.hl7.org/CodeSystem/object-role', display: Report}
                index: 6
            required: [role]
        patient:
          match: {}
          schema: {short: Patient, index: 7}
package_version: 5.0.0-comment
class: profile
kind: resource
url: https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.RetrieveDocument.Audit.Consumer
base: https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.BasicAudit.MHD5.PatientRead
version: 5.0.0-comment