In 1817 the name ` Karolinska ' was added as a reference to ` Karoliner ' which was the name of soldiers under the Swedish king Karl XII . In 1817 the prefix ` Karolinska ' was added as a reference to the then Swedish king Karl XIII .