-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Arpan Abhishek <[email protected]> Co-authored-by: Gigin George <[email protected]>
- Loading branch information
1 parent
f71b399
commit 9277da5
Showing
13 changed files
with
336 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Generated by Django 2.2.11 on 2022-04-15 14:02 | ||
|
||
import django.contrib.postgres.fields.jsonb | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import uuid | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('facility', '0286_auto_20220316_2004'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='dailyround', | ||
name='admitted_to', | ||
), | ||
migrations.RemoveField( | ||
model_name='dailyround', | ||
name='bed', | ||
), | ||
migrations.RemoveField( | ||
model_name='patientconsultation', | ||
name='admitted_to', | ||
), | ||
migrations.CreateModel( | ||
name='ConsultationBed', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('external_id', models.UUIDField(db_index=True, default=uuid.uuid4, unique=True)), | ||
('created_date', models.DateTimeField(auto_now_add=True, db_index=True, null=True)), | ||
('modified_date', models.DateTimeField(auto_now=True, db_index=True, null=True)), | ||
('deleted', models.BooleanField(db_index=True, default=False)), | ||
('start_date', models.DateTimeField()), | ||
('end_date', models.DateTimeField(blank=True, default=None, null=True)), | ||
('meta', django.contrib.postgres.fields.jsonb.JSONField(default=dict)), | ||
('bed', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='facility.Bed')), | ||
('consultation', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='facility.PatientConsultation')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
care/facility/migrations/0288_patientconsultation_current_bed.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 2.2.11 on 2022-04-15 18:29 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('facility', '0287_auto_20220415_1932'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='patientconsultation', | ||
name='current_bed', | ||
field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.PROTECT, to='facility.ConsultationBed'), | ||
), | ||
] |
Oops, something went wrong.