PackagesCanonicalsLogsProblems
    Packages
    ihe.iti.pixm@3.0.3
    https://profiles.ihe.net/ITI/PIXm/StructureDefinition/IHE.PIXm.Feed.Delete.Audit.Manager
description: Defines constraints on the AuditEvent Resource to record when a Patient Identity Feed Transaction happens, as recorded by the Patient Identity Cross-reference Manager. \n- This profile applies to the Patient Identity Cross-reference Manager actor in \n  - [Remove Patient](ITI-104.html#2310443-remove-patient)\n- Build off of the IHE BasicAudit PatientDelete event\n  - this will result in two .entity elements with the same logical information\n- add the ITI-104 as a subtype\n- client 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 DELETE\n  - will be an identifier, not a reference\n- entity slice for the data\n  - filled with the path of the DELETE\n  - will be the Patient resource id presented\n- entity slice for transaction is available
package_name: ihe.iti.pixm
derivation: constraint
name: AuditPixmFeedManagerDelete
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.Delete.Audit.Manager', severity: error, expression: $this.who = %resource.source.observer}
            index: 4
  entity:
    short: Resource id from the DELETE path
    index: 5
    slicing:
      slices:
        data:
          match: {}
          schema:
            short: Resource id from the DELETE path
            index: 5
            elements:
              what:
                elements:
                  reference: {index: 6}
                required: [reference]
        patient:
          match: {}
          schema:
            short: identifier parameter - Patient
            index: 7
            elements:
              what:
                elements:
                  reference: {index: 8}
                  identifier: {index: 9}
                required: [identifier]
package_version: 3.0.3
class: profile
kind: resource
url: https://profiles.ihe.net/ITI/PIXm/StructureDefinition/IHE.PIXm.Feed.Delete.Audit.Manager
base: https://profiles.ihe.net/ITI/BALP/StructureDefinition/IHE.BasicAudit.PatientDelete
version: 3.0.3