# Generated by Django 3.0.9 on 2020-09-10 14:42

import django.core.validators
from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("sites", "0002_alter_domain_unique"),
        ("inte_lists", "0007_auto_20200910_1742"),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ("inte_subject", "0047_auto_20200909_1956"),
    ]

    operations = [
        migrations.RenameModel(
            old_name="DiabetesInitialReview",
            new_name="DmInitialReview",
        ),
        migrations.RenameModel(
            old_name="DiabetesReview",
            new_name="DmReview",
        ),
        migrations.RenameModel(
            old_name="DrugRefillDiabetes",
            new_name="DrugRefillDm",
        ),
        migrations.RenameModel(
            old_name="DrugRefillHypertension",
            new_name="DrugRefillHtn",
        ),
        migrations.RenameModel(
            old_name="DrugSupplyDiabetes",
            new_name="DrugSupplyDm",
        ),
        migrations.RenameModel(
            old_name="DrugSupplyHypertension",
            new_name="DrugSupplyHtn",
        ),
        migrations.RenameModel(
            old_name="HistoricalDiabetesInitialReview",
            new_name="HistoricalDmInitialReview",
        ),
        migrations.RenameModel(
            old_name="HistoricalDiabetesReview",
            new_name="HistoricalDmReview",
        ),
        migrations.RenameModel(
            old_name="HistoricalDrugRefillDiabetes",
            new_name="HistoricalDrugRefillDm",
        ),
        migrations.RenameModel(
            old_name="HistoricalDrugRefillHypertension",
            new_name="HistoricalDrugRefillHtn",
        ),
        migrations.RenameModel(
            old_name="HistoricalHypertensionInitialReview",
            new_name="HistoricalHtnInitialReview",
        ),
        migrations.RenameModel(
            old_name="HistoricalHypertensionReview",
            new_name="HistoricalHtnReview",
        ),
        migrations.RenameModel(
            old_name="HypertensionInitialReview",
            new_name="HtnInitialReview",
        ),
        migrations.RenameModel(
            old_name="HypertensionReview",
            new_name="HtnReview",
        ),
        migrations.RemoveIndex(
            model_name="dminitialreview",
            name="inte_subjec_subject_12741a_idx",
        ),
        migrations.RemoveIndex(
            model_name="dmreview",
            name="inte_subjec_subject_d3b682_idx",
        ),
        migrations.RemoveIndex(
            model_name="drugrefilldm",
            name="inte_subjec_subject_83e8d3_idx",
        ),
        migrations.RemoveIndex(
            model_name="drugrefillhtn",
            name="inte_subjec_subject_f19c4f_idx",
        ),
        migrations.RemoveIndex(
            model_name="htninitialreview",
            name="inte_subjec_subject_7a085f_idx",
        ),
        migrations.RemoveIndex(
            model_name="htnreview",
            name="inte_subjec_subject_9b8ae5_idx",
        ),
        migrations.RenameField(
            model_name="clinicalreview",
            old_name="diabetes_dx",
            new_name="dm_dx",
        ),
        migrations.RenameField(
            model_name="clinicalreview",
            old_name="diabetes_reason_other",
            new_name="dm_reason_other",
        ),
        migrations.RenameField(
            model_name="clinicalreview",
            old_name="diabetes_tested",
            new_name="dm_test",
        ),
        migrations.RenameField(
            model_name="clinicalreview",
            old_name="diabetes_test_date",
            new_name="dm_test_date",
        ),
        migrations.RenameField(
            model_name="clinicalreview",
            old_name="hiv_tested",
            new_name="hiv_test",
        ),
        migrations.RenameField(
            model_name="clinicalreview",
            old_name="hypertension_dx",
            new_name="htn_dx",
        ),
        migrations.RenameField(
            model_name="clinicalreview",
            old_name="hypertension_reason_other",
            new_name="htn_reason_other",
        ),
        migrations.RenameField(
            model_name="clinicalreview",
            old_name="hypertension_tested",
            new_name="htn_test",
        ),
        migrations.RenameField(
            model_name="clinicalreview",
            old_name="hypertension_test_date",
            new_name="htn_test_date",
        ),
        migrations.RenameField(
            model_name="clinicalreviewbaseline",
            old_name="diabetes_dx",
            new_name="dm_dx",
        ),
        migrations.RenameField(
            model_name="clinicalreviewbaseline",
            old_name="diabetes_tested",
            new_name="dm_test",
        ),
        migrations.RenameField(
            model_name="clinicalreviewbaseline",
            old_name="diabetes_tested_ago",
            new_name="dm_test_ago",
        ),
        migrations.RenameField(
            model_name="clinicalreviewbaseline",
            old_name="diabetes_tested_date",
            new_name="dm_test_date",
        ),
        migrations.RenameField(
            model_name="clinicalreviewbaseline",
            old_name="hiv_tested",
            new_name="hiv_test",
        ),
        migrations.RenameField(
            model_name="clinicalreviewbaseline",
            old_name="hiv_tested_ago",
            new_name="hiv_test_ago",
        ),
        migrations.RenameField(
            model_name="clinicalreviewbaseline",
            old_name="hiv_tested_date",
            new_name="hiv_test_date",
        ),
        migrations.RenameField(
            model_name="clinicalreviewbaseline",
            old_name="hypertension_dx",
            new_name="htn_dx",
        ),
        migrations.RenameField(
            model_name="clinicalreviewbaseline",
            old_name="hypertension_tested",
            new_name="htn_test",
        ),
        migrations.RenameField(
            model_name="clinicalreviewbaseline",
            old_name="hypertension_tested_ago",
            new_name="htn_test_ago",
        ),
        migrations.RenameField(
            model_name="clinicalreviewbaseline",
            old_name="hypertension_tested_date",
            new_name="htn_test_date",
        ),
        migrations.RenameField(
            model_name="familyhistory",
            old_name="diabetes_cause_tf",
            new_name="dm_cause_tf",
        ),
        migrations.RenameField(
            model_name="familyhistory",
            old_name="diabetes_in_household",
            new_name="dm_in_household",
        ),
        migrations.RenameField(
            model_name="familyhistory",
            old_name="hypertension_in_household",
            new_name="htn_in_household",
        ),
        migrations.RenameField(
            model_name="familyhistory",
            old_name="stop_diabetes_meds_tf",
            new_name="stop_dm_meds_tf",
        ),
        migrations.RenameField(
            model_name="familyhistory",
            old_name="stop_hypertension_meds_tf",
            new_name="stop_htn_meds_tf",
        ),
        migrations.RenameField(
            model_name="familyhistory",
            old_name="traditional_diabetes_tf",
            new_name="traditional_dm_tf",
        ),
        migrations.RenameField(
            model_name="familyhistory",
            old_name="traditional_hypertension_tf",
            new_name="traditional_htn_tf",
        ),
        migrations.RenameField(
            model_name="healtheconomics",
            old_name="diabetes_expenditure_month",
            new_name="dm_expenditure_month",
        ),
        migrations.RenameField(
            model_name="healtheconomics",
            old_name="diabetes_payee",
            new_name="dm_payee",
        ),
        migrations.RenameField(
            model_name="healtheconomics",
            old_name="hypertension_expenditure_month",
            new_name="htn_expenditure_month",
        ),
        migrations.RenameField(
            model_name="healtheconomics",
            old_name="hypertension_payee",
            new_name="htn_payee",
        ),
        migrations.RenameField(
            model_name="healtheconomicsrevised",
            old_name="non_drug_activities_month_cost",
            new_name="non_drug_activities_cost_month",
        ),
        migrations.RenameField(
            model_name="healtheconomicsrevised",
            old_name="non_drug_activities_today_cost",
            new_name="non_drug_activities_cost_today",
        ),
        migrations.RenameField(
            model_name="healtheconomicsrevised",
            old_name="non_drug_activities_month_detail",
            new_name="non_drug_activities_detail_month",
        ),
        migrations.RenameField(
            model_name="healtheconomicsrevised",
            old_name="non_drug_activities_toay_detail",
            new_name="non_drug_activities_detail_today",
        ),
        migrations.RenameField(
            model_name="healtheconomicsrevised",
            old_name="rx_diabetes_cost_month",
            new_name="rx_dm_cost_month",
        ),
        migrations.RenameField(
            model_name="healtheconomicsrevised",
            old_name="rx_diabetes_cost_today",
            new_name="rx_dm_cost_today",
        ),
        migrations.RenameField(
            model_name="healtheconomicsrevised",
            old_name="rx_diabetes_month",
            new_name="rx_dm_month",
        ),
        migrations.RenameField(
            model_name="healtheconomicsrevised",
            old_name="rx_diabetes_today",
            new_name="rx_dm_today",
        ),
        migrations.RenameField(
            model_name="healtheconomicsrevised",
            old_name="rx_hypertension_cost_month",
            new_name="rx_htn_cost_month",
        ),
        migrations.RenameField(
            model_name="healtheconomicsrevised",
            old_name="rx_hypertension_cost_today",
            new_name="rx_htn_cost_today",
        ),
        migrations.RenameField(
            model_name="healtheconomicsrevised",
            old_name="rx_hypertension_month",
            new_name="rx_htn_month",
        ),
        migrations.RenameField(
            model_name="healtheconomicsrevised",
            old_name="rx_hypertension_today",
            new_name="rx_htn_today",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreview",
            old_name="diabetes_dx",
            new_name="dm_dx",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreview",
            old_name="diabetes_reason_other",
            new_name="dm_reason_other",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreview",
            old_name="diabetes_tested",
            new_name="dm_test",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreview",
            old_name="diabetes_test_date",
            new_name="dm_test_date",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreview",
            old_name="hiv_tested",
            new_name="hiv_test",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreview",
            old_name="hypertension_dx",
            new_name="htn_dx",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreview",
            old_name="hypertension_reason_other",
            new_name="htn_reason_other",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreview",
            old_name="hypertension_tested",
            new_name="htn_test",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreview",
            old_name="hypertension_test_date",
            new_name="htn_test_date",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreviewbaseline",
            old_name="diabetes_dx",
            new_name="dm_dx",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreviewbaseline",
            old_name="diabetes_tested",
            new_name="dm_test",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreviewbaseline",
            old_name="diabetes_tested_ago",
            new_name="dm_test_ago",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreviewbaseline",
            old_name="diabetes_tested_date",
            new_name="dm_test_date",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreviewbaseline",
            old_name="hiv_tested",
            new_name="hiv_test",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreviewbaseline",
            old_name="hiv_tested_ago",
            new_name="hiv_test_ago",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreviewbaseline",
            old_name="hiv_tested_date",
            new_name="hiv_test_date",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreviewbaseline",
            old_name="hypertension_dx",
            new_name="htn_dx",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreviewbaseline",
            old_name="hypertension_tested",
            new_name="htn_test",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreviewbaseline",
            old_name="hypertension_tested_ago",
            new_name="htn_test_ago",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreviewbaseline",
            old_name="hypertension_tested_date",
            new_name="htn_test_date",
        ),
        migrations.RenameField(
            model_name="historicalfamilyhistory",
            old_name="diabetes_cause_tf",
            new_name="dm_cause_tf",
        ),
        migrations.RenameField(
            model_name="historicalfamilyhistory",
            old_name="diabetes_in_household",
            new_name="dm_in_household",
        ),
        migrations.RenameField(
            model_name="historicalfamilyhistory",
            old_name="hypertension_in_household",
            new_name="htn_in_household",
        ),
        migrations.RenameField(
            model_name="historicalfamilyhistory",
            old_name="stop_diabetes_meds_tf",
            new_name="stop_dm_meds_tf",
        ),
        migrations.RenameField(
            model_name="historicalfamilyhistory",
            old_name="stop_hypertension_meds_tf",
            new_name="stop_htn_meds_tf",
        ),
        migrations.RenameField(
            model_name="historicalfamilyhistory",
            old_name="traditional_diabetes_tf",
            new_name="traditional_dm_tf",
        ),
        migrations.RenameField(
            model_name="historicalfamilyhistory",
            old_name="traditional_hypertension_tf",
            new_name="traditional_htn_tf",
        ),
        migrations.RenameField(
            model_name="historicalhealtheconomics",
            old_name="diabetes_expenditure_month",
            new_name="dm_expenditure_month",
        ),
        migrations.RenameField(
            model_name="historicalhealtheconomics",
            old_name="diabetes_payee",
            new_name="dm_payee",
        ),
        migrations.RenameField(
            model_name="historicalhealtheconomics",
            old_name="hypertension_expenditure_month",
            new_name="htn_expenditure_month",
        ),
        migrations.RenameField(
            model_name="historicalhealtheconomics",
            old_name="hypertension_payee",
            new_name="htn_payee",
        ),
        migrations.RenameField(
            model_name="historicalhealtheconomicsrevised",
            old_name="non_drug_activities_month_cost",
            new_name="non_drug_activities_cost_month",
        ),
        migrations.RenameField(
            model_name="historicalhealtheconomicsrevised",
            old_name="non_drug_activities_today_cost",
            new_name="non_drug_activities_cost_today",
        ),
        migrations.RenameField(
            model_name="historicalhealtheconomicsrevised",
            old_name="non_drug_activities_month_detail",
            new_name="non_drug_activities_detail_month",
        ),
        migrations.RenameField(
            model_name="historicalhealtheconomicsrevised",
            old_name="non_drug_activities_toay_detail",
            new_name="non_drug_activities_detail_today",
        ),
        migrations.RenameField(
            model_name="historicalhealtheconomicsrevised",
            old_name="rx_diabetes_cost_month",
            new_name="rx_dm_cost_month",
        ),
        migrations.RenameField(
            model_name="historicalhealtheconomicsrevised",
            old_name="rx_diabetes_cost_today",
            new_name="rx_dm_cost_today",
        ),
        migrations.RenameField(
            model_name="historicalhealtheconomicsrevised",
            old_name="rx_diabetes_month",
            new_name="rx_dm_month",
        ),
        migrations.RenameField(
            model_name="historicalhealtheconomicsrevised",
            old_name="rx_diabetes_today",
            new_name="rx_dm_today",
        ),
        migrations.RenameField(
            model_name="historicalhealtheconomicsrevised",
            old_name="rx_hypertension_cost_month",
            new_name="rx_htn_cost_month",
        ),
        migrations.RenameField(
            model_name="historicalhealtheconomicsrevised",
            old_name="rx_hypertension_cost_today",
            new_name="rx_htn_cost_today",
        ),
        migrations.RenameField(
            model_name="historicalhealtheconomicsrevised",
            old_name="rx_hypertension_month",
            new_name="rx_htn_month",
        ),
        migrations.RenameField(
            model_name="historicalhealtheconomicsrevised",
            old_name="rx_hypertension_today",
            new_name="rx_htn_today",
        ),
        migrations.RenameField(
            model_name="historicalnextappointment",
            old_name="diabetes_clinic_appt_date",
            new_name="dm_clinic_appt_date",
        ),
        migrations.RenameField(
            model_name="historicalnextappointment",
            old_name="hypertension_clinic_appt_date",
            new_name="htn_clinic_appt_date",
        ),
        migrations.RenameField(
            model_name="historicalreasonforvisit",
            old_name="refill_diabetes",
            new_name="refill_dm",
        ),
        migrations.RenameField(
            model_name="historicalreasonforvisit",
            old_name="refill_hypertension",
            new_name="refill_htn",
        ),
        migrations.RenameField(
            model_name="medications",
            old_name="refill_diabetes",
            new_name="refill_dm",
        ),
        migrations.RenameField(
            model_name="medications",
            old_name="refill_hypertension",
            new_name="refill_htn",
        ),
        migrations.RenameField(
            model_name="nextappointment",
            old_name="diabetes_clinic_appt_date",
            new_name="dm_clinic_appt_date",
        ),
        migrations.RenameField(
            model_name="nextappointment",
            old_name="hypertension_clinic_appt_date",
            new_name="htn_clinic_appt_date",
        ),
        migrations.RenameField(
            model_name="reasonforvisit",
            old_name="refill_diabetes",
            new_name="refill_dm",
        ),
        migrations.RenameField(
            model_name="reasonforvisit",
            old_name="refill_hypertension",
            new_name="refill_htn",
        ),
        migrations.RenameField(
            model_name="clinicalreview",
            old_name="diabetes_reason",
            new_name="dm_reason",
        ),
        migrations.RenameField(
            model_name="clinicalreview",
            old_name="hypertension_reason",
            new_name="htn_reason",
        ),
        migrations.RenameField(
            model_name="clinicalreviewbaseline",
            old_name="diabetes_tested_estimated_datetime",
            new_name="dm_test_estimated_datetime",
        ),
        migrations.RenameField(
            model_name="clinicalreviewbaseline",
            old_name="hiv_tested_estimated_datetime",
            new_name="hiv_test_estimated_datetime",
        ),
        migrations.RenameField(
            model_name="clinicalreviewbaseline",
            old_name="hypertension_tested_estimated_datetime",
            new_name="htn_test_estimated_datetime",
        ),
        migrations.RemoveField(
            model_name="healtheconomicsrevised",
            name="rx_diabetes_paid_month",
        ),
        migrations.RemoveField(
            model_name="healtheconomicsrevised",
            name="rx_diabetes_paid_today",
        ),
        migrations.RemoveField(
            model_name="healtheconomicsrevised",
            name="rx_hypertension_paid_month",
        ),
        migrations.RemoveField(
            model_name="healtheconomicsrevised",
            name="rx_hypertension_paid_today",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreviewbaseline",
            old_name="diabetes_tested_estimated_datetime",
            new_name="dm_test_estimated_datetime",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreviewbaseline",
            old_name="hiv_tested_estimated_datetime",
            new_name="hiv_test_estimated_datetime",
        ),
        migrations.RenameField(
            model_name="historicalclinicalreviewbaseline",
            old_name="hypertension_tested_estimated_datetime",
            new_name="htn_test_estimated_datetime",
        ),
        migrations.RenameField(
            model_name="historicalmedications",
            old_name="refill_diabetes",
            new_name="refill_dm",
        ),
        migrations.RenameField(
            model_name="historicalmedications",
            old_name="refill_hypertension",
            new_name="refill_htn",
        ),
        migrations.AddField(
            model_name="healtheconomicsrevised",
            name="healthcare_expenditure_total_month_today",
            field=models.IntegerField(
                default=0,
                help_text="In local currency",
                validators=[django.core.validators.MinValueValidator(0)],
                verbose_name="How much in total has been spent on your healthcare in the last month?",
            ),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name="healtheconomicsrevised",
            name="rx_dm_paid_month",
            field=models.ManyToManyField(
                blank=True,
                related_name="_healtheconomicsrevised_rx_dm_paid_month_+",
                to="inte_lists.DrugPaySources",
                verbose_name="If YES, how were these paid for?",
            ),
        ),
        migrations.AddField(
            model_name="healtheconomicsrevised",
            name="rx_dm_paid_today",
            field=models.ManyToManyField(
                blank=True,
                related_name="_healtheconomicsrevised_rx_dm_paid_today_+",
                to="inte_lists.DrugPaySources",
                verbose_name="If YES, received raised blood sugar (diabetes) drugs, how were these paid for?",
            ),
        ),
        migrations.AddField(
            model_name="healtheconomicsrevised",
            name="rx_htn_paid_month",
            field=models.ManyToManyField(
                blank=True,
                related_name="_healtheconomicsrevised_rx_htn_paid_month_+",
                to="inte_lists.DrugPaySources",
                verbose_name="If YES, how were these paid for?",
            ),
        ),
        migrations.AddField(
            model_name="healtheconomicsrevised",
            name="rx_htn_paid_today",
            field=models.ManyToManyField(
                blank=True,
                related_name="_healtheconomicsrevised_rx_htn_paid_today_+",
                to="inte_lists.DrugPaySources",
                verbose_name="If YES, received high blood pressure (Hypertension) drugs, how were these paid for?",
            ),
        ),
        migrations.AlterField(
            model_name="clinicalreview",
            name="hiv_reason",
            field=models.ManyToManyField(
                blank=True,
                related_name="hiv_test_reason",
                to="inte_lists.ReasonsForTesting",
                verbose_name="Why was the patient tested for HIV infection?",
            ),
        ),
        migrations.AlterField(
            model_name="historicalmedications",
            name="refill_hiv",
            field=models.CharField(
                choices=[("Yes", "Yes"), ("No", "No"), ("N/A", "Not applicable")],
                default="N/A",
                help_text="Select `not applicable` if subject has not been diagnosed and prescribed medication for HIV infection.",
                max_length=25,
                verbose_name="Is the patient filling / refilling HIV medications?",
            ),
        ),
        migrations.AlterField(
            model_name="historicalmedications",
            name="refill_dm",
            field=models.CharField(
                choices=[("Yes", "Yes"), ("No", "No"), ("N/A", "Not applicable")],
                default="N/A",
                help_text="Select `not applicable` if subject has not been diagnosed and prescribed medication for Diabetes.",
                max_length=25,
                verbose_name="Is the patient filling / refilling Diabetes medications?",
            ),
        ),
        migrations.AlterField(
            model_name="historicalmedications",
            name="refill_htn",
            field=models.CharField(
                choices=[("Yes", "Yes"), ("No", "No"), ("N/A", "Not applicable")],
                default="N/A",
                help_text="Select `not applicable` if subject has not been diagnosed and prescribed medication for Hypertension.",
                max_length=25,
                verbose_name="Is the patient filling / refilling Hypertension medications?",
            ),
        ),
        migrations.AddIndex(
            model_name="dminitialreview",
            index=models.Index(
                fields=["subject_visit", "site", "id"],
                name="inte_subjec_subject_af6363_idx",
            ),
        ),
        migrations.AddIndex(
            model_name="dmreview",
            index=models.Index(
                fields=["subject_visit", "site", "id"],
                name="inte_subjec_subject_42a327_idx",
            ),
        ),
        migrations.AddIndex(
            model_name="drugrefilldm",
            index=models.Index(
                fields=["subject_visit", "site", "id"],
                name="inte_subjec_subject_2d7914_idx",
            ),
        ),
        migrations.AddIndex(
            model_name="drugrefillhtn",
            index=models.Index(
                fields=["subject_visit", "site", "id"],
                name="inte_subjec_subject_e48516_idx",
            ),
        ),
        migrations.AddIndex(
            model_name="htninitialreview",
            index=models.Index(
                fields=["subject_visit", "site", "id"],
                name="inte_subjec_subject_3528b7_idx",
            ),
        ),
        migrations.AddIndex(
            model_name="htnreview",
            index=models.Index(
                fields=["subject_visit", "site", "id"],
                name="inte_subjec_subject_969be9_idx",
            ),
        ),
    ]
