diff --git a/atlas/models.py b/atlas/models.py index 8b746ab2..e7ce3d89 100644 --- a/atlas/models.py +++ b/atlas/models.py @@ -612,6 +612,29 @@ class Series(SeriesBase): return series_json + def get_ohif_dicom_json(self, case_title_as_patient_name = True): + series_json = [] + series_json.append(self.get_series_dicom_json()) + + patient_name = "" + if case_title_as_patient_name: + patient_name = self.title + + return { + "studies": [ + { + "StudyInstanceUID": "1.3.6.1.4.1.14519.5.2.1.6279.6001.298806137288633453246975630178", + "StudyDate": "20000101", + "StudyTime": "", + "PatientName": patient_name, + "PatientID": "LIDC-IDRI-0001", + "AccessionNumber": "", + "PatientAge": "", + "PatientSex": "", + "series": series_json, + } + ] + } class CaseCollection(ExamOrCollectionGenericBase): app_name = "atlas" diff --git a/atlas/templates/atlas/collection_viva.html b/atlas/templates/atlas/collection_viva.html index 27ac6fe8..97786b8d 100644 --- a/atlas/templates/atlas/collection_viva.html +++ b/atlas/templates/atlas/collection_viva.html @@ -2,14 +2,38 @@ {% block content %}
Click on the 'Show' button to view the case in the viewer. Click on the 'Open' button to open the case in a new window.
+Opening a second case will replace the first case in the viewer or window.
+