PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.xver@r5.r4b-0.0.1-snapshot-1
    http://hl7.org/fhir/5.0/StructureDefinition/extension-Account.diagnosis
description: This cross-version extension represents Account.diagnosis from http://hl7.org/fhir/StructureDefinition/Account|5.0.0 for use in FHIR R4B.
package_name: hl7.fhir.uv.xver
derivation: constraint
name: ext_R5_Account_diagnosis
type: Extension
elements:
  extension:
    array: true
    min: 1
    index: 0
    slicing:
      rules: closed
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        sequence:
          match: {url: null}
          schema:
            short: Ranking of the diagnosis (for each type)
            isModifier: false
            index: 1
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: Ranking of the diagnosis (for each type)
                choices: [valuePositiveInt]
                index: 3
              valuePositiveInt:
                base: {path: 'Extension.value[x]'}
                type: positiveInt
                short: Ranking of the diagnosis (for each type)
                choiceOf: value
                index: 4
        condition:
          match: {url: null}
          schema:
            short: The diagnosis relevant to the account
            isModifier: false
            _required: true
            index: 5
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: The diagnosis relevant to the account
                choices: [valueCodeableReference]
                index: 7
              valueCodeableReference:
                base: {path: 'Extension.value[x]'}
                type: CodeableReference
                short: The diagnosis relevant to the account
                choiceOf: value
                index: 8
        dateOfDiagnosis:
          match: {url: null}
          schema:
            isModifier: false
            short: Date of the diagnosis (when coded diagnosis)
            index: 9
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: Date of the diagnosis (when coded diagnosis)
                choices: [valueDateTime]
                index: 11
              valueDateTime:
                base: {path: 'Extension.value[x]'}
                type: dateTime
                short: Date of the diagnosis (when coded diagnosis)
                choiceOf: value
                index: 12
        type:
          match: {url: null}
          schema:
            short: Type that this diagnosis has relevant to the account (e.g. admission, billing, discharge …)
            isModifier: false
            array: true
            index: 13
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: Type that this diagnosis has relevant to the account (e.g. admission, billing, discharge …)
                choices: [valueCodeableConcept]
                index: 15
              valueCodeableConcept:
                base: {path: 'Extension.value[x]'}
                type: CodeableConcept
                short: Type that this diagnosis has relevant to the account (e.g. admission, billing, discharge …)
                choiceOf: value
                index: 16
        onAdmission:
          match: {url: null}
          schema:
            isModifier: false
            short: Diagnosis present on Admission
            index: 17
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: Diagnosis present on Admission
                choices: [valueBoolean]
                index: 19
              valueBoolean:
                base: {path: 'Extension.value[x]'}
                type: boolean
                short: Diagnosis present on Admission
                choiceOf: value
                index: 20
        packageCode:
          match: {url: null}
          schema:
            isModifier: false
            short: Package Code specific for billing
            array: true
            index: 21
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: Package Code specific for billing
                choices: [valueCodeableConcept]
                index: 23
              valueCodeableConcept:
                base: {path: 'Extension.value[x]'}
                type: CodeableConcept
                short: Package Code specific for billing
                choiceOf: value
                index: 24
  url:
    pattern: {type: Uri, value: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-Account.diagnosis'}
    index: 25
package_version: r5.r4b-0.0.1-snapshot-1
extensions:
  sequence:
    url: null
    short: Ranking of the diagnosis (for each type)
    isModifier: false
    index: 1
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: Ranking of the diagnosis (for each type)
        choices: [valuePositiveInt]
        index: 3
      valuePositiveInt:
        base: {path: 'Extension.value[x]'}
        type: positiveInt
        short: Ranking of the diagnosis (for each type)
        choiceOf: value
        index: 4
  condition:
    url: null
    short: The diagnosis relevant to the account
    isModifier: false
    _required: true
    index: 5
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: The diagnosis relevant to the account
        choices: [valueCodeableReference]
        index: 7
      valueCodeableReference:
        base: {path: 'Extension.value[x]'}
        type: CodeableReference
        short: The diagnosis relevant to the account
        choiceOf: value
        index: 8
  dateOfDiagnosis:
    url: null
    isModifier: false
    short: Date of the diagnosis (when coded diagnosis)
    index: 9
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: Date of the diagnosis (when coded diagnosis)
        choices: [valueDateTime]
        index: 11
      valueDateTime:
        base: {path: 'Extension.value[x]'}
        type: dateTime
        short: Date of the diagnosis (when coded diagnosis)
        choiceOf: value
        index: 12
  type:
    url: null
    short: Type that this diagnosis has relevant to the account (e.g. admission, billing, discharge …)
    isModifier: false
    array: true
    index: 13
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: Type that this diagnosis has relevant to the account (e.g. admission, billing, discharge …)
        choices: [valueCodeableConcept]
        index: 15
      valueCodeableConcept:
        base: {path: 'Extension.value[x]'}
        type: CodeableConcept
        short: Type that this diagnosis has relevant to the account (e.g. admission, billing, discharge …)
        choiceOf: value
        index: 16
  onAdmission:
    url: null
    isModifier: false
    short: Diagnosis present on Admission
    index: 17
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: Diagnosis present on Admission
        choices: [valueBoolean]
        index: 19
      valueBoolean:
        base: {path: 'Extension.value[x]'}
        type: boolean
        short: Diagnosis present on Admission
        choiceOf: value
        index: 20
  packageCode:
    url: null
    isModifier: false
    short: Package Code specific for billing
    array: true
    index: 21
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: Package Code specific for billing
        choices: [valueCodeableConcept]
        index: 23
      valueCodeableConcept:
        base: {path: 'Extension.value[x]'}
        type: CodeableConcept
        short: Package Code specific for billing
        choiceOf: value
        index: 24
class: extension
kind: complex-type
url: http://hl7.org/fhir/5.0/StructureDefinition/extension-Account.diagnosis
base: http://hl7.org/fhir/StructureDefinition/Extension
version: 0.0.1-snapshot-1
required: [url, extension]