-
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
9 changed files
with
156 additions
and
5 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,20 @@ | ||
{ | ||
"tbcasemanager": [ | ||
{ | ||
"synonyms": [], | ||
"name": "Justinea Mungai" | ||
}, | ||
{ | ||
"synonyms": [], | ||
"name": "Angelita Solomalai" | ||
}, | ||
{ | ||
"synonyms": [], | ||
"name": "Jacqueline Barrett" | ||
}, | ||
{ | ||
"synonyms": [], | ||
"name": "Clare Campbell" | ||
} | ||
] | ||
} |
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,83 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.10.8 on 2018-08-15 12:38 | ||
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', '0034_auto_20171214_1845'), | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('tb', '0028_pregnancy'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='TBCaseManager', | ||
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.CreateModel( | ||
name='TBManagement', | ||
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)), | ||
('ltbr_number', models.CharField(blank=True, max_length=200, null=True)), | ||
('case_manager_ft', models.CharField(blank=True, default=b'', max_length=255, null=True)), | ||
('case_manager_fk', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='tb.TBCaseManager')), | ||
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='created_tb_tbmanagement_subrecords', to=settings.AUTH_USER_MODEL)), | ||
('episode', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='opal.Episode')), | ||
('updated_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='updated_tb_tbmanagement_subrecords', to=settings.AUTH_USER_MODEL)), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
bases=(opal.models.UpdatesFromDictMixin, opal.models.ToDictMixin, models.Model), | ||
), | ||
migrations.AlterModelOptions( | ||
name='bcg', | ||
options={'verbose_name': 'BCG'}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='contactdetails', | ||
options={'verbose_name': 'Contact Details', 'verbose_name_plural': 'Contact Details'}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='nextofkin', | ||
options={'verbose_name': 'Next Of Kin', 'verbose_name_plural': 'Next Of Kin'}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='patientconsultation', | ||
options={'verbose_name': 'Patient Consultation'}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='socialhistory', | ||
options={'verbose_name': 'Social History', 'verbose_name_plural': 'Social Histories'}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='tbhistory', | ||
options={'verbose_name': 'History of TB', 'verbose_name_plural': 'History of TB'}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='travel', | ||
options={'verbose_name': 'Travel History', 'verbose_name_plural': 'Travel Histories'}, | ||
), | ||
migrations.AlterField( | ||
model_name='employment', | ||
name='financial_status', | ||
field=models.CharField(blank=True, choices=[(b'Nil income', b'Nil income'), (b'On benefits', b'On benefits'), (b'Other(SS/NASS)', b'Other(SS/NASS)'), (b'Employed', b'Employed')], max_length=256), | ||
), | ||
] |
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,16 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.10.8 on 2018-08-15 22:23 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('tb', '0030_auto_20180815_2203'), | ||
('tb', '0029_auto_20180815_1338'), | ||
] | ||
|
||
operations = [ | ||
] |
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,3 @@ | ||
{% load forms %} | ||
{% input field="TBManagement.ltbr_number" %} | ||
{% input field="TBManagement.case_manager" %} |
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,8 @@ | ||
<span ng-show="item.ltbr_number"> | ||
[[ item.ltbr_number ]] | ||
<br /> | ||
</span> | ||
<span ng-show="item.case_manager"> | ||
[[ item.case_manager ]] | ||
<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