# Generated by Django 5.2 on 2025-04-14 21:53

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


class Migration(migrations.Migration):

    dependencies = [
        (
            "activitydefinitions",
            "0009_alter_activitydefinitionparticipanttypereference_practitioner_role",
        ),
        (
            "adverseevents",
            "0008_alter_adverseeventparticipantactorreference_practitioner_role_and_more",
        ),
        (
            "allergyintolerances",
            "0005_alter_allergyintoleranceasserterreference_practitioner_role_and_more",
        ),
        (
            "appointmentresponses",
            "0007_alter_appointmentresponseactorreference_practitioner_role",
        ),
        ("base", "0005_alter_signatureonbehalfofreference_practitioner_role_and_more"),
        ("careplans", "0006_alter_careplancustodianreference_practitioner_role"),
        (
            "careteams",
            "0003_alter_careteamparticipantonbehalfofreference_practitioner_role",
        ),
        (
            "chargeitems",
            "0005_alter_chargeitemperformeractorreference_practitioner_role",
        ),
        (
            "claimresponses",
            "0005_alter_claimresponseadditemproviderreference_practitioner_role_and_more",
        ),
        (
            "claims",
            "0005_alter_claimcareteamproviderreference_practitioner_role_and_more",
        ),
        (
            "communications",
            "0005_alter_communicationrecipientreference_practitioner_role_and_more",
        ),
        (
            "conditions",
            "0004_alter_conditionasserterreference_practitioner_role_and_more",
        ),
        ("contracts", "0003_alter_contractauthorreference_practitioner_role_and_more"),
        (
            "coverageeligibilityrequests",
            "0003_alter_coverageeligibilityrequestproviderreference_practitioner_role",
        ),
        (
            "coverageeligibilityresponses",
            "0003_alter_coverageeligibilityresponserequesterreference_practitioner_role",
        ),
        ("detectedissues", "0005_alter_detectedissueauthorreference_practitioner_role"),
        (
            "devicerequests",
            "0004_alter_devicerequestperformerreference_practitioner_role_and_more",
        ),
        (
            "deviceusages",
            "0003_alter_deviceusageinformationsourcereference_practitioner_role",
        ),
        (
            "diagnosticreports",
            "0004_alter_diagnosticreportperformerreference_practitioner_role",
        ),
        (
            "documentreferences",
            "0005_alter_documentreferenceattesterpartyreference_practitioner_role_and_more",
        ),
        (
            "encounters",
            "0004_alter_encounterparticipantactorreference_practitioner_role",
        ),
        (
            "enrollmentrequests",
            "0003_alter_enrollmentrequestproviderreference_practitioner_role",
        ),
        (
            "enrollmentresponses",
            "0002_alter_enrollmentresponserequestproviderreference_practitioner_role",
        ),
        (
            "explanationofbenefits",
            "0005_alter_explanationofbenefitentererreference_practitioner_role_and_more",
        ),
        (
            "familymemberhistories",
            "0003_alter_familymemberhistoryparticipantactorreference_practitioner_role",
        ),
        ("flags", "0004_alter_flagauthorreference_practitioner_role_and_more"),
        (
            "genomicstudy",
            "0004_alter_genomicstudyanalysisperformeractorreference_practitioner_role",
        ),
        (
            "goals",
            "0004_alter_goalacceptanceparticipantreference_practitioner_role_and_more",
        ),
        (
            "groups",
            "0003_alter_groupmanagingentityreference_practitioner_role_and_more",
        ),
        (
            "imagingselections",
            "0004_alter_imagingselectionperformeractorreference_practitioner_role",
        ),
        (
            "imagingstudy",
            "0003_alter_imagingstudyseriesperformeractorreference_practitioner_role",
        ),
        (
            "immunizations",
            "0004_alter_immunizationinformationsourcerefrence_practitioner_role_and_more",
        ),
        ("invoices", "0003_alter_invoiceparticipantactorreference_practitioner_role"),
        (
            "medicationadministrations",
            "0005_alter_medicationadministrationperformeractorreference_practitioner_role",
        ),
        (
            "medicationdispenses",
            "0004_alter_medicationdispenseperformeractorreference_practitioner_role_and_more",
        ),
        (
            "medicationrequests",
            "0004_alter_medicationrequestinformationsourcereference_practitioner_role_and_more",
        ),
        (
            "medicationstatements",
            "0004_alter_medicationstatementinformationsourcereference_practitioner_role",
        ),
        (
            "nutritionintakes",
            "0004_alter_nutritionintakeperformeractorreference_practitioner_role",
        ),
        (
            "nutritionorders",
            "0004_alter_nutritionorderperformerreference_practitioner_role",
        ),
        ("observations", "0004_alter_observationperformerreference_practitioner_role"),
        ("organizations", "0001_initial"),
        (
            "paymentnotices",
            "0002_alter_paymentnoticepayeereference_practitioner_role_and_more",
        ),
        (
            "paymentreconciliations",
            "0003_alter_paymentreconciliationallocation_responsible",
        ),
        (
            "plandefinitions",
            "0003_alter_plandefinitionactoroptiontypereferencereference_practitioner_role",
        ),
        ("practitionerroles", "0001_initial"),
        ("practitioners", "0001_initial"),
        ("procedures", "0003_alter_procedurefocusreference_practitioner_role_and_more"),
        (
            "riskassessments",
            "0002_alter_riskassessmentperformerreference_practitioner_role",
        ),
        (
            "servicerequests",
            "0002_alter_servicerequestperformerreference_practitioner_role_and_more",
        ),
        (
            "specimens",
            "0002_alter_specimencollectorreference_practitioner_role_and_more",
        ),
        (
            "supplydelivery",
            "0002_alter_supplydeliverydestinationreference_practitioner_role_and_more",
        ),
        (
            "supplyrequests",
            "0002_alter_supplyrequestrequesterreference_practitioner_role",
        ),
        ("tasks", "0002_alter_taskownerreference_practitioner_role_and_more"),
        ("transports", "0002_alter_transportownerreference_practitioner_role_and_more"),
    ]

    operations = [
        migrations.RemoveField(
            model_name="practitionerrole",
            name="availability",
        ),
        migrations.RemoveField(
            model_name="practitionerrole",
            name="characteristic",
        ),
        migrations.RemoveField(
            model_name="practitionerrole",
            name="code",
        ),
        migrations.RemoveField(
            model_name="practitionerrole",
            name="communication",
        ),
        migrations.RemoveField(
            model_name="practitionerrole",
            name="contact",
        ),
        migrations.RemoveField(
            model_name="practitionerrole",
            name="endpoint",
        ),
        migrations.RemoveField(
            model_name="practitionerrole",
            name="healthcare_service",
        ),
        migrations.RemoveField(
            model_name="practitionerrole",
            name="identifier",
        ),
        migrations.RemoveField(
            model_name="practitionerrole",
            name="location",
        ),
        migrations.RemoveField(
            model_name="practitionerrole",
            name="network",
        ),
        migrations.RemoveField(
            model_name="practitionerrole",
            name="organization",
        ),
        migrations.RemoveField(
            model_name="practitionerrole",
            name="period",
        ),
        migrations.RemoveField(
            model_name="practitionerrole",
            name="practitioner",
        ),
        migrations.RemoveField(
            model_name="practitionerrole",
            name="specialty",
        ),
        migrations.AlterField(
            model_name="practitionerpractitionerrolereference",
            name="practitioner_role",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name="practitioner_practitioner_role_reference_practitioner_role",
                to="practitionerroles.PractitionerRole",
            ),
        ),
        migrations.AlterField(
            model_name="practitionerorganizationpractitionerrolereference",
            name="practitioner_role",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name="practitioner_organization_practitioner_role_reference_practitioner_role",
                to="practitionerroles.PractitionerRole",
            ),
        ),
        migrations.RemoveField(
            model_name="practitionerrolereference",
            name="practitioner_role",
        ),
        migrations.DeleteModel(
            name="PractitionerRoleCode",
        ),
        migrations.RemoveField(
            model_name="practitionerrolereference",
            name="identifier",
        ),
        migrations.AddField(
            model_name="practitionerorganizationpractitionerrolereference",
            name="created_at",
            field=models.DateTimeField(
                auto_now_add=True, default=django.utils.timezone.now
            ),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name="practitionerorganizationpractitionerrolereference",
            name="display",
            field=models.CharField(max_length=255, null=True),
        ),
        migrations.AddField(
            model_name="practitionerorganizationpractitionerrolereference",
            name="identifier",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name="practitioner_organization_practitioner_role_reference_identifier",
                to="base.identifier",
            ),
        ),
        migrations.AddField(
            model_name="practitionerorganizationpractitionerrolereference",
            name="reference",
            field=models.CharField(max_length=255, null=True),
        ),
        migrations.AddField(
            model_name="practitionerorganizationpractitionerrolereference",
            name="type",
            field=models.CharField(max_length=255, null=True),
        ),
        migrations.AddField(
            model_name="practitionerorganizationpractitionerrolereference",
            name="updated_at",
            field=models.DateTimeField(auto_now=True),
        ),
        migrations.AlterField(
            model_name="practitionerorganizationpractitionerrolereference",
            name="organization",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name="practitioner_organization_practitioner_role_reference_organization",
                to="organizations.organization",
            ),
        ),
        migrations.AlterField(
            model_name="practitionerorganizationpractitionerrolereference",
            name="practitioner",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name="practitioner_organization_practitioner_role_reference_practitioner",
                to="practitioners.practitioner",
            ),
        ),
        migrations.DeleteModel(
            name="PractitionerRole",
        ),
        migrations.DeleteModel(
            name="PractitionerRoleReference",
        ),
    ]
