Skip to content

Commit

Permalink
clear migrations, remove unused appointment model, add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeyManoguerra committed Jan 25, 2021
1 parent 611cbf0 commit ec290b9
Show file tree
Hide file tree
Showing 18 changed files with 61 additions and 324 deletions.
9 changes: 0 additions & 9 deletions core/management/commands/users_and_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
"add_medication",
"change_medication",
"view_medication",
"add_appointment",
"change_appointment",
"view_appointment",
"add_casemanagement",
"change_casemanagement",
"view_casemanagement",
Expand Down Expand Up @@ -65,9 +62,6 @@
"view_service",
"add_visit",
"change_visit",
"add_appointment",
"change_appointment",
"view_appointment",
"add_frontdeskevent",
"change_frontdeskevent",
"view_frontdeskevent",
Expand All @@ -87,9 +81,6 @@
"view_service",
"change_visit",
"view_visit",
"add_appointment",
"change_appointment",
"view_appointment",
"add_frontdeskevent",
"change_frontdeskevent",
"view_frontdeskevent",
Expand Down
50 changes: 32 additions & 18 deletions core/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 2.2.13 on 2020-08-16 23:37
# Generated by Django 2.2.13 on 2021-01-25 22:06

from django.db import migrations, models
import django.db.models.deletion
Expand Down Expand Up @@ -45,7 +45,9 @@ class Migration(migrations.Migration):
('date_of_birth', models.DateField()),
('start_date', models.DateField()),
('is_insured', models.BooleanField(default=False)),
('insurer', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='core.Insurer')),
('maiden_name', models.CharField(blank=True, max_length=100, null=True, verbose_name="Mother's Maiden Name")),
('sep_id', models.IntegerField(null=True, unique=True)),
('insurer', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='core.Insurer')),
],
),
migrations.CreateModel(
Expand All @@ -55,6 +57,7 @@ class Migration(migrations.Migration):
('name', models.CharField(max_length=100)),
('is_closed', models.BooleanField(default=False)),
('is_frozen', models.BooleanField(default=False)),
('has_queue', models.BooleanField(default=True)),
],
),
migrations.CreateModel(
Expand All @@ -63,8 +66,20 @@ class Migration(migrations.Migration):
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=100)),
('available', models.BooleanField(default=False)),
('slug', models.CharField(max_length=100, unique=True, verbose_name='Concise Descriptive Identifier')),
('program', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='services', to='core.Program')),
('slug', models.CharField(max_length=100, unique=True)),
],
),
migrations.CreateModel(
name='Site',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('site_name', models.CharField(max_length=100)),
('site_type', models.CharField(max_length=100)),
('description', models.CharField(max_length=100)),
('address', models.CharField(max_length=1000, null=True)),
('zip_code', models.CharField(max_length=10, null=True)),
('created_at', models.DateTimeField(default=django.utils.timezone.now)),
],
),
migrations.CreateModel(
Expand Down Expand Up @@ -102,6 +117,18 @@ class Migration(migrations.Migration):
('visit', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Visit')),
],
),
migrations.CreateModel(
name='SepData',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(default=django.utils.timezone.now)),
('needles_in', models.IntegerField()),
('needles_out', models.IntegerField()),
('exchanged_for', models.IntegerField(default=None, null=True)),
('site', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Site')),
('visit', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Visit')),
],
),
migrations.CreateModel(
name='Question',
fields=[
Expand Down Expand Up @@ -143,7 +170,7 @@ class Migration(migrations.Migration):
],
),
migrations.CreateModel(
name='HCVNotes',
name='HCVNote',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('note_timestamp', models.DateTimeField()),
Expand Down Expand Up @@ -174,25 +201,12 @@ class Migration(migrations.Migration):
],
),
migrations.CreateModel(
name='BehavioralHealthNotes',
name='BehavioralHealthNote',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('note_timestamp', models.DateTimeField()),
('behavior_note', models.TextField()),
('visit', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Visit')),
],
),
migrations.CreateModel(
name='Appointment',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('appointment_timestamp', models.DateTimeField()),
('crs_timestamp', models.DateTimeField()),
('crs_seen', models.BooleanField(default=False)),
('cm_timestamp', models.DateTimeField()),
('cm_seen', models.BooleanField(default=False)),
('hcv_status', models.BooleanField(default=False)),
('participant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Participant')),
],
),
]
18 changes: 0 additions & 18 deletions core/migrations/0002_participant_sep_id.py

This file was deleted.

24 changes: 0 additions & 24 deletions core/migrations/0003_sites.py

This file was deleted.

26 changes: 0 additions & 26 deletions core/migrations/0004_sep_data.py

This file was deleted.

35 changes: 0 additions & 35 deletions core/migrations/0005_auto_20200929_1248.py

This file was deleted.

18 changes: 0 additions & 18 deletions core/migrations/0006_participant_maiden_name.py

This file was deleted.

23 changes: 0 additions & 23 deletions core/migrations/0007_auto_20201014_1626.py

This file was deleted.

21 changes: 0 additions & 21 deletions core/migrations/0008_auto_20201020_1008.py

This file was deleted.

17 changes: 0 additions & 17 deletions core/migrations/0009_auto_20201020_1017.py

This file was deleted.

24 changes: 0 additions & 24 deletions core/migrations/0010_auto_20201204_2107.py

This file was deleted.

18 changes: 0 additions & 18 deletions core/migrations/0011_program_has_queue.py

This file was deleted.

18 changes: 0 additions & 18 deletions core/migrations/0012_auto_20201216_0954.py

This file was deleted.

Loading

0 comments on commit ec290b9

Please sign in to comment.