React Advanced Odontogram - v2.2.1
    Preparing search index...

    Function toLabel

    • Convert an FDI tooth number to the label for the requested numbering system.

      Parameters

      • fdiTooth: string | number

        Tooth number in FDI notation (e.g. 14, 55). Accepts a string that can be parsed as a number.

      • system: NumberingSystem

        The target numbering system ("FDI", "UNIVERSAL", or "PALMER").

      Returns string

      The formatted label (e.g. "5" for Universal, "UR-4" for Palmer). Returns the input as-is when it cannot be mapped.

      toLabel(14, "FDI");       // "14"
      toLabel(14, "UNIVERSAL"); // "5"
      toLabel(14, "PALMER"); // "UR-4"
      toLabel(55, "UNIVERSAL"); // "A"