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

# Human Metabolome Database ID (`hmdb_id`)

> **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.

Accession of a metabolite in the Human Metabolome Database: HMDB and a number, five digits in old accessions and seven in current ones.

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

## Detection

Regular expression (Python `re`):

```
^HMDB\d+$
```

## Examples

- `HMDB0034235` — 2-pentanone
- `HMDB0002111` — water

## Mappings

- bioregistry: `hmdb`
- wikidata: `P2057`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Human_Metabolome_Database>
- doc: <https://hmdb.ca/>
- wikidata: <https://www.wikidata.org/wiki/Property:P2057>

## Quality

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

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