description: A basic AuditEvent profile for when a RESTful Create action happens successfully.\n\n- Given a Resource Create is requested with no Patient subject\n- And OAuth is used to authorize both app and user\n- When an App requests a RESTful Create of a new Resource\n- And the new Resource is successfully created thus having an id assigned\n- Then an AuditEvent following this profile is recorded \n- And when a user is known they are the Author, Informant, or Custodian package_name: ihe.iti.balp derivation: constraint name: Create type: AuditEvent elements: type: pattern: type: Coding value: {code: rest, system: 'http://terminology.hl7.org/CodeSystem/audit-event-type', display: Restful Operation} index: 0 subtype: index: 1 slicing: rules: open discriminator: - {path: $this, type: value} min: 1 slices: anyCreate: match: {code: create, system: 'http://hl7.org/fhir/restful-interaction', display: create} schema: pattern: type: Coding value: {code: create, system: 'http://hl7.org/fhir/restful-interaction', display: create} _required: true index: 2 min: 1 max: 1 action: pattern: {type: Code, value: C} index: 3 outcome: pattern: {type: Code, value: '0'} index: 4 agent: array: true min: 2 index: 5 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', display: Source Role ID} schema: _required: true index: 6 elements: type: pattern: type: CodeableConcept value: coding: - {code: '110153', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Source Role ID} index: 7 who: {index: 8} media: {index: 9} network: {index: 10} required: [who, network, type] server: match: type: coding: - {code: '110152', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Destination Role ID} schema: _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} media: {index: 14} network: {index: 15} required: [who, network, type] user: match: {type: null} schema: index: 16 elements: type: binding: {strength: required, valueSet: 'https://profiles.ihe.net/ITI/BALP/ValueSet/DataSources'} index: 17 role: {mustSupport: true, index: 18} who: {index: 19} name: {mustSupport: true, index: 20} requestor: pattern: {type: Boolean, value: true} index: 21 media: {index: 22} network: {index: 23} purposeOfUse: {mustSupport: true, index: 24} required: [who] source: {mustSupport: true, index: 25} entity: index: 26 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: 27 elements: what: elements: identifier: elements: value: {short: the value of X-Request-Id, index: 28} required: [value] type: pattern: type: Coding value: {code: XrequestId, system: 'https://profiles.ihe.net/ITI/BALP/CodeSystem/BasicAuditEntityType'} index: 29 required: [type] data: match: type: {code: '2', system: 'http://terminology.hl7.org/CodeSystem/audit-entity-type', display: System Object} schema: _required: true index: 30 elements: what: {index: 31} type: pattern: type: Coding value: {code: '2', system: 'http://terminology.hl7.org/CodeSystem/audit-entity-type', display: System Object} index: 32 role: binding: {strength: required, valueSet: 'https://profiles.ihe.net/ITI/BALP/ValueSet/RestObjectRoles'} index: 33 securityLabel: {short: may contain the security labels on the resource returned, index: 34} required: [what, type] package_version: 1.1.0 class: profile kind: resource url: https://profiles.ihe.net/ITI/BALP/StructureDefinition/IHE.BasicAudit.Create base: http://hl7.org/fhir/StructureDefinition/AuditEvent version: 1.1.0 required: [subtype, entity]