-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathcommon-schema.json
85 lines (84 loc) · 1.93 KB
/
common-schema.json
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"@context": "http://qiicr.org/dcmqi/contexts/dcmqi.jsonld",
"id" : "https://raw.githubusercontent.com/qiicr/dcmqi/master/doc/schemas/common-schema.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions" : {
"PN" : {
"type" : "string",
"maxLength" : 64
},
"CS" : {
"type" : "string",
"maxLength" : 16
},
"IS" : {
"type" : "string",
"maxLength" : 12
},
"DS" : {
"type" : "string",
"maxLength" : 16,
"pattern": "^( )*(-|\\+)?[0-9]*(.[0-9]+)?((e|E)(-|\\+)?[0-9]+)?( )*$"
},
"LO" : {
"type" : "string",
"maxLength" : 64
},
"SH" : {
"type" : "string",
"maxLength" : 64
},
"FD": {
"type" : "string",
"maxLength" : 16,
"pattern": "^( )*(-|\\+)?[0-9]*(.[0-9]+)?((e|E)(-|\\+)?[0-9]+)?( )*$"
},
"US": {
"type": "integer",
"minimum" : 0,
"maximum": 2E+16
},
"UT": {
"type": "string"
},
"UI": {
"type": "string",
"pattern": "[0-9\\.]*"
},
"RGB": {
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"minItems": 3,
"maxItems": 3
},
"CIELab": {
"type": "array",
"items": {
"$ref": "#/definitions/US"
},
"minItems": 3,
"maxItems": 3
},
"codeSequence" : {
"type" : "object",
"additionalProperties": false,
"required" : ["CodeValue","CodingSchemeDesignator","CodeMeaning"],
"properties" : {
"CodeValue" : { "$ref": "#/definitions/SH", "default" : "85756007"},
"CodingSchemeDesignator" : { "$ref": "#/definitions/SH", "default" : "SCT"},
"CodeMeaning" : { "$ref": "#/definitions/LO", "default" : "Tissue"}
}
},
"dicomInstancesFileNameList" : {
"type" : "array",
"minItems": 1,
"items" : {
"type": "string"
}
}
}
}