Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve descendants and description of each descendant #620

Open
anhtienng opened this issue Aug 26, 2024 · 3 comments
Open

Retrieve descendants and description of each descendant #620

anhtienng opened this issue Aug 26, 2024 · 3 comments
Assignees
Labels

Comments

@anhtienng
Copy link

Hi,

  • I am trying to retrieve all descendants of a concept using its ID as follows:
    'baseUrl/edition/version/concepts/id_of_parent_concept/descendants.

  • However, the result does not include the synonyms of descendants.

  • Therefore, looping for each descendant, I will find the descriptions (including its synonyms) using:
    baseUrl/browser/edition/version/concepts/id_of_descendant.

  • However, this implementation is slow and leads to time-out blocking (maybe because I retrieved a lot descendants).

Please suggest me the better way to do this.
Thank you.

@kaicode kaicode self-assigned this Aug 27, 2024
@kaicode
Copy link
Member

kaicode commented Aug 27, 2024

The FHIR API allows listing descendants with descriptions in one request:
/fhir/ValueSet/$expand?includeDesignations=true&url=http://snomed.info/sct?fhir_vs=isa/195967001&_format=json

That url http://snomed.info/sct uses the latest loaded release of the default SNOMED CT edition on the server. On the International demo server that is the International Edition.
This works with Snowstorm and Snowstorm Lite.

If your IP address has been blocked from the demo Snowstorm server it should be lifted automatically after 24 hours.

It's quick to get a local Snowstorm Lite server running in docker; if you have a login to the MLDS service then the syndication option can be used, otherwise a SNOMED CT release package can be loaded from disk. Republic of Korea is a member country so you should be able to get access.

@kaicode
Copy link
Member

kaicode commented Aug 27, 2024

There is a FHIR API on the Snomed International Snowstorm demo server here: https://snowstorm.ihtsdotools.org/fhir
There is also an unofficial and temporary Snowstorm Lite demo server here: https://snowstorm-lite.nw.r.appspot.com/fhir

@anhtienng
Copy link
Author

Thank you very much, I will try your solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants