# Generated by Django 3.2.2 on 2021-08-18 23:46

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Chart',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('patient', models.CharField(max_length=250)),
                ('assignment', models.CharField(max_length=250)),
                ('student_name', models.CharField(max_length=250)),
                ('student_id', models.CharField(max_length=250)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'ordering': ('-created_at',),
            },
        ),
        migrations.CreateModel(
            name='Entry',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('time', models.TimeField()),
                ('notes', models.TextField(blank=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('chart', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='charts.chart')),
            ],
            options={
                'verbose_name_plural': 'entries',
                'ordering': ('time',),
            },
        ),
        migrations.CreateModel(
            name='Ambulation',
            fields=[
                ('entry_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='charts.entry')),
                ('method', models.CharField(blank=True, choices=[('CH', 'Chair'), ('RO', 'Up in room'), ('HA', 'Ambulate in hall'), ('PT', 'To PT')], max_length=2)),
                ('assistance', models.CharField(blank=True, choices=[('IN', 'Independent'), ('ON', 'One assist with gait belt'), ('TW', 'Two assist'), ('LI', 'Lift')], max_length=2)),
                ('devices_used', models.CharField(blank=True, choices=[('WA', 'Walker'), ('CR', 'Crutches'), ('WH', 'Wheelchair'), ('NO', 'None')], max_length=2)),
            ],
            bases=('charts.entry',),
        ),
        migrations.CreateModel(
            name='Bathing',
            fields=[
                ('entry_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='charts.entry')),
                ('method', models.CharField(blank=True, choices=[('SH', 'Shower'), ('TU', 'Tub'), ('PA', 'Partial'), ('BB', 'Bed bath'), ('SP', 'Specialty')], max_length=2)),
                ('method_other', models.CharField(blank=True, max_length=250)),
            ],
            options={
                'verbose_name_plural': 'bathing',
            },
            bases=('charts.entry',),
        ),
        migrations.CreateModel(
            name='BowelMovement',
            fields=[
                ('entry_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='charts.entry')),
                ('assistance', models.CharField(blank=True, choices=[('IN', 'Independent'), ('AS', 'Assisted'), ('DE', 'Totally dependent')], default='IN', max_length=2)),
                ('amount', models.CharField(blank=True, choices=[('SM', 'Small'), ('MD', 'Moderate'), ('LG', 'Large')], max_length=2)),
                ('color', models.CharField(blank=True, max_length=100)),
                ('consistency', models.CharField(blank=True, choices=[('SF', 'Soft'), ('HD', 'Hard'), ('LQ', 'Liquid'), ('FM', 'Formed')], max_length=2)),
            ],
            bases=('charts.entry',),
        ),
        migrations.CreateModel(
            name='Dressing',
            fields=[
                ('entry_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='charts.entry')),
                ('time_of_day', models.CharField(blank=True, choices=[('AM', 'Morning'), ('PM', 'Evening')], max_length=2)),
                ('assistance', models.CharField(blank=True, choices=[('IN', 'Independent'), ('AS', 'Assisted'), ('DE', 'Totally dependent')], default='IN', max_length=2)),
            ],
            bases=('charts.entry',),
        ),
        migrations.CreateModel(
            name='Emesis',
            fields=[
                ('entry_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='charts.entry')),
                ('amount', models.PositiveIntegerField()),
                ('color', models.CharField(blank=True, max_length=100)),
            ],
            bases=('charts.entry',),
        ),
        migrations.CreateModel(
            name='FluidIntake',
            fields=[
                ('entry_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='charts.entry')),
                ('fluid_type', models.CharField(max_length=100)),
                ('intake_amount', models.PositiveIntegerField()),
                ('npo', models.BooleanField(default=False)),
            ],
            bases=('charts.entry',),
        ),
        migrations.CreateModel(
            name='Meal',
            fields=[
                ('entry_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='charts.entry')),
                ('kind', models.CharField(blank=True, choices=[('BR', 'Breakfast'), ('LU', 'Lunch'), ('DI', 'Dinner'), ('SN', 'Snack')], max_length=2)),
                ('amount_consumed', models.FloatField(blank=True, null=True)),
            ],
            bases=('charts.entry',),
        ),
        migrations.CreateModel(
            name='OralCare',
            fields=[
                ('entry_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='charts.entry')),
                ('assistance', models.CharField(blank=True, choices=[('IN', 'Independent'), ('AS', 'Assisted'), ('DE', 'Totally dependent')], default='IN', max_length=2, null=True)),
                ('dentures_upper', models.BooleanField(default=False)),
                ('dentures_lower', models.BooleanField(default=False)),
            ],
            options={
                'verbose_name_plural': 'oral care',
            },
            bases=('charts.entry',),
        ),
        migrations.CreateModel(
            name='OxygenLevel',
            fields=[
                ('entry_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='charts.entry')),
                ('oxygen_level', models.FloatField(blank=True, null=True)),
                ('delivery_method', models.CharField(blank=True, choices=[('NA', 'Per nasal cannula'), ('MA', 'Per mask'), ('RE', 'Refused to wear')], max_length=2)),
            ],
            bases=('charts.entry',),
        ),
        migrations.CreateModel(
            name='PainLevel',
            fields=[
                ('entry_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='charts.entry')),
                ('score', models.PositiveIntegerField(blank=True, null=True)),
                ('reported_to_nurse', models.BooleanField(default=False)),
            ],
            bases=('charts.entry',),
        ),
        migrations.CreateModel(
            name='RangeOfMotion',
            fields=[
                ('entry_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='charts.entry')),
                ('motion_kind', models.CharField(blank=True, choices=[('PA', 'Passive'), ('AC', 'Active'), ('CO', 'Combination')], max_length=2)),
                ('antiembolic_stockings', models.BooleanField(default=False)),
                ('turn_or_position_change', models.BooleanField(default=False)),
            ],
            bases=('charts.entry',),
        ),
        migrations.CreateModel(
            name='Restraint',
            fields=[
                ('entry_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='charts.entry')),
                ('restraints_used', models.CharField(blank=True, choices=[('TW', 'Side rails x2'), ('FO', 'Side rails x4'), ('NO', 'None')], max_length=2)),
                ('restraints_soft', models.BooleanField(default=False)),
            ],
            bases=('charts.entry',),
        ),
        migrations.CreateModel(
            name='Safety',
            fields=[
                ('entry_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='charts.entry')),
                ('call_light_in_reach', models.BooleanField(default=False)),
                ('bed_low', models.BooleanField(default=False)),
                ('brakes_on', models.BooleanField(default=False)),
                ('falls', models.CharField(blank=True, max_length=999)),
                ('nausea', models.CharField(blank=True, max_length=999)),
                ('vomiting', models.CharField(blank=True, max_length=999)),
                ('confusion', models.CharField(blank=True, max_length=999)),
                ('combative', models.CharField(blank=True, max_length=999)),
            ],
            bases=('charts.entry',),
        ),
        migrations.CreateModel(
            name='Toileting',
            fields=[
                ('entry_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='charts.entry')),
                ('assistance', models.CharField(blank=True, choices=[('IN', 'Independent'), ('AS', 'Assisted'), ('DE', 'Totally dependent')], default='IN', max_length=2)),
                ('method', models.CharField(blank=True, choices=[('CO', 'Commode'), ('BP', 'Bed pan'), ('CA', 'Catheter')], max_length=2)),
                ('brief_change', models.BooleanField(default=False)),
                ('perineal_care', models.BooleanField(default=False)),
                ('catheter_care', models.BooleanField(default=False)),
            ],
            bases=('charts.entry',),
        ),
        migrations.CreateModel(
            name='Urine',
            fields=[
                ('entry_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='charts.entry')),
                ('assistance', models.CharField(blank=True, choices=[('IN', 'Independent'), ('AS', 'Assisted'), ('DE', 'Totally dependent')], default='IN', max_length=2)),
                ('color', models.CharField(blank=True, choices=[('YE', 'Yellow'), ('DA', 'Dark yellow'), ('BR', 'Brown')], max_length=2)),
                ('amount', models.PositiveIntegerField()),
            ],
            bases=('charts.entry',),
        ),
        migrations.CreateModel(
            name='Vitals',
            fields=[
                ('entry_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='charts.entry')),
                ('o2_saturation', models.PositiveIntegerField(blank=True, null=True)),
                ('temperature', models.FloatField(blank=True, null=True)),
                ('temperature_units', models.CharField(blank=True, choices=[('CE', 'C'), ('FA', 'F')], default='FA', max_length=2, null=True)),
                ('pulse', models.IntegerField(blank=True, null=True)),
                ('respirations', models.IntegerField(blank=True, null=True)),
                ('blood_pressure_systolic', models.IntegerField(blank=True, null=True)),
                ('blood_pressure_diastolic', models.IntegerField(blank=True, null=True)),
                ('weight', models.FloatField(blank=True, null=True)),
                ('weight_units', models.CharField(blank=True, choices=[('LB', 'LBS'), ('KG', 'KG')], default='LB', max_length=2, null=True)),
            ],
            bases=('charts.entry',),
        ),
    ]
