Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[bioontology-support] Access Code Notations via REST API

Michael Dorf mdorf at stanford.edu
Mon Jun 29 10:38:05 PDT 2020


Hi Zak,

Thank you for contacting us. You can retrieve this info programmatically in one of these two ways:

1. Using the /classes endpoint:

http://data.bioontology.org/ontologies/ICD10/classes?display=prefLabel,synonym,definition,notation,cui,semanticType,properties&no_links=true&no_context=true&page=1

OR

2. Using the /search endpoint:

http://data.bioontology.org/search?ontologies=ICD10&sort=prefLabel&display=prefLabel,synonym,definition,notation,cui,semanticType,properties&no_links=true&no_context=true&page=1

In the latter example, the results are being sorted by the prefLabel alphabetically. In your Python script, you can iterate over ALL ontology terms by processing the results one page at a time and incrementing the “page=1” parameter on each subsequent call.

The ICD10 code is stored in the field “notation”.

For the actual Python code, you can use some of the examples below as your starting point:

https://github.com/ncbo/ncbo_rest_sample_code/tree/master/python

Let us know if you have additional questions.

Michael


On Jun 29, 2020, at 6:11 AM, Zak Raicik <ZRaicik at jhancock.com<mailto:ZRaicik at jhancock.com>> wrote:

Hi –

Is there any way to use the REST API to get a comprehensive listing off all codes/notations within a given class?

For example, if I want to get a complete listing of all possible ICD10 codes from the API using python- is that possible?

Thanks,
Zak Raicik, FSA
Director, Data Science
Manulife

STATEMENT OF CONFIDENTIALITY The information contained in this email message and any attachments may be confidential and legally privileged and is intended for the use of the addressee(s) only. If you are not an intended recipient, please: (1) notify me immediately by replying to this message; (2) do not use, disseminate, distribute or reproduce any part of the message or any attachment; and (3) destroy all copies of this message and any attachments.
_______________________________________________
bioontology-support mailing list
bioontology-support at lists.stanford.edu<mailto:bioontology-support at lists.stanford.edu>
https://mailman.stanford.edu/mailman/listinfo/bioontology-support

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/bioontology-support/attachments/20200629/980fa577/attachment-0001.html>


More information about the bioontology-support mailing list