forked from uonafya/mfl_api
-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
68ed1cf
commit e753e2a
Showing
2,451 changed files
with
4,772,510 additions
and
33 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,60 @@ | ||
1. Remove the CHU services from the public home page | ||
2. Search by services in the home page | ||
3. Facilities to be shown on the map | ||
4. Test the system with the regulators API | ||
5. Change the report's name to facilities report filter | ||
6. Link the sub-county to ward | ||
7. Make sub-county a mandatory field | ||
8. Remove last_quater in county with changes report and dashboard | ||
9. Admin offices to be created by the CHRIOS | ||
1. contacts | ||
2. Sub-county | ||
3. Job-title | ||
4. In-charge Name | ||
10: Search reset button in the admin reports is not working | ||
11. Rename service field to service details | ||
|
||
12. Make the drop-down more intuitive by having the drop-down caret | ||
13. Remove the name advanced search page and leave the facility reports | ||
14. In the users grid add level the user is working on either at the national, county or sub-county | ||
also add the group title | ||
15. Make it possible to transfer SCHRIO users by the national admins | ||
16. User_name field should be removed from the users download list. | ||
17. Show all the facility types in the facility types graph in the dashboard | ||
18. Remove the facility legend name in the facility types graph in the dashboard | ||
19. Add user contacts during rating a service | ||
20. Change the placeholder text in the publics to indicate that the user can leave their contacts | ||
21. Change dashboard to fetch from sub-counties and not constituencies | ||
22. Drill-down facilities from the dashboard to the report page(Future) | ||
23. Remove savannah powered by and move to the partners section | ||
24. Hide in-charge details in the public and only give the facility contacts | ||
25. Hide the CHEW contacts and details in the public website | ||
26. Link the map on the homepage to the geo-locator | ||
27. Move the downloads to the admin side | ||
28. KMHFL email ministry for github | ||
29. Rename the reporting group to managers and remove community units groups | ||
30. Add community units also in the create group tool tips booleans | ||
31. Rename report group to system viewer | ||
32. The CHRIO to create report managers at his level | ||
33. The SCHRIO will not be able to create users. | ||
34. Add delete user button | ||
35. Make the facility fields optional up-to 31st March | ||
36. Change about to documentation | ||
37. Download to be taken to the login site. | ||
38. Use official name for the regulator snyc | ||
39. Show the details of the facility with a probable match from the synchronize facilities page | ||
40. Enable printing a facility | ||
41. Make the matching smarter (match by admin area, official name, ) | ||
42. Show mfl code in the sync facilities table | ||
43. Change the name of the regulator sync button to validate | ||
44. mail.health.go.ke the email server | ||
45. remove view services in service categories in setup | ||
|
||
#Issues with conflict | ||
1. Link a Community Health Units to services | ||
2. Map facilities at the county | ||
|
||
|
||
## | ||
Server integrity error on creating users contacts | ||
On patching a user his permissions disappear |
Empty file.
Empty file.
Empty file.
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,52 @@ | ||
# Issues raised on MFL on 30th/03/2016 | ||
|
||
1. Have the date-filter in reports | ||
2. It should be possible to download facilities with geo-codes for the sys config | ||
3. Have the minimum number of decimal places in geo-codes as 6 | ||
4. Remove the marker | ||
|
||
|
||
Issues Noted: | ||
1. The facility approval page has sub-county as a uuid | ||
2. Add constituency field in the facility filter | ||
3. Add the constituency in the facility detail view | ||
4. The sub-county and CHRIO should see only the allowed admin units | ||
5. Remove the constituency in users | ||
6. Ensure a user is only moved from county to county based on assigned rights | ||
7. Server error on creating user after adding contacts | ||
8. The search on users need fixing | ||
9. The deletion should be for the national admins only | ||
10. The license the number and the reg number should be optional | ||
11. Open 24 hours disable the rest | ||
12. All location the details should be mandatory | ||
13. The nearest town as a text box | ||
14. Edit the facility approve/reject comment | ||
15. Remove the bold the text in public website | ||
16. Replace the 2 CHEWS with 5 CHEWs in the public website | ||
17. Have the MoH logo as the key logo in the partner's page | ||
18. Remove the CHU logo | ||
19. The text the under the CHU logo to be together with the other text | ||
20. Subdivide the partners section into 2 v1 and v2 | ||
21. Do not say what the partner is doing | ||
22. Remove the logos for v1 | ||
23. Have the two emails in the help-desk email | ||
25. Rename facility status | ||
26. Have all the facility regulations under the regulations tab | ||
27. Rename the facility regulation to facility department regulation | ||
28. Have a license number field in the departments under regulation tab | ||
29. Rename the regulatory status to regulation status | ||
30. Change-log not showing the changes done on facility | ||
31. Have the option to preview changes | ||
32. Have sub_county in the facility approval here http://admin.kmhfltest.health.go.ke/#/facilities_approve/pending_updates/3e8884d9-0515-4663-b52a-496b2a48e2a9/ | ||
33. Order of excel codes code, name and the rest. also add operational status | ||
34. Confirm the caching is okay | ||
35. Enable delete document | ||
36. allow editing the document description without uploading | ||
37. Provide the authorities documentation by Monday | ||
38. update the documentation | ||
|
||
|
||
|
||
Useful links | ||
1. Moh website | ||
2. Community Health Website |
Empty file.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
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,14 @@ | ||
from .models import AdminOffice, AdminOfficeContact | ||
from common.filters import CommonFieldsFilterset | ||
|
||
|
||
class AdminOfficeFilter(CommonFieldsFilterset): | ||
|
||
class Meta(object): | ||
model = AdminOffice | ||
|
||
|
||
class AdminOfficeContactFilter(CommonFieldsFilterset): | ||
|
||
class Meta(object): | ||
model = AdminOfficeContact |
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,62 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.contrib.gis.db.models.fields | ||
import common.models.base | ||
import django.utils.timezone | ||
import django.db.models.deletion | ||
from django.conf import settings | ||
import mfl_gis.models | ||
import uuid | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('common', '0007_auto_20160407_1007'), | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('users', '0003_auto_20151111_1043'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='AdminOffice', | ||
fields=[ | ||
('id', models.UUIDField(default=uuid.uuid4, serialize=False, editable=False, primary_key=True)), | ||
('created', models.DateTimeField(default=django.utils.timezone.now)), | ||
('updated', models.DateTimeField(default=django.utils.timezone.now)), | ||
('deleted', models.BooleanField(default=False)), | ||
('active', models.BooleanField(default=True, help_text=b'Indicates whether the record has been retired?')), | ||
('search', models.CharField(max_length=255, null=True, editable=False, blank=True)), | ||
('coordinates', django.contrib.gis.db.models.fields.PointField(srid=4326, null=True, blank=True)), | ||
('first_name', models.CharField(max_length=30)), | ||
('last_name', models.CharField(max_length=30)), | ||
('constituency', models.ForeignKey(blank=True, to='common.Constituency', null=True)), | ||
('county', models.ForeignKey(blank=True, to='common.County', null=True)), | ||
('created_by', models.ForeignKey(related_name='+', on_delete=django.db.models.deletion.PROTECT, default=common.models.base.get_default_system_user_id, to=settings.AUTH_USER_MODEL)), | ||
('job_title', models.ForeignKey(to='users.JobTitle')), | ||
('sub_county', models.ForeignKey(blank=True, to='common.SubCounty', null=True)), | ||
('updated_by', models.ForeignKey(related_name='+', on_delete=django.db.models.deletion.PROTECT, default=common.models.base.get_default_system_user_id, to=settings.AUTH_USER_MODEL)), | ||
], | ||
options={ | ||
'ordering': ('-updated', '-created'), | ||
'default_permissions': ('add', 'change', 'delete', 'view'), | ||
'abstract': False, | ||
}, | ||
bases=(mfl_gis.models.CoordinatesValidatorMixin, models.Model), | ||
), | ||
migrations.CreateModel( | ||
name='AdminOfficeContact', | ||
fields=[ | ||
('contact_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='common.Contact')), | ||
('admin_office', models.ForeignKey(related_name='contacts', to='admin_offices.AdminOffice')), | ||
], | ||
options={ | ||
'ordering': ('-updated', '-created'), | ||
'default_permissions': ('add', 'change', 'delete', 'view'), | ||
'abstract': False, | ||
}, | ||
bases=('common.contact',), | ||
), | ||
] |
29 changes: 29 additions & 0 deletions
29
admin_offices_bkup23052017/migrations/0002_auto_20160418_0544.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,29 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('admin_offices', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='adminoffice', | ||
name='email', | ||
field=models.EmailField(max_length=254, null=True, blank=True), | ||
), | ||
migrations.AddField( | ||
model_name='adminoffice', | ||
name='is_national', | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.AddField( | ||
model_name='adminoffice', | ||
name='phone_number', | ||
field=models.CharField(max_length=100, null=True, blank=True), | ||
), | ||
] |
56 changes: 56 additions & 0 deletions
56
admin_offices_bkup23052017/migrations/0003_auto_20160520_0757.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,56 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('admin_offices', '0002_auto_20160418_0544'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='adminoffice', | ||
name='name', | ||
field=models.CharField(default='None', max_length=100), | ||
preserve_default=False, | ||
), | ||
migrations.AlterField( | ||
model_name='adminoffice', | ||
name='constituency', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, blank=True, to='common.Constituency', null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='adminoffice', | ||
name='county', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, blank=True, to='common.County', null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='adminoffice', | ||
name='first_name', | ||
field=models.CharField(max_length=30, null=True, blank=True), | ||
), | ||
migrations.AlterField( | ||
model_name='adminoffice', | ||
name='job_title', | ||
field=models.ForeignKey(to='users.JobTitle', on_delete=django.db.models.deletion.PROTECT), | ||
), | ||
migrations.AlterField( | ||
model_name='adminoffice', | ||
name='last_name', | ||
field=models.CharField(max_length=30, null=True, blank=True), | ||
), | ||
migrations.AlterField( | ||
model_name='adminoffice', | ||
name='sub_county', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, blank=True, to='common.SubCounty', null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='adminofficecontact', | ||
name='admin_office', | ||
field=models.ForeignKey(related_name='contacts', on_delete=django.db.models.deletion.PROTECT, to='admin_offices.AdminOffice'), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
admin_offices_bkup23052017/migrations/0004_remove_adminoffice_job_title.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,18 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('admin_offices', '0003_auto_20160520_0757'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='adminoffice', | ||
name='job_title', | ||
), | ||
] |
38 changes: 38 additions & 0 deletions
38
admin_offices_bkup23052017/migrations/0005_auto_20160620_0655.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,38 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import common.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('admin_offices', '0004_remove_adminoffice_job_title'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='adminoffice', | ||
name='first_name', | ||
), | ||
migrations.RemoveField( | ||
model_name='adminoffice', | ||
name='last_name', | ||
), | ||
migrations.AddField( | ||
model_name='adminoffice', | ||
name='closed', | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.AddField( | ||
model_name='adminoffice', | ||
name='code', | ||
field=common.fields.SequenceField(help_text=b'A unique number to identify the admin office.', unique=True, editable=False, blank=True), | ||
), | ||
migrations.AddField( | ||
model_name='adminoffice', | ||
name='old_code', | ||
field=models.IntegerField(null=True, blank=True), | ||
), | ||
] |
Empty file.
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,55 @@ | ||
from django.db import models | ||
from django.contrib.gis.db import models as gis_models | ||
|
||
from common.models import ( | ||
County, | ||
AbstractBase, | ||
Contact, | ||
SubCounty, | ||
Constituency, | ||
SequenceMixin | ||
) | ||
|
||
from common.fields import SequenceField | ||
|
||
|
||
class AdminOfficeContact(Contact): | ||
""" | ||
This is the admin office contacts. | ||
It will hold the both the official contacts for an office and | ||
the contacts of the in-charge. | ||
""" | ||
admin_office = models.ForeignKey( | ||
'AdminOffice', related_name='contacts', on_delete=models.PROTECT,) | ||
|
||
|
||
class AdminOffice(SequenceMixin, AbstractBase): | ||
""" | ||
The administration offices from the sub-county level to the national level. | ||
If the county and sub-county are null then the offices are | ||
assumed to be at the national level. | ||
""" | ||
code = SequenceField( | ||
unique=True, | ||
help_text="A unique number to identify the admin office.", | ||
editable=False) | ||
old_code = models.IntegerField(null=True, blank=True) | ||
county = models.ForeignKey( | ||
County, null=True, blank=True, on_delete=models.PROTECT,) | ||
sub_county = models.ForeignKey( | ||
SubCounty, null=True, blank=True, on_delete=models.PROTECT,) | ||
constituency = models.ForeignKey( | ||
Constituency, null=True, blank=True, on_delete=models.PROTECT,) | ||
coordinates = gis_models.PointField(null=True, blank=True) | ||
name = models.CharField(max_length=100) | ||
email = models.EmailField(null=True, blank=True) | ||
phone_number = models.CharField(max_length=100, null=True, blank=True) | ||
is_national = models.BooleanField(default=False) | ||
closed = models.BooleanField(default=False) | ||
|
||
def save(self, *args, **kwargs): | ||
if not self.code: | ||
self.code = self.generate_next_code_sequence() | ||
super(AdminOffice, self).save(*args, **kwargs) | ||
|
||
|
Oops, something went wrong.