A woman who encouraged a teenager she met in a hospital in King's Lynn to take her own life has been sent to a young offenders institute.