start adding uncat dicom
This commit is contained in:
+14
-1
@@ -63,6 +63,7 @@ from .models import (
|
||||
Subspecialty,
|
||||
SeriesFinding,
|
||||
SeriesImage,
|
||||
UncategorisedDicom,
|
||||
UserReportAnswer,
|
||||
)
|
||||
from .tables import (
|
||||
@@ -1877,4 +1878,16 @@ class AddSelfReview(CreateView):
|
||||
#
|
||||
# response = super().form_valid(form)
|
||||
#
|
||||
# return response
|
||||
# return response
|
||||
|
||||
|
||||
@login_required
|
||||
def uncategorised_dicoms(request, pk):
|
||||
dicoms = UncategorisedDicom.objects.filter(user=request.User)
|
||||
|
||||
data = {}
|
||||
for d in dicoms:
|
||||
|
||||
d[d.image] = d.get_basic_dicom_tags()
|
||||
|
||||
return JsonResponse(data)
|
||||
Reference in New Issue
Block a user