Skip to main content

core.iscoding

Home > @medplum/core > isCoding

isCoding() function

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

Signature:

export declare function isCoding(value: unknown): value is Coding & {
code: string;
};

Parameters

ParameterTypeDescription
valueunknownThe candidate value.

Returns:

value is Coding & { code: string; }

True if the input value is a Coding.