PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.crmi@3.0.0-ballot
    http://hl7.org/fhir/StructureDefinition/expandedvalueset
description: Defines an expanded value set as one that SHALL have an expansion included, as well as a usage warning indicating the expansion is a point-in-time snapshot and must be maintained over time for production usage. The value set expansion specifies the timestamp when the expansion was produced, SHOULD contain the parameters used for the expansion, and SHALL contain the codes that are obtained by evaluating the value set definition. If this is ONLY an expanded value set, a computable definition of the value set must be obtained to compute the updated expansion. For production (active and not experimental) value sets, additional requirements apply to identify the value set, code system, and manifest versions used to produce the expansion, as well as the expansion identifier and licensing information (see [Production Expansions](packaging.html#production-expansions)).
package_name: hl7.fhir.uv.crmi
derivation: constraint
name: ExpandedValueSet
type: ValueSet
elements:
  extension:
    type: Extension
    mustSupport: true
    url: http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability
    index: 0
    slicing:
      slices:
        knowledgeCapability:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability', index: 0}
        usageWarning:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: http://hl7.org/fhir/StructureDefinition/valueset-warning
            index: 1
            elements:
              value:
                mustSupport: true
                pattern: {type: Markdown, value: 'This value set contains a point-in-time expansion enumerating the codes that meet the value set intent. As new versions of the code systems used by the value set are released, the contents of this expansion will need to be updated to incorporate newly defined codes that meet the value set intent. Before, and periodically during production use, the value set expansion contents SHOULD be updated.'}
                choices: [valueMarkdown]
                index: 3
              valueMarkdown:
                type: markdown
                mustSupport: true
                pattern: {type: Markdown, value: 'This value set contains a point-in-time expansion enumerating the codes that meet the value set intent. As new versions of the code systems used by the value set are released, the contents of this expansion will need to be updated to incorporate newly defined codes that meet the value set intent. Before, and periodically during production use, the value set expansion contents SHOULD be updated.'}
                choiceOf: value
                index: 4
            required: [valueMarkdown, value]
  url: {mustSupport: true, index: 5}
  version: {mustSupport: true, index: 6}
  publisher: {mustSupport: true, index: 7}
  copyright: {mustSupport: true, index: 8}
  expansion:
    constraint:
      evs-1: {human: 'For contains, a version SHALL be provided unless the expansion parameters include a "used-codesystem" parameter (system|version) corresponding to the system of the entry.', severity: error, expression: 'repeat(contains).all(system.empty() or version.exists() or system in %resource.expansion.parameter.where(name = ''used-codesystem'').value.toString().select(substring(0, indexOf(''|''))))'}
    mustSupport: true
    index: 9
    extensions:
      unclosed: {url: 'http://hl7.org/fhir/StructureDefinition/valueset-unclosed', min: 0, max: 1, type: Extension, mustSupport: true, index: 10}
    elements:
      extension:
        type: Extension
        mustSupport: true
        url: http://hl7.org/fhir/StructureDefinition/valueset-unclosed
        index: 10
        slicing:
          slices:
            unclosed:
              match: {}
              schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/StructureDefinition/valueset-unclosed', index: 10}
              min: 0
              max: 1
      identifier: {mustSupport: true, index: 11}
      timestamp: {mustSupport: true, index: 12}
      total: {mustSupport: true, index: 13}
      offset: {mustSupport: true, index: 14}
      parameter:
        mustSupport: true
        index: 15
        extensions:
          parameterSource: {url: 'http://hl7.org/fhir/StructureDefinition/valueset-parameterSource', min: 0, max: 1, type: Extension, mustSupport: true, index: 16}
        elements:
          extension:
            type: Extension
            mustSupport: true
            url: http://hl7.org/fhir/StructureDefinition/valueset-parameterSource
            index: 16
            slicing:
              slices:
                parameterSource:
                  match: {}
                  schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/StructureDefinition/valueset-parameterSource', index: 16}
                  min: 0
                  max: 1
      contains:
        mustSupport: true
        index: 17
        elements:
          system: {mustSupport: true, index: 18}
          abstract: {mustSupport: true, index: 19}
          inactive: {mustSupport: true, index: 20}
          version: {mustSupport: true, index: 21}
          code: {mustSupport: true, index: 22}
          display: {mustSupport: true, index: 23}
          contains: {mustSupport: true, index: 24}
        required: [code]
package_version: 3.0.0-ballot
extensions:
  knowledgeCapability: {url: 'http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability', type: Extension, mustSupport: true, index: 0}
  usageWarning:
    url: http://hl7.org/fhir/StructureDefinition/valueset-warning
    type: Extension
    mustSupport: true
    index: 1
    elements:
      value:
        mustSupport: true
        pattern: {type: Markdown, value: 'This value set contains a point-in-time expansion enumerating the codes that meet the value set intent. As new versions of the code systems used by the value set are released, the contents of this expansion will need to be updated to incorporate newly defined codes that meet the value set intent. Before, and periodically during production use, the value set expansion contents SHOULD be updated.'}
        choices: [valueMarkdown]
        index: 3
      valueMarkdown:
        type: markdown
        mustSupport: true
        pattern: {type: Markdown, value: 'This value set contains a point-in-time expansion enumerating the codes that meet the value set intent. As new versions of the code systems used by the value set are released, the contents of this expansion will need to be updated to incorporate newly defined codes that meet the value set intent. Before, and periodically during production use, the value set expansion contents SHOULD be updated.'}
        choiceOf: value
        index: 4
    required: [valueMarkdown, value]
class: profile
kind: resource
url: http://hl7.org/fhir/StructureDefinition/expandedvalueset
base: http://hl7.org/fhir/StructureDefinition/ValueSet
version: 4.0.2
required: [expansion]