description: Defines constraints on the AuditEvent Resource to record when a Provide Bundle Transaction happens at the Source.\r\n- Export 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: AuditProvideBundleSource type: AuditEvent elements: modifierExtension: {index: 0} category: index: 1 slicing: rules: open discriminator: - {path: $this, type: value} min: 1 slices: iti65: match: coding: - {code: ITI-65, system: 'urn:ihe:event-type-code', display: Provide Document Bundle} schema: pattern: type: CodeableConcept value: coding: - {code: ITI-65, system: 'urn:ihe:event-type-code', display: Provide Document Bundle} _required: true index: 2 min: 1 max: 1 code: pattern: type: CodeableConcept value: coding: - {code: '110106', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Export} index: 3 action: pattern: {type: Code, value: R} index: 4 outcome: elements: detail: elements: text: {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: value} min: 2 slices: documentSource: match: type: coding: - {code: '110153', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Source Role ID} 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.ProvideBundle.Audit.Source', severity: error, expression: $this.who = %resource.source.observer} _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 network: choices: [] index: 10 required: [network, type] documentRecipient: match: type: coding: - {code: '110152', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Destination Role ID} schema: short: Document Recipient _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 network: choices: [] index: 14 required: [network, type] entity: array: true min: 2 index: 15 slicing: rules: open description: patient and submission set involved discriminator: - {path: role, type: value} min: 2 slices: patient: match: role: coding: - {code: '1', system: 'http://terminology.hl7.org/CodeSystem/object-role', display: Patient} schema: short: Patient _required: true index: 16 elements: what: type: Reference refers: ['http://hl7.org/fhir/StructureDefinition/Patient'] index: 17 role: pattern: type: CodeableConcept value: coding: - {code: '1', system: 'http://terminology.hl7.org/CodeSystem/object-role', display: Patient} index: 18 required: [role, what] submissionSet: match: role: coding: - {code: '20', system: 'http://terminology.hl7.org/CodeSystem/object-role', display: Job} schema: short: SubmissionSet _required: true index: 19 elements: what: type: Reference refers: ['http://hl7.org/fhir/StructureDefinition/List'] index: 20 role: pattern: type: CodeableConcept value: coding: - {code: '20', system: 'http://terminology.hl7.org/CodeSystem/object-role', display: Job} index: 21 required: [role, what] package_version: 5.0.0-comment class: profile kind: resource url: https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.ProvideBundle.Audit.Source base: http://hl7.org/fhir/StructureDefinition/AuditEvent version: 5.0.0-comment required: [category]