# Generated by Django 4.2.14 on 2025-01-26 13:42

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


class Migration(migrations.Migration):

    dependencies = [
        ('base', '0007_merge_20250121_1502'),
        ('episodeofcare', '0002_episodeofcarediagnosis_episodeofcarereason_and_more'),
        ('conditions', '0002_alter_conditioncodeablereference_concept_and_more'),
        ('procedures', '0001_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='episodeofcarereasonvaluereference',
            name='procedure',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='episode_of_care_reason_value_reference_procedure', to='procedures.procedure'),
        ),
        migrations.AddField(
            model_name='episodeofcarereasonvaluecodeablereference',
            name='concept',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='episode_of_care_reason_value_codeable_reference_concept', to='base.codeableconcept'),
        ),
        migrations.AddField(
            model_name='episodeofcarereasonvaluecodeablereference',
            name='reference',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='episode_of_care_reason_value_codeable_reference_reference', to='episodeofcare.episodeofcarereasonvaluereference'),
        ),
        migrations.AddField(
            model_name='episodeofcarereason',
            name='use',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='episode_of_care_reason_use', to='base.codeableconcept'),
        ),
        migrations.AddField(
            model_name='episodeofcarereason',
            name='value',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='episode_of_care_reason_value', to='episodeofcare.episodeofcarereasonvaluecodeablereference'),
        ),
        migrations.AddField(
            model_name='episodeofcarediagnosis',
            name='condition',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='episode_of_care_diagnosis_condition', to='conditions.conditioncodeablereference'),
        ),
        migrations.AddField(
            model_name='episodeofcarediagnosis',
            name='use',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='episode_of_care_diagnosis_use', to='base.codeableconcept'),
        ),
        migrations.AddField(
            model_name='episodeofcare',
            name='status_history',
            field=models.ManyToManyField(blank=True, related_name='episode_of_care_status_history', to='episodeofcare.episodeofcarestatushistory'),
        ),
        migrations.AlterField(
            model_name='episodeofcare',
            name='diagnosis',
            field=models.ManyToManyField(blank=True, related_name='episode_of_care_diagnosis', to='episodeofcare.episodeofcarediagnosis'),
        ),
    ]
