# 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 = [
        ('appointments', '0002_initial'),
        ('patients', '0001_initial'),
        ('healthcareservices', '0001_initial'),
        ('locations', '0001_initial'),
        ('base', '0002_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='appointmentsubject',
            name='patient',
            field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='appointment_subject', to='patients.patient'),
        ),
        migrations.AddField(
            model_name='appointmentparticipant',
            name='actor',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='participant_actor', to='appointments.appointmentactor'),
        ),
        migrations.AddField(
            model_name='appointmentparticipant',
            name='period',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='participant_period', to='base.period'),
        ),
        migrations.AddField(
            model_name='appointmentparticipant',
            name='type',
            field=models.ManyToManyField(blank=True, related_name='participant_type', to='base.codeableconcept'),
        ),
        migrations.AddField(
            model_name='appointmentactor',
            name='healthcareservice',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='appointment_actor_healthcareservice', to='healthcareservices.healthcareservice'),
        ),
        migrations.AddField(
            model_name='appointmentactor',
            name='location',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='appointment_actor_location', to='locations.location'),
        ),
        migrations.AddField(
            model_name='appointmentactor',
            name='patient',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='appointment_actor_patient', to='patients.patient'),
        ),
    ]
