Scottish Greens co-leader Patrick Harvie will take a few weeks away from Holyrood to undergo an unspecified medical procedure.