From b5e071b75ed66bdffad647ed29619f71e222f76e Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 18 Dec 2023 18:24:12 +0000 Subject: [PATCH] . --- atlas/models.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/atlas/models.py b/atlas/models.py index f4676c27..4ff13832 100644 --- a/atlas/models.py +++ b/atlas/models.py @@ -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 = (