mirroring https://github.com/monarch-initiative/phenogrid/commit/9b415b48cb7d7f238c0996460f48b14b29e47f3b