# Example 1: Adult with burns on whole left arm and half of chest
# L Arm (100% burned -> 9 TBSA), R Arm (0%), Ant Torso (50% burned -> 9 TBSA), others 0
# Total TBSA = 9 + 9 = 18%
rule_of_nines(0, 100, 0, 50, 0, 0, 0, 0, "adult")
# Example 2: Child with burns on entire head and right leg
# Head (100% -> 18 TBSA), R Leg (100% -> 13.5 TBSA)
# Total TBSA = 18 + 13.5 = 31.5%
rule_of_nines(100, 0, 0, 0, 0, 0, 100, 0, "child")
Run the code above in your browser using DataLab