This commit is contained in:
Ross
2024-02-13 22:27:03 +00:00
parent 95237b5a29
commit 92fca51b79
4 changed files with 82 additions and 6 deletions
+23
View File
@@ -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"