core.iscoding | Medplum
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 [](/content/docs/sdk/core.iscoding#parameters "Direct link to Parameters"/index.html)
| Parameter | Type | Description |
|---|---|---|
| value | unknown | The candidate value. |
Returns:
value is Coding & { code: string; }
True if the input value is a Coding.