# Example 1: Definite AIH
# ANA >=1:80 (2), IgG >1.1x ULN (2), Typical Histology (2), No Viral Hep (2)
# Score = 8
simplified_aih_score(">=1:80", "none", 0, 1800, 1500, "typical", 1)
# Example 2: Probable AIH
# ANA >=1:40 (1), IgG Normal (0), Compatible Histology (1), No Viral Hep (2)
# Score = 4 (Not Diagnostic - Wait, calculation: 1+0+1+2 = 4. Correct.)
simplified_aih_score(">=1:40", "none", 0, 1000, 1500, "compatible", 1)
# Example 3: Probable AIH (Score 6)
# ANA >=1:40 (1), IgG >1.1x (2), Compatible (1), No Viral (2) -> 6
simplified_aih_score(">=1:40", "none", 0, 1800, 1500, "compatible", 1)
Run the code above in your browser using DataLab