.
This commit is contained in:
+5
-3
@@ -332,8 +332,6 @@ class Case(models.Model):
|
||||
for series in self.series.all():
|
||||
series_json.append(series.get_series_dicom_json())
|
||||
|
||||
print(series_json)
|
||||
|
||||
return {
|
||||
"studies": [
|
||||
{
|
||||
@@ -493,7 +491,7 @@ class Series(SeriesBase):
|
||||
|
||||
series_json = {}
|
||||
|
||||
to_keep = ["SeriesInstanceUID", "SeriesNumber", "Modality", "SliceThickness", "SeriesDescription"]
|
||||
to_keep = ["SeriesInstanceUID", "SeriesNumber", "Modality", "SliceThickness"]
|
||||
|
||||
# TODO: clean up (this is rather convoluted....)
|
||||
image: SeriesImage
|
||||
@@ -516,6 +514,10 @@ class Series(SeriesBase):
|
||||
else:
|
||||
instances.append(image.get_image_dicom_json())
|
||||
|
||||
description = f"{self.examination} ({self.plane})"
|
||||
if self.contrast:
|
||||
description = f"{description} / {self.contrast}"
|
||||
series_json["SeriesDescription"] = description
|
||||
series_json["instances"] = instances
|
||||
|
||||
return series_json
|
||||
|
||||
Reference in New Issue
Block a user