Skip to content

Commit dbb181c

Browse files
authored
Merge pull request #96 from statisticsnorway/derive-external
Inital setup
2 parents 152a270 + 44a59e5 commit dbb181c

File tree

4 files changed

+38
-20
lines changed

4 files changed

+38
-20
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ssb-nudb-config"
3-
version = "2026.2.9" # Year.Month.Patch - So the last number is not day of month, but patch number within month
3+
version = "2026.2.11" # Year.Month.Patch - So the last number is not day of month, but patch number within month
44
description = "The config for NUDB - Nasjonal utdanningsdatabase"
55
authors = [{ name = "Markus Storeide", email = "rku@ssb.no" }]
66
maintainers = [{ name = "Statistics Norway, Education statistics Department (360)" }]

src/nudb_config/config_tomls/variables.toml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,6 @@ variables_sort_unit = [
4141
klass_codelist = 0 # This means that the variable is never supposed to have a klass_codelist or klass_variant or similar.
4242

4343

44-
[variables.pers_kjoenn]
45-
unit = "pers"
46-
dtype = "STRING"
47-
description_short = "kjønn"
48-
length = [1]
49-
klass_codelist = 2
50-
renamed_from = ["kjoenn"]
51-
5244
#################
5345
# Datavariabler #
5446
#################
@@ -72,14 +64,6 @@ variables_sort_unit = [
7264
# Tidskolonner #
7365
################
7466

75-
[variables.pers_foedselsdato]
76-
unit = "tid"
77-
dtype = "DATETIME"
78-
description_short = "fødselsdato"
79-
renamed_from = ["fodt_dato", "fodtdato", "fodselsdato", "foedselsdato"]
80-
klass_codelist = 0 # This means that the variable is never supposed to have a klass_codelist or klass_variant or similar.
81-
82-
8367

8468
[variables.utd_aktivitet_start]
8569
unit = "tid"
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[variables.pers_kjoenn]
2+
unit = "pers"
3+
dtype = "STRING"
4+
description_short = "kjønn"
5+
length = [1]
6+
klass_codelist = 2
7+
renamed_from = ["kjoenn"]
8+
derived_from = ["snr"]
9+
derived_join_keys = ["snr"]
10+
derived_uses_datasets = ["freg_situttak"]
11+
12+
13+
[variables.pers_foedselsdato]
14+
unit = "tid"
15+
dtype = "DATETIME"
16+
description_short = "fødselsdato"
17+
renamed_from = ["fodt_dato", "fodtdato", "fodselsdato", "foedselsdato"]
18+
klass_codelist = 0 # This means that the variable is never supposed to have a klass_codelist or klass_variant or similar.
19+
derived_from = ["snr"]
20+
derived_join_keys = ["snr"]
21+
derived_uses_datasets = ["freg_situttak"]
22+
23+
24+
[variables.pers_invkat]
25+
unit = "pers"
26+
dtype = "STRING"
27+
description_short = "innvandringskategori"
28+
length = [1]
29+
renamed_from = ["invkat"]
30+
klass_codelist = 82
31+
derived_from = ["snr"]
32+
derived_join_keys = ["snr"]
33+
derived_uses_datasets = ["innvbef"]

src/nudb_config/config_tomls/variables_label.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
dtype = "STRING"
99
derived_from = ["utd_datakilde"]
1010

11-
12-
13-
11+
[variables.pers_invkat_label]
12+
unit = "pers"
13+
dtype = "STRING"
14+
derived_from = ["pers_invkat"]
1415

1516
#############################
1617
# Fagvariabler / nuskatalog #

0 commit comments

Comments
 (0)