Add pretty JSON filter and enhance JSON display in viewer state and annotations
This commit is contained in:
@@ -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": [],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user