# Example 1: Severe Hypoxemia (ARDS)
# SpO2 88%, FiO2 0.60
# Ratio = 88 / 0.6 = 146.7
sf_ratio(88, 60)
# Example 2: Normal/Mild
# SpO2 98%, Room Air (0.21)
# Ratio = 98 / 0.21 = 466.7
sf_ratio(98, 21)
Run the code above in your browser using DataLab