Skip to content

Commit 79b8268

Browse files
committed
update datadoc model
move pseudonymization information into datadoc variables
1 parent 67558c3 commit 79b8268

File tree

2 files changed

+48
-121
lines changed

2 files changed

+48
-121
lines changed

src/datadoc/datadoc-json-schema.json

Lines changed: 48 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"document_version": {
1212
"description": "Version of this model",
13-
"const": "4.0.0"
13+
"const": "5.0.0"
1414
},
1515
"dataset": {
1616
"type": "object",
@@ -213,6 +213,12 @@
213213
"description": "The data set contains data up until date/time",
214214
"type": "string",
215215
"format": "date"
216+
},
217+
"pseudonymization_time": {
218+
"title": "Dataset pseudo time",
219+
"description": "Time at which the dataset was pseudonymized. In ISO 8601 format.",
220+
"type": "string",
221+
"format": "date-time"
216222
}
217223
},
218224
"required": [
@@ -290,12 +296,47 @@
290296
},
291297
"is_personal_data": {
292298
"title": "Is personal data",
293-
"description": "A description of whether the variable instance is personal data and, if so, whether it is pseudonymised/encrypted or non-pseudonymised/encrypted (directly identifiable).",
294-
"type": "string",
295-
"enum": [
296-
"NOT_PERSONAL_DATA",
297-
"PSEUDONYMISED_ENCRYPTED_PERSONAL_DATA",
298-
"NON_PSEUDONYMISED_ENCRYPTED_PERSONAL_DATA"
299+
"description": "Whether or not the variable is personal data.",
300+
"type": "boolean"
301+
},
302+
"pseudonymization": {
303+
"type": "object",
304+
"description": "A pseudonymized variable in the dataset.",
305+
"properties": {
306+
"stable_identifier_type": {
307+
"type": "string",
308+
"title": "Stable identifier type",
309+
"description": "Type of stable identifier the variable was mapped to prior to pseudonymization.",
310+
"$comment": "Only relevant when the variable is mapped to a stable identifier."
311+
},
312+
"stable_identifier_version": {
313+
"type": "string",
314+
"title": "Stable identifier version",
315+
"description": "Version of stable identifier the variable was mapped to prior to pseudonymization.",
316+
"$comment": "Only relevant when the variable is mapped to a stable identifier."
317+
},
318+
"encryption_algorithm": {
319+
"type": "string",
320+
"title": "Encryption algorithm",
321+
"description": "The encryption algorithm used to pseudonymize the variable."
322+
},
323+
"encryption_key_reference": {
324+
"type": "string",
325+
"title": "Encryption key reference",
326+
"description": "Name of or reference to the encryption key used to pseudonymize the variable."
327+
},
328+
"encryption_algorithm_parameters": {
329+
"type": "array",
330+
"items": {
331+
"type": "object"
332+
},
333+
"title": "Encryption algorithm parameters",
334+
"description": "Parameters supplied to the encryption algorithm."
335+
}
336+
},
337+
"required": [
338+
"encryption_algorithm",
339+
"encryption_key_reference"
299340
]
300341
},
301342
"data_source": {

src/pseudonymization/pseudonymization-json-schema.json

Lines changed: 0 additions & 114 deletions
This file was deleted.

0 commit comments

Comments
 (0)