add some more dicom viewing capablities

This commit is contained in:
Ross
2023-10-30 11:59:44 +00:00
parent fe536e25a7
commit d87874d0b1
7 changed files with 29 additions and 3 deletions
+6
View File
@@ -235,3 +235,9 @@ def generate_image_hash(request, id: int):
series_image.save()
print(series_image)
@router.get("/view_dicom_tags/{hash}", auth=django_auth)
def view_dicom_tags(request, hash: str):
item = SeriesImage.objects.get(image_md5_hash=hash)
return item.get_dicom_json()