# Example 1: Diagnosis Met
# 2 stools/week (1), Hard stools (1), Straining (1), No other features, No other cause
# Score = 3 (Meets criteria for 2 or more)
rome_iv_infant_functional_constipation(1, 1, 1, 0, 0, 1)
# Example 2: Not Met (Insufficient criteria)
# 4 stools/week (0), Hard stools (1), Straining (0)
# Score = 1 (Does not meet required 2 criteria)
rome_iv_infant_functional_constipation(0, 1, 0, 0, 0, 1)
Run the code above in your browser using DataLab