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
Parameter | Type | Description |
---|---|---|
value | unknown | The candidate value. |
Returns:
value is CodeableConcept & { coding: Coding[]; }
True if the input value is a CodeableConcept.