add a field to store dicom tags for the ohif viewer

This commit is contained in:
Ross
2023-08-14 09:01:06 +01:00
parent 4aa4db5d01
commit c3a735fa52
3 changed files with 37 additions and 0 deletions
@@ -0,0 +1,18 @@
# Generated by Django 4.1.4 on 2023-08-14 08:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('atlas', '0010_series_description'),
]
operations = [
migrations.AddField(
model_name='seriesimage',
name='dicom_tags_ohif',
field=models.JSONField(blank=True, help_text='Holds the dicom tags required for the OHIF viewer', null=True),
),
]
+1
View File
@@ -185,6 +185,7 @@ class SeriesImageBase(models.Model):
series = models.ForeignKey(
"Series", related_name="images", on_delete=models.SET_NULL, null=True
)
dicom_tags_ohif = models.JSONField(help_text="Holds the dicom tags required for the OHIF viewer", blank=True, null=True)
class Meta:
ordering = ["position"]
@@ -0,0 +1,18 @@
# Generated by Django 4.1.4 on 2023-08-14 08:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('longs', '0005_longseries_description'),
]
operations = [
migrations.AddField(
model_name='longseriesimage',
name='dicom_tags_ohif',
field=models.JSONField(blank=True, help_text='Holds the dicom tags required for the OHIF viewer', null=True),
),
]