Inferensys

Glossary

ValueSet

A FHIR resource that defines a curated set of codes drawn from one or more code systems, intended for use in a specific clinical context or data element.
Large-scale analytics wall displaying performance trends and system relationships.
FHIR TERMINOLOGY RESOURCE

What is ValueSet?

A ValueSet is a FHIR resource that defines a curated, intentionally limited set of codes drawn from one or more code systems, intended for use in a specific clinical context or data element.

A ValueSet is a FHIR resource that defines a curated, intentionally limited set of codes drawn from one or more CodeSystem resources. It specifies exactly which codes are allowed for a particular data element in a specific clinical context, such as restricting a gender field to 'male', 'female', and 'other' from the broader administrative gender code system.

ValueSets are the mechanism that powers terminology binding in FHIR, linking a coded element to its permissible values. They can be defined intensionally via rules (e.g., 'all codes descending from a SNOMED CT concept') or extensionally by explicitly listing each code. A FHIR validator uses a ValueSet to enforce conformance, ensuring exchanged data uses only the expected terminology.

TERMINOLOGY BINDING

Key Features of a ValueSet

A ValueSet is a curated collection of codes that defines the allowed values for a specific data element in a FHIR resource. It is the mechanism that enforces semantic consistency across interoperable systems.

01

Compositional Definition

A ValueSet is defined by a set of rules, not just a static list. It can be intensionally defined using logical filters (e.g., 'all codes that are descendants of a specific SNOMED CT concept') or extensionally defined by explicitly enumerating every allowed code. This compositional approach allows a single ValueSet to dynamically include hundreds of codes from a large terminology like SNOMED CT without manual curation.

Intensional
Rule-based inclusion
Extensional
Explicit code list
02

Multi-CodeSystem Aggregation

A single ValueSet can draw codes from multiple, disparate code systems to represent a single clinical concept. For example, a ValueSet for 'Diabetes Mellitus' might include:

  • SNOMED CT code 73211009 for clinical diagnosis
  • ICD-10-CM code E11.9 for billing classification
  • LOINC code 4548-4 for a lab result like Hemoglobin A1c This aggregation bridges the gap between clinical, administrative, and laboratory terminologies within one data element.
03

Binding Strength

When a ValueSet is linked to a FHIR element, the binding strength dictates how strictly the code must match. The four levels are:

  • required: The element MUST use a code from the ValueSet.
  • extensible: The element SHOULD use a code from the ValueSet, but a local code is allowed if a suitable one doesn't exist.
  • preferred: A code from the ValueSet is encouraged, but any valid code is acceptable.
  • example: The ValueSet is just a suggestion for implementers.
Required
Strictest binding
Example
Weakest binding
05

Authoring and Governance

ValueSets are not static; they require a lifecycle. Tools like FHIR Shorthand (FSH) allow authors to define ValueSets as code, which is then compiled into the formal FHIR resource. Governance workflows manage versioning, deprecation, and the periodic synchronization of ValueSets with the underlying code systems, such as when a new ICD-10 code is released annually.

06

Context-Specific Curation

A ValueSet's primary purpose is to constrain a generic terminology for a specific use case. The code system for SNOMED CT contains over 350,000 concepts, but a ValueSet for 'Chief Complaint' in an emergency department EHR might only contain 50 relevant codes. This curation prevents data entry errors and ensures that downstream analytics and decision support rules operate on a predictable, clean data set.

VALUESET CLARIFIED

Frequently Asked Questions

Clear, technically precise answers to the most common questions about the FHIR ValueSet resource, its mechanics, and its role in healthcare interoperability.

A ValueSet is a FHIR resource that defines a curated, explicitly enumerated or rule-based set of codes drawn from one or more CodeSystem resources, intended for use in a specific clinical context or data element. It acts as a terminology binding target, answering the question: 'What are the allowed values for this field?' A ValueSet does not define the codes themselves; it selects and constrains them from an underlying code system like SNOMED CT, LOINC, or RxNorm. For example, a ValueSet for 'Diabetes Mellitus Types' might include specific SNOMED CT concept codes like 44054006 (Type 2 diabetes mellitus) while excluding unrelated endocrine disorders. The resource can define its content either by explicitly listing individual codes in a compose element or by using logical inclusion and exclusion criteria that dynamically resolve against a terminology server.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.