# Generated by Django 4.2.14 on 2025-01-10 10:34

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


class Migration(migrations.Migration):

    dependencies = [
        ('base', '0004_ratio'),
        ('medications', '0002_medicationbatch_remove_medication_expiration_date_and_more'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='ratio',
            name='denominator',
        ),
        migrations.RemoveField(
            model_name='ratio',
            name='numerator',
        ),
        migrations.RemoveField(
            model_name='medication',
            name='definition',
        ),
        migrations.RemoveField(
            model_name='medicationingredient',
            name='strength',
        ),
        migrations.AddField(
            model_name='medicationingredient',
            name='strength_codeable_concept',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='mediation_ingredient_strength_codeable_concept', to='base.codeableconcept'),
        ),
        migrations.AddField(
            model_name='medicationingredient',
            name='strength_quantity',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='mediation_ingredient_strength_quantity', to='base.quantity'),
        ),
        migrations.AddField(
            model_name='medicationingredient',
            name='strength_ratio',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='mediation_ingredient_strength_ratio', to='base.ratio'),
        ),
        migrations.AlterField(
            model_name='medicationsubstancereference',
            name='medication',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='medication_substance_reference', to='medications.medication'),
        ),
        migrations.DeleteModel(
            name='MedicationIngredientStrength',
        ),
        migrations.DeleteModel(
            name='Ratio',
        ),
    ]
