PackagesCanonicalsLogsProblems
    Packages
    IHE.ITI.PDQm@2.3.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- type (EventTypeCode) = EV(`110112`, `DCM`, `Query`)\n- action (EventActionCode) = `E`\n- subtype (EventTypeCode) = EV(`ITI-78`, `urn:ihe:event-type-code`, `Mobile Patient Demographics Query`)\n- agent (ActiveParticipant)\n  - supplier as the Destination\n  - consumer as the Source\n    - this agent is the source of the auditEvent\n  - other agents are allowed including identity of the application or infrastructure\n- entity (ParticipantObjectIdentification) \n  - query parameters\n  - no patient, because the consumer does not know the patient they are looking for or they wouldn't be using this transaction.
package_name: IHE.ITI.PDQm
derivation: constraint
name: AuditPdqmQueryConsumer
type: AuditEvent
elements:
  modifierExtension: {index: 0}
  type:
    pattern:
      type: Coding
      value: {code: '110112', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Query}
    index: 1
  subtype:
    pattern:
      type: Coding
      value: {code: ITI-78, system: 'urn:ihe:event-type-code', display: Mobile Patient Demographics Query}
    index: 2
  action:
    pattern: {type: Code, value: E}
    index: 3
  outcome: {index: 4}
  outcomeDesc: {mustSupport: true, index: 5}
  agent:
    array: true
    min: 2
    index: 6
    slicing:
      rules: open
      description: source and recipient of the query
      discriminator:
      - {path: type, type: pattern}
      min: 2
      slices:
        supplier:
          match:
            type:
              coding:
              - {code: '110152', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Destination Role ID}
          schema:
            _required: true
            index: 7
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: '110152', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Destination Role ID}
                index: 8
              who: {index: 9}
              network: {index: 10}
            required: [who, network, type]
        consumer:
          match:
            type:
              coding:
              - {code: '110153', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Source Role ID}
          schema:
            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}
            _required: true
            index: 11
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: '110153', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Source Role ID}
                index: 12
              who: {index: 13}
              network: {index: 14}
            required: [who, network, type]
  entity:
    index: 15
    elements:
      type:
        pattern:
          type: Coding
          value: {code: '2', system: 'http://terminology.hl7.org/CodeSystem/audit-entity-type', display: System Object}
        index: 16
      role:
        pattern:
          type: Coding
          value: {code: '24', system: 'http://terminology.hl7.org/CodeSystem/object-role', display: Query}
        index: 17
      query: {index: 18}
    required: [query]
package_version: 2.3.0
class: profile
kind: resource
url: https://profiles.ihe.net/ITI/PDQm/StructureDefinition/IHE.PDQm.Query.Audit.Consumer
base: http://hl7.org/fhir/StructureDefinition/AuditEvent
version: 2.3.0
required: [entity, outcome]