---
id: "se_diarienummer"
kind: "datatype"
status: "draft"
is_pii: false
name: "Swedish registry number (diarienummer)"
regexp: "^[A-Za-zÅÄÖåäö]{1,6}[ -]?\\d{2,6}[-/:]\\d{2,6}$"
categories: ["government", "legal"]
country: ["SE"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/se_diarienummer"
---

# Swedish registry number (diarienummer) (`se_diarienummer`)

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

Number under which a Swedish public authority registers a case in its diary (diarium): in most authorities letters of the board or unit, the year and a running number, as in BN 2018-01115 (building committee of Umeå) or KS 2020/123. The order and the separators differ between authorities: the Swedish Environmental Protection Agency writes NV-01017-13, with the year last. Public registers of decisions and permits give it in columns named diarienr or diarienummer.

- Personal data (PII): no
- Categories: Government related (government), Legal and compliance (legal)
- Countries: Sweden (SE)
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[A-Za-zÅÄÖåäö]{1,6}[ -]?\d{2,6}[-/:]\d{2,6}$
```

## Examples

- `BN 2018-01115` — building committee, year and number
- `NV-01017-13` — Environmental Protection Agency, number and year
- `KS 2020/123` — municipal executive board
- `Ks-2021/00154` — municipal executive board of Umeå, as its land register writes it
- `2018-01115` (invalid example) — without the letters

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `sediarienummerbyname` (field, `se/se_codes.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- sv: Diarienummer
- ru: Регистрационный номер дела (Швеция, diarienummer)

## Sources

- wikipedia: <https://sv.wikipedia.org/wiki/Diarienummer>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/se_diarienummer.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/SE/government/se_diarienummer.yaml>
