Making the right decisions before leaving the hospital