description: A basic AuditEvent profile for when a RESTful Create action happens successfully, and where there is an identifiable Patient subject associated with the create of the Resource.\n\n- Given a Resource Create is requested with a 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: PatientCreate type: AuditEvent elements: entity: array: true min: 2 index: 0 slicing: slices: patient: match: {} schema: _required: true index: 1 elements: what: type: Reference refers: ['http://hl7.org/fhir/StructureDefinition/Patient'] index: 2 type: pattern: type: Coding value: {code: '1', system: 'http://terminology.hl7.org/CodeSystem/audit-entity-type', display: Person} index: 3 role: pattern: type: Coding value: {code: '1', system: 'http://terminology.hl7.org/CodeSystem/object-role', display: Patient} index: 4 required: [what, type] package_version: 1.1.0 class: profile kind: resource url: https://profiles.ihe.net/ITI/BALP/StructureDefinition/IHE.BasicAudit.PatientCreate base: https://profiles.ihe.net/ITI/BALP/StructureDefinition/IHE.BasicAudit.Create version: 1.1.0