# Example 1: High Likelihood
# TG 2000 mg/dL (+3), Pancreatitis (+1), No secondary factors (+2),
# Age <40 (+1), Poor response (+1), Pain (0)
# Score = 3 + 1 + 2 + 1 + 1 = 8 (Borderline/High)
nafcs_score(2000, 1, 0, 0, 1, 1)
# Example 2: Low Likelihood
# TG 900 mg/dL (+1), No pancreatitis, Secondary factors (Diabetes) present (0),
# Age >40 (0), Good response (0)
# Score = 1
nafcs_score(900, 0, 0, 1, 0, 0)
Run the code above in your browser using DataLab