# Example 1: Ankle X-ray Indicated
# Pain in malleolar zone, tenderness at lateral malleolus
ottawa_ankle_rules(30, 1, 0, 0, 0, 1, 0, 0, 0)
# Example 2: Foot X-ray Indicated
# Pain in midfoot, tenderness at base of 5th metatarsal
ottawa_ankle_rules(45, 0, 1, 0, 0, 0, 1, 0, 0)
# Example 3: No X-ray
# Pain but no tenderness or weight bearing issues
ottawa_ankle_rules(25, 1, 1, 0, 0, 0, 0, 0, 0)
Run the code above in your browser using DataLab