<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
One clarification on the answer number 2. The tree endpoint will give you an expanded tree for the term “Asthma”. If you are simply looking for the descendants, the call below would be more apt:
<div class=""><br class="">
</div>
<div class=""><a href="http://data.bioontology.org/ontologies/SNOMEDCT/classes/http://purl.bioontology.org/ontology/SNOMEDCT/195967001/descendants" class="">http://data.bioontology.org/ontologies/SNOMEDCT/classes/http%3A%2F%2Fpurl.bioontology.org%2Fontology%2FSNOMEDCT%2F195967001/descendants</a></div>
<div class=""><br class="">
</div>
<div class="">Thanks!</div>
<div class=""><br class="">
</div>
<div class="">Michael<br class="">
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Aug 31, 2017, at 2:38 PM, Michael Dorf <<a href="mailto:mdorf@stanford.edu" class="">mdorf@stanford.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Sina,
<div class=""><br class="">
</div>
<div class="">I am not sure which one of the two interpretations you are asking about:</div>
<div class=""><br class="">
</div>
<div class="">1. Determine whether a term with a given id is located within a specific subtree. If that’s the case, yes, you should be able to do this. Here is an example that searches for the term "Uncomplicated moderate persistent asthma”, id = <a href="http://purl.bioontology.org/ontology/SNOMEDCT/707512002" class="">http://purl.bioontology.org/ontology/SNOMEDCT/707512002</a> in
 a subtree of the term “Asthma”, id = <a href="http://purl.bioontology.org/ontology/SNOMEDCT/195967001" class="">http://purl.bioontology.org/ontology/SNOMEDCT/195967001</a>:</div>
<div class=""><br class="">
</div>
<div class=""><a href="http://data.bioontology.org/search?q=http://purl.bioontology.org/ontology/SNOMEDCT/707512002&ontology=SNOMEDCT&subtree_root_id=http://purl.bioontology.org/ontology/SNOMEDCT/195967001" class="">http://data.bioontology.org/search?q=http%3A%2F%2Fpurl.bioontology.org%2Fontology%2FSNOMEDCT%2F707512002&ontology=SNOMEDCT&subtree_root_id=http%3A%2F%2Fpurl.bioontology.org%2Fontology%2FSNOMEDCT%2F195967001</a> </div>
<div class=""><br class="">
</div>
<div class="">OR</div>
<div class=""><br class="">
</div>
<div class="">2. Get ALL the descendants (direct/indirect) of a given term (“Asthma”). In this case, the call would be:</div>
<div class=""><br class="">
</div>
<div class=""><a href="http://data.bioontology.org/ontologies/SNOMEDCT/classes/http://purl.bioontology.org/ontology/SNOMEDCT/195967001/tree" class="">http://data.bioontology.org/ontologies/SNOMEDCT/classes/http%3A%2F%2Fpurl.bioontology.org%2Fontology%2FSNOMEDCT%2F195967001/tree</a> </div>
<div class=""><br class="">
</div>
<div class="">Let me know if this helps.</div>
<div class=""><br class="">
</div>
<div class="">Thank you for keeping in touch with us!</div>
<div class=""><br class="">
</div>
<div class="">Michael</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Aug 29, 2017, at 12:26 PM, Madani, Sina <<a href="mailto:Sina.Madani@vumc.org" class="">Sina.Madani@vumc.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif;" class="">
<div class="">Hi, </div>
<div class=""><br class="">
</div>
<div class="">Would it be possible to use Restful services to search by id under a given subtree (like SNOMED Asthma) for all direct and indirect children?</div>
<div class=""><br class="">
</div>
<div class="">Thanks!</div>
<div class="">Sina</div>
</div>
_______________________________________________<br class="">
bioontology-support mailing list<br class="">
<a href="mailto:bioontology-support@lists.stanford.edu" class="">bioontology-support@lists.stanford.edu</a><br class="">
<a href="https://mailman.stanford.edu/mailman/listinfo/bioontology-support" class="">https://mailman.stanford.edu/mailman/listinfo/bioontology-support</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
bioontology-support mailing list<br class="">
<a href="mailto:bioontology-support@lists.stanford.edu" class="">bioontology-support@lists.stanford.edu</a><br class="">
https://mailman.stanford.edu/mailman/listinfo/bioontology-support<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>