Skip to content

Main content

Structure Label Parent Depth Tool

Count explicitly supplied ancestor labels with optional self inclusion, without anatomical ontology lookup.

Loading tool…

Description

Return structure-label depth from an ancestor list.

Anatomical diagrams and idealized models require explicit coordinate origins, axes, dimensions and indexing conventions. Translations, vector projections and simple shape formulas describe supplied geometry rather than identifying actual anatomy or determining a medical finding. A scaled drawing or ideal branching tree needs separate anatomical verification.

Return structure-label depth from an ancestor list.

When to use this tool

Use Structure Label Parent Depth when checking the stated diagram, coordinate, vector or ideal-shape convention.

How to use the tool and how it works

  1. Enter ancestors, includeSelf. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read depth. Use the output convention below.

Return structure-label depth from an ancestor list. depth = ancestors.length plus one when includeSelf.1

Input fieldMeaning and unitsAccepted input
ancestorsAncestorsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
includeSelfInclude SelfRequired. Boolean.
Output fieldInterpretationReturned shape
depthDepthRequired. Safe integer.
json
{
  "input": {
    "ancestors": [
      "root",
      "parent"
    ],
    "includeSelf": true
  },
  "output": {
    "depth": 3
  }
}

Limitations and assumptions

  • The ancestor list is not validated for uniqueness, cycles or actual anatomical relationships.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Use verified anatomical measurements and an appropriate complete spatial model; consult qualified health professionals for actual medical interpretation.

References

  1. Calculation and input contract: anatomy/structure-label-parent-depth — tool.io

Similar or alternative tools