Skip to main content

Overview

Validates whether a code is a member of an implicit ValueSet. EHRbase uses this during composition validation to check if a submitted code falls within the allowed set for a template field. Supports the same ValueSet URL patterns as $expand.
FHIR clients typically call ValueSet search first as a preflight check to confirm the server supports the target ValueSet, then call $validate-code (or $expand) for the actual membership test. The two endpoints are independent - you can call $validate-code directly without the preflight if you already know the URL is supported.

Supported Patterns

All codes in a code system

Is SNOMED code 44054006 valid? (Yes, if it exists in the SNOMED vocabulary.)

Descendants of a concept (is-a filter)

Is “Type 2 diabetes mellitus” (44054006) a descendant of “Diabetes mellitus” (73211009)? (Yes.)

Parameters

Response (valid code)

Response (not a member)

Response (display mismatch)

Errors