deontology

noun: The theory or study of duty and obligation, with a focus on the right action as determined by a set of rules, irrespective of the consequences of the action.