PackagesCanonicalsLogsProblems
    Packages
    ihe.iti.mhd@4.2.1
    https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.GenerateMetadata.Audit.Recipient
description: Defines constraints on the AuditEvent Resource to record when a Generate Metadata ITI-106 Transaction happens at the Recipient.\n- Build off of the IHE Basic Audit Patient Create event\n- add the ITI-106 as a subtype\n- client is the Document Source\n- Server is the Document Recipient\n- may have user, app, organization agent(s)\n- shall have a patient entity\n- shall have a documentReference identity entity
package_name: ihe.iti.mhd
derivation: constraint
name: AuditGenerateMetadataRecipient
type: AuditEvent
elements:
  modifierExtension: {index: 0}
  subtype:
    array: true
    min: 2
    index: 1
    slicing:
      slices:
        iti106:
          match: {}
          schema:
            pattern:
              type: Coding
              value: {code: ITI-106, system: 'urn:ihe:event-type-code', display: Generate Metadata}
            _required: true
            index: 2
          min: 1
          max: 1
  agent:
    short: Document Source
    index: 3
    slicing:
      slices:
        client:
          match: {}
          schema: {short: Document Source, index: 3}
        server:
          match: {}
          schema:
            short: Document Recipient
            constraint:
              val-audit-source: {human: The Audit Source is this agent too., source: 'https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.GenerateMetadata.Audit.Recipient', severity: error, expression: $this.who = %resource.source.observer}
            index: 4
  entity:
    short: DocumentReference
    index: 5
    slicing:
      slices:
        data:
          match: {}
          schema:
            short: DocumentReference
            index: 5
            elements:
              what:
                type: Reference
                refers: ['http://hl7.org/fhir/StructureDefinition/DocumentReference']
                index: 6
        patient:
          match: {}
          schema: {short: Patient, index: 7}
package_version: 4.2.1
class: profile
kind: resource
url: https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.GenerateMetadata.Audit.Recipient
base: https://profiles.ihe.net/ITI/BALP/StructureDefinition/IHE.BasicAudit.PatientCreate
version: 4.2.1