description: 'R5: `AuditEvent.agent`' package_name: hl7.fhir.uv.xver-r5.r4b derivation: constraint name: ExtensionAuditEvent_Agent type: Extension elements: extension: base: {max: '*', min: 0, path: Extension.extension} array: true min: 1 index: 0 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: 1 slices: type: match: {url: type} schema: short: 'R5: type' base: {max: '*', min: 0, path: Extension.extension} index: 1 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: type} index: 2 value: short: How agent participated choices: [valueCodeableConcept] base: {max: '1', min: 0, path: 'Extension.value[x]'} index: 4 valueCodeableConcept: short: How agent participated type: CodeableConcept base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 5 required: [url] role: match: {url: role} schema: short: 'R5: role' array: true base: {max: '*', min: 0, path: Extension.extension} index: 6 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: role} index: 7 value: short: Agent role in the event choices: [valueCodeableConcept] base: {max: '1', min: 0, path: 'Extension.value[x]'} index: 9 valueCodeableConcept: short: Agent role in the event type: CodeableConcept base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 10 required: [url] who: match: {url: 'http://hl7.org/fhir/StructureDefinition/alternate-reference'} schema: short: 'R5: who' _required: true base: {max: '*', min: 0, path: Extension.extension} index: 11 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/alternate-reference'} index: 12 required: [url] requestor: match: {url: requestor} schema: short: 'R5: requestor' base: {max: '*', min: 0, path: Extension.extension} index: 13 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: requestor} index: 14 value: short: Whether user is initiator choices: [valueBoolean] base: {max: '1', min: 0, path: 'Extension.value[x]'} index: 16 valueBoolean: short: Whether user is initiator type: boolean base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 17 required: [url] location: match: {url: location} schema: short: 'R5: The agent location when the event occurred' base: {max: '*', min: 0, path: Extension.extension} index: 18 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: location} index: 19 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} short: The agent location when the event occurred choices: [valueReference] index: 21 valueReference: short: The agent location when the event occurred refers: ['http://hl7.org/fhir/5.0/StructureDefinition/profile-Location|0.1.0', 'http://hl7.org/fhir/StructureDefinition/Location|4.3.0'] type: Reference base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 22 required: [url] policy: match: {url: policy} schema: short: 'R5: Policy that authorized the agent participation in the event' array: true base: {max: '*', min: 0, path: Extension.extension} index: 23 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: policy} index: 24 value: short: Policy that authorized the agent participation in the event choices: [valueUri] base: {max: '1', min: 0, path: 'Extension.value[x]'} index: 26 valueUri: short: Policy that authorized the agent participation in the event type: uri base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 27 required: [url] network: match: {url: network} schema: short: 'R5: This agent network location for the activity' base: {max: '*', min: 0, path: Extension.extension} index: 28 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: network} index: 29 value: short: This agent network location for the activity choices: [valueReference, valueUri, valueString] base: {max: '1', min: 0, path: 'Extension.value[x]'} index: 31 valueReference: short: This agent network location for the activity refers: ['http://hl7.org/fhir/5.0/StructureDefinition/profile-Endpoint|0.1.0', 'http://hl7.org/fhir/StructureDefinition/Endpoint|4.3.0'] type: Reference base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 32 valueUri: short: This agent network location for the activity type: uri base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 33 valueString: short: This agent network location for the activity type: string base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 34 required: [url] authorization: match: {url: authorization} schema: short: 'R5: Allowable authorization for this agent' array: true base: {max: '*', min: 0, path: Extension.extension} index: 35 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: authorization} index: 36 value: short: Allowable authorization for this agent choices: [valueCodeableConcept] base: {max: '1', min: 0, path: 'Extension.value[x]'} index: 38 valueCodeableConcept: short: Allowable authorization for this agent type: CodeableConcept base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 39 required: [url] url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-AuditEvent.agent'} index: 40 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} choices: [] index: 42 package_version: 0.1.0 extensions: type: url: type short: 'R5: type' base: {max: '*', min: 0, path: Extension.extension} index: 1 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: type} index: 2 value: short: How agent participated choices: [valueCodeableConcept] base: {max: '1', min: 0, path: 'Extension.value[x]'} index: 4 valueCodeableConcept: short: How agent participated type: CodeableConcept base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 5 required: [url] role: url: role short: 'R5: role' array: true base: {max: '*', min: 0, path: Extension.extension} index: 6 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: role} index: 7 value: short: Agent role in the event choices: [valueCodeableConcept] base: {max: '1', min: 0, path: 'Extension.value[x]'} index: 9 valueCodeableConcept: short: Agent role in the event type: CodeableConcept base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 10 required: [url] who: url: http://hl7.org/fhir/StructureDefinition/alternate-reference short: 'R5: who' _required: true base: {max: '*', min: 0, path: Extension.extension} index: 11 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/alternate-reference'} index: 12 required: [url] requestor: url: requestor short: 'R5: requestor' base: {max: '*', min: 0, path: Extension.extension} index: 13 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: requestor} index: 14 value: short: Whether user is initiator choices: [valueBoolean] base: {max: '1', min: 0, path: 'Extension.value[x]'} index: 16 valueBoolean: short: Whether user is initiator type: boolean base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 17 required: [url] location: url: location short: 'R5: The agent location when the event occurred' base: {max: '*', min: 0, path: Extension.extension} index: 18 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: location} index: 19 value: base: {max: '1', min: 0, path: 'Extension.value[x]'} short: The agent location when the event occurred choices: [valueReference] index: 21 valueReference: short: The agent location when the event occurred refers: ['http://hl7.org/fhir/5.0/StructureDefinition/profile-Location|0.1.0', 'http://hl7.org/fhir/StructureDefinition/Location|4.3.0'] type: Reference base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 22 required: [url] policy: url: policy short: 'R5: Policy that authorized the agent participation in the event' array: true base: {max: '*', min: 0, path: Extension.extension} index: 23 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: policy} index: 24 value: short: Policy that authorized the agent participation in the event choices: [valueUri] base: {max: '1', min: 0, path: 'Extension.value[x]'} index: 26 valueUri: short: Policy that authorized the agent participation in the event type: uri base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 27 required: [url] network: url: network short: 'R5: This agent network location for the activity' base: {max: '*', min: 0, path: Extension.extension} index: 28 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: network} index: 29 value: short: This agent network location for the activity choices: [valueReference, valueUri, valueString] base: {max: '1', min: 0, path: 'Extension.value[x]'} index: 31 valueReference: short: This agent network location for the activity refers: ['http://hl7.org/fhir/5.0/StructureDefinition/profile-Endpoint|0.1.0', 'http://hl7.org/fhir/StructureDefinition/Endpoint|4.3.0'] type: Reference base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 32 valueUri: short: This agent network location for the activity type: uri base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 33 valueString: short: This agent network location for the activity type: string base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 34 required: [url] authorization: url: authorization short: 'R5: Allowable authorization for this agent' array: true base: {max: '*', min: 0, path: Extension.extension} index: 35 elements: url: base: {max: '1', min: 1, path: Extension.url} pattern: {type: Uri, value: authorization} index: 36 value: short: Allowable authorization for this agent choices: [valueCodeableConcept] base: {max: '1', min: 0, path: 'Extension.value[x]'} index: 38 valueCodeableConcept: short: Allowable authorization for this agent type: CodeableConcept base: {max: '1', min: 0, path: 'Extension.value[x]'} choiceOf: value index: 39 required: [url] class: extension kind: complex-type url: http://hl7.org/fhir/5.0/StructureDefinition/extension-AuditEvent.agent base: http://hl7.org/fhir/StructureDefinition/Extension|4.3.0 version: 0.1.0 required: [url, extension]