-
Notifications
You must be signed in to change notification settings - Fork 3
/
schema.qdbd
365 lines (351 loc) · 11.5 KB
/
schema.qdbd
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
# Modify the code to update the DB schema diagram.
# To reset the sample schema, replace everything with
# two dots ('..' - without quotes).
# Master list mapping instance UIDs to the tables that contain
# modality-specific attributes, and also contains attributes that are
# common across modalities
CompositeContext
-
InstitutionName
StationName
EquipmentUID
ProductId
SOPClassUID
SOPInstanceUID PK
StudyInstanceUID
SeriesInstanceUID
StudyDate
SeriesDate
StudyTime
SeriesTime
Modality
StudyDescription
SeriesDescription
PatientName
PatientID
PatientSex
PatientAge
PatientWeight
BodyPartExamined
ManufacturerModelName
Manufacturer
SoftwareVersions
# Patient clinical data
CD
-
SOPInstanceUID FK -> CompositeContext.SOPInstanceUID
ProblemList_Problem_CodeValue
ProblemList_Problem_CodingSchemeDesignator
ProblemList_Problem_CodeMeaning
ProblemList_Therapy_CodeValue
ProblemList_Therapy_CodingSchemeDesignator
ProblemList_Therapy_CodeMeaning
SocialHistory_TobaccoSmokingBehavior_CodeValue
SocialHistory_TobaccoSmokingBehavior_CodingSchemeDesignator
SocialHistory_TobaccoSmokingBehavior_CodeMeaning
SocialHistory_AlcoholConsumption_CodeValue
SocialHistory_AlcoholConsumption_CodingSchemeDesignator
SocialHistory_AlcoholConsumption_CodeMeaning
SocialHistory_DetailsOfTobaccoChewing_CodeValue
SocialHistory_DetailsOfTobaccoChewing_CodingSchemeDesignator
SocialHistory_DetailsOfTobaccoChewing_CodeMeaning
TumorStaging_PrimaryTumorSite_CodeValue
TumorStaging_PrimaryTumorSite_CodingSchemeDesignator
TumorStaging_PrimaryTumorSite_CodeMeaning
TumorStaging_TumorStageFinding_CodeValue
TumorStaging_TumorStageFinding_CodingSchemeDesignator
TumorStaging_TumorStageFinding_CodeMeaning
TumorStaging_TStage_CodeValue
TumorStaging_TStage_CodingSchemeDesignator
TumorStaging_TStage_CodeMeaning
TumorStaging_NStage_CodeValue
TumorStaging_NStage_CodingSchemeDesignator
TumorStaging_NStage_CodeMeaning
TumorStaging_MStage_CodeValue
TumorStaging_MStage_CodingSchemeDesignator
TumorStaging_MStage_CodeMeaning
MedicalHistory_RadiationTherapy_CodeValue
MedicalHistory_RadiationTherapy_CodingSchemeDesignator
MedicalHistory_RadiationTherapy_CodeMeaning
MedicalHistory_MalignantNeoplasm_CodeValue
MedicalHistory_MalignantNeoplasm_CodingSchemeDesignator
MedicalHistory_MalignantNeoplasm_CodeMeaning
Biopsy_DateOfProcedure
Biopsy_Site
Surgery_DateOfProcedure
Surgery_ProcedureDescription
Surgery_ResectionOfPrimaryTumor_CodeValue
Surgery_ResectionOfPrimaryTumor_CodingSchemeDesignator
Surgery_ResectionOfPrimaryTumor_CodeMeaning
Surgery_BlockDissectionOfCervicalLymphNodes_CodeValue
Surgery_BlockDissectionOfCervicalLymphNodes_CodingSchemeDesignator
Surgery_BlockDissectionOfCervicalLymphNodes_CodeMeaning
Radiotherapy_DateTreatmentStarted
Radiotherapy_DateTreatmentStopped
Radiotherapy_TotalRadiationDoseDelivered
Radiotherapy_RadiationDosePerFraction
Radiotherapy_ProcedureDescription
Chemotherapy_DateTreatmentStarted
Chemotherapy_DateTreatmentStopped
Chemotherapy_AntineoplasticAgent_CodeValue
Chemotherapy_AntineoplasticAgent_CodingSchemeDesignator
Chemotherapy_AntineoplasticAgent_CodeMeaning
OriginalPathology_Pathology_CodeValue
OriginalPathology_Pathology_CodingSchemeDesignator
OriginalPathology_Pathology_CodeMeaning
OriginalPathology_HistologicalGradeFinding_CodeValue
OriginalPathology_HistologicalGradeFinding_CodingSchemeDesignator
OriginalPathology_HistologicalGradeFinding_CodeMeaning
OriginalPathology_MalignancyType_CodeValue
OriginalPathology_MalignancyType_CodingSchemeDesignator
OriginalPathology_MalignancyType_CodeMeaning
OriginalPathology_TumorMarginStatus_CodeValue
OriginalPathology_TumorMarginStatus_CodingSchemeDesignator
OriginalPathology_TumorMarginStatus_CodeMeaning
OriginalPathology_PerineuralInvasionFinding_CodeValue
OriginalPathology_PerineuralInvasionFinding_CodingSchemeDesignator
OriginalPathology_PerineuralInvasionFinding_CodeMeaning
OriginalPathology_StatusOfVascularInvasionByTumor_CodeValue
OriginalPathology_StatusOfVascularInvasionByTumor_CodingSchemeDesignator
OriginalPathology_StatusOfVascularInvasionByTumor_CodeMeaning
CervicalLymphNodeGroupExcision_CervicalLymphNodeGroup_CodeValue
CervicalLymphNodeGroupExcision_CervicalLymphNodeGroup_CodingSchemeDesignator
CervicalLymphNodeGroupExcision_CervicalLymphNodeGroup_CodeMeaning
CervicalLymphNodeGroupExcision_Sidedness_CodeValue
CervicalLymphNodeGroupExcision_Sidedness_CodingSchemeDesignator
CervicalLymphNodeGroupExcision_Sidedness_CodeMeaning
CervicalLymphNodeGroupExcision_NumberOfNodesRemoved
CervicalLymphNodeGroupExcision_NumberOfNodesPositive
CervicalLymphNodeGroupExcision_StatusOfExtraCapsularExtensionOfNodalTumor_CodeValue
CervicalLymphNodeGroupExcision_StatusOfExtraCapsularExtensionOfNodalTumor_CodingSchemeDesignator
CervicalLymphNodeGroupExcision_StatusOfExtraCapsularExtensionOfNodalTumor_CodeMeaning
CervicalLymphNodeGroupExcision_Comment
DiseaseOutcome_FollowupVisitDate
DiseaseOutcome_FollowupStatus_CodeValue
DiseaseOutcome_FollowupStatus_CodingSchemeDesignator
DiseaseOutcome_FollowupStatus_CodeMeaning
DiseaseOutcome_DateOfDeath
DiseaseOutcome_CauseOfDeath_CodeValue
DiseaseOutcome_CauseOfDeath_CodingSchemeDesignator
DiseaseOutcome_CauseOfDeath_CodeMeaning
DiseaseOutcome_PostRadiotherapyTreatment_CodeValue
DiseaseOutcome_PostRadiotherapyTreatment_CodingSchemeDesignator
DiseaseOutcome_PostRadiotherapyTreatment_CodeMeaning
DiseaseOutcome_DateOfCancerRecurrence
DiseaseOutcome_LocationOfFirstRecurrence_CodeValue
DiseaseOutcome_LocationOfFirstRecurrence_CodingSchemeDesignator
DiseaseOutcome_LocationOfFirstRecurrence_CodeMeaning
DiseaseOutcome_Pathology_CodeValue
DiseaseOutcome_Pathology_CodingSchemeDesignator
DiseaseOutcome_Pathology_CodeMeaning
DiseaseOutcome_HistologicalGradeFinding_CodeValue
DiseaseOutcome_HistologicalGradeFinding_CodingSchemeDesignator
DiseaseOutcome_HistologicalGradeFinding_CodeMeaning
DiseaseOutcome_MalignancyType_CodeValue
DiseaseOutcome_MalignancyType_CodingSchemeDesignator
DiseaseOutcome_MalignancyType_CodeMeaning
DiseaseOutcome_TumorMarginStatus_CodeValue
DiseaseOutcome_TumorMarginStatus_CodingSchemeDesignator
DiseaseOutcome_TumorMarginStatus_CodeMeaning
DiseaseOutcome_PerineuralInvasionFinding_CodeValue
DiseaseOutcome_PerineuralInvasionFinding_CodingSchemeDesignator
DiseaseOutcome_PerineuralInvasionFinding_CodeMeaning
DiseaseOutcome_StatusOfVascularInvasionByTumor_CodeValue
DiseaseOutcome_StatusOfVascularInvasionByTumor_CodingSchemeDesignator
DiseaseOutcome_StatusOfVascularInvasionByTumor_CodeMeaning
# PT-specific attrubutes (all top-level)
PT
-
SOPInstanceUID FK - CompositeContext.SOPInstanceUID
SliceThickness
ImagePositionPatient
ImageOrientationPatient
FrameOfReferenceUID
Rows
Columns
PixelSpacing
ReconstructionMethod
ConvolutionKernel
# CT-specific attributes (all top-level)
CT
-
SOPInstanceUID FK - CompositeContext.SOPInstanceUID
SliceThickness
ImagePositionPatient
ImageOrientationPatient
FrameOfReferenceUID
Rows
Columns
PixelSpacing
ReconstructionDiameter
DistanceSourceToDetector
DistanceSourceToPatient
RotationDirection
ExposureTime
XRayTubeCurrent
Exposure
FilterType
GeneratorPower
FocalSpots
ConvolutionKernel
# MR-specific attributes (all top-level)
MR
-
SOPInstanceUID FK - CompositeContext.SOPInstanceUID
SliceThickness
PixelSpacing
ScanningSequence
SequenceVariant
RepetitionTime
EchoTime
InversionTime
EchoNumbers
ImagingFrequency
MagneticFieldStrength
TriggerTime
AcquisitionMatrix
InPlanePhaseEncodingDirection
FlipAngle
NumberOfEchoes
PulseSequenceName
PixelBandwidth
# Flattened (selectively)
# ReferencedImageRealWorldValueMappingSequence
RWV
-
SOPInstanceUID FK - CompositeContext.SOPInstanceUID
#
Units_CodeValue
Units_CodingSchemeDesignator
Units_CodeMeaning
Quantity_CodeValue
Quantity_CodingSchemeDesignator
Quantity_CodeMeaning
MeasurementMethod_CodeValue
MeasurementMethod_CodingSchemeDesignator
MeasurementMethod_CodeMeaning
RealWorldValueIntercept
RealWorldValueSlope
# SEG-specific attributes (all top-level)
SEG
-
SOPInstanceUID FK - CompositeContext.SOPInstanceUID
NumberOfFrames
Rows
Columns
SegmentationType
ContentCreatorName
ClinicalTrialTimePointID
ClinicalTrialSeriesID
# SR-specific attributes
SR
-
SOPInstanceUID FK - CompositeContext.SOPInstanceUID
TemplateIdentifier
CompletionFlag
VerificationFlag
# Flattened selected content of SegmentSequence
# Use modality prefix to establish relationships as to what modalities
# these tables apply to
SEG_Segments
-
SOPInstanceUID FK >- SEG.SOPInstanceUID
SegmentNumber
SegmentAlgorithmType
SegmentAlgorithmName
SegmentLabel
AnatomicRegionSequence_CodeValue
AnatomicRegionSequence_CodingSchemeDesignator
AnatomicRegionSequence_CodeMeaning
SegmentedPropertyCategoryCodeSequence_CodeValue
SegmentedPropertyCategoryCodeSequence_CodingSchemeDesignator
SegmentedPropertyCategoryCodeSequence_CodeMeaning
SegmentedPropertyTypeCodeSequence_CodeValue
SegmentedPropertyTypeCodeSequence_CodingSchemeDesignator
SegmentedPropertyTypeCodeSequence_CodeMeaning
TrackingID
TrackingUID
# Flattened selected content of SharedFunctionalGroupsSequence
# and PerFrameFunctionalGroupsSequence
SEG_SegmentFrames
-
SOPInstanceUID FK >- SEG_Segments.SOPInstanceUID
ReferencedSegmentNumber FK >- SEG_Segments.SegmentNumber
SliceThickness
SpacingBetweenSlices
PixelSpacing
ImagePositionPatient
ImageOrientationPatient
ReferencedSOPInstanceUID
ReferencedSOPClassUID
# Flattened (selectively) from the Measurements groups container
# of TID 1500 documents
SR1500_MeasurementGroups
-
SOPInstanceUID FK >- SR.SOPInstanceUID
# the following are concepts mapped to column names, and values extracted from the
# SR tree. This is not generic and will not work for an arbitrary SR that does not
# conform to TID 1500
PersonObserverName # <has obs context PNAME:(,,"Person Observer Name")="User2">
DeviceObserverName # <has obs context TEXT:(,,"Device Observer Name")="Automated Aortic Arch Refer...">
ObserverType # can be either Person or Device!
activitySession
TrackingIdentifier
TrackingUniqueIdentifier PK
ReferencedSegment
SourceSeriesForImageSegmentation
segmentationSOPInstanceUID
Finding_CodeValue
Finding_CodingSchemeDesignator
Finding_CodeMeaning
timePoint
FindingSite_CodeValue
FindingSite_CodingSchemeDesignator
FindingSite_CodeMeaning
measurementMethod_CodeValue
measurementMethod_CodingSchemeDesignator
measurementMethod_CodeMeaning
measurementAlgorithmIdentification_AlgorithmName
measurementAlgorithmIdentification_AlgorithmVersion
# Individual measurements from the measurement groups
SR1500_Measurements
-
SOPInstanceUID FK >- SR1500_MeasurementGroups.SOPInstanceUID
TrackingUniqueIdentifier FK >- SR1500_MeasurementGroups.TrackingUniqueIdentifier
quantity_CodeValue
quantity_CodingSchemeDesignator
quantity_CodeMeaning
units_CodeValue
units_CodingSchemeDesignator
units_CodeMeaning
value
derivationModifier_CodeValue
derivationModifier_CodingSchemeDesignator
derivationModifier_CodeMeaning
measurementMethod_CodeValue
measurementMethod_CodingSchemeDesignator
measurementMethod_CodeMeaning
measurementAlgorithmIdentification_AlgorithmName
measurementAlgorithmIdentification_AlgorithmVersion
SR1500_QualitativeEvaluations
-
SOPInstanceUID FK >- SR1500_MeasurementGroups.SOPInstanceUID
TrackingUniqueIdentifier FK >- SR1500_MeasurementGroups.TrackingUniqueIdentifier
conceptCode_CodeValue
conceptCode_CodingSchemeDesignator
conceptCode_CodeMeaning
conceptValue_CodeValue
conceptValue_CodingSchemeDesignator
conceptValue_CodeMeaning
# Flattened content of the
# ReferencedSeriesSequence from
# the object types that contain it
# These are instances pointed to from the given instance
# Note that those attributes are hard-coded in the converter!
# Adding new attributes to this section will have no effect!
References
-
SOPInstanceUID FK -< CompositeContext.SOPInstanceUID
ReferencedSOPClassUID string # to
ReferencedSOPInstanceUID string
ReferencedSeriesInstanceUID string