Home › Forums › LOINC FHIR Terminology Server › Expand implicit ValueSet to get all terms having a specific part as ancestor
- This topic has 4 replies, 2 voices, and was last updated 8 months, 4 weeks ago by
François Macary.
-
AuthorPosts
-
2021-11-03 at 12:06 #466922
François Macary
ParticipantFrom the specification “Using LOINC with FHIR”, section 4.3.3.10 “Implicit value sets”, sub-section 4.3.3.10.2 “Multi-Axial Hierarchy”, I understand that all LOINC terms having part LP31755-9 (Microbiology) should be obtainable through an expand of this implicit value set:
https://fhir.loinc.org/ValueSet/$expand?url=http://loinc.org/vs/LP31755-9
LOINC’s FHIR terminology server returns this result instead:
<div id=”line1″><span class=”hlControl” style=”color: #660000;”>{</span></div>
<div id=”line2″> <span class=”hlTagName” style=”color: #006699;”>”resourceType”</span>: <span class=”hlQuot” style=”color: #8888ff;”>”OperationOutcome”</span><span class=”hlControl” style=”color: #660000;”>,</span></div>
<div id=”line3″> <span class=”hlTagName” style=”color: #006699;”>”issue”</span>: <span class=”hlControl” style=”color: #660000;”>[</span> <span class=”hlControl” style=”color: #660000;”>{</span></div>
<div id=”line4″> <span class=”hlTagName” style=”color: #006699;”>”severity”</span>: <span class=”hlQuot” style=”color: #8888ff;”>”error”</span><span class=”hlControl” style=”color: #660000;”>,</span></div>
<div id=”line5″> <span class=”hlTagName” style=”color: #006699;”>”code”</span>: <span class=”hlQuot” style=”color: #8888ff;”>”processing”</span><span class=”hlControl” style=”color: #660000;”>,</span></div>
<div id=”line6″> <span class=”hlTagName” style=”color: #006699;”>”diagnostics”</span>: <span class=”hlQuot” style=”color: #8888ff;”>”Unknown ValueSet: http%3A%2F%2Floinc.org%2Fvs%2FLP31755-9″</span></div>
<div id=”line7″> <span class=”hlControl” style=”color: #660000;”>}</span> ]</div>
<div id=”line8″><span class=”hlControl” style=”color: #660000;”>}</span></div>
Could you tell me why? Thank you.2021-11-03 at 13:14 #466924François Macary
ParticipantHere is a more readable view of the result above:
2021-11-03 at 13:18 #466925Tim Briscoe
KeymasterFrançois,
I apologize for the formatting issues of this forum. I believe this is the readable view you were attempting to post.
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "processing", "diagnostics": "Unknown ValueSet: http%3A%2F%2Floinc.org%2Fvs%2FLP31755-9" } ] }
I am working on a reply to your original issue and hope to have it posted here soon.
-
This reply was modified 9 months, 1 week ago by
Tim Briscoe.
2021-11-04 at 14:13 #466929Tim Briscoe
KeymasterHello François,
I see a few potential issues here. The first is with regard to the functionality specified by HL7 at https://www.hl7.org/fhir/loinc.html. The ValueSet for Multi-Axial Hierarchy entries ( http://loinc.org/vs/%5Bpartcode%5D ) is not available within LOINC’s Terminology Service (TS) using FHIR, fhir.loinc.org. Our TS uses SmileCDR (HAPI-FHIR) and this functionality does not seem to be implemented here.
Also, the Part code you provided ( LP31755-9 ) is not an entry in LOINC’s Multi-Axial Hierarchy (MAH). It is a Component Part for Microbiology. The MAH Part for Microbiology is LP7819-8. You can get this Part’s parent/child relationships at:
https://fhir.loinc.org/CodeSystem/$lookup?system=http://loinc.org&code=LP7819-8
However, this does not provide what I believe you want: LOINC codes for microbiology lab tests. I do not think this is presently available through a programmatic means.
I tried using a filtered expansion of the implicit value set but this does not provide the desired result.
https://fhir.loinc.org/ValueSet/$expand?url=http://loinc.org/vs&filter=LP7819-8
Perhaps I have the syntax wrong and someone else can provide us some insight. Until then, you can retrieve and export a list of micro terms via SearchLOINC. I realize this is not the same as an API request but I hope it will help until we resolve the issue of the missing MAH Part value sets.
https://loinc.org/search/?t=1&s=class%3Amicro
Best regards,
Tim2021-11-15 at 02:25 #466950François Macary
ParticipantThank you Tim, for the 3 issues explained.
-
This reply was modified 9 months, 1 week ago by
-
AuthorPosts
- You must be logged in to reply to this topic.