Topic: diagnostic questions as tree

I currently want to create an application for diagnosing some animals.
The user gets some questions can can answer yes/no.
According to the answer a follow up question or solution/advice will come up.

My idea was to use a tree structure.
Each element has 2 follow ups (answers yes/no). If an entry has no children, its a solution or advice.

Does that sound okay for that?

And an idea if there a gems to visualize such gems for a comfortable way of editing such structure and add/edit/remove entries.