# Generated by Django 4.2.14 on 2025-01-26 18:00

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('patients', '0006_patientgroupreference_group_and_more'),
        ('relatedpersons', '0002_relatedperson_communication_relatedperson_gender'),
        ('procedures', '0001_initial'),
        ('locations', '0003_alter_locationorganizationreference_location_and_more'),
        ('practitioners', '0008_practitionerpractitionerrolereference'),
        ('base', '0007_merge_20250121_1502'),
        ('medicationdispenses', '0002_alter_medicationdispense_medication_and_more'),
    ]

    operations = [
        migrations.RenameModel(
            old_name='MedicatoinDispenseReceiverReference',
            new_name='MedicationDispenseReceiverReference',
        ),
        migrations.AddField(
            model_name='medicationdispense',
            name='part_of',
            field=models.ManyToManyField(blank=True, related_name='medication_dispense_part_of', to='procedures.procedurereference'),
        ),
        migrations.AddField(
            model_name='medicationdispense',
            name='recorded',
            field=models.DateTimeField(null=True),
        ),
        migrations.AddField(
            model_name='medicationdispense',
            name='status_changed',
            field=models.DateTimeField(null=True),
        ),
        migrations.AddField(
            model_name='medicationdispense',
            name='supporting_information',
            field=models.ManyToManyField(blank=True, related_name='medication_dispense_supporting_information', to='base.reference'),
        ),
        migrations.AlterField(
            model_name='medicationdispense',
            name='status',
            field=models.CharField(choices=[('preparation', 'preparation'), ('in-progress', 'in_progress'), ('on_hold', 'on_hold'), ('completed', 'completed'), ('cancelled', 'cancelled'), ('entered-in-error', 'entered_in_error'), ('stopped', 'stopped'), ('declined', 'declined'), ('unknown', 'unknown')], max_length=255, null=True),
        ),
    ]
