nci-cidc-schemas 0.26.37__py2.py3-none-any.whl → 0.27.0__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of nci-cidc-schemas might be problematic. Click here for more details.

Files changed (24) hide show
  1. cidc_schemas/__init__.py +1 -1
  2. cidc_schemas/json_validation.py +43 -0
  3. cidc_schemas/prism/merger.py +17 -8
  4. cidc_schemas/schemas/clinical_trial.json +3 -7
  5. cidc_schemas/schemas/participant.json +1 -3
  6. cidc_schemas/schemas/sample.json +178 -44
  7. cidc_schemas/schemas/shipping_core.json +74 -34
  8. cidc_schemas/schemas/templates/manifests/h_and_e_template.json +109 -13
  9. cidc_schemas/schemas/templates/manifests/microbiome_dna_template.json +111 -11
  10. cidc_schemas/schemas/templates/manifests/normal_blood_dna_template.json +102 -12
  11. cidc_schemas/schemas/templates/manifests/normal_tissue_dna_template.json +109 -13
  12. cidc_schemas/schemas/templates/manifests/pbmc_template.json +102 -93
  13. cidc_schemas/schemas/templates/manifests/plasma_template.json +101 -91
  14. cidc_schemas/schemas/templates/manifests/tissue_slide_template.json +109 -13
  15. cidc_schemas/schemas/templates/manifests/tumor_tissue_dna_template.json +109 -13
  16. cidc_schemas/schemas/templates/manifests/tumor_tissue_rna_template.json +109 -13
  17. cidc_schemas/template.py +1 -1
  18. cidc_schemas/unprism.py +4 -0
  19. {nci_cidc_schemas-0.26.37.dist-info → nci_cidc_schemas-0.27.0.dist-info}/METADATA +27 -16
  20. {nci_cidc_schemas-0.26.37.dist-info → nci_cidc_schemas-0.27.0.dist-info}/RECORD +24 -24
  21. {nci_cidc_schemas-0.26.37.dist-info → nci_cidc_schemas-0.27.0.dist-info}/WHEEL +1 -1
  22. {nci_cidc_schemas-0.26.37.dist-info → nci_cidc_schemas-0.27.0.dist-info}/LICENSE +0 -0
  23. {nci_cidc_schemas-0.26.37.dist-info → nci_cidc_schemas-0.27.0.dist-info}/entry_points.txt +0 -0
  24. {nci_cidc_schemas-0.26.37.dist-info → nci_cidc_schemas-0.27.0.dist-info}/top_level.txt +0 -0
@@ -41,16 +41,16 @@
41
41
  "type_ref": "shipping_core.json#properties/tracking_number",
42
42
  "allow_empty": true
43
43
  },
44
- "account number": {
45
- "merge_pointer": "/account_number",
46
- "type_ref": "shipping_core.json#properties/account_number",
47
- "allow_empty": true
48
- },
49
44
  "shipping condition": {
50
45
  "merge_pointer": "/shipping_condition",
51
46
  "type_ref": "shipping_core.json#properties/shipping_condition",
52
47
  "allow_empty": true
53
48
  },
49
+ "shipping condition other": {
50
+ "merge_pointer": "/shipping_condition_other",
51
+ "type_ref": "shipping_core.json#properties/shipping_condition_other",
52
+ "allow_empty": true
53
+ },
54
54
  "date shipped": {
55
55
  "merge_pointer": "/date_shipped",
56
56
  "type_ref": "shipping_core.json#properties/date_shipped",
@@ -66,14 +66,89 @@
66
66
  "type_ref": "shipping_core.json#properties/quality_of_shipment",
67
67
  "allow_empty": true
68
68
  },
69
- "ship from": {
70
- "merge_pointer": "/ship_from",
71
- "type_ref": "shipping_core.json#properties/ship_from",
69
+ "ship from sender person name": {
70
+ "merge_pointer": "/ship_from_sender_person_name",
71
+ "type_ref": "shipping_core.json#properties/ship_from_sender_person_name",
72
+ "allow_empty": true
73
+ },
74
+ "ship from sender email": {
75
+ "merge_pointer": "/ship_from_sender_email",
76
+ "type_ref": "shipping_core.json#properties/ship_from_sender_email",
72
77
  "allow_empty": true
73
78
  },
74
- "ship to": {
75
- "merge_pointer": "/ship_to",
76
- "type_ref": "shipping_core.json#properties/ship_to",
79
+ "ship from sender phone": {
80
+ "merge_pointer": "/ship_from_sender_phone",
81
+ "type_ref": "shipping_core.json#properties/ship_from_sender_phone",
82
+ "allow_empty": true
83
+ },
84
+ "ship from name": {
85
+ "merge_pointer": "/ship_from_name",
86
+ "type_ref": "shipping_core.json#properties/ship_from_name",
87
+ "allow_empty": true
88
+ },
89
+ "ship from street1": {
90
+ "merge_pointer": "/ship_from_street1",
91
+ "type_ref": "shipping_core.json#properties/ship_from_street1",
92
+ "allow_empty": true
93
+ },
94
+ "ship from street2": {
95
+ "merge_pointer": "/ship_from_street2",
96
+ "type_ref": "shipping_core.json#properties/ship_from_street2",
97
+ "allow_empty": true
98
+ },
99
+ "ship from city": {
100
+ "merge_pointer": "/ship_from_city",
101
+ "type_ref": "shipping_core.json#properties/ship_from_city",
102
+ "allow_empty": true
103
+ },
104
+ "ship from state": {
105
+ "merge_pointer": "/ship_from_state",
106
+ "type_ref": "shipping_core.json#properties/ship_from_state",
107
+ "allow_empty": true
108
+ },
109
+ "ship from zip": {
110
+ "merge_pointer": "/ship_from_zip",
111
+ "type_ref": "shipping_core.json#properties/ship_from_zip",
112
+ "allow_empty": true
113
+ },
114
+ "ship from country": {
115
+ "merge_pointer": "/ship_from_country",
116
+ "type_ref": "shipping_core.json#properties/ship_from_country",
117
+ "allow_empty": true
118
+ },
119
+ "ship to name": {
120
+ "merge_pointer": "/ship_to_name",
121
+ "type_ref": "shipping_core.json#properties/ship_to_name",
122
+ "allow_empty": true
123
+ },
124
+ "ship to street1": {
125
+ "merge_pointer": "/ship_to_street1",
126
+ "type_ref": "shipping_core.json#properties/ship_to_street1",
127
+ "allow_empty": true
128
+ },
129
+ "ship to street2": {
130
+ "merge_pointer": "/ship_to_street2",
131
+ "type_ref": "shipping_core.json#properties/ship_to_street2",
132
+ "allow_empty": true
133
+ },
134
+ "ship to city": {
135
+ "merge_pointer": "/ship_to_city",
136
+ "type_ref": "shipping_core.json#properties/ship_to_city",
137
+ "allow_empty": true
138
+ },
139
+ "ship to state": {
140
+ "merge_pointer": "/ship_to_state",
141
+ "type_ref": "shipping_core.json#properties/ship_to_state",
142
+ "allow_empty": true
143
+ },
144
+ "ship to zip": {
145
+ "merge_pointer": "/ship_to_zip",
146
+ "type_ref": "shipping_core.json#properties/ship_to_zip",
147
+ "allow_empty": true
148
+ },
149
+ "ship to country": {
150
+ "merge_pointer": "/ship_to_country",
151
+ "type_ref": "shipping_core.json#properties/ship_to_country",
77
152
  "allow_empty": true
78
153
  }
79
154
  }
@@ -86,6 +161,8 @@
86
161
  "data_columns": {
87
162
  "IDs": {
88
163
  "entry (#)": {
164
+ "do_not_merge": true,
165
+ "allow_empty": true,
89
166
  "merge_pointer": "/shipping_entry_number",
90
167
  "type_ref": "sample.json#properties/shipping_entry_number"
91
168
  },
@@ -129,6 +206,11 @@
129
206
  "type_ref": "sample.json#properties/box_number",
130
207
  "allow_empty": true
131
208
  },
209
+ "description of sample": {
210
+ "merge_pointer": "/description_of_sample",
211
+ "type_ref": "sample.json#properties/description_of_sample",
212
+ "allow_empty": true
213
+ },
132
214
  "sample location": {
133
215
  "merge_pointer": "/sample_location",
134
216
  "type_ref": "sample.json#properties/sample_location",
@@ -142,12 +224,26 @@
142
224
  "merge_pointer": "/sample_collection_procedure",
143
225
  "type_ref": "sample.json#properties/sample_collection_procedure"
144
226
  },
227
+ "sample collection procedure other": {
228
+ "merge_pointer": "/sample_collection_procedure_other",
229
+ "type_ref": "sample.json#properties/sample_collection_procedure_other",
230
+ "allow_empty": true
231
+ },
232
+ "type of primary container": {
233
+ "merge_pointer": "/type_of_primary_container",
234
+ "type_ref": "sample.json#properties/type_of_primary_container"
235
+ },
236
+ "type of primary container other": {
237
+ "merge_pointer": "/type_of_primary_container_other",
238
+ "type_ref": "sample.json#properties/type_of_primary_container_other",
239
+ "allow_empty": true
240
+ },
145
241
  "core number": {
146
242
  "merge_pointer": "/core_number",
147
243
  "type_ref": "sample.json#properties/core_number",
148
244
  "allow_empty": true
149
245
  },
150
- "fixation/stabilization type": {
246
+ "fixation stabilization type": {
151
247
  "merge_pointer": "/fixation_stabilization_type",
152
248
  "type_ref": "sample.json#properties/fixation_stabilization_type"
153
249
  },
@@ -253,4 +349,4 @@
253
349
  }
254
350
  }
255
351
  }
256
- }
352
+ }
@@ -41,16 +41,16 @@
41
41
  "type_ref": "shipping_core.json#properties/tracking_number",
42
42
  "allow_empty": true
43
43
  },
44
- "account number": {
45
- "merge_pointer": "/account_number",
46
- "type_ref": "shipping_core.json#properties/account_number",
47
- "allow_empty": true
48
- },
49
44
  "shipping condition": {
50
45
  "merge_pointer": "/shipping_condition",
51
46
  "type_ref": "shipping_core.json#properties/shipping_condition",
52
47
  "allow_empty": true
53
48
  },
49
+ "shipping condition other": {
50
+ "merge_pointer": "/shipping_condition_other",
51
+ "type_ref": "shipping_core.json#properties/shipping_condition_other",
52
+ "allow_empty": true
53
+ },
54
54
  "date shipped": {
55
55
  "merge_pointer": "/date_shipped",
56
56
  "type_ref": "shipping_core.json#properties/date_shipped",
@@ -66,97 +66,90 @@
66
66
  "type_ref": "shipping_core.json#properties/quality_of_shipment",
67
67
  "allow_empty": true
68
68
  },
69
- "ship from": {
70
- "merge_pointer": "/ship_from",
71
- "type_ref": "shipping_core.json#properties/ship_from",
69
+ "ship from sender person name": {
70
+ "merge_pointer": "/ship_from_sender_person_name",
71
+ "type_ref": "shipping_core.json#properties/ship_from_sender_person_name",
72
72
  "allow_empty": true
73
73
  },
74
- "ship to": {
75
- "merge_pointer": "/ship_to",
76
- "type_ref": "shipping_core.json#properties/ship_to",
74
+ "ship from sender email": {
75
+ "merge_pointer": "/ship_from_sender_email",
76
+ "type_ref": "shipping_core.json#properties/ship_from_sender_email",
77
77
  "allow_empty": true
78
- }
79
- }
80
- },
81
-
82
- "Essential Patient Data": {
83
- "prism_preamble_object_schema": "clinical_trial.json",
84
- "prism_preamble_object_pointer": "#",
85
- "prism_data_object_pointer": "/participants/0/samples/0",
86
- "data_columns": {
87
- "Path Concordance Verification": {
88
- "entry (#)": {
89
- "do_not_merge": true,
90
- "allow_empty": true,
91
- "type": "string"
92
- },
93
- "participant ID": {
94
- "merge_pointer": "2/participant_id",
95
- "type_ref": "participant.json#properties/participant_id"
96
- },
97
- "CIMAC ID": {
98
- "merge_pointer": "/cimac_id",
99
- "type_ref": "sample.json#properties/cimac_id",
100
- "process_as": [
101
- {
102
- "merge_pointer": "2/cimac_participant_id",
103
- "type_ref": "participant.json#properties/cimac_participant_id",
104
- "parse_through": "lambda x: x[:7]"
105
- }
106
- ]
107
- },
108
- "surgical pathology report id": {
109
- "merge_pointer": "/surgical_pathology_report_id",
110
- "type_ref": "sample.json#properties/surgical_pathology_report_id"
111
- },
112
- "clinical report id": {
113
- "merge_pointer": "/clinical_report_id",
114
- "type_ref": "sample.json#properties/clinical_report_id"
115
- },
116
- "collection event name": {
117
- "merge_pointer": "/collection_event_name",
118
- "type_ref": "sample.json#properties/collection_event_name"
119
- },
120
- "diagnosis verification": {
121
- "merge_pointer": "/diagnosis_verification",
122
- "type_ref": "sample.json#properties/diagnosis_verification"
123
- }
124
78
  },
125
- "ICD-0-3 Code/Description": {
126
- "Site Description": {
127
- "merge_pointer": "/site_description",
128
- "type_ref": "sample.json#properties/site_description"
129
- },
130
- "Topography Code": {
131
- "merge_pointer": "/topography_code",
132
- "type_ref": "sample.json#properties/topography_code"
133
- },
134
- "Topography Description": {
135
- "merge_pointer": "/topography_description",
136
- "type_ref": "sample.json#properties/topography_description"
137
- },
138
- "Histology/Behavior": {
139
- "merge_pointer": "/histology_behavior",
140
- "type_ref": "sample.json#properties/histology_behavior"
141
- },
142
- "Histology/Behavior Description": {
143
- "merge_pointer": "/histology_behavior_description",
144
- "type_ref": "sample.json#properties/histology_behavior_description"
145
- }
79
+ "ship from sender phone": {
80
+ "merge_pointer": "/ship_from_sender_phone",
81
+ "type_ref": "shipping_core.json#properties/ship_from_sender_phone",
82
+ "allow_empty": true
146
83
  },
147
- "Demographics": {
148
- "Sex": {
149
- "merge_pointer": "2/gender",
150
- "type_ref": "participant.json#properties/gender"
151
- },
152
- "Race": {
153
- "merge_pointer": "2/race",
154
- "type_ref": "participant.json#properties/race"
155
- },
156
- "Ethnic Group": {
157
- "merge_pointer": "2/ethnicity",
158
- "type_ref": "participant.json#properties/ethnicity"
159
- }
84
+ "ship from name": {
85
+ "merge_pointer": "/ship_from_name",
86
+ "type_ref": "shipping_core.json#properties/ship_from_name",
87
+ "allow_empty": true
88
+ },
89
+ "ship from street1": {
90
+ "merge_pointer": "/ship_from_street1",
91
+ "type_ref": "shipping_core.json#properties/ship_from_street1",
92
+ "allow_empty": true
93
+ },
94
+ "ship from street2": {
95
+ "merge_pointer": "/ship_from_street2",
96
+ "type_ref": "shipping_core.json#properties/ship_from_street2",
97
+ "allow_empty": true
98
+ },
99
+ "ship from city": {
100
+ "merge_pointer": "/ship_from_city",
101
+ "type_ref": "shipping_core.json#properties/ship_from_city",
102
+ "allow_empty": true
103
+ },
104
+ "ship from state": {
105
+ "merge_pointer": "/ship_from_state",
106
+ "type_ref": "shipping_core.json#properties/ship_from_state",
107
+ "allow_empty": true
108
+ },
109
+ "ship from zip": {
110
+ "merge_pointer": "/ship_from_zip",
111
+ "type_ref": "shipping_core.json#properties/ship_from_zip",
112
+ "allow_empty": true
113
+ },
114
+ "ship from country": {
115
+ "merge_pointer": "/ship_from_country",
116
+ "type_ref": "shipping_core.json#properties/ship_from_country",
117
+ "allow_empty": true
118
+ },
119
+ "ship to name": {
120
+ "merge_pointer": "/ship_to_name",
121
+ "type_ref": "shipping_core.json#properties/ship_to_name",
122
+ "allow_empty": true
123
+ },
124
+ "ship to street1": {
125
+ "merge_pointer": "/ship_to_street1",
126
+ "type_ref": "shipping_core.json#properties/ship_to_street1",
127
+ "allow_empty": true
128
+ },
129
+ "ship to street2": {
130
+ "merge_pointer": "/ship_to_street2",
131
+ "type_ref": "shipping_core.json#properties/ship_to_street2",
132
+ "allow_empty": true
133
+ },
134
+ "ship to city": {
135
+ "merge_pointer": "/ship_to_city",
136
+ "type_ref": "shipping_core.json#properties/ship_to_city",
137
+ "allow_empty": true
138
+ },
139
+ "ship to state": {
140
+ "merge_pointer": "/ship_to_state",
141
+ "type_ref": "shipping_core.json#properties/ship_to_state",
142
+ "allow_empty": true
143
+ },
144
+ "ship to zip": {
145
+ "merge_pointer": "/ship_to_zip",
146
+ "type_ref": "shipping_core.json#properties/ship_to_zip",
147
+ "allow_empty": true
148
+ },
149
+ "ship to country": {
150
+ "merge_pointer": "/ship_to_country",
151
+ "type_ref": "shipping_core.json#properties/ship_to_country",
152
+ "allow_empty": true
160
153
  }
161
154
  }
162
155
  },
@@ -168,6 +161,8 @@
168
161
  "data_columns": {
169
162
  "IDs": {
170
163
  "entry (#)": {
164
+ "do_not_merge": true,
165
+ "allow_empty": true,
171
166
  "merge_pointer": "/shipping_entry_number",
172
167
  "type_ref": "sample.json#properties/shipping_entry_number"
173
168
  },
@@ -189,7 +184,6 @@
189
184
  "type_ref": "sample.json#properties/parent_sample_id"
190
185
  },
191
186
  "processed sample ID": {
192
- "allow_empty": true,
193
187
  "merge_pointer": "/processed_sample_id",
194
188
  "type_ref": "sample.json#properties/processed_sample_id"
195
189
  },
@@ -224,9 +218,19 @@
224
218
  "merge_pointer": "/sample_collection_procedure",
225
219
  "type_ref": "sample.json#properties/sample_collection_procedure"
226
220
  },
221
+ "sample collection procedure other": {
222
+ "merge_pointer": "/sample_collection_procedure_other",
223
+ "type_ref": "sample.json#properties/sample_collection_procedure_other",
224
+ "allow_empty": true
225
+ },
227
226
  "type of primary container": {
228
227
  "merge_pointer": "0/type_of_primary_container",
229
228
  "type_ref": "sample.json#properties/type_of_primary_container"
229
+ },
230
+ "type of primary container other": {
231
+ "merge_pointer": "0/type_of_primary_container_other",
232
+ "type_ref": "sample.json#properties/type_of_primary_container_other",
233
+ "allow_empty": true
230
234
  },
231
235
  "processed sample type": {
232
236
  "merge_pointer": "/processed_sample_type",
@@ -237,6 +241,11 @@
237
241
  "type_ref": "sample.json#properties/processed_sample_volume",
238
242
  "allow_empty": true
239
243
  },
244
+ "processed sample quantity": {
245
+ "merge_pointer": "/processed_sample_quantity",
246
+ "type_ref": "sample.json#properties/processed_sample_quantity",
247
+ "allow_empty": true
248
+ },
240
249
  "processed sample volume units": {
241
250
  "merge_pointer": "/processed_sample_volume_units",
242
251
  "type_ref": "sample.json#properties/processed_sample_volume_units",
@@ -333,4 +342,4 @@
333
342
  }
334
343
  }
335
344
  }
336
- }
345
+ }