Loinc.Cli is a command line tool to access and use the LOINC FHIR Terminology Server published and managed by loinc.org. As described on their site,
LOINC is a common language (set of identifiers, names, and codes) for identifying health measurements, observations, and documents. The overall scope of LOINC is anything you can test, measure, or observe about a patient.
Loinc.Cli is built on .NET 6 that you can download here. Clone this repo, go to the src directory, and run
dotnet build
Then you can run the executable in the bin directory.
To connect to the LOINC server, you need credentials for loinc.org; you can sign up for credentials here. The CLI retrieves these credentials from two environment variables:
LOINC_USER_NAME=<username>
LOINC_PASSWORD=<password>
Tests are in the /test directory and require setting up the same environment variables. The project references an .env file that you will have to create yourself and add the environment variables above.