---
id: "ch_hrm2_account"
kind: "datatype"
status: "draft"
is_pii: false
name: "Swiss HRM2 account group (Sachgruppe)"
regexp: "^[1-69]\\d{0,3}(?:\\.\\d{2})?$"
categories: ["finances", "government"]
country: ["CH"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/ch_hrm2_account"
---

# Swiss HRM2 account group (Sachgruppe) (`ch_hrm2_account`)

> **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 the chart of accounts of HRM2 (Harmonisiertes Rechnungslegungsmodell 2), the accounting model of the Swiss cantons and municipalities. The first digit is the account class: 1 assets, 2 liabilities and equity, 3 expenses, 4 revenue, 5 investment expenditure, 6 investment receipts, 9 closing accounts. Each further digit narrows the group (30 personnel expenses, 300 authorities and commissions, 3000 wages of authorities and judges); groups of one to four digits are the same for all public bodies, and a body may add two digits after a dot or its own longer account numbers below them. Budgets and accounts published as open data give the code alone or followed by its label.

- Personal data (PII): no
- Categories: Finances and banking (finances), Government related (government)
- Countries: Switzerland (CH)
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[1-69]\d{0,3}(?:\.\d{2})?$
```

## Examples

- `3` — Account class: expenses (Aufwand)
- `30` — Personnel expenses (Personalaufwand)
- `3010` — Wages of administrative and operating staff
- `3000.00` — A detail account of group 3000
- `7000` (invalid example) — there is no account class 7
- `30100` (invalid example)

## Metacrafter rules

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

- `chhrm2accountbyname` (field, `ch/ch_codes.yaml`)

## Supported by tools

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

## Translations

- de: HRM2-Sachgruppe (Kontenrahmen der Kantone und Gemeinden)
- ru: Группа счетов HRM2 (план счетов кантонов и коммун Швейцарии)

## Sources

- doc: <https://www.sz.ch/public/upload/assets/61679/Kontenrahmen_Erfolgsrechnung.pdf?fp=12>

## Quality

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

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