IHTSDO / snowstorm

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

Question: Trying to get Questions/Answer list of LOINC code #618

Open babysarojini opened 1 month ago

babysarojini commented 1 month ago

Hi,

After uploading the LOINC Terminology i am able to get details of particular code with below API

Eg: 57698-3 is for Lipid panel with direct LDL - Serum or Plasma

http://144.76.65.203:8080/fhir/CodeSystem/$lookup?system=http://loinc.org&code=57698-3 (i am getting details of code)

  1. Next i want to get hierarchy/questions for the code 57698-3 using an API..how i can get ?
  2. i also want to search with term on LOINC terminology url like "filter=lipids" same like in snomed url [http://localhost:8080/fhir/ValueSet/$expand?url=http://snomed.info/sct?fhir_vs=ecl/<<763158003&filter=Aspirin]

Please help..

babysarojini commented 1 month ago

any reply to above pls...

pgwilliams commented 4 weeks ago

https://loinc.org/57698-3

When we talk about about hierarchy in SNOMED CT, we're always talking about a parent-child/subtype relationship. The relationship between a panel and its questions is more like a "contains" relationship. I'm just looking up how LOINC themselves approach this. Did you look at their FHIR server? They've a test instance available if you apply for a free username/password. See https://loinc.org/news/loincs-new-fhir-server-provides-programmatic-access-to-loinc-content/

It looks like LOINC are providing their answer lists as ValueSets based on a URI containing the owing code: https://terminology.hl7.org/LOINC.html#loinc-answer-lists I don't see anything about Panels on that page.

Sorry @babysarojini, this is way deeper into how LOINC works with FHIR, than it is a SNOMED question. I'll tag @kaicode in case he'd like to add anything.

kaicode commented 3 weeks ago

That first example LOINC code lookup returns many properties. Some of those may be relevant. There is a guide for LOINC FHIR here: https://loinc.org/fhir/ Much of that functionality is supported by Snowstorm, but not all.

Snowstorm supports searching over any CodeSystem type using an implicit ValueSet using {code-system-url}?fhir_vs. For example: ValueSet/$expand?url=http://loinc.org?fhir_vs&filter=lipids.