expand_hierarchy
Expand an ICD-10-CM code to retrieve all more specific descendant codes in the billing hierarchy, enabling complete value set generation from a single seed code.
Instructions
Expand an ICD-10-CM code to every code beneath it in the billing hierarchy.
For example, expanding "E11" (Type 2 diabetes mellitus) returns all
of its more specific subtypes, such as "E11.21" (with diabetic
nephropathy). Every returned concept is tagged generated provenance:
it is a structural consequence of the vocabulary hierarchy, not a
clinically validated inclusion, and should be treated as ungrounded
until a human confirms it belongs in the target population.
:param seed_code: An exact ICD-10-CM code to expand from, e.g. "E11".
:returns: All descendant concepts, or an empty set if seed_code does
not exist or has no descendants.
:rtype: ConceptSet
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| concepts | No | ||
| unmappable | No |