description: This cross-version extension represents EncounterHistory from http://hl7.org/fhir/StructureDefinition/EncounterHistory|5.0.0 for use in FHIR R4. package_name: hl7.fhir.uv.xver-r5.r4 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: 30 elements: value: base: {path: 'Extension.value[x]'} short: The current status of the subject in relation to the Encounter choices: [valueCodeableConcept] index: 32 valueCodeableConcept: base: {path: 'Extension.value[x]'} type: CodeableConcept short: The current status of the subject in relation to the Encounter choiceOf: value index: 33 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 extensions: _datatype: url: http://hl7.org/fhir/StructureDefinition/_datatype type: Extension short: Data type name for EncounterHistory.serviceType from FHIR R5 index: 18 elements: value: base: {path: 'Extension.value[x]'} pattern: {type: String, value: CodeableReference} choices: [valueString] index: 20 valueString: type: string pattern: {type: String, value: CodeableReference} base: {path: 'Extension.value[x]'} choiceOf: value index: 21 required: [valueString, value] concept: url: null short: Reference to a concept (by class) isModifier: false index: 22 elements: value: base: {path: 'Extension.value[x]'} short: Reference to a concept (by class) choices: [valueCodeableConcept] index: 24 valueCodeableConcept: base: {path: 'Extension.value[x]'} type: CodeableConcept short: Reference to a concept (by class) choiceOf: value index: 25 reference: url: null short: Reference to a resource (by instance) isModifier: false index: 26 elements: value: base: {path: 'Extension.value[x]'} short: Reference to a resource (by instance) choices: [valueReference] index: 28 valueReference: base: {path: 'Extension.value[x]'} type: Reference short: Reference to a resource (by instance) choiceOf: value index: 29 elements: extension: type: Extension short: Data type name for EncounterHistory.serviceType from FHIR R5 url: http://hl7.org/fhir/StructureDefinition/_datatype index: 18 slicing: slices: _datatype: match: {} schema: type: Extension short: Data type name for EncounterHistory.serviceType from FHIR R5 url: http://hl7.org/fhir/StructureDefinition/_datatype index: 18 elements: value: base: {path: 'Extension.value[x]'} pattern: {type: String, value: CodeableReference} choices: [valueString] index: 20 valueString: type: string pattern: {type: String, value: CodeableReference} base: {path: 'Extension.value[x]'} choiceOf: value index: 21 required: [valueString, value] concept: match: {} schema: short: Reference to a concept (by class) isModifier: false index: 22 elements: value: base: {path: 'Extension.value[x]'} short: Reference to a concept (by class) choices: [valueCodeableConcept] index: 24 valueCodeableConcept: base: {path: 'Extension.value[x]'} type: CodeableConcept short: Reference to a concept (by class) choiceOf: value index: 25 reference: match: {} schema: short: Reference to a resource (by instance) isModifier: false index: 26 elements: value: base: {path: 'Extension.value[x]'} short: Reference to a resource (by instance) choices: [valueReference] index: 28 valueReference: base: {path: 'Extension.value[x]'} type: Reference short: Reference to a resource (by instance) choiceOf: value index: 29 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: 34 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: 36 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: 37 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: 46 elements: value: base: {path: 'Extension.value[x]'} short: Actual quantity of time the encounter lasted (less time absent) choices: [valueDuration] index: 48 valueDuration: base: {path: 'Extension.value[x]'} type: Duration short: Actual quantity of time the encounter lasted (less time absent) choiceOf: value index: 49 plannedStartDate: match: {url: null} schema: short: The planned start date/time (or admission date) of the encounter isModifier: false index: 38 elements: value: base: {path: 'Extension.value[x]'} short: The planned start date/time (or admission date) of the encounter choices: [valueDateTime] index: 40 valueDateTime: base: {path: 'Extension.value[x]'} type: dateTime short: The planned start date/time (or admission date) of the encounter choiceOf: value index: 41 location: match: {url: null} schema: short: Location of the patient at this point in the encounter isModifier: false array: true index: 50 extensions: location: url: null short: Location the encounter takes place isModifier: false _required: true index: 52 elements: value: base: {path: 'Extension.value[x]'} short: Location the encounter takes place choices: [valueReference] index: 54 valueReference: base: {path: 'Extension.value[x]'} type: Reference short: Location the encounter takes place choiceOf: value refers: ['http://hl7.org/fhir/StructureDefinition/Location'] index: 55 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: 56 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: 58 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: 59 elements: extension: array: true min: 1 index: 51 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: 52 elements: value: base: {path: 'Extension.value[x]'} short: Location the encounter takes place choices: [valueReference] index: 54 valueReference: base: {path: 'Extension.value[x]'} type: Reference short: Location the encounter takes place choiceOf: value refers: ['http://hl7.org/fhir/StructureDefinition/Location'] index: 55 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: 56 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: 58 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: 59 required: [extension] plannedEndDate: match: {url: null} schema: short: The planned end date/time (or discharge date) of the encounter isModifier: false index: 42 elements: value: base: {path: 'Extension.value[x]'} short: The planned end date/time (or discharge date) of the encounter choices: [valueDateTime] index: 44 valueDateTime: base: {path: 'Extension.value[x]'} type: dateTime short: The planned end date/time (or discharge date) of the encounter choiceOf: value index: 45 url: pattern: {type: Uri, value: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-EncounterHistory'} index: 60 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: 30 elements: value: base: {path: 'Extension.value[x]'} short: The current status of the subject in relation to the Encounter choices: [valueCodeableConcept] index: 32 valueCodeableConcept: base: {path: 'Extension.value[x]'} type: CodeableConcept short: The current status of the subject in relation to the Encounter choiceOf: value index: 33 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 extensions: _datatype: url: http://hl7.org/fhir/StructureDefinition/_datatype type: Extension short: Data type name for EncounterHistory.serviceType from FHIR R5 index: 18 elements: value: base: {path: 'Extension.value[x]'} pattern: {type: String, value: CodeableReference} choices: [valueString] index: 20 valueString: type: string pattern: {type: String, value: CodeableReference} base: {path: 'Extension.value[x]'} choiceOf: value index: 21 required: [valueString, value] concept: url: null short: Reference to a concept (by class) isModifier: false index: 22 elements: value: base: {path: 'Extension.value[x]'} short: Reference to a concept (by class) choices: [valueCodeableConcept] index: 24 valueCodeableConcept: base: {path: 'Extension.value[x]'} type: CodeableConcept short: Reference to a concept (by class) choiceOf: value index: 25 reference: url: null short: Reference to a resource (by instance) isModifier: false index: 26 elements: value: base: {path: 'Extension.value[x]'} short: Reference to a resource (by instance) choices: [valueReference] index: 28 valueReference: base: {path: 'Extension.value[x]'} type: Reference short: Reference to a resource (by instance) choiceOf: value index: 29 elements: extension: type: Extension short: Data type name for EncounterHistory.serviceType from FHIR R5 url: http://hl7.org/fhir/StructureDefinition/_datatype index: 18 slicing: slices: _datatype: match: {} schema: type: Extension short: Data type name for EncounterHistory.serviceType from FHIR R5 url: http://hl7.org/fhir/StructureDefinition/_datatype index: 18 elements: value: base: {path: 'Extension.value[x]'} pattern: {type: String, value: CodeableReference} choices: [valueString] index: 20 valueString: type: string pattern: {type: String, value: CodeableReference} base: {path: 'Extension.value[x]'} choiceOf: value index: 21 required: [valueString, value] concept: match: {} schema: short: Reference to a concept (by class) isModifier: false index: 22 elements: value: base: {path: 'Extension.value[x]'} short: Reference to a concept (by class) choices: [valueCodeableConcept] index: 24 valueCodeableConcept: base: {path: 'Extension.value[x]'} type: CodeableConcept short: Reference to a concept (by class) choiceOf: value index: 25 reference: match: {} schema: short: Reference to a resource (by instance) isModifier: false index: 26 elements: value: base: {path: 'Extension.value[x]'} short: Reference to a resource (by instance) choices: [valueReference] index: 28 valueReference: base: {path: 'Extension.value[x]'} type: Reference short: Reference to a resource (by instance) choiceOf: value index: 29 actualPeriod: url: null short: The actual start and end time associated with this set of values associated with the encounter isModifier: false index: 34 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: 36 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: 37 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: 46 elements: value: base: {path: 'Extension.value[x]'} short: Actual quantity of time the encounter lasted (less time absent) choices: [valueDuration] index: 48 valueDuration: base: {path: 'Extension.value[x]'} type: Duration short: Actual quantity of time the encounter lasted (less time absent) choiceOf: value index: 49 plannedStartDate: url: null short: The planned start date/time (or admission date) of the encounter isModifier: false index: 38 elements: value: base: {path: 'Extension.value[x]'} short: The planned start date/time (or admission date) of the encounter choices: [valueDateTime] index: 40 valueDateTime: base: {path: 'Extension.value[x]'} type: dateTime short: The planned start date/time (or admission date) of the encounter choiceOf: value index: 41 location: url: null short: Location of the patient at this point in the encounter isModifier: false array: true index: 50 extensions: location: url: null short: Location the encounter takes place isModifier: false _required: true index: 52 elements: value: base: {path: 'Extension.value[x]'} short: Location the encounter takes place choices: [valueReference] index: 54 valueReference: base: {path: 'Extension.value[x]'} type: Reference short: Location the encounter takes place choiceOf: value refers: ['http://hl7.org/fhir/StructureDefinition/Location'] index: 55 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: 56 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: 58 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: 59 elements: extension: array: true min: 1 index: 51 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: 52 elements: value: base: {path: 'Extension.value[x]'} short: Location the encounter takes place choices: [valueReference] index: 54 valueReference: base: {path: 'Extension.value[x]'} type: Reference short: Location the encounter takes place choiceOf: value refers: ['http://hl7.org/fhir/StructureDefinition/Location'] index: 55 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: 56 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: 58 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: 59 required: [extension] plannedEndDate: url: null short: The planned end date/time (or discharge date) of the encounter isModifier: false index: 42 elements: value: base: {path: 'Extension.value[x]'} short: The planned end date/time (or discharge date) of the encounter choices: [valueDateTime] index: 44 valueDateTime: base: {path: 'Extension.value[x]'} type: dateTime short: The planned end date/time (or discharge date) of the encounter choiceOf: value index: 45 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]