description: This cross-version extension represents EncounterHistory from http://hl7.org/fhir/StructureDefinition/EncounterHistory|5.0.0 for use in FHIR R4B. package_name: hl7.fhir.uv.xver-r5.r4b derivation: constraint name: ext_R5_EncounterHistory type: Extension elements: extension: array: true min: 2 index: 0 slicing: rules: closed ordered: false discriminator: - {path: url, type: value} min: 2 slices: encounter: match: {url: null} schema: short: The Encounter associated with this set of historic values isModifier: false index: 1 elements: value: base: {path: 'Extension.value[x]'} short: The Encounter associated with this set of historic values choices: [valueReference] index: 3 valueReference: base: {path: 'Extension.value[x]'} type: Reference short: The Encounter associated with this set of historic values choiceOf: value refers: ['http://hl7.org/fhir/StructureDefinition/Encounter'] index: 4 subjectStatus: match: {url: null} schema: short: The current status of the subject in relation to the Encounter isModifier: false index: 21 elements: value: base: {path: 'Extension.value[x]'} short: The current status of the subject in relation to the Encounter choices: [valueCodeableConcept] index: 23 valueCodeableConcept: base: {path: 'Extension.value[x]'} type: CodeableConcept short: The current status of the subject in relation to the Encounter choiceOf: value index: 24 type: match: {url: null} schema: short: Specific type of encounter isModifier: false array: true index: 13 elements: value: base: {path: 'Extension.value[x]'} short: Specific type of encounter choices: [valueCodeableConcept] index: 15 valueCodeableConcept: base: {path: 'Extension.value[x]'} type: CodeableConcept short: Specific type of encounter choiceOf: value index: 16 serviceType: match: {url: null} schema: short: Specific type of service isModifier: false array: true index: 17 elements: value: base: {path: 'Extension.value[x]'} short: Specific type of service choices: [valueCodeableReference] index: 19 valueCodeableReference: base: {path: 'Extension.value[x]'} type: CodeableReference short: Specific type of service choiceOf: value index: 20 actualPeriod: match: {url: null} schema: short: The actual start and end time associated with this set of values associated with the encounter isModifier: false index: 25 elements: value: base: {path: 'Extension.value[x]'} short: The actual start and end time associated with this set of values associated with the encounter choices: [valuePeriod] index: 27 valuePeriod: base: {path: 'Extension.value[x]'} type: Period short: The actual start and end time associated with this set of values associated with the encounter choiceOf: value index: 28 status: match: {url: null} schema: short: planned | in-progress | on-hold | discharged | completed | cancelled | discontinued | entered-in-error | unknown isModifier: true isModifierReason: This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid _required: true index: 5 elements: value: base: {path: 'Extension.value[x]'} short: planned | in-progress | on-hold | discharged | completed | cancelled | discontinued | entered-in-error | unknown choices: [valueCode] index: 7 valueCode: base: {path: 'Extension.value[x]'} type: code short: planned | in-progress | on-hold | discharged | completed | cancelled | discontinued | entered-in-error | unknown choiceOf: value index: 8 class: match: {url: null} schema: short: Classification of patient encounter isModifier: false _required: true index: 9 elements: value: base: {path: 'Extension.value[x]'} short: Classification of patient encounter choices: [valueCodeableConcept] index: 11 valueCodeableConcept: base: {path: 'Extension.value[x]'} type: CodeableConcept short: Classification of patient encounter choiceOf: value index: 12 length: match: {url: null} schema: short: Actual quantity of time the encounter lasted (less time absent) isModifier: false index: 37 elements: value: base: {path: 'Extension.value[x]'} short: Actual quantity of time the encounter lasted (less time absent) choices: [valueDuration] index: 39 valueDuration: base: {path: 'Extension.value[x]'} type: Duration short: Actual quantity of time the encounter lasted (less time absent) choiceOf: value index: 40 plannedStartDate: match: {url: null} schema: short: The planned start date/time (or admission date) of the encounter isModifier: false index: 29 elements: value: base: {path: 'Extension.value[x]'} short: The planned start date/time (or admission date) of the encounter choices: [valueDateTime] index: 31 valueDateTime: base: {path: 'Extension.value[x]'} type: dateTime short: The planned start date/time (or admission date) of the encounter choiceOf: value index: 32 location: match: {url: null} schema: short: Location of the patient at this point in the encounter isModifier: false array: true index: 41 extensions: location: url: null short: Location the encounter takes place isModifier: false _required: true index: 43 elements: value: base: {path: 'Extension.value[x]'} short: Location the encounter takes place choices: [valueReference] index: 45 valueReference: base: {path: 'Extension.value[x]'} type: Reference short: Location the encounter takes place choiceOf: value refers: ['http://hl7.org/fhir/StructureDefinition/Location'] index: 46 form: url: null short: The physical type of the location (usually the level in the location hierarchy - bed, room, ward, virtual etc.) isModifier: false index: 47 elements: value: base: {path: 'Extension.value[x]'} short: The physical type of the location (usually the level in the location hierarchy - bed, room, ward, virtual etc.) choices: [valueCodeableConcept] index: 49 valueCodeableConcept: base: {path: 'Extension.value[x]'} type: CodeableConcept short: The physical type of the location (usually the level in the location hierarchy - bed, room, ward, virtual etc.) choiceOf: value index: 50 elements: extension: array: true min: 1 index: 42 slicing: rules: closed ordered: false discriminator: - {path: url, type: value} min: 1 slices: location: match: {url: null} schema: short: Location the encounter takes place isModifier: false _required: true index: 43 elements: value: base: {path: 'Extension.value[x]'} short: Location the encounter takes place choices: [valueReference] index: 45 valueReference: base: {path: 'Extension.value[x]'} type: Reference short: Location the encounter takes place choiceOf: value refers: ['http://hl7.org/fhir/StructureDefinition/Location'] index: 46 form: match: {url: null} schema: short: The physical type of the location (usually the level in the location hierarchy - bed, room, ward, virtual etc.) isModifier: false index: 47 elements: value: base: {path: 'Extension.value[x]'} short: The physical type of the location (usually the level in the location hierarchy - bed, room, ward, virtual etc.) choices: [valueCodeableConcept] index: 49 valueCodeableConcept: base: {path: 'Extension.value[x]'} type: CodeableConcept short: The physical type of the location (usually the level in the location hierarchy - bed, room, ward, virtual etc.) choiceOf: value index: 50 required: [extension] plannedEndDate: match: {url: null} schema: short: The planned end date/time (or discharge date) of the encounter isModifier: false index: 33 elements: value: base: {path: 'Extension.value[x]'} short: The planned end date/time (or discharge date) of the encounter choices: [valueDateTime] index: 35 valueDateTime: base: {path: 'Extension.value[x]'} type: dateTime short: The planned end date/time (or discharge date) of the encounter choiceOf: value index: 36 url: pattern: {type: Uri, value: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-EncounterHistory'} index: 51 package_version: 0.0.1-snapshot-1 extensions: encounter: url: null short: The Encounter associated with this set of historic values isModifier: false index: 1 elements: value: base: {path: 'Extension.value[x]'} short: The Encounter associated with this set of historic values choices: [valueReference] index: 3 valueReference: base: {path: 'Extension.value[x]'} type: Reference short: The Encounter associated with this set of historic values choiceOf: value refers: ['http://hl7.org/fhir/StructureDefinition/Encounter'] index: 4 subjectStatus: url: null short: The current status of the subject in relation to the Encounter isModifier: false index: 21 elements: value: base: {path: 'Extension.value[x]'} short: The current status of the subject in relation to the Encounter choices: [valueCodeableConcept] index: 23 valueCodeableConcept: base: {path: 'Extension.value[x]'} type: CodeableConcept short: The current status of the subject in relation to the Encounter choiceOf: value index: 24 type: url: null short: Specific type of encounter isModifier: false array: true index: 13 elements: value: base: {path: 'Extension.value[x]'} short: Specific type of encounter choices: [valueCodeableConcept] index: 15 valueCodeableConcept: base: {path: 'Extension.value[x]'} type: CodeableConcept short: Specific type of encounter choiceOf: value index: 16 serviceType: url: null short: Specific type of service isModifier: false array: true index: 17 elements: value: base: {path: 'Extension.value[x]'} short: Specific type of service choices: [valueCodeableReference] index: 19 valueCodeableReference: base: {path: 'Extension.value[x]'} type: CodeableReference short: Specific type of service choiceOf: value index: 20 actualPeriod: url: null short: The actual start and end time associated with this set of values associated with the encounter isModifier: false index: 25 elements: value: base: {path: 'Extension.value[x]'} short: The actual start and end time associated with this set of values associated with the encounter choices: [valuePeriod] index: 27 valuePeriod: base: {path: 'Extension.value[x]'} type: Period short: The actual start and end time associated with this set of values associated with the encounter choiceOf: value index: 28 status: url: null short: planned | in-progress | on-hold | discharged | completed | cancelled | discontinued | entered-in-error | unknown isModifier: true isModifierReason: This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid _required: true index: 5 elements: value: base: {path: 'Extension.value[x]'} short: planned | in-progress | on-hold | discharged | completed | cancelled | discontinued | entered-in-error | unknown choices: [valueCode] index: 7 valueCode: base: {path: 'Extension.value[x]'} type: code short: planned | in-progress | on-hold | discharged | completed | cancelled | discontinued | entered-in-error | unknown choiceOf: value index: 8 class: url: null short: Classification of patient encounter isModifier: false _required: true index: 9 elements: value: base: {path: 'Extension.value[x]'} short: Classification of patient encounter choices: [valueCodeableConcept] index: 11 valueCodeableConcept: base: {path: 'Extension.value[x]'} type: CodeableConcept short: Classification of patient encounter choiceOf: value index: 12 length: url: null short: Actual quantity of time the encounter lasted (less time absent) isModifier: false index: 37 elements: value: base: {path: 'Extension.value[x]'} short: Actual quantity of time the encounter lasted (less time absent) choices: [valueDuration] index: 39 valueDuration: base: {path: 'Extension.value[x]'} type: Duration short: Actual quantity of time the encounter lasted (less time absent) choiceOf: value index: 40 plannedStartDate: url: null short: The planned start date/time (or admission date) of the encounter isModifier: false index: 29 elements: value: base: {path: 'Extension.value[x]'} short: The planned start date/time (or admission date) of the encounter choices: [valueDateTime] index: 31 valueDateTime: base: {path: 'Extension.value[x]'} type: dateTime short: The planned start date/time (or admission date) of the encounter choiceOf: value index: 32 location: url: null short: Location of the patient at this point in the encounter isModifier: false array: true index: 41 extensions: location: url: null short: Location the encounter takes place isModifier: false _required: true index: 43 elements: value: base: {path: 'Extension.value[x]'} short: Location the encounter takes place choices: [valueReference] index: 45 valueReference: base: {path: 'Extension.value[x]'} type: Reference short: Location the encounter takes place choiceOf: value refers: ['http://hl7.org/fhir/StructureDefinition/Location'] index: 46 form: url: null short: The physical type of the location (usually the level in the location hierarchy - bed, room, ward, virtual etc.) isModifier: false index: 47 elements: value: base: {path: 'Extension.value[x]'} short: The physical type of the location (usually the level in the location hierarchy - bed, room, ward, virtual etc.) choices: [valueCodeableConcept] index: 49 valueCodeableConcept: base: {path: 'Extension.value[x]'} type: CodeableConcept short: The physical type of the location (usually the level in the location hierarchy - bed, room, ward, virtual etc.) choiceOf: value index: 50 elements: extension: array: true min: 1 index: 42 slicing: rules: closed ordered: false discriminator: - {path: url, type: value} min: 1 slices: location: match: {url: null} schema: short: Location the encounter takes place isModifier: false _required: true index: 43 elements: value: base: {path: 'Extension.value[x]'} short: Location the encounter takes place choices: [valueReference] index: 45 valueReference: base: {path: 'Extension.value[x]'} type: Reference short: Location the encounter takes place choiceOf: value refers: ['http://hl7.org/fhir/StructureDefinition/Location'] index: 46 form: match: {url: null} schema: short: The physical type of the location (usually the level in the location hierarchy - bed, room, ward, virtual etc.) isModifier: false index: 47 elements: value: base: {path: 'Extension.value[x]'} short: The physical type of the location (usually the level in the location hierarchy - bed, room, ward, virtual etc.) choices: [valueCodeableConcept] index: 49 valueCodeableConcept: base: {path: 'Extension.value[x]'} type: CodeableConcept short: The physical type of the location (usually the level in the location hierarchy - bed, room, ward, virtual etc.) choiceOf: value index: 50 required: [extension] plannedEndDate: url: null short: The planned end date/time (or discharge date) of the encounter isModifier: false index: 33 elements: value: base: {path: 'Extension.value[x]'} short: The planned end date/time (or discharge date) of the encounter choices: [valueDateTime] index: 35 valueDateTime: base: {path: 'Extension.value[x]'} type: dateTime short: The planned end date/time (or discharge date) of the encounter choiceOf: value index: 36 class: extension kind: complex-type url: http://hl7.org/fhir/5.0/StructureDefinition/extension-EncounterHistory base: http://hl7.org/fhir/StructureDefinition/Extension version: 0.0.1-snapshot-1 required: [url]