Skip to main content

core.iscodeableconcept

Home > @medplum/core > isCodeableConcept

isCodeableConcept() function

Returns true if the input value is a CodeableConcept object. This is a heuristic check based on the presence of the "coding" property.

Signature:

export declare function isCodeableConcept(value: unknown): value is CodeableConcept & {
coding: Coding[];
};

Parameters

ParameterTypeDescription
valueunknownThe candidate value.

Returns:

value is CodeableConcept & { coding: Coding[]; }

True if the input value is a CodeableConcept.