Handling hierarchies using ancestors
Last updated
Last updated
Please start a discussion or contact us if you have questions, feedback, or suggestions.
If your current terminology (ICD-10, Loinc, RxNorm, etc.) based on hierarchy
attribute you may request to update this terminology
We've introduced new way of handling hierarchies in Aidbox two-phase terminology approach. Previously we used only Concept.hierarchy
attribute but this approach had a few limitations: for complex ontology-like terminologies (such as SnomedCT) it didn't allow to support several value set filter operations such as child-of
, generalizes
, descendent-leaf
.
Use of ancestors
attribute is optional and we still support hierarchy
attribute as well. For all terminologies provided since Aidbox July 2022 latest
release ancestors
attribute will be included by default instead of hierarchy
attribute.
For example, source terminology structure looks as follows:
This is how ancestors hierarchy is supposed to be represented in Aidbox Concept
resource:
Ancestors attribute is an object which stores all concept ancestors and number of hops between them, where key is an ancestor code and value is the number of hops.
If you want to declare ValueSet that based on concepts with ancestors attribute you should add "use-ancestors"
resource meta tag.