Unified supersymmetric transformations for the harmonic oscillator and its rational extension