Thatch, a San Francisco-based HealthTech company, has raised $40 million in a Series B funding round, led by Index Ventures and supported by notable investors…