PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.crmi@1.0.0-snapshot
    http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-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.
package_name: hl7.fhir.uv.crmi
derivation: constraint
name: CRMIExpandedValueSet
type: ValueSet
elements:
  extension:
    type: Extension
    mustSupport: true
    url: http://hl7.org/fhir/StructureDefinition/valueset-warning
    index: 0
    slicing:
      slices:
        usageWarning:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: http://hl7.org/fhir/StructureDefinition/valueset-warning
            index: 0
            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: 2
              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: 3
            required: [valueMarkdown, value]
  expansion:
    constraint:
      evs-1: {human: 'For contains, a version SHALL be provided unless the parameters element has a "system-version" parameter corresponding to the system of the entry and the version matches the system-version parameter.', severity: error, expression: contains.version.exists() xor  parameter.where(name = 'system-version').exists()}
    mustSupport: true
    index: 4
    elements:
      identifier: {mustSupport: true, index: 5}
      timestamp: {mustSupport: true, index: 6}
      total: {mustSupport: true, index: 7}
      offset: {mustSupport: true, index: 8}
      parameter: {mustSupport: true, index: 9}
      contains:
        mustSupport: true
        index: 10
        elements:
          system: {mustSupport: true, index: 11}
          abstract: {mustSupport: true, index: 12}
          inactive: {mustSupport: true, index: 13}
          version: {mustSupport: true, index: 14}
          code: {mustSupport: true, index: 15}
          display: {mustSupport: true, index: 16}
          contains: {mustSupport: true, index: 17}
        required: [code]
package_version: 1.0.0-snapshot
extensions:
  usageWarning:
    url: http://hl7.org/fhir/StructureDefinition/valueset-warning
    type: Extension
    mustSupport: true
    index: 0
    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: 2
      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: 3
    required: [valueMarkdown, value]
class: profile
kind: resource
url: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-expandedvalueset
base: http://hl7.org/fhir/StructureDefinition/ValueSet
version: 1.0.0-snapshot
required: [expansion]