Stream: implementers
Topic: Snomed validation using Snomed service
Aditya (Jun 18 2019 at 17:55):
Is it correct to do snomed code validation using snomed service as below :
http://snomed.info/sct/[sctid]/version/[YYYYMMDD]?fhir_vs=refset/[sctid]
Grahame Grieve (Jun 18 2019 at 17:57):
at this time, snomed.info does not explose any services that actually do that. That's a logical identiifer that should be identified by at least a few terminology services, including tx.fhir.org
Aditya (Jun 18 2019 at 18:04):
Ohk, so what is the way to validate if snomed code is valid? Any suggestions/recommendations ?
Michael Lawley (Jun 18 2019 at 20:21):
No, as Grahame states that's not "correct". That is a SNOMED URI not a URL - there is no implication that it will be resolvable.
Michael Lawley (Jun 18 2019 at 20:23):
To validate a code you need a terminology server that supports SNOMED and then you can either call CodeSystem/$validate-code
or CodeSystem/$lookup
with the appropriate parameters
Aditya (Jun 18 2019 at 20:38):
Ohk, so while implementing own terminology server (if I don't want to use anything external), should I be using .txt file to get all snomed codes or is there an existing .xml file which is in FHIR ValueSet format ?
Grahame Grieve (Jun 18 2019 at 20:43):
umm, implementing a terminology server is a great deal of work for experts. You should just use one of the existing servers - run your own copy locally
Aaron Seib (Jun 18 2019 at 22:24):
@Grahame Grieve - totally agree that managing a terminology server can be a total suck of resources and using another is a better option - is there any terminology servers that are being maintained by third parties that support the full set of FHIR value sets? I know a couple of vendors that are doing the typical coding system ones (ICDX, CPT, SNOMED, Etc) but none that really have any broader coverage than that. Are there some that the community is maintaining (by maintaining I mean updating as new codes are added or retiring as determined by the code system owners)?
Grahame Grieve (Jun 18 2019 at 23:11):
tx,fhir.org is pretty up to date and will start being even more up to date
Grahame Grieve (Jun 18 2019 at 23:12):
in terms of software both hapi and my fhir server are maintained and open source and free and include importers for the main terminologies so that a maintainer can keep them up to date themselves
Grahame Grieve (Jun 18 2019 at 23:12):
as does - I believe - Apelon
Grahame Grieve (Jun 18 2019 at 23:12):
and if you have $$, Ontoserver is an excellent choice
Adam Flinton (Jun 19 2019 at 08:18):
The normative source are the snomed rf2 files with are tabular text files each dealing with the std trinity (i.e. concepts, relationships, descriptions ) & then other stuff e.g. refsets, crossmaps etc. If just doing a read only pull you could look at the mongo db system used as the basis for the snomed browser (there are ansible scripts to install it (on a debian linux) and the do the rf2 > json > import action. Find them here: https://github.com/IHTSDO/ihtsdo-ansible However..... I would echo Grahame's view that not just running but then keeping up to date with content releases etc.etc. is possibly more involved than you might think.
Aditya (Jun 19 2019 at 13:49):
@Grahame Grieve Went over http://tx.fhir.org but was unable to find if there are any rate limit restrictions while using services.
Aditya (Jun 19 2019 at 13:57):
Also on http://tx.fhir.org , I tried validating code 422504002 by clicking "validate" button as shown in screenshot 1.png but I am getting 404 document not found error as shown in second screenshot 2.png
Lloyd McKenzie (Jun 19 2019 at 14:06):
There's no site tx.fhir.org/tx. Your options are tx.fhir.org/r4, r3 or r2
Aditya (Jun 19 2019 at 14:32):
That doesn't work too, it takes me to another unrelated page instead of expected response
Lloyd McKenzie (Jun 19 2019 at 14:53):
Where are you getting your syntax from?
Aditya (Jun 19 2019 at 15:07):
If I understand your question correctly, as shown in the 1.png screenshot, after clicking "validate" button, it takes me to a page with the request URL that I had mentioned and modified with /r3
Lloyd McKenzie (Jun 19 2019 at 15:18):
Where are you getting the syntax "op=validate" from?
Aditya (Jun 19 2019 at 15:36):
After I click validate button, I can see it in the redirected url page
Lloyd McKenzie (Jun 19 2019 at 15:55):
Actually, the page it's taking you to is a rendering of the expected response. If you want to see the raw XML or JSON, there's a link. (When you execute from a browser and don't set the Accept header, you get HTML as a response by default.)
Grahame Grieve (Jun 19 2019 at 22:08):
looks like the page is broken - I'll ad it to my todo list. But we expect that people will use the FHIR services - the page is just for convenience (or inconvenience in this case)
Michael Lawley (Jun 20 2019 at 02:33):
For example syntax: https://r4.ontoserver.csiro.au/fhir/ValueSet/administration-method-codes/$validate-code?system=http%3A%2F%2Fsnomed.info%2Fsct&code=422504002
Last updated: Apr 12 2022 at 19:14 UTC