FHIR Chat · Ontoserver valueCoding instead of valueCode · terminology

Stream: terminology

Topic: Ontoserver valueCoding instead of valueCode


view this post on Zulip Kevin Mayfield (Dec 15 2020 at 11:04):

When I run this query

https://ontoserver.dataproducts.nhs.uk/fhir/CodeSystem/$lookup?code=2881111000001108&system=http%3A%2F%2Fsnomed.info%2Fsct&version=http%3A%2F%2Fsnomed.info%2Fsct%2F999000031000000106%2Fversion%2F20190807&property=*

I get many entries back with valueCode e.g.

<parameter>
<name value="property"/>
<part>
<name value="code"/>
<valueCode value="parent"/>
</part>
<part>
<name value="value"/>
<valueCode value="8653601000001108"/>
</part>
</parameter>

Is it possible to alter the query to return valueCoding? At the moment I'm going many queries just to return the display of the code.

Is it possible to return the relationship also?

view this post on Zulip Kevin Mayfield (Dec 15 2020 at 11:07):

For example in this extract, I get back 'parent'
but I think the real relationship is 'isA'
image.png

view this post on Zulip Kevin Mayfield (Dec 15 2020 at 11:08):

as in
image.png

view this post on Zulip Lin Zhang (Dec 15 2020 at 14:37):

Customize the output parameters?

view this post on Zulip Kevin Mayfield (Dec 16 2020 at 06:56):

Is that possible?

view this post on Zulip Richard Kavanagh (Dec 16 2020 at 15:22):

If all you want is the display, then try a different operation - https://ontoserver.dataproducts.nhs.uk/fhir/CodeSystem/$validate-code?code=2881111000001108&url=http%3A%2F%2Fsnomed.info%2Fsct&version=http%3A%2F%2Fsnomed.info%2Fsct%2F999000031000000106%2Fversion%2F20190807

view this post on Zulip Kevin Mayfield (Dec 16 2020 at 15:49):

I'm using $lookup with property=display e.g. https://ontoserver.dataproducts.nhs.uk/fhir/CodeSystem/$lookup?code=12299211000001109&system=http%3A%2F%2Fsnomed.info%2Fsct&version=http%3A%2F%2Fsnomed.info%2Fsct%2F999000031000000106%2Fversion%2F20190807&property=display

The main issue is the number of valueCodes returned in the first query. I'm often looking up well over 10 codes for each drug returned.

view this post on Zulip Kevin Mayfield (Dec 16 2020 at 15:51):

My app which shows this is https://kevinmayfield.github.io/dmdbrowser/13824711000001105
If you use developer tools to inspect the network traffic - you'll see 23 queries, that could possibly be reduced to two.

view this post on Zulip Michael Lawley (Dec 16 2020 at 22:50):

parent is definitely the correct property -- hierarchy is conformed in FHIR CodeSystems to the parent/child properties (otherwise every code system could have a different name for the same semantics)

view this post on Zulip Michael Lawley (Dec 16 2020 at 22:57):

Since this is SNOMED, a simple way to get back all the displays of these relationship codes is to use ECL.
Specifically, https://ontoserver.dataproducts.nhs.uk/fhir/ValueSet/$expand?url=http://snomed.info/sct/999000031000000106/version/20190807?fhir_vs=ecl/2881111000001108.* and if you also want the immediate parent concepts, then the ECL would be 2881111000001108.* OR >!2881111000001108


Last updated: Apr 12 2022 at 19:14 UTC