# Generated by Django 4.2.14 on 2025-01-20 15:50

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


class Migration(migrations.Migration):

    dependencies = [
        ("encounters", "0008_alter_encounterlocation_location"),
        (
            "medicationrequests",
            "0004_medicationrequestinformationsourcereference_related_person_and_more",
        ),
    ]

    operations = [
        migrations.RemoveField(
            model_name="devicedefinitionreference",
            name="identifier",
        ),
        migrations.RemoveField(
            model_name="medicationrequestdevicedefinitioncodeablereference",
            name="concept",
        ),
        migrations.RemoveField(
            model_name="medicationrequestdevicedefinitioncodeablereference",
            name="reference",
        ),
        migrations.RemoveField(
            model_name="medicationrequestencounterreference",
            name="encounter",
        ),
        migrations.RemoveField(
            model_name="medicationrequestencounterreference",
            name="identifier",
        ),
        migrations.RemoveField(
            model_name="medicationrequestmedicationcodeablereference",
            name="concept",
        ),
        migrations.RemoveField(
            model_name="medicationrequestmedicationcodeablereference",
            name="reference",
        ),
        migrations.RemoveField(
            model_name="medicationrequestmedicationreference",
            name="identifier",
        ),
        migrations.RemoveField(
            model_name="medicationrequestmedicationreference",
            name="medication",
        ),
        migrations.RemoveField(
            model_name="medicationrequestrecorderreference",
            name="identifier",
        ),
        migrations.RemoveField(
            model_name="medicationrequestrecorderreference",
            name="practitioner",
        ),
        migrations.RemoveField(
            model_name="medicationrequestrecorderreference",
            name="practitioner_role",
        ),
        migrations.RemoveField(
            model_name="medicationrequestsubjectreference",
            name="group",
        ),
        migrations.RemoveField(
            model_name="medicationrequestsubjectreference",
            name="identifier",
        ),
        migrations.RemoveField(
            model_name="medicationrequestsubjectreference",
            name="patient",
        ),
        migrations.RemoveField(
            model_name="medicationrequest",
            name="device",
        ),
        migrations.AddField(
            model_name="medicationrequest",
            name="device",
            field=models.ManyToManyField(
                blank=True,
                related_name="medication_request_device",
                to="devices.devicecodeablereference",
            ),
        ),
        migrations.AlterField(
            model_name='medicationrequest',
            name='encounter',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING,
                                    related_name='medication_request_encounter', to='encounters.encounterreference'),
        ),
    ]
