# Example 1: Moderate Exacerbation
# 6yo, RR 30 (2 pts), SpO2 92% (2 pts), Substernal retractions (2 pts),
# Phrases (2 pts), Throughout wheeze (2 pts)
# Score = 10
pediatric_asthma_score(6, 30, 92, 0, "substernal_suprasternal", "phrases", "throughout")
# Example 2: Mild Exacerbation
# 10yo, RR 20 (1 pt), SpO2 98% (1 pt), No retractions (1 pt),
# Sentences (1 pt), End-exp wheeze (1 pt)
# Score = 5
pediatric_asthma_score(10, 20, 98, 0, "none_intercostal", "sentences", "end_expiratory")
Run the code above in your browser using DataLab