Add pretty JSON filter and enhance JSON display in viewer state and annotations

This commit is contained in:
Ross
2026-03-16 11:56:03 +00:00
parent d0686dbe17
commit 3ea51f976d
4 changed files with 120 additions and 4 deletions
+13
View File
@@ -3395,6 +3395,19 @@ def case_download(request, pk):
"id": case.pk,
"title": case.title,
"authors": [str(a) for a in case.author.all()],
# Non-DICOM metadata
"description": case.description,
"history": case.history,
"discussion": case.discussion,
"report": case.report,
"created_date": getattr(case, "created_date", None),
"modified_date": getattr(case, "modified_date", None),
"presentation": [str(p) for p in case.presentation.all()],
"subspecialty": [str(s) for s in case.subspecialty.all()],
"pathological_process": [str(p) for p in case.pathological_process.all()],
"procedures": [str(p) for p in case.procedures.all()],
"conditions": [str(c) for c in case.condition.all()],
"case_size_bytes": case.get_total_series_images_size() if hasattr(case, "get_total_series_images_size") else None,
},
"series": [],
}