Observation status Has an Invalid Code
Observation.status is bound to a required value set. Only registered, preliminary, final, amended, corrected, cancelled, entered-in-error, and unknown are accepted.
FHIR · Error
The error
Observation status must be one of the observation-status codesWhy it happens
Using a free-text status (complete, done), an uppercase code (Final), or an HL7v2 result status (F, P, C) mapped straight across without translation.
How to fix it
Set status to one of the eight allowed lowercase codes. A finished lab result is final. When converting from HL7v2 OBX-11, map F to final, P to preliminary, C to corrected.
Example
The snippet below triggers the error:
{
"resourceType": "Observation",
"status": "complete",
"code": { "text": "Glucose" }
}The corrected version:
{
"resourceType": "Observation",
"status": "final",
"code": { "text": "Glucose" }
}Frequently asked questions
What is the full list of Observation status codes?
registered, preliminary, final, amended, corrected, cancelled, entered-in-error, unknown. They are lowercase and case-sensitive.
Related
- Open the FHIR Validator
- 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