The co-leader of the Scottish Greens is expected to take around six weeks to recover