On the construction of an extended thermodynamic framework for irreversible processes