Construction of heterogeneous medical knowledge graph from electronic health records