description: Defines constraints on the AuditEvent Resource to record when a Provide Bundle Transaction happens at the Recipient.\r\n- Import event\r\n- shall have source of itself\r\n- shall have a document source agent\r\n- shall have a document recipient agent\r\n- may have user, app, organization agent(s)\r\n- shall have a patient entity\r\n- shall have a submission set identity entity package_name: ihe.iti.mhd derivation: constraint name: AuditProvideBundleRecipient type: AuditEvent elements: modifierExtension: {index: 0} type: pattern: type: Coding value: {code: '110107', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Import} index: 1 subtype: pattern: type: Coding value: {code: ITI-65, system: 'urn:ihe:event-type-code', display: Provide Document Bundle} index: 2 action: pattern: {type: Code, value: C} index: 3 outcome: {index: 4} outcomeDesc: {mustSupport: true, index: 5} agent: array: true min: 2 index: 6 slicing: rules: open description: source, recipient, and possibly the user who participated discriminator: - {path: type, type: pattern} min: 2 slices: documentSource: match: type: coding: - {code: '110153', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Source Role ID} schema: _required: true index: 7 elements: type: pattern: type: CodeableConcept value: coding: - {code: '110153', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Source Role ID} index: 8 who: {index: 9} network: {index: 10} required: [who, network, type] documentRecipient: match: type: coding: - {code: '110152', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Destination Role ID} schema: constraint: val-audit-source: {human: The Audit Source is this agent too., source: 'https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.ProvideBundle.Audit.Recipient', severity: error, expression: $this.who = %resource.source.observer} _required: true index: 11 elements: type: pattern: type: CodeableConcept value: coding: - {code: '110152', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Destination Role ID} index: 12 who: {index: 13} network: {index: 14} required: [who, network, type] entity: array: true min: 2 max: 2 index: 15 slicing: rules: closed description: patient and submission set involved discriminator: - {path: type, type: pattern} min: 2 max: 2 slices: patient: match: type: {code: '1', system: 'http://terminology.hl7.org/CodeSystem/audit-entity-type', display: Person} schema: _required: true index: 16 elements: what: type: Reference refers: ['http://hl7.org/fhir/StructureDefinition/Patient'] index: 17 type: pattern: type: Coding value: {code: '1', system: 'http://terminology.hl7.org/CodeSystem/audit-entity-type', display: Person} index: 18 role: pattern: type: Coding value: {code: '1', system: 'http://terminology.hl7.org/CodeSystem/object-role', display: Patient} index: 19 required: [what, type] submissionSet: match: type: {code: '2', system: 'http://terminology.hl7.org/CodeSystem/audit-entity-type', display: System Object} schema: _required: true index: 20 elements: what: type: Reference refers: ['http://hl7.org/fhir/StructureDefinition/List'] index: 21 type: pattern: type: Coding value: {code: '2', system: 'http://terminology.hl7.org/CodeSystem/audit-entity-type', display: System Object} index: 22 role: pattern: type: Coding value: {code: '20', system: 'http://terminology.hl7.org/CodeSystem/object-role', display: Job} index: 23 required: [what, type] package_version: 4.1.0 class: profile kind: resource url: https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.ProvideBundle.Audit.Recipient base: http://hl7.org/fhir/StructureDefinition/AuditEvent version: 4.1.0 required: [outcome]