# Generated by Django 4.2.14 on 2025-01-06 22:48

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('patients', '0001_initial'),
        ('base', '0002_initial'),
        ('practitioners', '0001_initial'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.AddField(
            model_name='patient',
            name='general_practitioner',
            field=models.ManyToManyField(blank=True, related_name='patient_general_practitioner', to='practitioners.generalpractitionerreference'),
        ),
        migrations.AddField(
            model_name='patient',
            name='identifier',
            field=models.ManyToManyField(blank=True, related_name='patient_identifier', to='base.identifier'),
        ),
        migrations.AddField(
            model_name='patient',
            name='managing_organization',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='patient_managing_organization', to='base.organizationreference'),
        ),
        migrations.AddField(
            model_name='patient',
            name='marital_status',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='patient_marital_status', to='base.codeableconcept'),
        ),
        migrations.AddField(
            model_name='patient',
            name='name',
            field=models.ManyToManyField(blank=True, related_name='patient_name', to='base.humanname'),
        ),
        migrations.AddField(
            model_name='patient',
            name='photo',
            field=models.ManyToManyField(blank=True, related_name='patient_photo', to='base.attachment'),
        ),
        migrations.AddField(
            model_name='patient',
            name='telecom',
            field=models.ManyToManyField(blank=True, related_name='patient_telecom', to='base.contactpoint'),
        ),
        migrations.AddField(
            model_name='patient',
            name='user',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='patient', to=settings.AUTH_USER_MODEL),
        ),
    ]
