description: Defines constraints on the AuditEvent Resource to record when a Generate Metadata ITI-106 Transaction happens at the Soure.\n- Build off of the IHE Basic Audit 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 document uri\n- note the Document Source may add a patient if it knows it. package_name: ihe.iti.mhd derivation: constraint name: AuditGenerateMetadataSource 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 constraint: val-audit-source: {human: The Audit Source is this agent too., source: 'https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.GenerateMetadata.Audit.Source', severity: error, expression: $this.who = %resource.source.observer} index: 3 slicing: slices: client: match: {} schema: short: Document Source constraint: val-audit-source: {human: The Audit Source is this agent too., source: 'https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.GenerateMetadata.Audit.Source', severity: error, expression: $this.who = %resource.source.observer} index: 3 server: match: {} schema: {short: Document Recipient, index: 4} entity: short: document index: 5 slicing: slices: data: match: {} schema: {short: document, index: 5} package_version: 4.2.0-ballot class: profile kind: resource url: https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.GenerateMetadata.Audit.Source base: https://profiles.ihe.net/ITI/BALP/StructureDefinition/IHE.BasicAudit.Create version: 4.2.0-ballot