%% Diagnosis and Treatment Options Based on the More Severe Angle
if degreesTop >= degreesBottom
    degrees = degreesTop;
else
    degrees = degreesBottom;
end
 
if degrees > 40
    fprintf('Please schedule the patient for a surgery as soon as possible.\nThere are multiple types of surgery available:\n1. Spinal fusion and metal rod insertion.\n2. Posterior approach.\n3. Anterior approach.\n4. Decompressive laminectomy.\n5. Minimally invasive surgery.\n')
    fprintf('Please keep in mind that if the patient is not an adult,\nthey may require revision surgery in 20 - 30 years. In the case\nthat newer treatment is avaialable.\n') 
 
elseif degrees > 20 && degrees <= 40
    fprintf('Please recommend that the patient wear a brace for 16 - 23 hours a day.\nIf the patient is a child or teen, the recommended duration of the brace is until\nage of maturity.\n If the patient is an adult, wearing a brace might not help\nmuch, so surgery might be the better option.\n')
 
elseif degrees > 10 && degrees <= 20
    fprintf('Please recommend that the patient schedules a regular check-in every 2 years.\nProgression of scoliosis may worsen over time, but at the moment the patient\ndoes not require any treatment.\n')
end


