Documentation Index
Fetch the complete documentation index at: https://docs.omophub.com/llms.txt
Use this file to discover all available pages before exploring further.
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
Descendants of a concept (is-a filter)
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
url | uri | Yes | Implicit ValueSet URL (e.g., http://snomed.info/sct?fhir_vs or http://snomed.info/sct?fhir_vs=isa/73211009) |
system | uri | No | Code system URI of the code being validated (defaults to the ValueSet system) |
code | code | Yes | The code to validate |
display | string | No | Expected display text to verify |
Response (valid code)
Response (not a member)
Response (display mismatch)
Errors
| HTTP | Issue Code | Cause |
|---|---|---|
| 400 | invalid | Missing url or code parameter, invalid ValueSet URL, or unknown code system |
| 404 | not-found | ValueSet root concept not found |