-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
184 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"tbstageoptions": [ | ||
{ | ||
"synonyms": [], | ||
"name": "New Referral" | ||
}, | ||
{ | ||
"synonyms": [], | ||
"name": "Assessed" | ||
}, | ||
{ | ||
"synonyms": [], | ||
"name": "Active TB Treatment" | ||
}, | ||
{ | ||
"synonyms": [], | ||
"name": "Latent TB Treatment" | ||
}, | ||
{ | ||
"synonyms": [], | ||
"name": "NTM Treatment" | ||
}, | ||
{ | ||
"synonyms": [], | ||
"name": "Under Investigation" | ||
}, | ||
{ | ||
"synonyms": [], | ||
"name": "Discharged" | ||
} | ||
] | ||
} |
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,57 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.10.8 on 2018-10-01 15:44 | ||
from __future__ import unicode_literals | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import opal.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('opal', '0035_auto_20180806_1150'), | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('tb', '0034_auto_20180824_1925'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='TBStage', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('created', models.DateTimeField(blank=True, null=True)), | ||
('updated', models.DateTimeField(blank=True, null=True)), | ||
('consistency_token', models.CharField(max_length=8)), | ||
('stage_ft', models.CharField(blank=True, default=b'', max_length=255, null=True)), | ||
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='created_tb_tbstage_subrecords', to=settings.AUTH_USER_MODEL)), | ||
('episode', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='opal.Episode')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
bases=(opal.models.UpdatesFromDictMixin, opal.models.ToDictMixin, models.Model), | ||
), | ||
migrations.CreateModel( | ||
name='TBStageOptions', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=255, unique=True)), | ||
], | ||
options={ | ||
'ordering': ['name'], | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.AddField( | ||
model_name='tbstage', | ||
name='stage_fk', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='tb.TBStageOptions'), | ||
), | ||
migrations.AddField( | ||
model_name='tbstage', | ||
name='updated_by', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='updated_tb_tbstage_subrecords', to=settings.AUTH_USER_MODEL), | ||
), | ||
] |
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 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.10.8 on 2018-10-01 15:59 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('tb', '0035_auto_20181001_1544'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='tbstage', | ||
options={'verbose_name': 'Current Status'}, | ||
), | ||
] |
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,2 @@ | ||
{% load forms %} | ||
{% select label="Current State" field="TBStage.stage" %} |
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,4 @@ | ||
<span ng-show="item.stage"> | ||
[[ item.stage ]] | ||
<br /> | ||
</span> |
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