# Generated by Django 4.1.4 on 2023-06-12 10:07

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import sortedm2m.fields


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('generic', '0001_initial'),
        ('anatomy', '0002_initial'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('atlas', '0001_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='series',
            name='contrast',
            field=models.ForeignKey(blank=True, help_text='MRI / CT contrast', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='atlas_series_contrast', to='generic.contrast'),
        ),
        migrations.AddField(
            model_name='series',
            name='examination',
            field=models.ForeignKey(help_text='Name of the examination', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='atlas_series_examination', to='generic.examination'),
        ),
        migrations.AddField(
            model_name='series',
            name='modality',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='atlas_series_modality', to='anatomy.modality'),
        ),
        migrations.AddField(
            model_name='series',
            name='plane',
            field=models.ForeignKey(blank=True, help_text='Plane of the examination', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='atlas_series_plane', to='generic.plane'),
        ),
        migrations.AddField(
            model_name='presentation',
            name='subspecialty',
            field=models.ManyToManyField(blank=True, to='atlas.subspecialty'),
        ),
        migrations.AddField(
            model_name='finding',
            name='synonym',
            field=models.ManyToManyField(blank=True, to='atlas.finding'),
        ),
        migrations.AddField(
            model_name='differential',
            name='case',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='differentialcase', to='atlas.case'),
        ),
        migrations.AddField(
            model_name='differential',
            name='condition',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='atlas.condition'),
        ),
        migrations.AddField(
            model_name='condition',
            name='parent',
            field=models.ManyToManyField(blank=True, to='atlas.condition'),
        ),
        migrations.AddField(
            model_name='condition',
            name='subspecialty',
            field=models.ManyToManyField(blank=True, to='atlas.subspecialty'),
        ),
        migrations.AddField(
            model_name='condition',
            name='synonym',
            field=models.ManyToManyField(blank=True, to='atlas.condition'),
        ),
        migrations.AddField(
            model_name='cidreportanswer',
            name='question',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='atlas.casedetail'),
        ),
        migrations.AddField(
            model_name='casedetail',
            name='case',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='atlas.case'),
        ),
        migrations.AddField(
            model_name='casedetail',
            name='collection',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='atlas.casecollection'),
        ),
        migrations.AddField(
            model_name='casecollection',
            name='author',
            field=models.ManyToManyField(blank=True, help_text='Author of the collection', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='casecollection',
            name='cases',
            field=models.ManyToManyField(through='atlas.CaseDetail', to='atlas.case'),
        ),
        migrations.AddField(
            model_name='casecollection',
            name='cid_user_groups',
            field=models.ManyToManyField(blank=True, help_text='These groups define which candidates are able to be added to the exams/collection.', to='generic.cidusergroup'),
        ),
        migrations.AddField(
            model_name='casecollection',
            name='valid_cid_users',
            field=models.ManyToManyField(blank=True, related_name='casecollection_exams', to='generic.ciduser'),
        ),
        migrations.AddField(
            model_name='case',
            name='author',
            field=models.ManyToManyField(blank=True, help_text='Author of the case', related_name='atlas_authored_cases', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='case',
            name='condition',
            field=models.ManyToManyField(blank=True, to='atlas.condition'),
        ),
        migrations.AddField(
            model_name='case',
            name='differential',
            field=models.ManyToManyField(related_name='casedifferential', through='atlas.Differential', to='atlas.condition'),
        ),
        migrations.AddField(
            model_name='case',
            name='editor',
            field=models.ManyToManyField(blank=True, related_name='atlas_edited_cases', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='case',
            name='pathological_process',
            field=models.ManyToManyField(blank=True, to='atlas.pathologicalprocess'),
        ),
        migrations.AddField(
            model_name='case',
            name='presentation',
            field=models.ManyToManyField(blank=True, to='atlas.presentation'),
        ),
        migrations.AddField(
            model_name='case',
            name='previous_case',
            field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='next_case', to='atlas.case'),
        ),
        migrations.AddField(
            model_name='case',
            name='series',
            field=sortedm2m.fields.SortedManyToManyField(help_text=None, related_name='case', to='atlas.series'),
        ),
        migrations.AddField(
            model_name='case',
            name='subspecialty',
            field=models.ManyToManyField(blank=True, to='atlas.subspecialty'),
        ),
    ]
