Closed gijskant closed 5 years ago
For non-leaf nodes that are linked to a concept, the conceptCode is not returned in the tree_nodes API call. The problem is in the service fetching the tree: https://github.com/thehyve/transmart-core/blob/dev/transmart-core-db/grails-app/services/org/transmartproject/db/tree/TreeCacheService.groovy#L109. Exposing the concept code would be useful in cases where ontologies are loaded that have concept codes on multiple levels, not only on the leaves. E.g., when loading ICD-10 (see, e.g., https://glowingbear-demo.thehyve.net), the intermediate category nodes also have concept codes and can have observations associated with them.
tree_nodes
For non-leaf nodes that are linked to a concept, the conceptCode is not returned in the
tree_nodes
API call. The problem is in the service fetching the tree: https://github.com/thehyve/transmart-core/blob/dev/transmart-core-db/grails-app/services/org/transmartproject/db/tree/TreeCacheService.groovy#L109. Exposing the concept code would be useful in cases where ontologies are loaded that have concept codes on multiple levels, not only on the leaves. E.g., when loading ICD-10 (see, e.g., https://glowingbear-demo.thehyve.net), the intermediate category nodes also have concept codes and can have observations associated with them.