How to get select based data in ERPNext?

Say, I have 3 doctypes,
Program with a select field that has (School, College)
Then Discipline and fee. I want to have a predefined fee structure that is linked to School and College individually so that when I select College I can view and edit the fee structure for a college student. Kindly help me out.