diagnosis app written in ruby 2.1.1 and rails 4