# 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 = [
        ('practitioners', '0001_initial'),
        ('patients', '0001_initial'),
        ('servicerequests', '0001_initial'),
        ('observations', '0001_initial'),
        ('encounters', '0002_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='observationperformer',
            name='practitioner',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='practitioners.practitioner'),
        ),
        migrations.AddField(
            model_name='observationpartof',
            name='observation',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='observation_part_of', to='observations.observation'),
        ),
        migrations.AddField(
            model_name='observationcomponent',
            name='code',
            field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, to='observations.observationcodes'),
        ),
        migrations.AddField(
            model_name='observationcomponent',
            name='interpretation',
            field=models.ManyToManyField(blank=True, related_name='observation_interpretation', to='observations.interpretation'),
        ),
        migrations.AddField(
            model_name='observationcomponent',
            name='observation',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='observation_component', to='observations.observation'),
        ),
        migrations.AddField(
            model_name='observationcomponent',
            name='value',
            field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='observation_component_value', to='observations.observationvalue'),
        ),
        migrations.AddField(
            model_name='observationbasedon',
            name='observation',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='observation_based_on', to='observations.observation'),
        ),
        migrations.AddField(
            model_name='observation',
            name='body_site',
            field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='observations.bodysite'),
        ),
        migrations.AddField(
            model_name='observation',
            name='body_structure',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='servicerequests.bodystructure'),
        ),
        migrations.AddField(
            model_name='observation',
            name='category',
            field=models.ManyToManyField(blank=True, related_name='observation_category', to='observations.observationcategory'),
        ),
        migrations.AddField(
            model_name='observation',
            name='code',
            field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='observations.observationcodes'),
        ),
        migrations.AddField(
            model_name='observation',
            name='encounter',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='encounters.encounter'),
        ),
        migrations.AddField(
            model_name='observation',
            name='has_member',
            field=models.ManyToManyField(blank=True, to='observations.observation'),
        ),
        migrations.AddField(
            model_name='observation',
            name='interpretation',
            field=models.ManyToManyField(blank=True, to='observations.interpretation'),
        ),
        migrations.AddField(
            model_name='observation',
            name='method',
            field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='observations.observationmethod'),
        ),
        migrations.AddField(
            model_name='observation',
            name='patient',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='patients.patient'),
        ),
    ]
