# Example 1: Diagnosis Met
# Chronic pain (1), Social impact (1), No other FGID/Organic cause, Chronic duration met
rome_iv_caps_criteria(1, 1, 1, 1, 1, 1)
# Example 2: Not Met (Pain can be explained by IBS)
# Chronic pain (1), Social impact (1), Meets IBS criteria (0 for exclusion)
rome_iv_caps_criteria(1, 1, 0, 1, 1, 1)
Run the code above in your browser using DataLab