IHTSDO / snowstorm

Scalable SNOMED CT Terminology Server using Elasticsearch
Other
203 stars 80 forks source link

$translate in reverse #315

Open alastairkenworthy opened 3 years ago

alastairkenworthy commented 3 years ago

I have the following SCT-to-Readv2 concept map lookup working https://snomednz.digital.health.nz/fhir/ConceptMap/$translate?&code=195080001&system=http://snomed.info/sct&source=http://snomed.info/sct?fhir_vs&target=http://snomed.info/sct?fhir_vs&reverse=true&url=http://snomed.info/sct/21000210109/version/20210401?fhir_cm=31000210106 but how do I reverse the query so that the Readv2 code is the input (eg, G573.00) and SCT the output? Does Snowstorm support such a reverse map lookup and what would a query look like?

pgwilliams commented 3 years ago

Hi @alastairkenworthy I've not visited this code for some time, and looking at it now I can see that the validation that's been applied is too specific to the International Edition with 'knownTargets' that don't allow for flexible configuration. I'll raise a ticket to allow any CodeSystem to be mapped, if a refset Id is supplied. The reverse flag should not be required in this case because the map is from Read2 -> SNOMED. MAINT-1729 raised.

alastairkenworthy commented 3 years ago

Thanks @pgwilliams - that will be very useful to us