Example #1
0
    enough_movement, defecation_freq, right_defecation_consistency, eating_moments, divided_food_water, slow_intake \
    = gather_intake_information()
    while not success:
        success, water, water_possibility, supplements_B12, protein_intake, protein_source, protein_intake_spread, \
        carb_intake_valuable, carb_intake_spread, unsat_fat_intake_sufficient, fat_intake_spread, supplements_multivitamins, fat_intake, \
        enough_movement, defecation_freq, right_defecation_consistency, eating_moments, divided_food_water, slow_intake \
        = gather_intake_information()
    else:
        #print("You have entered the following intake variables given by the patient: ", water, water_possibility, supplements_B12, protein_intake, protein_source, protein_intake_spread,
        #carb_intake_valuable, carb_intake_spread, unsat_fat_intake_sufficient, fat_intake_spread, supplements_multivitamins, fat_intake,
        #enough_movement, defecation_freq, right_defecation_consistency, eating_moments, divided_food_water, slow_intake, sep="\n")

        patient.enter_intake(water, water_possibility, supplements_B12, protein_intake, protein_source, protein_intake_spread,
                            carb_intake_valuable, carb_intake_spread, unsat_fat_intake_sufficient, fat_intake_spread, supplements_multivitamins, fat_intake,
                            enough_movement, defecation_freq, right_defecation_consistency, eating_moments, divided_food_water, slow_intake)


    print("\nFinally, enter the complaints the patient mentions, after which all possibilities will be evaluated and advice will be constructed.")
    stomach_ache, vomiting, feeling_cold, hair_loss, dumping, fatigue, nausea = gather_complaints()
    while not success:
        stomach_ache, vomiting, feeling_cold, hair_loss, dumping, fatigue, nausea = gather_complaints()
    else:
        #print("You have provided us the information that the patient suffers from the following complaints: ", "Stomach ache: "+stomach_ache, "Vomiting: "+vomiting, "Feeling cold: "+feeling_cold, "Hair loss: "+hair_loss, "Dumping: "+dumping, "Fatigue: "+fatigue, "Nausea : "+nausea, sep="\n")
        patient.enter_complaints(stomach_ache, vomiting, feeling_cold, hair_loss, dumping, fatigue, nausea)

    general_advice, alarms, complaint_advice = create_advice(patient)
    printable_advice = display_advice(general_advice, alarms, complaint_advice)
    overview = patient.create_overview(printable_advice)
    print(overview)
    print("Overview stored in patientname_overview.txt!")
    print("-" * 30)