Skip to content

Commit

Permalink
added announcements and pathologist schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
prem-charan committed Feb 22, 2024
1 parent 195e713 commit 4a090eb
Show file tree
Hide file tree
Showing 38 changed files with 2,012 additions and 159 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Generated by Django 3.1.5 on 2024-02-18 01:03

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('academic_procedures', '0001_initial'),
]

operations = [
migrations.AlterField(
model_name='assistantshipclaim',
name='year',
field=models.IntegerField(choices=[(2024, 2024), (2023, 2023)]),
),
migrations.AlterField(
model_name='course_registration',
name='working_year',
field=models.IntegerField(blank=True, choices=[(2024, 2024), (2023, 2023)], null=True),
),
migrations.AlterField(
model_name='finalregistrations',
name='batch',
field=models.IntegerField(default=2024),
),
migrations.AlterField(
model_name='messdue',
name='year',
field=models.IntegerField(choices=[(2024, 2024), (2023, 2023)]),
),
migrations.AlterField(
model_name='register',
name='year',
field=models.IntegerField(default=2024),
),
]
53 changes: 53 additions & 0 deletions FusionIIIT/applications/eis/migrations/0002_auto_20240218_0103.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Generated by Django 3.1.5 on 2024-02-18 01:03

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('eis', '0001_initial'),
]

operations = [
migrations.AlterField(
model_name='emp_achievement',
name='a_year',
field=models.IntegerField(blank=True, choices=[(1995, 1995), (1996, 1996), (1997, 1997), (1998, 1998), (1999, 1999), (2000, 2000), (2001, 2001), (2002, 2002), (2003, 2003), (2004, 2004), (2005, 2005), (2006, 2006), (2007, 2007), (2008, 2008), (2009, 2009), (2010, 2010), (2011, 2011), (2012, 2012), (2013, 2013), (2014, 2014), (2015, 2015), (2016, 2016), (2017, 2017), (2018, 2018), (2019, 2019), (2020, 2020), (2021, 2021), (2022, 2022), (2023, 2023), (2024, 2024)], null=True, verbose_name='year'),
),
migrations.AlterField(
model_name='emp_confrence_organised',
name='k_year',
field=models.IntegerField(blank=True, choices=[(1995, 1995), (1996, 1996), (1997, 1997), (1998, 1998), (1999, 1999), (2000, 2000), (2001, 2001), (2002, 2002), (2003, 2003), (2004, 2004), (2005, 2005), (2006, 2006), (2007, 2007), (2008, 2008), (2009, 2009), (2010, 2010), (2011, 2011), (2012, 2012), (2013, 2013), (2014, 2014), (2015, 2015), (2016, 2016), (2017, 2017), (2018, 2018), (2019, 2019), (2020, 2020), (2021, 2021), (2022, 2022), (2023, 2023), (2024, 2024)], null=True, verbose_name='year'),
),
migrations.AlterField(
model_name='emp_expert_lectures',
name='l_year',
field=models.IntegerField(blank=True, choices=[(1995, 1995), (1996, 1996), (1997, 1997), (1998, 1998), (1999, 1999), (2000, 2000), (2001, 2001), (2002, 2002), (2003, 2003), (2004, 2004), (2005, 2005), (2006, 2006), (2007, 2007), (2008, 2008), (2009, 2009), (2010, 2010), (2011, 2011), (2012, 2012), (2013, 2013), (2014, 2014), (2015, 2015), (2016, 2016), (2017, 2017), (2018, 2018), (2019, 2019), (2020, 2020), (2021, 2021), (2022, 2022), (2023, 2023), (2024, 2024)], null=True, verbose_name='year'),
),
migrations.AlterField(
model_name='emp_keynote_address',
name='k_year',
field=models.IntegerField(blank=True, choices=[(1995, 1995), (1996, 1996), (1997, 1997), (1998, 1998), (1999, 1999), (2000, 2000), (2001, 2001), (2002, 2002), (2003, 2003), (2004, 2004), (2005, 2005), (2006, 2006), (2007, 2007), (2008, 2008), (2009, 2009), (2010, 2010), (2011, 2011), (2012, 2012), (2013, 2013), (2014, 2014), (2015, 2015), (2016, 2016), (2017, 2017), (2018, 2018), (2019, 2019), (2020, 2020), (2021, 2021), (2022, 2022), (2023, 2023), (2024, 2024)], null=True, verbose_name='year'),
),
migrations.AlterField(
model_name='emp_mtechphd_thesis',
name='s_year',
field=models.IntegerField(blank=True, choices=[(1995, 1995), (1996, 1996), (1997, 1997), (1998, 1998), (1999, 1999), (2000, 2000), (2001, 2001), (2002, 2002), (2003, 2003), (2004, 2004), (2005, 2005), (2006, 2006), (2007, 2007), (2008, 2008), (2009, 2009), (2010, 2010), (2011, 2011), (2012, 2012), (2013, 2013), (2014, 2014), (2015, 2015), (2016, 2016), (2017, 2017), (2018, 2018), (2019, 2019), (2020, 2020), (2021, 2021), (2022, 2022), (2023, 2023), (2024, 2024)], null=True, verbose_name='year'),
),
migrations.AlterField(
model_name='emp_patents',
name='p_year',
field=models.IntegerField(blank=True, choices=[(1995, 1995), (1996, 1996), (1997, 1997), (1998, 1998), (1999, 1999), (2000, 2000), (2001, 2001), (2002, 2002), (2003, 2003), (2004, 2004), (2005, 2005), (2006, 2006), (2007, 2007), (2008, 2008), (2009, 2009), (2010, 2010), (2011, 2011), (2012, 2012), (2013, 2013), (2014, 2014), (2015, 2015), (2016, 2016), (2017, 2017), (2018, 2018), (2019, 2019), (2020, 2020), (2021, 2021), (2022, 2022), (2023, 2023), (2024, 2024)], null=True, verbose_name='year'),
),
migrations.AlterField(
model_name='emp_published_books',
name='pyear',
field=models.IntegerField(blank=True, choices=[(1995, 1995), (1996, 1996), (1997, 1997), (1998, 1998), (1999, 1999), (2000, 2000), (2001, 2001), (2002, 2002), (2003, 2003), (2004, 2004), (2005, 2005), (2006, 2006), (2007, 2007), (2008, 2008), (2009, 2009), (2010, 2010), (2011, 2011), (2012, 2012), (2013, 2013), (2014, 2014), (2015, 2015), (2016, 2016), (2017, 2017), (2018, 2018), (2019, 2019), (2020, 2020), (2021, 2021), (2022, 2022), (2023, 2023), (2024, 2024)], null=True, verbose_name='year'),
),
migrations.AlterField(
model_name='emp_research_papers',
name='year',
field=models.CharField(blank=True, choices=[(1995, 1995), (1996, 1996), (1997, 1997), (1998, 1998), (1999, 1999), (2000, 2000), (2001, 2001), (2002, 2002), (2003, 2003), (2004, 2004), (2005, 2005), (2006, 2006), (2007, 2007), (2008, 2008), (2009, 2009), (2010, 2010), (2011, 2011), (2012, 2012), (2013, 2013), (2014, 2014), (2015, 2015), (2016, 2016), (2017, 2017), (2018, 2018), (2019, 2019), (2020, 2020), (2021, 2021), (2022, 2022), (2023, 2023), (2024, 2024)], max_length=10, null=True),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.1.5 on 2024-02-18 01:03

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('globals', '0001_initial'),
]

operations = [
migrations.AlterField(
model_name='extrainfo',
name='user_status',
field=models.CharField(choices=[('NEW', 'NEW'), ('PRESENT', 'PRESENT')], default='PRESENT', max_length=50),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.1.5 on 2024-02-18 04:57

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('globals', '0002_auto_20240218_0103'),
]

operations = [
migrations.AlterField(
model_name='extrainfo',
name='user_status',
field=models.CharField(choices=[('PRESENT', 'PRESENT'), ('NEW', 'NEW')], default='PRESENT', max_length=50),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.1.5 on 2024-02-18 05:31

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('globals', '0003_auto_20240218_0457'),
]

operations = [
migrations.AlterField(
model_name='extrainfo',
name='user_status',
field=models.CharField(choices=[('NEW', 'NEW'), ('PRESENT', 'PRESENT')], default='PRESENT', max_length=50),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.1.5 on 2024-02-19 16:03

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('globals', '0004_auto_20240218_0531'),
]

operations = [
migrations.AlterField(
model_name='extrainfo',
name='user_status',
field=models.CharField(choices=[('PRESENT', 'PRESENT'), ('NEW', 'NEW')], default='PRESENT', max_length=50),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.1.5 on 2024-02-21 15:11

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('globals', '0005_auto_20240219_1603'),
]

operations = [
migrations.AlterField(
model_name='extrainfo',
name='user_status',
field=models.CharField(choices=[('NEW', 'NEW'), ('PRESENT', 'PRESENT')], default='PRESENT', max_length=50),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.1.5 on 2024-02-21 19:00

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('globals', '0006_auto_20240221_1511'),
]

operations = [
migrations.AlterField(
model_name='extrainfo',
name='user_status',
field=models.CharField(choices=[('PRESENT', 'PRESENT'), ('NEW', 'NEW')], default='PRESENT', max_length=50),
),
]
4 changes: 3 additions & 1 deletion FusionIIIT/applications/health_center/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from .models import (Ambulance_request, Appointment, Complaint, Counter,
Doctor, Expiry, Hospital, Hospital_admit, Medicine,
Prescribed_medicine, Prescription, Schedule, Stock)
Prescribed_medicine, Prescription, Schedule, Stock,Announcements,SpecialRequest)

admin.site.register(Doctor)
admin.site.register(Appointment)
Expand All @@ -17,3 +17,5 @@
admin.site.register(Medicine)
admin.site.register(Prescribed_medicine)
admin.site.register(Schedule)
admin.site.register(Announcements)
admin.site.register(SpecialRequest)
6 changes: 6 additions & 0 deletions FusionIIIT/applications/health_center/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ class ScheduleSerializer(serializers.ModelSerializer):
class Meta:
model=Schedule
fields=('__all__')

class AnnouncementSerializer(serializers.ModelSerializer):

class Meta:
model=Announcements
fields=('__all__')


class CounterSerializer(serializers.ModelSerializer):
Expand Down
1 change: 0 additions & 1 deletion FusionIIIT/applications/health_center/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from datetime import datetime, timedelta, time,date
from django.db import transaction
from notification.views import healthcare_center_notif

from rest_framework.permissions import IsAuthenticated
from rest_framework.authentication import TokenAuthentication
from rest_framework import status
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 3.1.5 on 2024-02-18 01:10

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('health_center', '0001_initial'),
]

operations = [
migrations.AlterField(
model_name='doctor',
name='doctor_name',
field=models.CharField(choices=[(0, 'Dr.Sharma'), (1, 'Dr.Vinay')], max_length=100),
),
migrations.AlterField(
model_name='doctor',
name='doctor_phone',
field=models.IntegerField(max_length=10),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Generated by Django 3.1.5 on 2024-02-18 04:27

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
('health_center', '0002_auto_20240218_0110'),
]

operations = [
migrations.CreateModel(
name='Pathologist',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('pathologist_name', models.CharField(choices=[(0, 'Dr.Ajay'), (1, 'Dr.Rahul')], max_length=50)),
('pathologist_phone', models.IntegerField(max_length=10)),
('specialization', models.CharField(max_length=100)),
('active', models.BooleanField(default=True)),
],
),
migrations.AlterField(
model_name='doctor',
name='doctor_name',
field=models.CharField(choices=[(0, 'Dr.Sharma'), (1, 'Dr.Vinay')], max_length=50),
),
migrations.AlterField(
model_name='schedule',
name='day',
field=models.CharField(choices=[(0, 'Monday'), (1, 'Tuesday'), (2, 'Wednesday'), (3, 'Thursday'), (4, 'Friday'), (5, 'Saturday'), (6, 'Sunday')], max_length=10),
),
migrations.AddField(
model_name='schedule',
name='pathologist_id',
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='health_center.pathologist'),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Generated by Django 3.1.5 on 2024-02-18 04:57

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('health_center', '0003_auto_20240218_0427'),
]

operations = [
migrations.RemoveField(
model_name='doctor',
name='id',
),
migrations.RemoveField(
model_name='pathologist',
name='id',
),
migrations.RemoveField(
model_name='schedule',
name='id',
),
migrations.AddField(
model_name='doctor',
name='doctor_id',
field=models.CharField(default=1, max_length=100, primary_key=True, serialize=False),
),
migrations.AddField(
model_name='pathologist',
name='pathologist_id',
field=models.CharField(default=1, max_length=100, primary_key=True, serialize=False),
),
migrations.AddField(
model_name='schedule',
name='schedule_id',
field=models.CharField(default=1, max_length=100, primary_key=True, serialize=False),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Generated by Django 3.1.5 on 2024-02-18 05:31

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('health_center', '0004_auto_20240218_0457'),
]

operations = [
migrations.RemoveField(
model_name='doctor',
name='doctor_id',
),
migrations.RemoveField(
model_name='pathologist',
name='pathologist_id',
),
migrations.AddField(
model_name='doctor',
name='id',
field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
preserve_default=False,
),
migrations.AddField(
model_name='pathologist',
name='id',
field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
preserve_default=False,
),
]
Loading

0 comments on commit 4a090eb

Please sign in to comment.