description: A basic AuditEvent profile for when a RESTful Update action happens successfully.\n\n- Given a Resource Update is requested \n- And that resource does not have a Patient subject or is otherwise associated with a Patient\n - when the resource is Patient specific then [PatientUpdate](StructureDefinition-IHE.BasicAudit.PatientUpdate.html) is used\n- And the request is authorized\n - Authorization failures should follow [FHIR core Access Denied](http://hl7.org/fhir/security.html#AccessDenied)\n- When successful\n - Note a failure AuditEvent may follow this pattern, but would not be a successful outcome and should have an OperationOutcome\n- Then the AuditEvent recorded will conform\n- And where the server supports FHIR Versioning the AuditEvent should use the version specific id package_name: ihe.iti.balp derivation: constraint name: Update type: AuditEvent elements: type: pattern: type: Coding value: {code: rest, system: 'http://terminology.hl7.org/CodeSystem/audit-event-type'} index: 0 subtype: index: 1 slicing: rules: open discriminator: - {path: $this, type: value} min: 1 slices: anyUpdate: match: {code: update, system: 'http://hl7.org/fhir/restful-interaction'} schema: pattern: type: Coding value: {code: update, system: 'http://hl7.org/fhir/restful-interaction'} index: 2 min: 0 max: 1 anyPatch: match: {code: patch, system: 'http://hl7.org/fhir/restful-interaction'} schema: pattern: type: Coding value: {code: patch, system: 'http://hl7.org/fhir/restful-interaction'} index: 3 min: 0 max: 1 action: pattern: {type: Code, value: U} index: 4 outcome: pattern: {type: Code, value: '0'} index: 5 agent: array: true min: 2 index: 6 slicing: rules: open discriminator: - {path: type, type: pattern} min: 2 slices: client: match: type: coding: - {code: '110153', system: 'http://dicom.nema.org/resources/ontology/DCM'} schema: _required: true index: 7 elements: type: pattern: type: CodeableConcept value: coding: - {code: '110153', system: 'http://dicom.nema.org/resources/ontology/DCM'} index: 8 who: {index: 9} media: {index: 10} network: {index: 11} required: [who, network, type] server: match: type: coding: - {code: '110152', system: 'http://dicom.nema.org/resources/ontology/DCM'} schema: _required: true index: 12 elements: type: pattern: type: CodeableConcept value: coding: - {code: '110152', system: 'http://dicom.nema.org/resources/ontology/DCM'} index: 13 who: {index: 14} media: {index: 15} network: {index: 16} required: [who, network, type] user: match: {type: null} schema: index: 17 elements: type: binding: {strength: required, valueSet: 'https://profiles.ihe.net/ITI/BALP/ValueSet/DataSources'} index: 18 role: {mustSupport: true, index: 19} who: {index: 20} name: {mustSupport: true, index: 21} requestor: pattern: {type: Boolean, value: true} index: 22 media: {index: 23} network: {index: 24} purposeOfUse: {mustSupport: true, index: 25} required: [who] source: {mustSupport: true, index: 26} entity: index: 27 slicing: rules: open discriminator: - {path: type, type: pattern} min: 1 slices: transaction: match: type: {code: XrequestId, system: 'https://profiles.ihe.net/ITI/BALP/CodeSystem/BasicAuditEntityType'} schema: index: 28 elements: what: elements: identifier: elements: value: {short: the value of X-Request-Id, index: 29} required: [value] type: pattern: type: Coding value: {code: XrequestId, system: 'https://profiles.ihe.net/ITI/BALP/CodeSystem/BasicAuditEntityType'} index: 30 required: [type] data: match: type: {code: '2', system: 'http://terminology.hl7.org/CodeSystem/audit-entity-type'} schema: _required: true index: 31 elements: what: {index: 32} type: pattern: type: Coding value: {code: '2', system: 'http://terminology.hl7.org/CodeSystem/audit-entity-type'} index: 33 role: binding: {strength: required, valueSet: 'https://profiles.ihe.net/ITI/BALP/ValueSet/RestObjectRoles'} index: 34 securityLabel: {short: may contain the security labels on the resource returned, index: 35} required: [what, type] package_version: 1.1.2 class: profile kind: resource url: https://profiles.ihe.net/ITI/BALP/StructureDefinition/IHE.BasicAudit.Update base: http://hl7.org/fhir/StructureDefinition/AuditEvent version: 1.1.2 required: [subtype, entity]