# Generated by Django 4.2.14 on 2025-01-28 11:06

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


class Migration(migrations.Migration):

    dependencies = [
        ('bodystructures', '0001_initial'),
        ('encounters', '0008_alter_encounterlocation_location'),
        ('base', '0008_alter_extendedcontactdetail_address_and_more'),
        ('servicerequests', '0002_orderdetailparameter_and_more'),
    ]

    operations = [
        migrations.AddField(
            model_name='servicerequest',
            name='as_needed',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='servicerequest',
            name='encounter',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='service_request_encounter', to='encounters.encounterreference'),
        ),
        migrations.RemoveField(
            model_name='servicerequest',
            name='as_needed_for',
        ),
        migrations.RemoveField(
            model_name='servicerequest',
            name='body_structure',
        ),
        migrations.AddField(
            model_name='servicerequest',
            name='as_needed_for',
            field=models.ManyToManyField(blank=True, related_name='service_request_as_needed_for', to='base.codeableconcept'),
        ),
        migrations.AddField(
            model_name='servicerequest',
            name='body_structure',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='service_request_body_structure', to='bodystructures.bodystructurereference'),
        ),
    ]
