.
This commit is contained in:
+4
-1
@@ -134,7 +134,10 @@ def import_dicoms_helper(request, case_id: int | None = None):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if tags["StudyDescription"]:
|
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
|
series.examination = examination
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1063,6 +1063,7 @@ def case_order_dicom(request, pk):
|
|||||||
case = get_object_or_404(Case, pk=pk)
|
case = get_object_or_404(Case, pk=pk)
|
||||||
|
|
||||||
fail = []
|
fail = []
|
||||||
|
# TODO: don't try to order non stack series
|
||||||
for series in case.series.all():
|
for series in case.series.all():
|
||||||
try:
|
try:
|
||||||
if request.user in series.get_author_objects():
|
if request.user in series.get_author_objects():
|
||||||
|
|||||||
Reference in New Issue
Block a user