mirroring https://github.com/monarch-initiative/phenogrid/commit/5250bdbe21a531ab6932684df76fa587b62f1a61