# Example 1: Severe Distress
# HR 120 (+2), RR 35 (+2), Frequent Restless (+2), Paradoxical (+2),
# Pronounced Accessory (+2), Grunting (+2), Flaring (+2), Fear (+2)
# Score = 16
rdos_score(120, 35, "frequent", 1, "pronounced", 1, 1, 1)
# Example 2: No Distress
# HR 70 (0), RR 16 (0), No signs
# Score = 0
rdos_score(70, 16, "none", 0, "none", 0, 0, 0)
Run the code above in your browser using DataLab