.
This commit is contained in:
@@ -939,6 +939,20 @@ class UncategorisedDicom(models.Model):
|
||||
return None
|
||||
|
||||
def get_basic_dicom_tags(self):
|
||||
to_include = (
|
||||
"StudyDescription",
|
||||
"Modality",
|
||||
"ProtocolName",
|
||||
"SeriesDescription",
|
||||
"SeriesInstanceUID",
|
||||
"BodyPartExamined",
|
||||
"SliceThickness",
|
||||
)
|
||||
tags = {}
|
||||
for i in to_include:
|
||||
tags[i] = "12345"
|
||||
|
||||
return tags
|
||||
try:
|
||||
with pydicom.read_file(self.image) as ds:
|
||||
to_include = (
|
||||
|
||||
Reference in New Issue
Block a user