---
id: "loinc"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["medical"]
langs: ["common"]
quality: 80
url: "http://registry.apicrafter.io/datatype/loinc"
---

# LOINC code (`loinc`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Code of a laboratory test, clinical observation or document type in LOINC (Logical Observation Identifiers Names and Codes): digits, a hyphen and a check digit. Regenstrief Institute maintains it. Part and answer codes (LP, LA prefixes) are not covered.

- Personal data (PII): no
- Categories: Medical/pharma identifiers (medical)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^\d{1,7}-\d$
```

## Examples

- `41995-2` — glycated haemoglobin
- `69723-5` — Patient Health Questionnaire

## Mappings

- bioregistry: `loinc`
- wikidata: `P4338`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/LOINC>
- doc: <https://loinc.org/>
- wikidata: <https://www.wikidata.org/wiki/Property:P4338>

## Quality

Score 80/100. Missing: negative example, translation, detector coverage.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/loinc.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/medical/loinc.yaml>
