Generalized approach to translating exercise tests and prescribing exercise