Skip to main content
FHIR CodeSystem/$validate-code for OMOP concepts

Overview

Validates whether a code is valid in a given code system. Returns true/false with the display name. Important: Per the FHIR spec, $validate-code uses the url parameter (not system). This differs from $lookup which uses system.

Contract Parameters

string
default:"r4"
string
OMOP vocabulary release; defaults to the active release.
string
Header alternative to vocab_release; the header takes precedence.
FHIR wire version (r4, r4b, r5, or r6).
string
Code-system URI; required for the type-level operation. system is accepted as an alias.
string
required
Code to validate.
string
Expected display text.

Request

With display verification:

Parameters

Response (valid code)

Response Fields

string
Always Parameters.
array
FHIR result parameters.
string
result, display, or message.
boolean | null
Validation result.
string | null
Display or explanatory message.

Response (display mismatch)

Response (invalid code)