description: Extension to define an encounter that is caused by an accident and at which time the accident happened package_name: ch.fhir.ig.ch-core derivation: constraint name: Accident type: Extension elements: extension: short: Information if it was an accident index: 0 slicing: slices: tag: match: {} schema: short: Information if it was an accident index: 0 extensions: {} elements: extension: {index: 1} url: pattern: {type: Uri, value: tag} index: 2 value: choices: [] index: 4 slicing: rules: open ordered: false discriminator: - {path: $this, type: type} min: 1 slices: valueBoolean: match: {} schema: short: Flag to indicate that it was an accident choices: [valueBoolean] _required: true index: 6 min: 1 max: 1 valueBoolean: type: boolean short: Flag to indicate that it was an accident choiceOf: value index: 7 slicing: slices: valueBoolean: match: {} schema: {type: boolean, short: Flag to indicate that it was an accident, choiceOf: value, _required: true, index: 7} min: 1 max: 1 required: [value, valueBoolean] dateTime: match: {} schema: short: Timestamp of the authorship/data input index: 8 extensions: {} elements: extension: {index: 9} url: pattern: {type: Uri, value: dateTime} index: 10 value: choices: [] index: 12 slicing: rules: open ordered: false discriminator: - {path: $this, type: type} min: 1 slices: valueDateTime: match: {} schema: short: date and time of accident choices: [valueDateTime] _required: true index: 14 min: 1 max: 1 valueDateTime: type: dateTime short: date and time of accident choiceOf: value index: 15 slicing: slices: valueDateTime: match: {} schema: {type: dateTime, short: date and time of accident, choiceOf: value, _required: true, index: 15} min: 1 max: 1 required: [valueDateTime, value] url: pattern: {type: Uri, value: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-accident'} index: 16 value: choices: [] index: 18 package_version: 4.0.0 extensions: tag: url: null short: Information if it was an accident index: 0 extensions: {} elements: extension: {index: 1} url: pattern: {type: Uri, value: tag} index: 2 value: choices: [] index: 4 slicing: rules: open ordered: false discriminator: - {path: $this, type: type} min: 1 slices: valueBoolean: match: {} schema: short: Flag to indicate that it was an accident choices: [valueBoolean] _required: true index: 6 min: 1 max: 1 valueBoolean: type: boolean short: Flag to indicate that it was an accident choiceOf: value index: 7 slicing: slices: valueBoolean: match: {} schema: {type: boolean, short: Flag to indicate that it was an accident, choiceOf: value, _required: true, index: 7} min: 1 max: 1 required: [value, valueBoolean] dateTime: url: null short: Timestamp of the authorship/data input index: 8 extensions: {} elements: extension: {index: 9} url: pattern: {type: Uri, value: dateTime} index: 10 value: choices: [] index: 12 slicing: rules: open ordered: false discriminator: - {path: $this, type: type} min: 1 slices: valueDateTime: match: {} schema: short: date and time of accident choices: [valueDateTime] _required: true index: 14 min: 1 max: 1 valueDateTime: type: dateTime short: date and time of accident choiceOf: value index: 15 slicing: slices: valueDateTime: match: {} schema: {type: dateTime, short: date and time of accident, choiceOf: value, _required: true, index: 15} min: 1 max: 1 required: [valueDateTime, value] class: extension kind: complex-type url: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-accident base: http://hl7.org/fhir/StructureDefinition/Extension version: 4.0.0