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.
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 |
| 403 | forbidden | Restricted vocabulary (CPT4) |
| 404 | not-found | ValueSet root concept not found |