# Example 1: High Risk
# Male (+2), Post-term (+1), Parent Asthma (+2), Wheeze >4x (+5), Meds (+4)
# Score = 14
piama_risk_score("male", 1, 0, 1, 0, "4_or_more", 0, 1)
# Example 2: Low Risk
# Female, Term, High Education, No Hx, Wheeze 1-3x (+1)
# Score = 1
piama_risk_score("female", 0, 0, 0, 0, "1_to_3", 0, 0)
Run the code above in your browser using DataLab