core.isicd11codeunder
Home > @medplum/core > isIcd11CodeUnder
isIcd11CodeUnder() function
Returns true if the ICD-11 code is ancestor or one of its descendants. Postcoordination is ignored: only the first stem code is compared.
Signature:
export declare function isIcd11CodeUnder(code: string, ancestor: string): boolean;
Parameters
Parameter | Type | Description |
|---|---|---|
code | string | ICD-11 MMS code, possibly postcoordinated. |
ancestor | string | ICD-11 MMS stem code. |
Returns:
boolean
True if code falls under ancestor in the ICD-11 hierarchy.