Stream: terminology
Topic: Ontoserver valueCoding instead of valueCode
Kevin Mayfield (Dec 15 2020 at 11:04):
When I run this query
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?
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
Kevin Mayfield (Dec 15 2020 at 11:08):
as in
image.png
Lin Zhang (Dec 15 2020 at 14:37):
Customize the output parameters?
Kevin Mayfield (Dec 16 2020 at 06:56):
Is that possible?
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
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.
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.
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)
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