PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.xver-r5.r4@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 R4.
package_name: hl7.fhir.uv.xver-r5.r4
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: 38
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: subjectStatus}
                index: 39
              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: 41
              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: 42
            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
            extensions:
              concept:
                url: concept
                base: {max: '*', min: 0, path: Extension.extension}
                short: Reference to a concept (by class)
                index: 23
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: concept}
                    index: 24
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    short: Reference to a concept (by class)
                    choices: [valueCodeableConcept]
                    index: 26
                  valueCodeableConcept:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    type: CodeableConcept
                    short: Reference to a concept (by class)
                    choiceOf: value
                    index: 27
                required: [url]
              reference:
                url: reference
                base: {max: '*', min: 0, path: Extension.extension}
                short: Reference to a resource (by instance)
                index: 28
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: reference}
                    index: 29
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    short: Reference to a resource (by instance)
                    choices: [valueReference]
                    index: 31
                  valueReference:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    type: Reference
                    short: Reference to a resource (by instance)
                    choiceOf: value
                    index: 32
                required: [url]
              _datatype:
                url: http://hl7.org/fhir/StructureDefinition/_datatype|5.2.0
                type: Extension
                short: Data type name for EncounterHistory.serviceType from FHIR R5
                index: 33
                elements:
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    pattern: {type: String, value: CodeableReference}
                    choices: [valueString]
                    index: 35
                  valueString:
                    type: string
                    pattern: {type: String, value: CodeableReference}
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 36
                required: [valueString, value]
            elements:
              extension:
                base: {max: '*', min: 0, path: Extension.extension}
                array: true
                index: 22
                slicing:
                  rules: closed
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: 0
                  slices:
                    concept:
                      match: {url: concept}
                      schema:
                        base: {max: '*', min: 0, path: Extension.extension}
                        short: Reference to a concept (by class)
                        index: 23
                        elements:
                          url:
                            base: {max: '1', min: 1, path: Extension.url}
                            pattern: {type: Uri, value: concept}
                            index: 24
                          value:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            short: Reference to a concept (by class)
                            choices: [valueCodeableConcept]
                            index: 26
                          valueCodeableConcept:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            type: CodeableConcept
                            short: Reference to a concept (by class)
                            choiceOf: value
                            index: 27
                        required: [url]
                    reference:
                      match: {url: reference}
                      schema:
                        base: {max: '*', min: 0, path: Extension.extension}
                        short: Reference to a resource (by instance)
                        index: 28
                        elements:
                          url:
                            base: {max: '1', min: 1, path: Extension.url}
                            pattern: {type: Uri, value: reference}
                            index: 29
                          value:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            short: Reference to a resource (by instance)
                            choices: [valueReference]
                            index: 31
                          valueReference:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            type: Reference
                            short: Reference to a resource (by instance)
                            choiceOf: value
                            index: 32
                        required: [url]
                    _datatype:
                      match: {url: null}
                      schema:
                        type: Extension
                        short: Data type name for EncounterHistory.serviceType from FHIR R5
                        url: http://hl7.org/fhir/StructureDefinition/_datatype|5.2.0
                        index: 33
                        elements:
                          value:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            pattern: {type: String, value: CodeableReference}
                            choices: [valueString]
                            index: 35
                          valueString:
                            type: string
                            pattern: {type: String, value: CodeableReference}
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            choiceOf: value
                            index: 36
                        required: [valueString, value]
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: serviceType}
                index: 37
            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: 43
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: actualPeriod}
                index: 44
              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: 46
              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: 47
            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: 58
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: length}
                index: 59
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: Actual quantity of time the encounter lasted (less time absent)
                choices: [valueDuration]
                index: 61
              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: 62
            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: 48
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: plannedStartDate}
                index: 49
              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: 51
              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: 52
            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: 63
            extensions:
              location:
                url: location
                base: {max: '*', min: 0, path: Extension.extension}
                short: Location the encounter takes place
                _required: true
                index: 65
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: location}
                    index: 66
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    short: Location the encounter takes place
                    choices: [valueReference]
                    index: 68
                  valueReference:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    type: Reference
                    short: Location the encounter takes place
                    choiceOf: value
                    index: 69
                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: 70
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: form}
                    index: 71
                  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: 73
                  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: 74
                required: [url]
            elements:
              extension:
                base: {max: '*', min: 0, path: Extension.extension}
                array: true
                min: 1
                index: 64
                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: 65
                        elements:
                          url:
                            base: {max: '1', min: 1, path: Extension.url}
                            pattern: {type: Uri, value: location}
                            index: 66
                          value:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            short: Location the encounter takes place
                            choices: [valueReference]
                            index: 68
                          valueReference:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            type: Reference
                            short: Location the encounter takes place
                            choiceOf: value
                            index: 69
                        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: 70
                        elements:
                          url:
                            base: {max: '1', min: 1, path: Extension.url}
                            pattern: {type: Uri, value: form}
                            index: 71
                          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: 73
                          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: 74
                        required: [url]
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: location}
                index: 75
            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: 53
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: plannedEndDate}
                index: 54
              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: 56
              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: 57
            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: 76
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: 38
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: subjectStatus}
        index: 39
      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: 41
      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: 42
    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
    extensions:
      concept:
        url: concept
        base: {max: '*', min: 0, path: Extension.extension}
        short: Reference to a concept (by class)
        index: 23
        elements:
          url:
            base: {max: '1', min: 1, path: Extension.url}
            pattern: {type: Uri, value: concept}
            index: 24
          value:
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            short: Reference to a concept (by class)
            choices: [valueCodeableConcept]
            index: 26
          valueCodeableConcept:
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            type: CodeableConcept
            short: Reference to a concept (by class)
            choiceOf: value
            index: 27
        required: [url]
      reference:
        url: reference
        base: {max: '*', min: 0, path: Extension.extension}
        short: Reference to a resource (by instance)
        index: 28
        elements:
          url:
            base: {max: '1', min: 1, path: Extension.url}
            pattern: {type: Uri, value: reference}
            index: 29
          value:
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            short: Reference to a resource (by instance)
            choices: [valueReference]
            index: 31
          valueReference:
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            type: Reference
            short: Reference to a resource (by instance)
            choiceOf: value
            index: 32
        required: [url]
      _datatype:
        url: http://hl7.org/fhir/StructureDefinition/_datatype|5.2.0
        type: Extension
        short: Data type name for EncounterHistory.serviceType from FHIR R5
        index: 33
        elements:
          value:
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            pattern: {type: String, value: CodeableReference}
            choices: [valueString]
            index: 35
          valueString:
            type: string
            pattern: {type: String, value: CodeableReference}
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            choiceOf: value
            index: 36
        required: [valueString, value]
    elements:
      extension:
        base: {max: '*', min: 0, path: Extension.extension}
        array: true
        index: 22
        slicing:
          rules: closed
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: 0
          slices:
            concept:
              match: {url: concept}
              schema:
                base: {max: '*', min: 0, path: Extension.extension}
                short: Reference to a concept (by class)
                index: 23
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: concept}
                    index: 24
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    short: Reference to a concept (by class)
                    choices: [valueCodeableConcept]
                    index: 26
                  valueCodeableConcept:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    type: CodeableConcept
                    short: Reference to a concept (by class)
                    choiceOf: value
                    index: 27
                required: [url]
            reference:
              match: {url: reference}
              schema:
                base: {max: '*', min: 0, path: Extension.extension}
                short: Reference to a resource (by instance)
                index: 28
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: reference}
                    index: 29
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    short: Reference to a resource (by instance)
                    choices: [valueReference]
                    index: 31
                  valueReference:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    type: Reference
                    short: Reference to a resource (by instance)
                    choiceOf: value
                    index: 32
                required: [url]
            _datatype:
              match: {url: null}
              schema:
                type: Extension
                short: Data type name for EncounterHistory.serviceType from FHIR R5
                url: http://hl7.org/fhir/StructureDefinition/_datatype|5.2.0
                index: 33
                elements:
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    pattern: {type: String, value: CodeableReference}
                    choices: [valueString]
                    index: 35
                  valueString:
                    type: string
                    pattern: {type: String, value: CodeableReference}
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 36
                required: [valueString, value]
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: serviceType}
        index: 37
    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: 43
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: actualPeriod}
        index: 44
      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: 46
      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: 47
    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: 58
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: length}
        index: 59
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: Actual quantity of time the encounter lasted (less time absent)
        choices: [valueDuration]
        index: 61
      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: 62
    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: 48
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: plannedStartDate}
        index: 49
      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: 51
      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: 52
    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: 63
    extensions:
      location:
        url: location
        base: {max: '*', min: 0, path: Extension.extension}
        short: Location the encounter takes place
        _required: true
        index: 65
        elements:
          url:
            base: {max: '1', min: 1, path: Extension.url}
            pattern: {type: Uri, value: location}
            index: 66
          value:
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            short: Location the encounter takes place
            choices: [valueReference]
            index: 68
          valueReference:
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            type: Reference
            short: Location the encounter takes place
            choiceOf: value
            index: 69
        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: 70
        elements:
          url:
            base: {max: '1', min: 1, path: Extension.url}
            pattern: {type: Uri, value: form}
            index: 71
          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: 73
          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: 74
        required: [url]
    elements:
      extension:
        base: {max: '*', min: 0, path: Extension.extension}
        array: true
        min: 1
        index: 64
        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: 65
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: location}
                    index: 66
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    short: Location the encounter takes place
                    choices: [valueReference]
                    index: 68
                  valueReference:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    type: Reference
                    short: Location the encounter takes place
                    choiceOf: value
                    index: 69
                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: 70
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: form}
                    index: 71
                  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: 73
                  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: 74
                required: [url]
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: location}
        index: 75
    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: 53
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: plannedEndDate}
        index: 54
      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: 56
      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: 57
    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.0.1
version: 0.0.1-snapshot-2
required: [url]