File size: 510 Bytes
b7f151e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from application.schema import Symptom
def get_risk_level(symptom: Symptom):
if not (symptom.fever or symptom.dry_cough or symptom.tiredness or symptom.breathing_problem):
return 'Low risk level. THIS IS A DEMO APP'
if not (symptom.breathing_problem or symptom.dry_cough):
if symptom.fever:
return 'moderate risk level. THIS IS A DEMO APP'
if symptom.breathing_problem:
return 'High risk level. THIS IS A DEMO APP'
return 'THIS IS A DEMO APP' |