Authentication

Home Forums LOINC FHIR Terminology Server Authentication

Viewing 8 posts - 16 through 23 (of 23 total)
  • Author
    Posts
  • #455723
    Daniel Mbeyah
    Participant

    Hi Tim,

    I have tried the solution mentioned above but still get a 401. I suspect something might be wrong with my account settings. Could you please check it out?

     

    This is my curl request:

    curl -X GET -u danmbeyah ‘https://fhir.loinc.org/CodeSystem/$lookup?system=http://loinc.org&code=4544-3’ –header ‘Content-Type:application/fhir+json’

    #455724
    Daniel Mbeyah
    Participant

    Hi Tim,

    Never mind, I got it to work. Thanks!

    #462246
    Sivanersen Naidoo
    Participant

    Hi Tim. How do I access the LOINC panels using python with my login credentials? I see from above it only requires username and not password? I am trying to download all panel templates. I am new to fhir

    #462247
    Tim Briscoe
    Keymaster

    Hi Sivanersen,

    You will want to use FHIR Questionnaire resource endpoint, i.e. https://fhir.loinc.org/Questionnaire. You can refer to https://loinc.org/fhir/#questionnaire for more information.

    Tim

    #462266
    Michael K Martin
    Participant

    I had similar difficulty doing a simple little LOINC FHIR app in Java.  The trick was to implement the generic “Basic Authentication” process in raw Java.  I assume it is very similar in Python.  I found https://stackoverflow.com/questions/6999565/python-https-get-with-basic-authentication that looks exactly the the way I did it with Java.

    I apologize in advance if your question was really at the higher level.

    Mike

    #462267
    Tim Briscoe
    Keymaster

    This is good info. Thank you, Dr. Martin. Sivanersen, please let us know if you need further assistance.

    #462268
    Sivanersen Naidoo
    Participant

    Hi Tim and Michael. I have tried your approaches but still struggling with authentication in Python. My main objective is to download into csv format a list of all panel names and loinc panel code in 2 columns and associate each of of those panels with a loinc code for each test, so that I can pull each code for any loinc display name e.g. I would like to pull the loinc code for  WBC from the correct hematology panel e.g. CBC W Auto Differential. I also tried postman but postman makes it difficult to extract in csv format and RELMA seems to mix up the text fields when pulling to csv. My apologies for the trouble. I am still learning the LOINC system. I will figure it out eventually but some guidance at this point may be appreciated. kind regards.

    #462271
    Tim Briscoe
    Keymaster

    Sounds like you may want to skip the API (at least for now) and try consuming our Panels and Forms artifact. It’s already in CSV format. The following page describes the file in great detail.

    https://loinc.org/panels-and-forms/

    Let us know how it goes.

Viewing 8 posts - 16 through 23 (of 23 total)
  • You must be logged in to reply to this topic.