Recently, I saw Questionnaire definition came long with LOINC Code, so I wonder if those definitions are available in the Release files or not (I am checking the file content right now, but still want to ask just in case).
Hello @nhphong, within the Accessory Files folder of our release, there is a PanelsAndForms artifact which contains these collections. Is this what you are looking for?
Thanks a lot @timbriscoe . Could you also point me to any API that sends the same data?
I did hit the API that you directed to in your previous response, but received only 947 unique codes from item/code/code and code/code keys here: https://fhir.loinc.org/Questionnaire?_format=json, whereas 91993 unique LOINC codes are present under column F of “Panels and Forms.csv”.
Is the API response not fully updated yet? Or is there any limit set by default? I did not see any changes in the code set when I set a much larger limit to the API call explicitly (like 100000).
If I want to maintain a consistent database for my own organization that stores all the distinct questionnaire LOINC codes, what should be the best way forward if this reported inconsistency persists?
Hello again @achattopadhyay. This is a great question. The difference ultimately is structure. The PanelsAndForms.csv file contains all parents and their children of all LOINCs which have a hierarchical structure. These relationships can be rebuilt using this flat file. That’s why you see many rows in it.
The FHIR API endpoint should return the parents with the children represented underneath each. I believe that is why the counts are different. There may be a few items filtered out from our Questionnaire resource.
I would suggest using the PanelsAndForms.csv artifact as the go-to source. Our Terminology Service/API using FHIR has a Beta status and may change, especially with regard to Questionnaire. You may get non-survey content from the CSV file but you can filter that out.
Thanks for the clarity @timbriscoe. I am a Software dev and don’t have much knowledge about the codes. So I cannot distinguish between the survey codes and the non-survey ones. Can you help me with a filter that could provide me the complete set of just the Questionnaire codes (all the parents and their children included) from the CSV file?
As mentioned previously, I believe the PanelsAndForms.csv file is what you need. If you need to filter this further, I would join the data set with the contents of Loinc.csv and use the data in the CLASS column. CLASS values can be very detailed.
I need the complete set of “Patient Health Querstionnaire” (PHQ) codes - all panels, individual screening questions and the codes representing total scores included. I don’t need the LOINC lists or LOINC answers in this set. Also, I do not need any questionnaires the are not categorized as “Patient Health” questionnaires. Which values under CLASS or any other column should I be looking for in that case?
In the Hierarchy Browser, you can view the Class hierarchy and narrow down Clinical Categories to Survey Instruments. You can also use SearchLOINC to find appropriate assessments, e.g. search for “PHQ” to see its underlying classes (SURVEY.PHQ and PANEL.SURVEY.PHQ).
Once you define your candidates by CLASS, you can use PanelsAndForms.csv and/or FHIR Questionnaire resource to get the members for each candidate LOINC.