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