-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbasic_demographics_ddb.dischema.json
More file actions
51 lines (50 loc) · 1.53 KB
/
basic_demographics_ddb.dischema.json
File metadata and controls
51 lines (50 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"contract": {
"datasets": {
"demographics": {
"fields": {
"Key": "NonNegativeInt",
"NHS_Number": "nhsnumber",
"NHS_Number_Valid": "str",
"Forename": "str",
"Surname": "str",
"Date_Of_Birth": "date",
"Postcode": {
"callable": "postcode"
},
"Postcode_Country": "str",
"Postcode_Format_Valid": "str",
"Postcode_Valid": "str"
},
"reader_config": {
".csv": {
"reader": "DuckDBCSVReader"
}
},
"mandatory_fields": [
"Key",
"NHS_Number",
"NHS_Number_Valid",
"Forename",
"Surname",
"Date_Of_Birth",
"Postcode",
"Postcode_Country",
"Postcode_Format_Valid",
"Postcode_Valid"
]
}
}
},
"transformations": {
"filters": [
{
"entity": "demographics",
"name": "NHS_number_valid",
"expression": "NHS_Number_Valid=='TRUE'",
"error_code": "BAD_NHS",
"failure_message": "NHS number must be valid"
}
]
}
}