From 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:
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/[partcode] ) 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:
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.
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.