PackagesCanonicalsLogsProblems
    Packages
    ihe.iti.pixm@3.0.3
    https://profiles.ihe.net/ITI/PIXm/StructureDefinition/IHE.PIXm.Feed.Update.Audit.Manager
description: Defines constraints on the AuditEvent Resource to record when a Patient Identity Feed FHIR Transaction happens, as recorded by the Patient Identifier Cross-reference Manager.\n- This profile applies to the Patient Identity Cross-reference Manager actor in \n  - [Add or Revise Patient](ITI-104.html#2310441-add-or-revise-patient)\n  - [Resolve Duplicate Patient](ITI-104.html#2310442-resolve-duplicate-patient)\n- Patient Identity Cross-reference Manager knows the requested conditional create is an update, so records this as an update.\n- Build off of the IHE BasicAudit PatientUpdate event\n  - A generic FHIR server might not distinguish an ITI-104 \n- add the ITI-104 as a subtype\n- server is Patient Identifier Source\n- server is Patient Identifier Cross-reference Manager\n- entity slices for patient are required\n  - filled with the identifier parameter value from the PUT\n  - will be an identifier, not a reference\n- entity slice for the data\n  - filled with the body of the PUT\n  - will be the Patient resource presented\n- entity slice for transaction is available
package_name: ihe.iti.pixm
derivation: constraint
name: AuditPixmFeedManagerUpdate
type: AuditEvent
elements:
  modifierExtension: {index: 0}
  subtype:
    array: true
    min: 2
    index: 1
    slicing:
      slices:
        iti104:
          match: {}
          schema:
            pattern:
              type: Coding
              value: {code: ITI-104, system: 'urn:ihe:event-type-code', display: Patient Identity Feed FHIR}
            _required: true
            index: 2
          min: 1
          max: 1
  agent:
    short: Patient Identifier Source
    index: 3
    slicing:
      slices:
        client:
          match: {}
          schema: {short: Patient Identifier Source, index: 3}
        server:
          match: {}
          schema:
            short: Patient Identifier Cross-reference Manager
            constraint:
              val-audit-source: {human: The Audit Source is this agent too., source: 'https://profiles.ihe.net/ITI/PIXm/StructureDefinition/IHE.PIXm.Feed.Update.Audit.Manager', severity: error, expression: $this.who = %resource.source.observer}
            index: 4
  entity:
    short: transaction body
    index: 5
    slicing:
      slices:
        data:
          match: {}
          schema: {short: transaction body, index: 5}
        patient:
          match: {}
          schema:
            short: identifier parameter - Patient
            index: 6
            elements:
              what:
                elements:
                  reference: {index: 7}
                  identifier: {index: 8}
                required: [identifier]
package_version: 3.0.3
class: profile
kind: resource
url: https://profiles.ihe.net/ITI/PIXm/StructureDefinition/IHE.PIXm.Feed.Update.Audit.Manager
base: https://profiles.ihe.net/ITI/BALP/StructureDefinition/IHE.BasicAudit.PatientUpdate
version: 3.0.3