Пример #1
0
    print(WELCOME_STRING)
    success, patient_name, gender, height, weeks_after_surgery, weight_at_surgery, current_weight = gather_general_info()
    while not success:
        success, patient_name, gender, height, weeks_after_surgery, weight_at_surgery, current_weight = gather_general_info()
    else:
        #print("You have entered the following patient information:", patient_name, gender, height, weeks_after_surgery, weight_at_surgery, current_weight, sep="\n")
        patient = Patient(patient_name, gender, height, weeks_after_surgery, weight_at_surgery, current_weight)


    print("\nBefore moving on to the patient-provided information, please enter the lab values.")
    success, lab_date, protein, B11, B12, D, iron = gather_lab_values()
    while not success:
        success, lab_date, protein, B11, B12, D, iron = gather_lab_values()
    else:
        #print("You have entered the following lab values:", lab_date, protein, B11, B12, D, iron, sep="\n")
        patient.enter_lab_values(lab_date, protein, B11, B12, D, iron)

        
    print("\nNext, please gather monitoring values of nutritional intake per day from the patient.")
    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()
    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,