# Generated by Django 5.2 on 2025-04-17 22:44

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


class Migration(migrations.Migration):

    dependencies = [
        ('accounts', '0004_initial'),
        ('careplans', '0005_initial'),
        ('careteams', '0002_initial'),
        ('conditions', '0003_initial'),
        ('devicerequests', '0003_initial'),
        ('devices', '0001_initial'),
        ('encounters', '0003_initial'),
        ('episodeofcare', '0003_initial'),
        ('groups', '0002_initial'),
        ('immunizationrecommendations', '0002_initial'),
        ('nutritionorders', '0003_initial'),
        ('procedures', '0002_initial'),
        ('relatedpersons', '0001_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='encounter',
            name='account',
            field=models.ManyToManyField(blank=True, related_name='encounter_account', to='accounts.account'),
        ),
        migrations.AddField(
            model_name='encounter',
            name='care_team',
            field=models.ManyToManyField(blank=True, related_name='encounter_care_team', to='careteams.careteam'),
        ),
        migrations.AddField(
            model_name='encounter',
            name='episode_of_care',
            field=models.ManyToManyField(blank=True, related_name='encounter_episode_of_care', to='episodeofcare.episodeofcare'),
        ),
        migrations.AddField(
            model_name='encounterbasedonreference',
            name='care_plan',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='encounter_based_on_reference_care_plan', to='careplans.careplan'),
        ),
        migrations.AddField(
            model_name='encounterbasedonreference',
            name='device_request',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='encounter_based_on_reference_device_request', to='devicerequests.devicerequest'),
        ),
        migrations.AddField(
            model_name='encounterbasedonreference',
            name='nutrition_order',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='encounter_based_on_reference_nutrition_order', to='nutritionorders.nutritionorder'),
        ),
        migrations.AddField(
            model_name='encounterparticipantactorreference',
            name='device',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='encounter_participant_actor_device', to='devices.device'),
        ),
        migrations.AddField(
            model_name='encounterparticipantactorreference',
            name='group',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='encounter_participant_actor_group', to='groups.group'),
        ),
        migrations.AddField(
            model_name='encounterparticipantactorreference',
            name='related_person',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='encounter_participant_actor_related_person', to='relatedpersons.relatedperson'),
        ),
        migrations.AddField(
            model_name='encounterreasonvaluereference',
            name='condition',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='encounter_reason_value_reference_condition', to='conditions.condition'),
        ),
        migrations.AddField(
            model_name='encounterreasonvaluereference',
            name='immunization_recommendation',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='encounter_reason_value_reference_immunization_recommendation', to='immunizationrecommendations.immunizationrecommendation'),
        ),
        migrations.AddField(
            model_name='encounterreasonvaluereference',
            name='procedure',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='encounter_reason_value_reference_procedure', to='procedures.procedure'),
        ),
    ]
