PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.xver-r5.r4b@0.0.1-snapshot-2
    http://hl7.org/fhir/5.0/StructureDefinition/extension-EncounterHistory
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:
    base: {max: '*', min: 0, path: Extension.extension}
    array: true
    min: 2
    index: 0
    slicing:
      rules: closed
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 2
      slices:
        encounter:
          match: {url: encounter}
          schema:
            base: {max: '*', min: 0, path: Extension.extension}
            short: The Encounter associated with this set of historic values
            index: 1
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: encounter}
                index: 2
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: The Encounter associated with this set of historic values
                choices: [valueReference]
                index: 4
              valueReference:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: Reference
                short: The Encounter associated with this set of historic values
                choiceOf: value
                index: 5
            required: [url]
        subjectStatus:
          match: {url: subjectStatus}
          schema:
            base: {max: '*', min: 0, path: Extension.extension}
            short: The current status of the subject in relation to the Encounter
            index: 26
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: subjectStatus}
                index: 27
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: The current status of the subject in relation to the Encounter
                choices: [valueCodeableConcept]
                index: 29
              valueCodeableConcept:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: CodeableConcept
                short: The current status of the subject in relation to the Encounter
                choiceOf: value
                index: 30
            required: [url]
        type:
          match: {url: type}
          schema:
            base: {max: '*', min: 0, path: Extension.extension}
            short: Specific type of encounter
            array: true
            index: 16
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: type}
                index: 17
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: Specific type of encounter
                choices: [valueCodeableConcept]
                index: 19
              valueCodeableConcept:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: CodeableConcept
                short: Specific type of encounter
                choiceOf: value
                index: 20
            required: [url]
        serviceType:
          match: {url: serviceType}
          schema:
            base: {max: '*', min: 0, path: Extension.extension}
            short: Specific type of service
            array: true
            index: 21
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: serviceType}
                index: 22
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: Specific type of service
                choices: [valueCodeableReference]
                index: 24
              valueCodeableReference:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: CodeableReference
                short: Specific type of service
                choiceOf: value
                index: 25
            required: [url]
        actualPeriod:
          match: {url: actualPeriod}
          schema:
            base: {max: '*', min: 0, path: Extension.extension}
            short: The actual start and end time associated with this set of values associated with the encounter
            index: 31
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: actualPeriod}
                index: 32
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: The actual start and end time associated with this set of values associated with the encounter
                choices: [valuePeriod]
                index: 34
              valuePeriod:
                base: {max: '1', min: 0, 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: 35
            required: [url]
        status:
          match: {url: status}
          schema:
            base: {max: '*', min: 0, path: Extension.extension}
            short: planned | in-progress | on-hold | discharged | completed | cancelled | discontinued | entered-in-error | unknown
            _required: true
            index: 6
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: status}
                index: 7
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: planned | in-progress | on-hold | discharged | completed | cancelled | discontinued | entered-in-error | unknown
                choices: [valueCode]
                index: 9
              valueCode:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: code
                short: planned | in-progress | on-hold | discharged | completed | cancelled | discontinued | entered-in-error | unknown
                choiceOf: value
                index: 10
            required: [url]
        class:
          match: {url: class}
          schema:
            base: {max: '*', min: 0, path: Extension.extension}
            short: Classification of patient encounter
            _required: true
            index: 11
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: class}
                index: 12
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: Classification of patient encounter
                choices: [valueCodeableConcept]
                index: 14
              valueCodeableConcept:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: CodeableConcept
                short: Classification of patient encounter
                choiceOf: value
                index: 15
            required: [url]
        length:
          match: {url: length}
          schema:
            base: {max: '*', min: 0, path: Extension.extension}
            short: Actual quantity of time the encounter lasted (less time absent)
            index: 46
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: length}
                index: 47
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: Actual quantity of time the encounter lasted (less time absent)
                choices: [valueDuration]
                index: 49
              valueDuration:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: Duration
                short: Actual quantity of time the encounter lasted (less time absent)
                choiceOf: value
                index: 50
            required: [url]
        plannedStartDate:
          match: {url: plannedStartDate}
          schema:
            base: {max: '*', min: 0, path: Extension.extension}
            short: The planned start date/time (or admission date) of the encounter
            index: 36
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: plannedStartDate}
                index: 37
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: The planned start date/time (or admission date) of the encounter
                choices: [valueDateTime]
                index: 39
              valueDateTime:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: dateTime
                short: The planned start date/time (or admission date) of the encounter
                choiceOf: value
                index: 40
            required: [url]
        location:
          match: {url: location}
          schema:
            base: {max: '*', min: 0, path: Extension.extension}
            short: Location of the patient at this point in the encounter
            array: true
            index: 51
            extensions:
              location:
                url: location
                base: {max: '*', min: 0, path: Extension.extension}
                short: Location the encounter takes place
                _required: true
                index: 53
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: location}
                    index: 54
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    short: Location the encounter takes place
                    choices: [valueReference]
                    index: 56
                  valueReference:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    type: Reference
                    short: Location the encounter takes place
                    choiceOf: value
                    index: 57
                required: [url]
              form:
                url: form
                base: {max: '*', min: 0, path: Extension.extension}
                short: The physical type of the location (usually the level in the location hierarchy - bed, room, ward, virtual etc.)
                index: 58
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: form}
                    index: 59
                  value:
                    base: {max: '1', min: 0, 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: 61
                  valueCodeableConcept:
                    base: {max: '1', min: 0, 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: 62
                required: [url]
            elements:
              extension:
                base: {max: '*', min: 0, path: Extension.extension}
                array: true
                min: 1
                index: 52
                slicing:
                  rules: closed
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: 1
                  slices:
                    location:
                      match: {url: location}
                      schema:
                        base: {max: '*', min: 0, path: Extension.extension}
                        short: Location the encounter takes place
                        _required: true
                        index: 53
                        elements:
                          url:
                            base: {max: '1', min: 1, path: Extension.url}
                            pattern: {type: Uri, value: location}
                            index: 54
                          value:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            short: Location the encounter takes place
                            choices: [valueReference]
                            index: 56
                          valueReference:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            type: Reference
                            short: Location the encounter takes place
                            choiceOf: value
                            index: 57
                        required: [url]
                    form:
                      match: {url: form}
                      schema:
                        base: {max: '*', min: 0, path: Extension.extension}
                        short: The physical type of the location (usually the level in the location hierarchy - bed, room, ward, virtual etc.)
                        index: 58
                        elements:
                          url:
                            base: {max: '1', min: 1, path: Extension.url}
                            pattern: {type: Uri, value: form}
                            index: 59
                          value:
                            base: {max: '1', min: 0, 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: 61
                          valueCodeableConcept:
                            base: {max: '1', min: 0, 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: 62
                        required: [url]
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: location}
                index: 63
            required: [url, extension]
        plannedEndDate:
          match: {url: plannedEndDate}
          schema:
            base: {max: '*', min: 0, path: Extension.extension}
            short: The planned end date/time (or discharge date) of the encounter
            index: 41
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: plannedEndDate}
                index: 42
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: The planned end date/time (or discharge date) of the encounter
                choices: [valueDateTime]
                index: 44
              valueDateTime:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: dateTime
                short: The planned end date/time (or discharge date) of the encounter
                choiceOf: value
                index: 45
            required: [url]
  url:
    base: {max: '1', min: 1, path: Extension.url}
    pattern: {type: Uri, value: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-EncounterHistory'}
    index: 64
package_version: 0.0.1-snapshot-2
extensions:
  encounter:
    url: encounter
    base: {max: '*', min: 0, path: Extension.extension}
    short: The Encounter associated with this set of historic values
    index: 1
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: encounter}
        index: 2
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: The Encounter associated with this set of historic values
        choices: [valueReference]
        index: 4
      valueReference:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: Reference
        short: The Encounter associated with this set of historic values
        choiceOf: value
        index: 5
    required: [url]
  subjectStatus:
    url: subjectStatus
    base: {max: '*', min: 0, path: Extension.extension}
    short: The current status of the subject in relation to the Encounter
    index: 26
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: subjectStatus}
        index: 27
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: The current status of the subject in relation to the Encounter
        choices: [valueCodeableConcept]
        index: 29
      valueCodeableConcept:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: CodeableConcept
        short: The current status of the subject in relation to the Encounter
        choiceOf: value
        index: 30
    required: [url]
  type:
    url: type
    base: {max: '*', min: 0, path: Extension.extension}
    short: Specific type of encounter
    array: true
    index: 16
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: type}
        index: 17
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: Specific type of encounter
        choices: [valueCodeableConcept]
        index: 19
      valueCodeableConcept:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: CodeableConcept
        short: Specific type of encounter
        choiceOf: value
        index: 20
    required: [url]
  serviceType:
    url: serviceType
    base: {max: '*', min: 0, path: Extension.extension}
    short: Specific type of service
    array: true
    index: 21
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: serviceType}
        index: 22
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: Specific type of service
        choices: [valueCodeableReference]
        index: 24
      valueCodeableReference:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: CodeableReference
        short: Specific type of service
        choiceOf: value
        index: 25
    required: [url]
  actualPeriod:
    url: actualPeriod
    base: {max: '*', min: 0, path: Extension.extension}
    short: The actual start and end time associated with this set of values associated with the encounter
    index: 31
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: actualPeriod}
        index: 32
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: The actual start and end time associated with this set of values associated with the encounter
        choices: [valuePeriod]
        index: 34
      valuePeriod:
        base: {max: '1', min: 0, 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: 35
    required: [url]
  status:
    url: status
    base: {max: '*', min: 0, path: Extension.extension}
    short: planned | in-progress | on-hold | discharged | completed | cancelled | discontinued | entered-in-error | unknown
    _required: true
    index: 6
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: status}
        index: 7
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: planned | in-progress | on-hold | discharged | completed | cancelled | discontinued | entered-in-error | unknown
        choices: [valueCode]
        index: 9
      valueCode:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: code
        short: planned | in-progress | on-hold | discharged | completed | cancelled | discontinued | entered-in-error | unknown
        choiceOf: value
        index: 10
    required: [url]
  class:
    url: class
    base: {max: '*', min: 0, path: Extension.extension}
    short: Classification of patient encounter
    _required: true
    index: 11
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: class}
        index: 12
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: Classification of patient encounter
        choices: [valueCodeableConcept]
        index: 14
      valueCodeableConcept:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: CodeableConcept
        short: Classification of patient encounter
        choiceOf: value
        index: 15
    required: [url]
  length:
    url: length
    base: {max: '*', min: 0, path: Extension.extension}
    short: Actual quantity of time the encounter lasted (less time absent)
    index: 46
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: length}
        index: 47
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: Actual quantity of time the encounter lasted (less time absent)
        choices: [valueDuration]
        index: 49
      valueDuration:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: Duration
        short: Actual quantity of time the encounter lasted (less time absent)
        choiceOf: value
        index: 50
    required: [url]
  plannedStartDate:
    url: plannedStartDate
    base: {max: '*', min: 0, path: Extension.extension}
    short: The planned start date/time (or admission date) of the encounter
    index: 36
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: plannedStartDate}
        index: 37
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: The planned start date/time (or admission date) of the encounter
        choices: [valueDateTime]
        index: 39
      valueDateTime:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: dateTime
        short: The planned start date/time (or admission date) of the encounter
        choiceOf: value
        index: 40
    required: [url]
  location:
    url: location
    base: {max: '*', min: 0, path: Extension.extension}
    short: Location of the patient at this point in the encounter
    array: true
    index: 51
    extensions:
      location:
        url: location
        base: {max: '*', min: 0, path: Extension.extension}
        short: Location the encounter takes place
        _required: true
        index: 53
        elements:
          url:
            base: {max: '1', min: 1, path: Extension.url}
            pattern: {type: Uri, value: location}
            index: 54
          value:
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            short: Location the encounter takes place
            choices: [valueReference]
            index: 56
          valueReference:
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            type: Reference
            short: Location the encounter takes place
            choiceOf: value
            index: 57
        required: [url]
      form:
        url: form
        base: {max: '*', min: 0, path: Extension.extension}
        short: The physical type of the location (usually the level in the location hierarchy - bed, room, ward, virtual etc.)
        index: 58
        elements:
          url:
            base: {max: '1', min: 1, path: Extension.url}
            pattern: {type: Uri, value: form}
            index: 59
          value:
            base: {max: '1', min: 0, 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: 61
          valueCodeableConcept:
            base: {max: '1', min: 0, 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: 62
        required: [url]
    elements:
      extension:
        base: {max: '*', min: 0, path: Extension.extension}
        array: true
        min: 1
        index: 52
        slicing:
          rules: closed
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: 1
          slices:
            location:
              match: {url: location}
              schema:
                base: {max: '*', min: 0, path: Extension.extension}
                short: Location the encounter takes place
                _required: true
                index: 53
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: location}
                    index: 54
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    short: Location the encounter takes place
                    choices: [valueReference]
                    index: 56
                  valueReference:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    type: Reference
                    short: Location the encounter takes place
                    choiceOf: value
                    index: 57
                required: [url]
            form:
              match: {url: form}
              schema:
                base: {max: '*', min: 0, path: Extension.extension}
                short: The physical type of the location (usually the level in the location hierarchy - bed, room, ward, virtual etc.)
                index: 58
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: form}
                    index: 59
                  value:
                    base: {max: '1', min: 0, 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: 61
                  valueCodeableConcept:
                    base: {max: '1', min: 0, 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: 62
                required: [url]
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: location}
        index: 63
    required: [url, extension]
  plannedEndDate:
    url: plannedEndDate
    base: {max: '*', min: 0, path: Extension.extension}
    short: The planned end date/time (or discharge date) of the encounter
    index: 41
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: plannedEndDate}
        index: 42
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: The planned end date/time (or discharge date) of the encounter
        choices: [valueDateTime]
        index: 44
      valueDateTime:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: dateTime
        short: The planned end date/time (or discharge date) of the encounter
        choiceOf: value
        index: 45
    required: [url]
class: extension
kind: complex-type
url: http://hl7.org/fhir/5.0/StructureDefinition/extension-EncounterHistory
base: http://hl7.org/fhir/StructureDefinition/Extension|4.3.0
version: 0.0.1-snapshot-2
required: [url]