Institut Enfants La Courtine, Institut médical à Remiremont