description: Defines constraints on the AuditEvent Resource to record when a Mobile Patient Identity Feed Transaction happens, as recorded by the Supplier and Consumer. package_name: ihe.iti.pmir derivation: constraint name: AuditPmirFeed type: AuditEvent elements: modifierExtension: {index: 0} type: pattern: type: Coding value: {code: '110110', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Patient Record} index: 1 subtype: pattern: type: Coding value: {code: ITI-93, system: 'urn:ihe:event-type-code', display: Mobile Patient Identity Feed} index: 2 action: pattern: {type: Code, value: E} index: 3 outcome: {index: 4} outcomeDesc: {mustSupport: true, index: 5} agent: array: true min: 2 index: 6 slicing: rules: open discriminator: - {path: type, type: pattern} min: 2 slices: source: 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 elements: address: {index: 11} type: {index: 12} required: [address, type] required: [who, network, type] destination: match: type: coding: - {code: '110152', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Destination Role ID} schema: _required: true index: 13 elements: type: pattern: type: CodeableConcept value: coding: - {code: '110152', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Destination Role ID} index: 14 who: {index: 15} requestor: pattern: {type: Boolean, value: false} index: 16 network: short: Endpoint of the destination index: 17 elements: address: {index: 18} type: {index: 19} required: [address, type] required: [who, network, type] entity: array: true min: 2 index: 20 slicing: rules: closed discriminator: - {path: type, type: pattern} min: 2 slices: patient: match: type: {code: '1', system: 'http://terminology.hl7.org/CodeSystem/audit-entity-type', display: Person} schema: array: true min: 1 _required: true index: 21 elements: what: type: Reference refers: ['http://hl7.org/fhir/StructureDefinition/Patient'] index: 22 type: pattern: type: Coding value: {code: '1', system: 'http://terminology.hl7.org/CodeSystem/audit-entity-type', display: Person} index: 23 role: pattern: type: Coding value: {code: '1', system: 'http://terminology.hl7.org/CodeSystem/object-role', display: Patient} index: 24 required: [what, type] message: match: type: {code: MessageHeader, system: 'http://hl7.org/fhir/resource-types', display: MessageHeader} schema: _required: true index: 25 elements: what: type: Reference short: A reference to the MessageHeader in the message. refers: ['http://hl7.org/fhir/StructureDefinition/MessageHeader'] index: 26 type: pattern: type: Coding value: {code: MessageHeader, system: 'http://hl7.org/fhir/resource-types', display: MessageHeader} index: 27 name: pattern: {type: String, value: 'urn:ihe:iti:pmir:2019:patient-feed'} index: 28 required: [what, type] package_version: 1.5.0 class: profile kind: resource url: https://profiles.ihe.net/ITI/PMIR/StructureDefinition/IHE.PMIR.Feed.Audit base: http://hl7.org/fhir/StructureDefinition/AuditEvent version: 1.5.0 required: [outcome]