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

Concept search "returnIdOnly" format must use quoted ids to avoid javascript precision issue #367

Closed
kaicode opened this issue Jan 31, 2022 · 1 comment
Assignees

Comments

@kaicode
Copy link
Member

kaicode commented Jan 31, 2022

Concept ids that are 18 characters long get rounded when put into JSON as a number.
For example "450229981000132104" is rounded to "450229981000132100".. the last two digits get changed to 0.

Snowstorm should always return SCTIDs as quoted Strings to avoid this problem. The concept search is not currently doing this when the returnIdOnly parameter is used. Running a search that matches concept "450229981000132104" returns an identifier of "450229981000132104" in the response. This is a bug.

https://snowstorm.ihtsdotools.org/snowstorm/snomed-ct/MAIN/concepts?conceptIds=450229981000132104&returnIdOnly=true
Screenshot 2022-01-31 at 15 37 39

@kaicode
Copy link
Member Author

kaicode commented Mar 21, 2022

Fixed in release 7.7.0.

@kaicode kaicode self-assigned this Mar 21, 2022
njmarques pushed a commit to WestCoastInformatics/snowstorm-1 that referenced this issue Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant