# 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 = [
        ('medications', '0004_medicationreference_medicationcodeablereference'),
        ('practitioners', '0008_practitionerpractitionerrolereference'),
        ('provenances', '0001_initial'),
        ('patients', '0005_patientreference'),
        ('medicationrequests', '0005_remove_devicedefinitionreference_identifier_and_more'),
    ]

    operations = [
        migrations.AlterField(
            model_name='medicationrequest',
            name='event_history',
            field=models.ManyToManyField(blank=True, related_name='medication_request_event_history', to='provenances.provenancereference'),
        ),
        migrations.AlterField(
            model_name='medicationrequest',
            name='medication',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='medication_request_mepatientdication', to='medications.medicationcodeablereference'),
        ),
        migrations.AlterField(
            model_name='medicationrequest',
            name='recorder',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='medication_request_recorder', to='practitioners.practitionerpractitionerrolereference'),
        ),
        migrations.AlterField(
            model_name='medicationrequest',
            name='subject',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='medication_request_subject', to='patients.patientgroupreference'),
        ),
        migrations.DeleteModel(
            name='DeviceDefinitionReference',
        ),
        migrations.DeleteModel(
            name='MedicationRequestDeviceDefinitionCodeableReference',
        ),
        migrations.DeleteModel(
            name='MedicationRequestEncounterReference',
        ),
        migrations.DeleteModel(
            name='MedicationRequestMedicationCodeableReference',
        ),
        migrations.DeleteModel(
            name='MedicationRequestMedicationReference',
        ),
        migrations.DeleteModel(
            name='MedicationRequestRecorderReference',
        ),
        migrations.DeleteModel(
            name='MedicationRequestSubjectReference',
        ),
    ]
