diff --git a/atlas/migrations/0011_seriesimage_dicom_tags_ohif.py b/atlas/migrations/0011_seriesimage_dicom_tags_ohif.py new file mode 100644 index 00000000..020e93ca --- /dev/null +++ b/atlas/migrations/0011_seriesimage_dicom_tags_ohif.py @@ -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), + ), + ] diff --git a/generic/models.py b/generic/models.py index 15bde6e8..2778394c 100644 --- a/generic/models.py +++ b/generic/models.py @@ -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"] diff --git a/longs/migrations/0006_longseriesimage_dicom_tags_ohif.py b/longs/migrations/0006_longseriesimage_dicom_tags_ohif.py new file mode 100644 index 00000000..b4e287e4 --- /dev/null +++ b/longs/migrations/0006_longseriesimage_dicom_tags_ohif.py @@ -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), + ), + ]