PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.xver-r5.r4@0.1.0
    http://hl7.org/fhir/5.0/StructureDefinition/extension-Account.diagnosis
description: 'R5: `Account.diagnosis` (new:BackboneElement)'
package_name: hl7.fhir.uv.xver-r5.r4
derivation: constraint
name: ExtensionAccount_Diagnosis
type: Extension
elements:
  extension:
    base: {max: '*', min: 0, path: Extension.extension}
    array: true
    min: 1
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        sequence:
          match: {url: sequence}
          schema:
            short: 'R5: Ranking of the diagnosis (for each type) (new)'
            base: {max: '*', min: 0, path: Extension.extension}
            index: 1
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: sequence}
                index: 2
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: Ranking of the diagnosis (for each type)
                choices: [valuePositiveInt]
                index: 4
              valuePositiveInt:
                short: Ranking of the diagnosis (for each type)
                type: positiveInt
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                choiceOf: value
                index: 5
            required: [url]
        condition:
          match: {url: condition}
          schema:
            short: 'R5: The diagnosis relevant to the account (new)'
            _required: true
            base: {max: '*', min: 0, path: Extension.extension}
            index: 6
            extensions:
              _datatype:
                url: http://hl7.org/fhir/StructureDefinition/_datatype
                base: {max: '*', min: 0, path: Extension.extension}
                short: DataType slice for a FHIR R5 `CodeableReference` value
                _required: true
                index: 8
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/_datatype'}
                    index: 9
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    pattern: {type: String, value: CodeableReference}
                    choices: [valueString]
                    index: 11
                  valueString:
                    type: string
                    pattern: {type: String, value: CodeableReference}
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 12
                required: [url, valueString, value]
              concept:
                url: concept
                short: 'R5: Reference to a concept (by class)'
                base: {max: '*', min: 0, path: Extension.extension}
                index: 13
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: concept}
                    index: 14
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    short: Reference to a concept (by class)
                    choices: [valueCodeableConcept]
                    index: 16
                  valueCodeableConcept:
                    short: Reference to a concept (by class)
                    type: CodeableConcept
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 17
                required: [url]
              reference:
                url: reference
                short: 'R5: Reference to a resource (by instance)'
                base: {max: '*', min: 0, path: Extension.extension}
                index: 18
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: reference}
                    index: 19
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    short: Reference to a resource (by instance)
                    choices: [valueReference]
                    index: 21
                  valueReference:
                    short: Reference to a resource (by instance)
                    refers: ['http://hl7.org/fhir/5.0/StructureDefinition/profile-Condition|0.1.0', 'http://hl7.org/fhir/StructureDefinition/Condition|4.0.1']
                    type: Reference
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 22
                required: [url]
            elements:
              extension:
                base: {max: '*', min: 0, path: Extension.extension}
                array: true
                min: 1
                index: 7
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: 1
                  slices:
                    _datatype:
                      match: {url: 'http://hl7.org/fhir/StructureDefinition/_datatype'}
                      schema:
                        base: {max: '*', min: 0, path: Extension.extension}
                        short: DataType slice for a FHIR R5 `CodeableReference` value
                        _required: true
                        index: 8
                        elements:
                          url:
                            base: {max: '1', min: 1, path: Extension.url}
                            pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/_datatype'}
                            index: 9
                          value:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            pattern: {type: String, value: CodeableReference}
                            choices: [valueString]
                            index: 11
                          valueString:
                            type: string
                            pattern: {type: String, value: CodeableReference}
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            choiceOf: value
                            index: 12
                        required: [url, valueString, value]
                    concept:
                      match: {url: concept}
                      schema:
                        short: 'R5: Reference to a concept (by class)'
                        base: {max: '*', min: 0, path: Extension.extension}
                        index: 13
                        elements:
                          url:
                            base: {max: '1', min: 1, path: Extension.url}
                            pattern: {type: Uri, value: concept}
                            index: 14
                          value:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            short: Reference to a concept (by class)
                            choices: [valueCodeableConcept]
                            index: 16
                          valueCodeableConcept:
                            short: Reference to a concept (by class)
                            type: CodeableConcept
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            choiceOf: value
                            index: 17
                        required: [url]
                    reference:
                      match: {url: reference}
                      schema:
                        short: 'R5: Reference to a resource (by instance)'
                        base: {max: '*', min: 0, path: Extension.extension}
                        index: 18
                        elements:
                          url:
                            base: {max: '1', min: 1, path: Extension.url}
                            pattern: {type: Uri, value: reference}
                            index: 19
                          value:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            short: Reference to a resource (by instance)
                            choices: [valueReference]
                            index: 21
                          valueReference:
                            short: Reference to a resource (by instance)
                            refers: ['http://hl7.org/fhir/5.0/StructureDefinition/profile-Condition|0.1.0', 'http://hl7.org/fhir/StructureDefinition/Condition|4.0.1']
                            type: Reference
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            choiceOf: value
                            index: 22
                        required: [url]
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: condition}
                index: 23
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                choices: []
                index: 25
            required: [url, extension]
        dateOfDiagnosis:
          match: {url: dateOfDiagnosis}
          schema:
            short: 'R5: Date of the diagnosis (when coded diagnosis) (new)'
            base: {max: '*', min: 0, path: Extension.extension}
            index: 26
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: dateOfDiagnosis}
                index: 27
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: Date of the diagnosis (when coded diagnosis)
                choices: [valueDateTime]
                index: 29
              valueDateTime:
                short: Date of the diagnosis (when coded diagnosis)
                type: dateTime
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                choiceOf: value
                index: 30
            required: [url]
        type:
          match: {url: type}
          schema:
            short: 'R5: Type that this diagnosis has relevant to the account (e.g. admission, billing, discharge …) (new)'
            array: true
            base: {max: '*', min: 0, path: Extension.extension}
            index: 31
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: type}
                index: 32
              value:
                short: Type that this diagnosis has relevant to the account (e.g. admission, billing, discharge …)
                choices: [valueCodeableConcept]
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                index: 34
              valueCodeableConcept:
                short: Type that this diagnosis has relevant to the account (e.g. admission, billing, discharge …)
                type: CodeableConcept
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                choiceOf: value
                index: 35
            required: [url]
        onAdmission:
          match: {url: onAdmission}
          schema:
            short: 'R5: Diagnosis present on Admission (new)'
            base: {max: '*', min: 0, path: Extension.extension}
            index: 36
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: onAdmission}
                index: 37
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: Diagnosis present on Admission
                choices: [valueBoolean]
                index: 39
              valueBoolean:
                short: Diagnosis present on Admission
                type: boolean
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                choiceOf: value
                index: 40
            required: [url]
        packageCode:
          match: {url: packageCode}
          schema:
            short: 'R5: Package Code specific for billing (new)'
            array: true
            base: {max: '*', min: 0, path: Extension.extension}
            index: 41
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: packageCode}
                index: 42
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: Package Code specific for billing
                choices: [valueCodeableConcept]
                index: 44
              valueCodeableConcept:
                short: Package Code specific for billing
                type: CodeableConcept
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                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-Account.diagnosis'}
    index: 46
  value:
    base: {max: '1', min: 0, path: 'Extension.value[x]'}
    choices: []
    index: 48
package_version: 0.1.0
extensions:
  sequence:
    url: sequence
    short: 'R5: Ranking of the diagnosis (for each type) (new)'
    base: {max: '*', min: 0, path: Extension.extension}
    index: 1
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: sequence}
        index: 2
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: Ranking of the diagnosis (for each type)
        choices: [valuePositiveInt]
        index: 4
      valuePositiveInt:
        short: Ranking of the diagnosis (for each type)
        type: positiveInt
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        choiceOf: value
        index: 5
    required: [url]
  condition:
    url: condition
    short: 'R5: The diagnosis relevant to the account (new)'
    _required: true
    base: {max: '*', min: 0, path: Extension.extension}
    index: 6
    extensions:
      _datatype:
        url: http://hl7.org/fhir/StructureDefinition/_datatype
        base: {max: '*', min: 0, path: Extension.extension}
        short: DataType slice for a FHIR R5 `CodeableReference` value
        _required: true
        index: 8
        elements:
          url:
            base: {max: '1', min: 1, path: Extension.url}
            pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/_datatype'}
            index: 9
          value:
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            pattern: {type: String, value: CodeableReference}
            choices: [valueString]
            index: 11
          valueString:
            type: string
            pattern: {type: String, value: CodeableReference}
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            choiceOf: value
            index: 12
        required: [url, valueString, value]
      concept:
        url: concept
        short: 'R5: Reference to a concept (by class)'
        base: {max: '*', min: 0, path: Extension.extension}
        index: 13
        elements:
          url:
            base: {max: '1', min: 1, path: Extension.url}
            pattern: {type: Uri, value: concept}
            index: 14
          value:
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            short: Reference to a concept (by class)
            choices: [valueCodeableConcept]
            index: 16
          valueCodeableConcept:
            short: Reference to a concept (by class)
            type: CodeableConcept
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            choiceOf: value
            index: 17
        required: [url]
      reference:
        url: reference
        short: 'R5: Reference to a resource (by instance)'
        base: {max: '*', min: 0, path: Extension.extension}
        index: 18
        elements:
          url:
            base: {max: '1', min: 1, path: Extension.url}
            pattern: {type: Uri, value: reference}
            index: 19
          value:
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            short: Reference to a resource (by instance)
            choices: [valueReference]
            index: 21
          valueReference:
            short: Reference to a resource (by instance)
            refers: ['http://hl7.org/fhir/5.0/StructureDefinition/profile-Condition|0.1.0', 'http://hl7.org/fhir/StructureDefinition/Condition|4.0.1']
            type: Reference
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            choiceOf: value
            index: 22
        required: [url]
    elements:
      extension:
        base: {max: '*', min: 0, path: Extension.extension}
        array: true
        min: 1
        index: 7
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: 1
          slices:
            _datatype:
              match: {url: 'http://hl7.org/fhir/StructureDefinition/_datatype'}
              schema:
                base: {max: '*', min: 0, path: Extension.extension}
                short: DataType slice for a FHIR R5 `CodeableReference` value
                _required: true
                index: 8
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/_datatype'}
                    index: 9
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    pattern: {type: String, value: CodeableReference}
                    choices: [valueString]
                    index: 11
                  valueString:
                    type: string
                    pattern: {type: String, value: CodeableReference}
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 12
                required: [url, valueString, value]
            concept:
              match: {url: concept}
              schema:
                short: 'R5: Reference to a concept (by class)'
                base: {max: '*', min: 0, path: Extension.extension}
                index: 13
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: concept}
                    index: 14
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    short: Reference to a concept (by class)
                    choices: [valueCodeableConcept]
                    index: 16
                  valueCodeableConcept:
                    short: Reference to a concept (by class)
                    type: CodeableConcept
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 17
                required: [url]
            reference:
              match: {url: reference}
              schema:
                short: 'R5: Reference to a resource (by instance)'
                base: {max: '*', min: 0, path: Extension.extension}
                index: 18
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: reference}
                    index: 19
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    short: Reference to a resource (by instance)
                    choices: [valueReference]
                    index: 21
                  valueReference:
                    short: Reference to a resource (by instance)
                    refers: ['http://hl7.org/fhir/5.0/StructureDefinition/profile-Condition|0.1.0', 'http://hl7.org/fhir/StructureDefinition/Condition|4.0.1']
                    type: Reference
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 22
                required: [url]
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: condition}
        index: 23
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        choices: []
        index: 25
    required: [url, extension]
  dateOfDiagnosis:
    url: dateOfDiagnosis
    short: 'R5: Date of the diagnosis (when coded diagnosis) (new)'
    base: {max: '*', min: 0, path: Extension.extension}
    index: 26
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: dateOfDiagnosis}
        index: 27
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: Date of the diagnosis (when coded diagnosis)
        choices: [valueDateTime]
        index: 29
      valueDateTime:
        short: Date of the diagnosis (when coded diagnosis)
        type: dateTime
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        choiceOf: value
        index: 30
    required: [url]
  type:
    url: type
    short: 'R5: Type that this diagnosis has relevant to the account (e.g. admission, billing, discharge …) (new)'
    array: true
    base: {max: '*', min: 0, path: Extension.extension}
    index: 31
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: type}
        index: 32
      value:
        short: Type that this diagnosis has relevant to the account (e.g. admission, billing, discharge …)
        choices: [valueCodeableConcept]
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        index: 34
      valueCodeableConcept:
        short: Type that this diagnosis has relevant to the account (e.g. admission, billing, discharge …)
        type: CodeableConcept
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        choiceOf: value
        index: 35
    required: [url]
  onAdmission:
    url: onAdmission
    short: 'R5: Diagnosis present on Admission (new)'
    base: {max: '*', min: 0, path: Extension.extension}
    index: 36
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: onAdmission}
        index: 37
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: Diagnosis present on Admission
        choices: [valueBoolean]
        index: 39
      valueBoolean:
        short: Diagnosis present on Admission
        type: boolean
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        choiceOf: value
        index: 40
    required: [url]
  packageCode:
    url: packageCode
    short: 'R5: Package Code specific for billing (new)'
    array: true
    base: {max: '*', min: 0, path: Extension.extension}
    index: 41
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: packageCode}
        index: 42
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: Package Code specific for billing
        choices: [valueCodeableConcept]
        index: 44
      valueCodeableConcept:
        short: Package Code specific for billing
        type: CodeableConcept
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        choiceOf: value
        index: 45
    required: [url]
class: extension
kind: complex-type
url: http://hl7.org/fhir/5.0/StructureDefinition/extension-Account.diagnosis
base: http://hl7.org/fhir/StructureDefinition/Extension|4.0.1
version: 0.1.0
required: [url, extension]