# Example 1: X-ray Indicated (Age)
# 60yo, no other symptoms
# Result: Indicated
ottawa_knee_rule(60, 0, 0, 0, 0)
# Example 2: X-ray Indicated (Inability to flex)
# 30yo, Unable to flex to 90 degrees
# Result: Indicated
ottawa_knee_rule(30, 0, 0, 1, 0)
# Example 3: No X-ray
# 25yo, Minor pain, able to walk, full flexion, no bony tenderness
# Result: Not Indicated
ottawa_knee_rule(25, 0, 0, 0, 0)
Run the code above in your browser using DataLab