# Generated by Django 4.2.14 on 2025-03-04 21:03

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


class Migration(migrations.Migration):

    dependencies = [
        ("base", "0013_money"),
        (
            "medicationknowledges",
            "0003_rename_medicationknowledgeindicationguidline_medicationknowledgeindicationguideline_and_more",
        ),
    ]

    operations = [
        migrations.CreateModel(
            name="MedicationKnowledgeIndicationGuidelineDosingGuidelineDosage",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("created_at", models.DateTimeField(auto_now_add=True)),
                ("updated_at", models.DateTimeField(auto_now=True)),
                (
                    "type",
                    models.ForeignKey(
                        null=True,
                        on_delete=django.db.models.deletion.DO_NOTHING,
                        related_name="medication_knowledge_dosing_guideline_dosage_type",
                        to="base.codeableconcept",
                    ),
                ),
            ],
            options={
                "abstract": False,
            },
        ),
        migrations.RemoveField(
            model_name="medicationknowledgeindicationguidelinedosingguideline",
            name="dose",
        ),
        migrations.AlterField(
            model_name="medicationknowledge",
            name="author",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.DO_NOTHING,
                related_name="medication_knowledge_author",
                to="base.contactdetail",
            ),
        ),
        migrations.RemoveField(
            model_name="medicationknowledgecost",
            name="effective_date",
        ),
        migrations.AlterField(
            model_name="medicationknowledgedefinitionaldrugcharacteristic",
            name="value_base_64_binary",
            field=models.TextField(null=True),
        ),
        migrations.RemoveField(
            model_name="medicationknowledgemedicineclassification",
            name="classification",
        ),
        migrations.DeleteModel(
            name="MedicationKnowledgeDosingGuidelineDosage",
        ),
        migrations.AddField(
            model_name="medicationknowledgeindicationguidelinedosingguideline",
            name="dosage",
            field=models.ManyToManyField(
                blank=True,
                related_name="medication_knowledge_dosing_guideline_dose",
                to="medicationknowledges.medicationknowledgeindicationguidelinedosingguidelinedosage",
            ),
        ),
        migrations.AddField(
            model_name="medicationknowledgecost",
            name="effective_date",
            field=models.ManyToManyField(
                blank=True,
                related_name="medication_knowledge_cost_effective_date",
                to="base.period",
            ),
        ),
        migrations.AddField(
            model_name="medicationknowledgemedicineclassification",
            name="classification",
            field=models.ManyToManyField(
                blank=True,
                related_name="medication_knowledge_medicine_classification_classification",
                to="base.codeableconcept",
            ),
        ),
    ]
