diff --git a/atlas/api.py b/atlas/api.py
index 0c617671..4a89bccf 100644
--- a/atlas/api.py
+++ b/atlas/api.py
@@ -156,4 +156,18 @@ def series_remove_duplicate_images(request, series_id: int):
@router.get("/get_cases_user", auth=django_auth, response=List[CaseSchema])
def get_cases_user(request):
- return Case.objects.filter(author=request.user)
\ No newline at end of file
+ return Case.objects.filter(author=request.user)
+
+@router.get("/check_image_hash/{hash}", auth=django_auth)
+def check_image_hash(request, hash: str):
+ try:
+ series_image = SeriesImage.objects.get(image_md5_hash=hash)
+ data = {
+ "status": "success",
+ "id": series_image.pk,
+ "url": series_image.series.get_absolute_url(),
+ }
+ return data
+ except SeriesImage.DoesNotExist:
+ data = {"status": "success", "id": False}
+ return data
\ No newline at end of file
diff --git a/atlas/templates/atlas/series_viewer.html b/atlas/templates/atlas/series_viewer.html
index 61aafaf8..febfafa1 100755
--- a/atlas/templates/atlas/series_viewer.html
+++ b/atlas/templates/atlas/series_viewer.html
@@ -75,6 +75,9 @@
{% if image.image %}
[{{image.image.size|filesizeformat}}]
{% endif %}
+
+ {{image.image_md5_hash}}
+
{% comment %} {{image.get_dicom_info|safe}}
{% endcomment %}