# Generated by Django 4.2.14 on 2025-01-06 22:48

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('diagnosticreports', '0001_initial'),
        ('practitioners', '0001_initial'),
        ('encounters', '0001_initial'),
        ('patients', '0001_initial'),
        ('base', '0002_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='diagnosticresultinterpretation',
            name='practitioner',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='diagnostic_result_interpretation', to='practitioners.practitioner'),
        ),
        migrations.AddField(
            model_name='diagnosticreportperformer',
            name='diagnostic_report',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='report_performer', to='diagnosticreports.diagnosticreport'),
        ),
        migrations.AddField(
            model_name='diagnosticreportperformer',
            name='practitioner',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='diagnostic_performer', to='practitioners.practitioner'),
        ),
        migrations.AddField(
            model_name='diagnosticreport',
            name='attachment',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='diagnostic_attachment', to='base.attachment'),
        ),
        migrations.AddField(
            model_name='diagnosticreport',
            name='based_on',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='diagnosticreports.diagnosticreport'),
        ),
        migrations.AddField(
            model_name='diagnosticreport',
            name='category',
            field=models.ManyToManyField(blank=True, related_name='diagnostics_category', to='diagnosticreports.diagnosticcategory'),
        ),
        migrations.AddField(
            model_name='diagnosticreport',
            name='code',
            field=models.OneToOneField(on_delete=django.db.models.deletion.DO_NOTHING, to='diagnosticreports.diagnosticreportcode'),
        ),
        migrations.AddField(
            model_name='diagnosticreport',
            name='conclusion_code',
            field=models.ManyToManyField(blank=True, related_name='diagnostics_conclusion_code', to='diagnosticreports.conclusioncode'),
        ),
        migrations.AddField(
            model_name='diagnosticreport',
            name='encounter',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='diagnostic_encounter', to='encounters.encounter'),
        ),
        migrations.AddField(
            model_name='diagnosticreport',
            name='patient',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='patients.patient'),
        ),
    ]
