Stream: terminology
Topic: search concepts by name
Marcelo Cabello (Aug 09 2019 at 16:59):
I'm reading the spec for CodeSystems and its operations ($lookup mainly), and I wonder what if I want to search some concept by the name?. What is the rational way to implement searches by text of a concept or its properties?
Grahame Grieve (Aug 09 2019 at 19:51):
"name" - do you mean CodeSystem.concept.display?
Marcelo Cabello (Aug 09 2019 at 20:05):
yeap!, perhaps I'm a little bit lost understanding the resource!. I'm working on two lines: i) understanding concept, filter and properties to build an ad-hoc resource and ii) what kind of searches can I develop. One of this search is using the display (for example: as a user I want to get terms which matches to "infeccion tracto respiratorio" from a system snomed and it returns the coincidence with this string.
Grahame Grieve (Aug 09 2019 at 20:08):
so at the moment, you have 2 options for searching by concept.display:
- expand the value set for the whole code system with a text filter
- make up your own search parameter (which only your server will support, once you implement it)
Grahame Grieve (Aug 09 2019 at 20:09):
there's an outstanding issue for creating an equivalent operation to $expand for value set on CodeSystem - e.g. an adhoc value set. I guess doing that now would be a 3rd option
Marcelo Cabello (Aug 09 2019 at 20:11):
got it!, filter seems to me more 'standar' than searchparamenter. anyway I'll explore both options. I thought that a CS was not enough to do that and I have to look into VS resource!. Thanks for the advice!
Grahame Grieve (Aug 09 2019 at 20:13):
I want to get terms which matches to "infeccion tracto respiratorio" from a system snomed
GET [base]/ValueSet/$expand?url= http://snomed.info/sct/449081005%3Ffhir_vs&filter=infeccion_tracto_respiratorio
Grahame Grieve (Aug 09 2019 at 20:14):
that uses an SNOMED implicit value set for the entire spanish edition of SNOMED. (though I don't know if any of the public servers have the spanish version loaded - tx..fhir.org doesn't, since no one has asked, and so I haven't done the licensing battle)
katarya1 (Aug 12 2019 at 21:23):
Out of curiosity, what is "fhir_vs" here (/ValueSet/$expand?url=http://snomed.info/sct/449081005?fhir_vs) ? Thanks
Michael Lawley (Aug 12 2019 at 21:36):
the ?fhir_vs
is an arbitrary extra bit on the end of a standard SNOMED CT URI for any of SNOMED CT itself, and Edition of SNOMED CT (as in your example), or a Version of SNOMED CT. The combination refers to the (implicit) ValueSet that consists of all codes in SNOMED CT (or in the specified Edition or Version). This includes all inactive codes.
There are a number of additional related URIs denoting implicit SNOMED CT ValueSets that are documented on the FHIR SNOMED page.
Last updated: Apr 12 2022 at 19:14 UTC