# Example 1: Moderate Severity
# SpO2 92% on 50% FiO2 (S/F=184 -> 3pts), Plt 120 (1pt), Bili 1.0 (0pt),
# MAP<70 (1pt), GCS 14 (1pt), Cr 1.3 (1pt)
modified_sofa_score(92, 50, 120, 1.0, 1, 14, 1.3)
# Example 2: Severe
# SpO2 88% on 100% (S/F=88 -> 4pts), Plt 40 (3pts), Bili 3.0 (2pts),
# Norepi >0.1 (4pts), GCS 9 (3pts), Cr 4.0 (3pts)
modified_sofa_score(88, 100, 40, 3.0, 4, 9, 4.0)
Run the code above in your browser using DataLab