LOINC API
Look up LOINC codes for laboratory and clinical observations.
Overview
LOINC (Logical Observation Identifiers Names and Codes) is the universal standard for identifying laboratory and clinical observations. FHIRfly provides fast lookups against the Regenstrief LOINC database.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /v1/loinc/:code | Single LOINC lookup |
| POST | /v1/loinc/_batch | Batch LOINC lookup (up to 100) |
| GET | /v1/loinc/shapes | List available response shapes |
Single Lookup
Look up Glucose in Blood test
Request
curl -X GET "https://api.fhirfly.io/v1/loinc/2339-0" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Response
LOINC Code Format
LOINC codes follow the format NNNNN-N (e.g., 2339-0):
- First part: 1-5 digits
- Hyphen
- Check digit
LOINC Code Parts
| Part | Description |
|---|---|
| Component | What is measured (e.g., Glucose) |
| Property | Type of measurement (e.g., MCnc = Mass concentration) |
| Time | Point in time vs interval |
| System | Specimen type (e.g., Bld = Blood) |
| Scale | Quantitative, Ordinal, Nominal |
| Method | How measured (optional) |
Batch Lookup
Look up multiple LOINC codes in a single request (up to 100):
Look up multiple lab tests
Request
curl -X POST "https://api.fhirfly.io/v1/loinc/_batch" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"codes": [
"2339-0",
"718-7",
"2160-0"
]
}'Response
Response Shapes
Control the level of detail in responses with the shape query parameter:
| Shape | Description |
|---|---|
compact | Code, display_name, shortname, class, component |
standard | + long_name, parts, status, units, fhir_coding |
full | + version info, ranks, source_org |
# Minimal data
GET /v1/loinc/2339-0?shape=compact
# Standard data (default)
GET /v1/loinc/2339-0?shape=standard
# Full data with provenance
GET /v1/loinc/2339-0?shape=full
See Response Shapes for field details.
License Notice
LOINC data requires attribution. See the meta.legal field in responses for citation requirements.
Required Scopes
loinc:read- Single lookupsloinc:batch- Batch lookups