# Example 1: Positive API
# Freq wheezing, Parent Asthma (Major), No others
# Result: Positive (1 Major met)
asthma_predictive_index(1, 1, 0, 0, 0, 0)
# Example 2: Positive API via Minor Criteria
# Freq wheezing, No Major, Allergic Rhinitis + Eosinophilia (2 Minor)
asthma_predictive_index(1, 0, 0, 1, 0, 1)
# Example 3: Negative API
# Freq wheezing, only Eosinophilia (1 Minor)
asthma_predictive_index(1, 0, 0, 0, 0, 1)
Run the code above in your browser using DataLab