Value Is Not in the Required Value Set
A conformance rule binds an element to a value set (a fixed list of allowed codes or a named ValueSet URL), and the supplied code is not a member.
FHIR · Error
The error
must be from value set but is notWhy it happens
Sending a local code without translating it, using a code from the wrong code system, or a typo in the code.
How to fix it
Replace the value with a code that belongs to the bound value set. The failure message lists the allowed codes or the ValueSet URL. Map local terminology to the required codes before validating.
Example
The snippet below triggers the error:
{
"resourceType": "MedicationRequest",
"status": "ordered",
"intent": "order",
"subject": { "reference": "Patient/example" }
}The corrected version:
{
"resourceType": "MedicationRequest",
"status": "active",
"intent": "order",
"subject": { "reference": "Patient/example" }
}Frequently asked questions
What is the difference between a required and an extensible binding?
A required binding means the code must come from the value set, with no exceptions. An extensible binding allows an outside code only when the value set has no suitable concept. This rule reflects a required-style check.
Related
- Open the FHIR Profile Coverage (US Core / IPS)
- All validation errors
- resourceType Is Required
- Unknown FHIR R4 Resource Type
- Required Element Is Missing for This Resource
- gender Must Be male, female, other, or unknown
- birthDate Must Be YYYY, YYYY-MM, or YYYY-MM-DD
- instant Must Include a Timezone
- Resource id Has an Invalid Format
- subject Must Be a Reference Object, Not a String