The Shakespearean way of saying this is "Get thee to a headshrinkery."
LOL.....there wasn’t any such think back then; old Willie the Shake would say : “hie thee to an apothecary”, perhaps. :-)