.
This commit is contained in:
+4
-1
@@ -134,7 +134,10 @@ def import_dicoms_helper(request, case_id: int | None = None):
|
||||
)
|
||||
|
||||
if tags["StudyDescription"]:
|
||||
examination, _ = Examination.objects.get_or_create(examination=tags["StudyDescription"], modality=modality)
|
||||
examination, created = Examination.objects.get_or_create(examination=tags["StudyDescription"])
|
||||
if created:
|
||||
examination.modality = modality
|
||||
examination.save()
|
||||
series.examination = examination
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user