├── .gitattributes ├── .gitignore ├── HealthNet ├── HealthApp │ ├── __init__.py │ ├── admin.py │ ├── forms.py │ ├── migrations │ │ ├── 0001_initial.py │ │ ├── 0002_auto_20151001_1538.py │ │ ├── 0003_remove_patient_datebirth.py │ │ ├── 0004_auto_20151006_1128.py │ │ ├── 0005_auto_20151008_1433.py │ │ ├── 0006_auto_20151018_1546.py │ │ ├── 0007_auto_20151018_1855.py │ │ ├── 0008_auto_20151119_0114.py │ │ ├── 0009_auto_20151119_0125.py │ │ ├── 0010_auto_20151119_0138.py │ │ ├── 0011_auto_20151204_0244.py │ │ ├── 0012_auto_20151205_0749.py │ │ ├── 0013_auto_20151205_0814.py │ │ ├── 0014_auto_20151205_0836.py │ │ ├── 0015_auto_20151208_0640.py │ │ ├── 0016_doctor_nurse.py │ │ ├── 0017_auto_20151208_0946.py │ │ ├── 0018_auto_20151209_0241.py │ │ ├── 0019_nurse_hospital.py │ │ ├── 0020_remove_userinfo_hospital.py │ │ ├── 0021_auto_20151209_1713.py │ │ ├── 0022_auto_20151209_1731.py │ │ ├── 0023_auto_20151209_1734.py │ │ ├── 0024_appointment.py │ │ ├── 0025_auto_20151209_1744.py │ │ ├── 0026_remove_doctor_profileinfo.py │ │ ├── 0027_auto_20160321_1904.py │ │ └── __init__.py │ ├── models.py │ ├── tests.py │ └── views.py ├── HealthNet │ ├── __init__.py │ ├── html │ │ ├── 404.html │ │ ├── 500.html │ │ ├── ProfilePage.html │ │ ├── StaffProfile.html │ │ ├── calendarScript.html │ │ ├── gMap.html │ │ ├── head.html │ │ ├── headExtra.html │ │ ├── login.html │ │ └── registration.html │ ├── settings.py │ ├── urls.py │ └── wsgi.py ├── manage.py └── static │ └── fullcalendar-2.5.0 │ ├── CHANGELOG.txt │ ├── CONTRIBUTING.txt │ ├── LICENSE.txt │ ├── demos │ ├── agenda-views.html │ ├── background-events.html │ ├── basic-views.html │ ├── default.html │ ├── external-dragging.html │ ├── gcal.html │ ├── json.html │ ├── json │ │ └── events.json │ ├── languages.html │ ├── php │ │ ├── get-events.php │ │ ├── get-timezones.php │ │ └── utils.php │ ├── selectable.html │ ├── theme.html │ └── timezones.html │ ├── fullcalendar.css │ ├── fullcalendar.js │ ├── fullcalendar.min.css │ ├── fullcalendar.min.js │ ├── fullcalendar.print.css │ ├── gcal.js │ ├── lang-all.js │ ├── lang │ ├── ar-ma.js │ ├── ar-sa.js │ ├── ar-tn.js │ ├── ar.js │ ├── bg.js │ ├── ca.js │ ├── cs.js │ ├── da.js │ ├── de-at.js │ ├── de.js │ ├── el.js │ ├── en-au.js │ ├── en-ca.js │ ├── en-gb.js │ ├── es.js │ ├── fa.js │ ├── fi.js │ ├── fr-ca.js │ ├── fr.js │ ├── he.js │ ├── hi.js │ ├── hr.js │ ├── hu.js │ ├── id.js │ ├── is.js │ ├── it.js │ ├── ja.js │ ├── ko.js │ ├── lt.js │ ├── lv.js │ ├── nb.js │ ├── nl.js │ ├── pl.js │ ├── pt-br.js │ ├── pt.js │ ├── ro.js │ ├── ru.js │ ├── sk.js │ ├── sl.js │ ├── sr-cyrl.js │ ├── sr.js │ ├── sv.js │ ├── th.js │ ├── tr.js │ ├── uk.js │ ├── vi.js │ ├── zh-cn.js │ └── zh-tw.js │ └── lib │ ├── cupertino │ ├── images │ │ ├── Thumbs.db │ │ ├── animated-overlay.gif │ │ ├── ui-bg_diagonals-thick_90_eeeeee_40x40.png │ │ ├── ui-bg_flat_15_cd0a0a_40x100.png │ │ ├── ui-bg_glass_100_e4f1fb_1x400.png │ │ ├── ui-bg_glass_50_3baae3_1x400.png │ │ ├── ui-bg_glass_80_d7ebf9_1x400.png │ │ ├── ui-bg_highlight-hard_100_f2f5f7_1x100.png │ │ ├── ui-bg_highlight-hard_70_000000_1x100.png │ │ ├── ui-bg_highlight-soft_100_deedf7_1x100.png │ │ ├── ui-bg_highlight-soft_25_ffef8f_1x100.png │ │ ├── ui-icons_2694e8_256x240.png │ │ ├── ui-icons_2e83ff_256x240.png │ │ ├── ui-icons_3d80b3_256x240.png │ │ ├── ui-icons_72a7cf_256x240.png │ │ └── ui-icons_ffffff_256x240.png │ └── jquery-ui.min.css │ ├── jquery-ui.custom.min.js │ ├── jquery.min.js │ └── moment.min.js ├── README.md └── Read_Me.txt /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.sqlite3 3 | .idea/* -------------------------------------------------------------------------------- /HealthNet/HealthApp/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ryan-Bell/DjangoWebsite/5f7afd146b85ed935b08a608e268f849da7843e5/HealthNet/HealthApp/__init__.py -------------------------------------------------------------------------------- /HealthNet/HealthApp/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from .models import Patient, UserInfo, ProfileInfo, MedicalInfo, Doctor, Nurse, Hospital, Prescription, MedTest 3 | 4 | #This is how to control what models are visible to the admin. 5 | admin.site.register(Patient) 6 | admin.site.register(UserInfo) 7 | admin.site.register(ProfileInfo) 8 | admin.site.register(MedicalInfo) 9 | admin.site.register(Doctor) 10 | admin.site.register(Nurse) 11 | admin.site.register(Hospital) 12 | admin.site.register(Prescription) 13 | admin.site.register(MedTest) -------------------------------------------------------------------------------- /HealthNet/HealthApp/forms.py: -------------------------------------------------------------------------------- 1 | from django import forms 2 | from django.forms import ModelForm 3 | from django.contrib.auth.forms import User 4 | from .models import Patient, UserInfo, MedicalInfo, ProfileInfo, Prescription, MedTest, Appointment 5 | 6 | 7 | class LoginForm(forms.Form): 8 | username = forms.CharField(label="Username", max_length=50) 9 | password = forms.CharField(label="Password", max_length=50, widget=forms.PasswordInput) 10 | 11 | 12 | class BaseUserForm(ModelForm): 13 | class Meta: 14 | model = User 15 | fields = ('username', 'password') 16 | 17 | 18 | class AppointmentForm(forms.Form): 19 | doctor = forms.CharField(max_length=50) 20 | date = forms.CharField(widget=forms.widgets.DateInput(attrs={'type': 'date'})) 21 | time = forms.CharField(widget=forms.widgets.TimeInput(attrs={'type': 'time'})) 22 | description = forms.CharField(max_length=200) 23 | 24 | class Meta: 25 | model = Appointment 26 | fields = ( 27 | 'doctor', 28 | 'userName', 29 | 'date', 30 | 'time', 31 | 'description' 32 | ) 33 | 34 | def __init__ (self, *args, **kwargs): 35 | super(AppointmentForm, self).__init__(*args, **kwargs) 36 | self.fields['date'].widget.attrs['value'] = '2015-03-14' 37 | 38 | 39 | class UserForm(ModelForm): 40 | class Meta: 41 | model = UserInfo 42 | fields = ( 43 | 'policyNumber', 44 | 'provider', 45 | 'groupNumber', 46 | ) 47 | 48 | 49 | class ProfileForm(ModelForm): 50 | class Meta: 51 | model = ProfileInfo 52 | fields = ( 53 | 'firstName', 54 | 'middleName', 55 | 'lastName', 56 | 'address', 57 | 'city', 58 | 'state', 59 | 'dateOfBirth', 60 | 'zipcode', 61 | 'phoneNumber', 62 | 'email', 63 | 'eName', 64 | 'ePhoneNumber', 65 | ) 66 | 67 | 68 | class MedicalForm(ModelForm): 69 | class Meta: 70 | model = MedicalInfo 71 | 72 | # TODO - add cancer/diabetes 73 | fields = ( 74 | 'allergies', 75 | 'anemia', 76 | 'arthritis', 77 | 'chickenpox', 78 | 'coxsackie', 79 | 'diphtheria', 80 | 'epilepsy', 81 | 'frequentColds', 82 | 'germanMeasles', 83 | 'highBloodPressure', 84 | 'influenza', 85 | 'kidneyDisease', 86 | 'measles', 87 | 'migraines', 88 | 'mumps', 89 | 'obesity', 90 | 'pneumonia', 91 | 'polio', 92 | 'rheumaticFever', 93 | 'scarlatina', 94 | 'scarletFever', 95 | 'strokes', 96 | 'syphilis', 97 | 'tonsillitis', 98 | 'tuberculosis', 99 | 'whoopingCough', 100 | ) 101 | 102 | 103 | class MedTestForm(ModelForm): 104 | class Meta: 105 | model = MedTest 106 | fields = ( 107 | 'name', 108 | 'doctor', 109 | 'released', 110 | 'dateIssued', 111 | 'result', 112 | ) 113 | 114 | 115 | class PrescriptionForm(ModelForm): 116 | class Meta: 117 | model = Prescription 118 | fields = ( 119 | 'medicationCategory', 120 | 'medication', 121 | 'dosage', 122 | 'frequency', 123 | 'directions', 124 | 'comments', 125 | ) 126 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0001_initial.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ] 11 | 12 | operations = [ 13 | migrations.CreateModel( 14 | name='Patient', 15 | fields=[ 16 | ('id', models.AutoField(serialize=False, auto_created=True, primary_key=True, verbose_name='ID')), 17 | ('password', models.CharField(verbose_name='password', max_length=128)), 18 | ('last_login', models.DateTimeField(verbose_name='last login', blank=True, null=True)), 19 | ('identfier', models.CharField(max_length=50, unique=True)), 20 | ('firstName', models.CharField(max_length=50)), 21 | ('middleName', models.CharField(max_length=50)), 22 | ('lastName', models.CharField(max_length=50)), 23 | ('dateBirth', models.DateField(verbose_name='Date of Birth')), 24 | ('phonePrimary', models.CharField(max_length=50)), 25 | ('phoneSecondary', models.CharField(max_length=50)), 26 | ('email', models.EmailField(max_length=50)), 27 | ('country', models.CharField(max_length=50)), 28 | ('address', models.CharField(max_length=50)), 29 | ('contactICEName', models.CharField(max_length=50)), 30 | ('contactICERelationship', models.CharField(max_length=50)), 31 | ('contactICEPhone', models.CharField(max_length=50)), 32 | ('provider', models.CharField(max_length=50)), 33 | ], 34 | options={ 35 | 'abstract': False, 36 | }, 37 | ), 38 | ] 39 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0002_auto_20151001_1538.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('HealthApp', '0001_initial'), 11 | ] 12 | 13 | operations = [ 14 | migrations.RenameField( 15 | model_name='patient', 16 | old_name='identfier', 17 | new_name='identifier', 18 | ), 19 | ] 20 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0003_remove_patient_datebirth.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('HealthApp', '0002_auto_20151001_1538'), 11 | ] 12 | 13 | operations = [ 14 | migrations.RemoveField( 15 | model_name='patient', 16 | name='dateBirth', 17 | ), 18 | ] 19 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0004_auto_20151006_1128.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | from django.conf import settings 6 | 7 | 8 | class Migration(migrations.Migration): 9 | 10 | dependencies = [ 11 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), 12 | ('HealthApp', '0003_remove_patient_datebirth'), 13 | ] 14 | 15 | operations = [ 16 | migrations.CreateModel( 17 | name='PatientProfile', 18 | fields=[ 19 | ('id', models.AutoField(serialize=False, verbose_name='ID', auto_created=True, primary_key=True)), 20 | ('dateOfBirth', models.DateField()), 21 | ('address', models.CharField(max_length=50)), 22 | ], 23 | ), 24 | migrations.CreateModel( 25 | name='Profile', 26 | fields=[ 27 | ('id', models.AutoField(serialize=False, verbose_name='ID', auto_created=True, primary_key=True)), 28 | ('type', models.CharField(max_length=10)), 29 | ('firstName', models.CharField(max_length=50)), 30 | ('middleName', models.CharField(max_length=50, blank=True)), 31 | ('lastName', models.CharField(max_length=50)), 32 | ('email', models.EmailField(max_length=254)), 33 | ('phoneNumber', models.CharField(max_length=14)), 34 | ('user', models.OneToOneField(to=settings.AUTH_USER_MODEL)), 35 | ], 36 | ), 37 | migrations.DeleteModel( 38 | name='Patient', 39 | ), 40 | migrations.AddField( 41 | model_name='patientprofile', 42 | name='profile', 43 | field=models.OneToOneField(to='HealthApp.Profile'), 44 | ), 45 | ] 46 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0005_auto_20151008_1433.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | import datetime 6 | from django.utils.timezone import utc 7 | from django.conf import settings 8 | 9 | 10 | class Migration(migrations.Migration): 11 | 12 | dependencies = [ 13 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), 14 | ('HealthApp', '0004_auto_20151006_1128'), 15 | ] 16 | 17 | operations = [ 18 | migrations.CreateModel( 19 | name='LogItem', 20 | fields=[ 21 | ('id', models.AutoField(auto_created=True, primary_key=True, verbose_name='ID', serialize=False)), 22 | ('username', models.CharField(max_length=50)), 23 | ('user', models.OneToOneField(to=settings.AUTH_USER_MODEL)), 24 | ], 25 | ), 26 | migrations.AddField( 27 | model_name='profile', 28 | name='address', 29 | field=models.CharField(blank=True, max_length=50), 30 | ), 31 | migrations.AddField( 32 | model_name='profile', 33 | name='dateOfBirth', 34 | field=models.DateField(blank=True, default=datetime.datetime(2015, 10, 8, 3, 6, 30, 142651, tzinfo=utc)), 35 | preserve_default=False, 36 | ), 37 | ] 38 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0006_auto_20151018_1546.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | from django.conf import settings 6 | 7 | 8 | class Migration(migrations.Migration): 9 | 10 | dependencies = [ 11 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), 12 | ('HealthApp', '0005_auto_20151008_1433'), 13 | ] 14 | 15 | operations = [ 16 | migrations.CreateModel( 17 | name='Patient', 18 | fields=[ 19 | ('id', models.AutoField(primary_key=True, verbose_name='ID', auto_created=True, serialize=False)), 20 | ('type', models.CharField(max_length=10)), 21 | ('firstName', models.CharField(max_length=50)), 22 | ('middleName', models.CharField(blank=True, max_length=50)), 23 | ('lastName', models.CharField(max_length=50)), 24 | ('email', models.EmailField(max_length=254)), 25 | ('phoneNumber', models.CharField(max_length=14)), 26 | ('dateOfBirth', models.DateField(blank=True)), 27 | ('address', models.CharField(blank=True, max_length=50)), 28 | ('user', models.OneToOneField(to=settings.AUTH_USER_MODEL)), 29 | ], 30 | ), 31 | migrations.RemoveField( 32 | model_name='patientprofile', 33 | name='profile', 34 | ), 35 | migrations.RemoveField( 36 | model_name='profile', 37 | name='user', 38 | ), 39 | migrations.DeleteModel( 40 | name='PatientProfile', 41 | ), 42 | migrations.DeleteModel( 43 | name='Profile', 44 | ), 45 | ] 46 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0007_auto_20151018_1855.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('HealthApp', '0006_auto_20151018_1546'), 11 | ] 12 | 13 | operations = [ 14 | migrations.CreateModel( 15 | name='MedicalInfo', 16 | fields=[ 17 | ('id', models.AutoField(serialize=False, verbose_name='ID', auto_created=True, primary_key=True)), 18 | ('tuberculosis', models.BooleanField(default=False)), 19 | ('influenza', models.BooleanField(default=False)), 20 | ('rheumatic', models.BooleanField(default=False)), 21 | ('whoopingCough', models.BooleanField(default=False)), 22 | ('tonsillitis', models.BooleanField(default=False)), 23 | ('measles', models.BooleanField(default=False)), 24 | ('mumps', models.BooleanField(default=False)), 25 | ('frequentColds', models.BooleanField(default=False)), 26 | ('germanMeasles', models.BooleanField(default=False)), 27 | ('scarletFever', models.BooleanField(default=False)), 28 | ('scarlatina', models.BooleanField(default=False)), 29 | ('diphtheria', models.BooleanField(default=False)), 30 | ('polio', models.BooleanField(default=False)), 31 | ('chickenpox', models.BooleanField(default=False)), 32 | ('coxsackie', models.BooleanField(default=False)), 33 | ('pneumonia', models.BooleanField(default=False)), 34 | ('highBloodPressure', models.BooleanField(default=False)), 35 | ('migraine', models.BooleanField(default=False)), 36 | ('strokes', models.BooleanField(default=False)), 37 | ('kidneyDisease', models.BooleanField(default=False)), 38 | ('arthritis', models.BooleanField(default=False)), 39 | ('allergy', models.BooleanField(default=False)), 40 | ('bleeding', models.BooleanField(default=False)), 41 | ('syphilis', models.BooleanField(default=False)), 42 | ('anemia', models.BooleanField(default=False)), 43 | ('obesity', models.BooleanField(default=False)), 44 | ('epilepsy', models.BooleanField(default=False)), 45 | ], 46 | ), 47 | migrations.AddField( 48 | model_name='patient', 49 | name='medicalInfo', 50 | field=models.OneToOneField(null=True, to='HealthApp.MedicalInfo'), 51 | ), 52 | ] 53 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0009_auto_20151119_0125.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('HealthApp', '0008_auto_20151119_0114'), 11 | ] 12 | 13 | operations = [ 14 | migrations.RemoveField( 15 | model_name='profile', 16 | name='sex', 17 | ), 18 | migrations.RemoveField( 19 | model_name='profile', 20 | name='state', 21 | ), 22 | ] 23 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0010_auto_20151119_0138.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('HealthApp', '0009_auto_20151119_0125'), 11 | ] 12 | 13 | operations = [ 14 | migrations.AddField( 15 | model_name='profile', 16 | name='sex', 17 | field=models.CharField(choices=[('M', 'Male'), ('F', 'Female')], max_length=1, default='M'), 18 | ), 19 | migrations.AddField( 20 | model_name='profile', 21 | name='state', 22 | field=models.CharField(choices=[('AL', 'Alabama'), ('AK', 'Alaska'), ('AZ', 'Arizona'), ('AR', 'Arkansas'), ('CA', 'California'), ('CO', 'Colorado'), ('CT', 'Connecticut'), ('DE', 'Delaware'), ('DC', 'District of Columbia'), ('FL', 'Florida'), ('GA', 'Georgia'), ('HI', 'Hawaii'), ('ID', 'Idaho'), ('IL', 'Illinois'), ('IN', 'Indiana'), ('IA', 'Iowa'), ('KS', 'Kansas'), ('KY', 'Kentucky'), ('LA', 'Louisiana'), ('ME', 'Maine'), ('MD', 'Maryland'), ('MA', 'Massachusetts'), ('MI', 'Michigan'), ('MN', 'Minnesota'), ('MS', 'Mississippi'), ('MO', 'Missouri'), ('MT', 'Montana'), ('NE', 'Nebraska'), ('NV', 'Nevada'), ('NH', 'New Hampshire'), ('NJ', 'New Jersey'), ('NM', 'New Mexico'), ('NY', 'New York'), ('NC', 'North Carolina'), ('ND', 'North Dakota'), ('OH', 'Ohio'), ('OK', 'Oklahoma'), ('OR', 'Oregon'), ('PA', 'Pennsylvania'), ('RI', 'Rhode Island'), ('SC', 'South Carolina'), ('SD', 'South Dakota'), ('TN', 'Tennessee'), ('TX', 'Texas'), ('UT', 'Utah'), ('VT', 'Vermont'), ('VA', 'Virginia'), ('WA', 'Washington'), ('WV', 'West Virginia'), ('WI', 'Wisconsin'), ('WY', 'Wyoming')], max_length=2, blank=True), 23 | ), 24 | ] 25 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0011_auto_20151204_0244.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('HealthApp', '0010_auto_20151119_0138'), 11 | ] 12 | 13 | operations = [ 14 | migrations.CreateModel( 15 | name='ProfileInfo', 16 | fields=[ 17 | ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)), 18 | ('firstName', models.CharField(max_length=50)), 19 | ('middleName', models.CharField(max_length=50, blank=True)), 20 | ('lastName', models.CharField(max_length=50)), 21 | ('address', models.CharField(max_length=50)), 22 | ('city', models.CharField(max_length=50)), 23 | ('state', models.CharField(max_length=50)), 24 | ('dateOfBirth', models.DateField(blank=True)), 25 | ('zipcode', models.CharField(max_length=5)), 26 | ('phoneNumber', models.CharField(max_length=14)), 27 | ('email', models.EmailField(max_length=254)), 28 | ('contactName', models.CharField(max_length=50)), 29 | ('contactPhoneNumber', models.CharField(max_length=50)), 30 | ], 31 | ), 32 | migrations.CreateModel( 33 | name='UserInfo', 34 | fields=[ 35 | ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)), 36 | ('policyNumber', models.CharField(max_length=50)), 37 | ('provider', models.CharField(max_length=50)), 38 | ('groupNumber', models.CharField(max_length=50)), 39 | ], 40 | ), 41 | migrations.RemoveField( 42 | model_name='admin', 43 | name='profileInfo', 44 | ), 45 | migrations.RemoveField( 46 | model_name='admin', 47 | name='user', 48 | ), 49 | migrations.RemoveField( 50 | model_name='doctor', 51 | name='profileInfo', 52 | ), 53 | migrations.RemoveField( 54 | model_name='doctor', 55 | name='user', 56 | ), 57 | migrations.DeleteModel( 58 | name='Hospital', 59 | ), 60 | migrations.RemoveField( 61 | model_name='nurse', 62 | name='profileInfo', 63 | ), 64 | migrations.RemoveField( 65 | model_name='nurse', 66 | name='user', 67 | ), 68 | migrations.RenameField( 69 | model_name='medicalinfo', 70 | old_name='allergy', 71 | new_name='allergies', 72 | ), 73 | migrations.RenameField( 74 | model_name='medicalinfo', 75 | old_name='bleeding', 76 | new_name='migraines', 77 | ), 78 | migrations.RenameField( 79 | model_name='medicalinfo', 80 | old_name='migraine', 81 | new_name='rheumaticFever', 82 | ), 83 | migrations.RemoveField( 84 | model_name='medicalinfo', 85 | name='rheumatic', 86 | ), 87 | migrations.RemoveField( 88 | model_name='patient', 89 | name='insuranceInfo', 90 | ), 91 | migrations.AlterField( 92 | model_name='patient', 93 | name='profileInfo', 94 | field=models.OneToOneField(to='HealthApp.ProfileInfo', null=True), 95 | ), 96 | migrations.DeleteModel( 97 | name='Admin', 98 | ), 99 | migrations.DeleteModel( 100 | name='Doctor', 101 | ), 102 | migrations.DeleteModel( 103 | name='InsuranceInfo', 104 | ), 105 | migrations.DeleteModel( 106 | name='Nurse', 107 | ), 108 | migrations.DeleteModel( 109 | name='Profile', 110 | ), 111 | migrations.AddField( 112 | model_name='patient', 113 | name='userInfo', 114 | field=models.OneToOneField(to='HealthApp.UserInfo', null=True), 115 | ), 116 | ] 117 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0012_auto_20151205_0749.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('HealthApp', '0011_auto_20151204_0244'), 11 | ] 12 | 13 | operations = [ 14 | migrations.RemoveField( 15 | model_name='profileinfo', 16 | name='city', 17 | ), 18 | migrations.RemoveField( 19 | model_name='profileinfo', 20 | name='contactName', 21 | ), 22 | migrations.RemoveField( 23 | model_name='profileinfo', 24 | name='contactPhoneNumber', 25 | ), 26 | migrations.RemoveField( 27 | model_name='profileinfo', 28 | name='dateOfBirth', 29 | ), 30 | migrations.RemoveField( 31 | model_name='profileinfo', 32 | name='state', 33 | ), 34 | ] 35 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0013_auto_20151205_0814.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('HealthApp', '0012_auto_20151205_0749'), 11 | ] 12 | 13 | operations = [ 14 | migrations.AlterField( 15 | model_name='patient', 16 | name='userInfo', 17 | field=models.ForeignKey(to='HealthApp.UserInfo', null=True), 18 | ), 19 | ] 20 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0014_auto_20151205_0836.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('HealthApp', '0013_auto_20151205_0814'), 11 | ] 12 | 13 | operations = [ 14 | migrations.AlterField( 15 | model_name='patient', 16 | name='userInfo', 17 | field=models.OneToOneField(to='HealthApp.UserInfo', null=True), 18 | ), 19 | ] 20 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0015_auto_20151208_0640.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('HealthApp', '0014_auto_20151205_0836'), 11 | ] 12 | 13 | operations = [ 14 | migrations.AddField( 15 | model_name='medicalinfo', 16 | name='otherText', 17 | field=models.CharField(max_length=50, null=True), 18 | ), 19 | migrations.AddField( 20 | model_name='profileinfo', 21 | name='city', 22 | field=models.CharField(max_length=50, default='none'), 23 | ), 24 | migrations.AddField( 25 | model_name='profileinfo', 26 | name='dateOfBirth', 27 | field=models.DateField(blank=True, null=True), 28 | ), 29 | migrations.AddField( 30 | model_name='profileinfo', 31 | name='eName', 32 | field=models.CharField(max_length=50, default='none'), 33 | ), 34 | migrations.AddField( 35 | model_name='profileinfo', 36 | name='ePhoneNumber', 37 | field=models.CharField(max_length=50, default='none'), 38 | ), 39 | migrations.AddField( 40 | model_name='profileinfo', 41 | name='state', 42 | field=models.CharField(max_length=50, null=True), 43 | ), 44 | migrations.AddField( 45 | model_name='userinfo', 46 | name='hospital', 47 | field=models.CharField(max_length=50, null=True), 48 | ), 49 | ] 50 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0016_doctor_nurse.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | from django.conf import settings 6 | 7 | 8 | class Migration(migrations.Migration): 9 | 10 | dependencies = [ 11 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), 12 | ('HealthApp', '0015_auto_20151208_0640'), 13 | ] 14 | 15 | operations = [ 16 | migrations.CreateModel( 17 | name='Doctor', 18 | fields=[ 19 | ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')), 20 | ('profileInfo', models.OneToOneField(to='HealthApp.ProfileInfo', null=True)), 21 | ('user', models.OneToOneField(to=settings.AUTH_USER_MODEL)), 22 | ], 23 | ), 24 | migrations.CreateModel( 25 | name='Nurse', 26 | fields=[ 27 | ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')), 28 | ('profileInfo', models.OneToOneField(to='HealthApp.ProfileInfo', null=True)), 29 | ('user', models.OneToOneField(to=settings.AUTH_USER_MODEL)), 30 | ], 31 | ), 32 | ] 33 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0017_auto_20151208_0946.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('HealthApp', '0016_doctor_nurse'), 11 | ] 12 | 13 | operations = [ 14 | migrations.CreateModel( 15 | name='Hospital', 16 | fields=[ 17 | ('id', models.AutoField(primary_key=True, auto_created=True, verbose_name='ID', serialize=False)), 18 | ('name', models.CharField(max_length=50)), 19 | ], 20 | ), 21 | migrations.CreateModel( 22 | name='MedTest', 23 | fields=[ 24 | ('id', models.AutoField(primary_key=True, auto_created=True, verbose_name='ID', serialize=False)), 25 | ('name', models.CharField(max_length=50)), 26 | ('released', models.BooleanField(default=False)), 27 | ('dateIssued', models.DateField()), 28 | ('result', models.TextField()), 29 | ('doctor', models.ForeignKey(to='HealthApp.Doctor')), 30 | ], 31 | ), 32 | migrations.CreateModel( 33 | name='Prescription', 34 | fields=[ 35 | ('id', models.AutoField(primary_key=True, auto_created=True, verbose_name='ID', serialize=False)), 36 | ('medicationCategory', models.CharField(max_length=50)), 37 | ('medication', models.CharField(max_length=50)), 38 | ('dosage', models.CharField(max_length=50)), 39 | ('frequency', models.CharField(max_length=50)), 40 | ('directions', models.TextField(max_length=50)), 41 | ('comments', models.TextField(max_length=50)), 42 | ], 43 | ), 44 | migrations.AddField( 45 | model_name='patient', 46 | name='doctor', 47 | field=models.ForeignKey(null=True, to='HealthApp.Doctor'), 48 | ), 49 | migrations.AddField( 50 | model_name='patient', 51 | name='hospital', 52 | field=models.ForeignKey(null=True, to='HealthApp.Hospital'), 53 | ), 54 | migrations.AddField( 55 | model_name='patient', 56 | name='prescriptions', 57 | field=models.ForeignKey(null=True, to='HealthApp.Prescription'), 58 | ), 59 | ] 60 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0018_auto_20151209_0241.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('HealthApp', '0017_auto_20151208_0946'), 11 | ] 12 | 13 | operations = [ 14 | migrations.RemoveField( 15 | model_name='logitem', 16 | name='username', 17 | ), 18 | migrations.AddField( 19 | model_name='logitem', 20 | name='action', 21 | field=models.CharField(max_length=50, null=True), 22 | ), 23 | migrations.AddField( 24 | model_name='logitem', 25 | name='datetime', 26 | field=models.DateField(null=True), 27 | ), 28 | ] 29 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0019_nurse_hospital.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('HealthApp', '0018_auto_20151209_0241'), 11 | ] 12 | 13 | operations = [ 14 | migrations.AddField( 15 | model_name='nurse', 16 | name='hospital', 17 | field=models.CharField(null=True, max_length=50), 18 | ), 19 | ] 20 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0020_remove_userinfo_hospital.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('HealthApp', '0019_nurse_hospital'), 11 | ] 12 | 13 | operations = [ 14 | migrations.RemoveField( 15 | model_name='userinfo', 16 | name='hospital', 17 | ), 18 | ] 19 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0021_auto_20151209_1713.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('HealthApp', '0020_remove_userinfo_hospital'), 11 | ] 12 | 13 | operations = [ 14 | migrations.AlterField( 15 | model_name='logitem', 16 | name='action', 17 | field=models.CharField(max_length=100, null=True), 18 | ), 19 | ] 20 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0022_auto_20151209_1731.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | from django.conf import settings 6 | 7 | 8 | class Migration(migrations.Migration): 9 | 10 | dependencies = [ 11 | ('HealthApp', '0021_auto_20151209_1713'), 12 | ] 13 | 14 | operations = [ 15 | migrations.AlterField( 16 | model_name='logitem', 17 | name='datetime', 18 | field=models.CharField(null=True, max_length=50), 19 | ), 20 | migrations.AlterField( 21 | model_name='logitem', 22 | name='user', 23 | field=models.OneToOneField(to=settings.AUTH_USER_MODEL, null=True), 24 | ), 25 | ] 26 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0023_auto_20151209_1734.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('HealthApp', '0022_auto_20151209_1731'), 11 | ] 12 | 13 | operations = [ 14 | migrations.AlterField( 15 | model_name='logitem', 16 | name='datetime', 17 | field=models.DateField(null=True), 18 | ), 19 | ] 20 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0024_appointment.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('HealthApp', '0023_auto_20151209_1734'), 11 | ] 12 | 13 | operations = [ 14 | migrations.CreateModel( 15 | name='Appointment', 16 | fields=[ 17 | ('id', models.AutoField(serialize=False, auto_created=True, verbose_name='ID', primary_key=True)), 18 | ('doctor', models.CharField(max_length=50)), 19 | ('userName', models.CharField(max_length=50)), 20 | ('date', models.CharField(max_length=50)), 21 | ('description', models.CharField(max_length='200')), 22 | ], 23 | ), 24 | ] 25 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0025_auto_20151209_1744.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('HealthApp', '0024_appointment'), 11 | ] 12 | 13 | operations = [ 14 | migrations.AlterField( 15 | model_name='appointment', 16 | name='date', 17 | field=models.DateTimeField(), 18 | ), 19 | ] 20 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0026_remove_doctor_profileinfo.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('HealthApp', '0025_auto_20151209_1744'), 11 | ] 12 | 13 | operations = [ 14 | migrations.RemoveField( 15 | model_name='doctor', 16 | name='profileInfo', 17 | ), 18 | ] 19 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/0027_auto_20160321_1904.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models, migrations 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('HealthApp', '0026_remove_doctor_profileinfo'), 11 | ] 12 | 13 | operations = [ 14 | migrations.RemoveField( 15 | model_name='logitem', 16 | name='user', 17 | ), 18 | migrations.DeleteModel( 19 | name='LogItem', 20 | ), 21 | ] 22 | -------------------------------------------------------------------------------- /HealthNet/HealthApp/migrations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ryan-Bell/DjangoWebsite/5f7afd146b85ed935b08a608e268f849da7843e5/HealthNet/HealthApp/migrations/__init__.py -------------------------------------------------------------------------------- /HealthNet/HealthApp/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | -------------------------------------------------------------------------------- /HealthNet/HealthNet/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ryan-Bell/DjangoWebsite/5f7afd146b85ed935b08a608e268f849da7843e5/HealthNet/HealthNet/__init__.py -------------------------------------------------------------------------------- /HealthNet/HealthNet/html/404.html: -------------------------------------------------------------------------------- 1 | 2 | {% include 'head.html' %} 3 |