PackagesCanonicalsLogsProblems
    Packages
    ihe.iti.pdqm@3.2.0
    https://profiles.ihe.net/ITI/PDQm/StructureDefinition/IHE.PDQm.Query.Audit.Consumer
description: Defines constraints on the AuditEvent (AuditMessage) Resource for a Patient Demographics Consumer to record when it performs a Patient Demographics Query [ITI-78](./ITI-78.html).\n- Build off of the IHE BasicAudit Query event\n- add the ITI-78 as a subtype\n- client is Patient Demographics Consumer\n- server is Patient Demographics Supplier\n- entity slice for query are REQUIRED\n- entity slice for transaction is available\n- entity for patient SHOULD be used when one patient is explicitly identified in the query parameters\n- source is the client
package_name: ihe.iti.pdqm
derivation: constraint
name: AuditPdqmQueryConsumer
type: AuditEvent
elements:
  modifierExtension: {index: 0}
  subtype:
    array: true
    min: 2
    index: 1
    slicing:
      slices:
        iti78:
          match: {}
          schema:
            pattern:
              type: Coding
              value: {code: ITI-78, system: 'urn:ihe:event-type-code', display: Mobile Patient Demographics Query}
            _required: true
            index: 2
          min: 1
          max: 1
  agent:
    short: Patient Demographics Consumer
    constraint:
      val-audit-source: {human: The Audit Source is this agent too., source: 'https://profiles.ihe.net/ITI/PDQm/StructureDefinition/IHE.PDQm.Query.Audit.Consumer', severity: error, expression: $this.who = %resource.source.observer}
    index: 3
    slicing:
      slices:
        client:
          match: {}
          schema:
            short: Patient Demographics Consumer
            constraint:
              val-audit-source: {human: The Audit Source is this agent too., source: 'https://profiles.ihe.net/ITI/PDQm/StructureDefinition/IHE.PDQm.Query.Audit.Consumer', severity: error, expression: $this.who = %resource.source.observer}
            index: 3
        server:
          match: {}
          schema: {short: Patient Demographics Supplier, index: 4}
  entity:
    short: Search Parameters
    index: 5
    slicing:
      slices:
        query:
          match: {}
          schema: {short: Search Parameters, index: 5}
        patient:
          match: {}
          schema:
            short: Patient
            index: 6
            elements:
              what:
                type: Reference
                refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
                index: 7
              type:
                pattern:
                  type: Coding
                  value: {code: '1', system: 'http://terminology.hl7.org/CodeSystem/audit-entity-type', display: Person}
                index: 8
              role:
                pattern:
                  type: Coding
                  value: {code: '1', system: 'http://terminology.hl7.org/CodeSystem/object-role', display: Patient}
                index: 9
            required: [what, type]
package_version: 3.2.0
class: profile
kind: resource
url: https://profiles.ihe.net/ITI/PDQm/StructureDefinition/IHE.PDQm.Query.Audit.Consumer
base: https://profiles.ihe.net/ITI/BALP/StructureDefinition/IHE.BasicAudit.Query
version: 3.2.0