# Generated by Django 4.2.14 on 2025-02-05 11:44

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


class Migration(migrations.Migration):

    dependencies = [
        ('medicationadministrations', '0004_medicationadministration_based_on_and_more'),
        ('careteams', '0004_remove_careteamparticipant_role_and_more'),
        ('careplans', '0002_remove_careplan_goal_careplan_note'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='careplan',
            name='contributor',
        ),
        migrations.RemoveField(
            model_name='careplan',
            name='custodian',
        ),
        migrations.AddField(
            model_name='careplan',
            name='care_team',
            field=models.ManyToManyField(blank=True, related_name='care_plan_care_team', to='careteams.careteamreference'),
        ),
        migrations.AddField(
            model_name='careplanaddressreference',
            name='medication_administration',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='medicationadministrations.medicationadministration'),
        ),
        migrations.AlterField(
            model_name='careplan',
            name='description',
            field=models.TextField(null=True),
        ),
        migrations.AlterField(
            model_name='careplan',
            name='intent',
            field=models.CharField(choices=[('proposal', 'Proposal'), ('plan', 'Plan'), ('order', 'Order'), ('option', 'Option'), ('directive', 'Directive')], max_length=255, null=True),
        ),
        migrations.AlterField(
            model_name='careplan',
            name='status',
            field=models.CharField(choices=[('draft', 'Draft'), ('active', 'Active'), ('completed', 'Completed'), ('entered-in-error', 'Entered in Error'), ('unknown', 'Unknown'), ('revoked', 'Revoked'), ('on-hold', 'On Hold')], max_length=255, null=True),
        ),
        migrations.AlterField(
            model_name='careplan',
            name='title',
            field=models.CharField(max_length=255, null=True),
        ),
        migrations.DeleteModel(
            name='CustodianContributorReference',
        ),
    ]
