Skip to content

Commit

Permalink
Health Center Contribution - PR201 (FusionIIIT#1625)
Browse files Browse the repository at this point in the history
* All changes of health center module

* Redundancy bug fixes

* Minor bug fix
Patie0tn log form undefined behavior when changing radio field

* Guideline Configs

* Removed print statements according to guidelines

---------

Co-authored-by: ChallaBharadwajReddy <[email protected]>
  • Loading branch information
2 people authored and Pratik2026 committed Oct 22, 2024
1 parent f2e171f commit a6182d4
Show file tree
Hide file tree
Showing 27 changed files with 4,577 additions and 1,340 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ package-lock.json


.DS_Store

**/generated.pdf
28 changes: 14 additions & 14 deletions FusionIIIT/applications/health_center/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
from .models import *

admin.site.register(Doctor)
admin.site.register(Appointment)
admin.site.register(Ambulance_request)
admin.site.register(Hospital_admit)
admin.site.register(Complaint)
admin.site.register(Stock)
admin.site.register(Counter)
admin.site.register(Expiry)
admin.site.register(Hospital)
admin.site.register(Prescription)
admin.site.register(Medicine)
admin.site.register(Prescribed_medicine)
# admin.site.register(Appointment)
# admin.site.register(Ambulance_request)
# admin.site.register(Hospital_admit)
# admin.site.register(Complaint)
admin.site.register(Present_Stock)
# admin.site.register(Counter)
# admin.site.register(Expiry)
# admin.site.register(Hospital)
admin.site.register(All_Prescription)
admin.site.register(All_Medicine)
admin.site.register(All_Prescribed_medicine)
admin.site.register(Doctors_Schedule)
admin.site.register(Pathologist_Schedule)
admin.site.register(Announcements)
admin.site.register(SpecialRequest)
admin.site.register(Pathologist)
# admin.site.register(Announcements)
# admin.site.register(SpecialRequest)
admin.site.register(Pathologist)
144 changes: 72 additions & 72 deletions FusionIIIT/applications/health_center/api/serializers.py
Original file line number Diff line number Diff line change
@@ -1,114 +1,114 @@
from django.contrib.auth import get_user_model
from rest_framework.authtoken.models import Token
from rest_framework import serializers
from applications.health_center.models import *
# from django.contrib.auth import get_user_model
# from rest_framework.authtoken.models import Token
# from rest_framework import serializers
# from applications.health_center.models import *


class DoctorSerializer(serializers.ModelSerializer):
# class DoctorSerializer(serializers.ModelSerializer):

class Meta:
model=Doctor
fields=('__all__')
# class Meta:
# model=Doctor
# fields=('__all__')

class PathologistSerializer(serializers.ModelSerializer):
# class PathologistSerializer(serializers.ModelSerializer):

class Meta:
model=Pathologist
fields=('__all__')
# class Meta:
# model=Pathologist
# fields=('__all__')

class ComplaintSerializer(serializers.ModelSerializer):
# class ComplaintSerializer(serializers.ModelSerializer):

class Meta:
model=Complaint
fields=('__all__')
# class Meta:
# model=Complaint
# fields=('__all__')

class StockSerializer(serializers.ModelSerializer):
# class StockSerializer(serializers.ModelSerializer):

class Meta:
model=Stock
fields=('__all__')
# class Meta:
# model=Stock
# fields=('__all__')

class MedicineSerializer(serializers.ModelSerializer):
# class MedicineSerializer(serializers.ModelSerializer):

class Meta:
model=Medicine
fields=('__all__')
# class Meta:
# model=Medicine
# fields=('__all__')

class HospitalSerializer(serializers.ModelSerializer):
# class HospitalSerializer(serializers.ModelSerializer):

class Meta:
model=Hospital
fields=('__all__')
# class Meta:
# model=Hospital
# fields=('__all__')


class ExpirySerializer(serializers.ModelSerializer):
# class ExpirySerializer(serializers.ModelSerializer):

class Meta:
model=Expiry
fields=('__all__')
# class Meta:
# model=Expiry
# fields=('__all__')

class DoctorsScheduleSerializer(serializers.ModelSerializer):
# class DoctorsScheduleSerializer(serializers.ModelSerializer):

class Meta:
model=Doctors_Schedule
fields=('__all__')
class PathologistScheduleSerializer(serializers.ModelSerializer):
# class Meta:
# model=Doctors_Schedule
# fields=('__all__')
# class PathologistScheduleSerializer(serializers.ModelSerializer):

class Meta:
model=Pathologist_Schedule
fields=('__all__')
# class Meta:
# model=Pathologist_Schedule
# fields=('__all__')




class AnnouncementSerializer(serializers.ModelSerializer):
# class AnnouncementSerializer(serializers.ModelSerializer):

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


class CounterSerializer(serializers.ModelSerializer):
# class CounterSerializer(serializers.ModelSerializer):

class Meta:
model=Counter
fields=('__all__')
# class Meta:
# model=Counter
# fields=('__all__')

class AppointmentSerializer(serializers.ModelSerializer):
# class AppointmentSerializer(serializers.ModelSerializer):

class Meta:
model=Appointment
fields=('__all__')
# class Meta:
# model=Appointment
# fields=('__all__')


class PrescriptionSerializer(serializers.ModelSerializer):
# class PrescriptionSerializer(serializers.ModelSerializer):

class Meta:
model=Prescription
fields=('__all__')
# class Meta:
# model=Prescription
# fields=('__all__')


class PrescribedMedicineSerializer(serializers.ModelSerializer):
# class PrescribedMedicineSerializer(serializers.ModelSerializer):

class Meta:
model=Prescribed_medicine
fields=('__all__')
# class Meta:
# model=Prescribed_medicine
# fields=('__all__')


class AmbulanceRequestSerializer(serializers.ModelSerializer):
# class AmbulanceRequestSerializer(serializers.ModelSerializer):

class Meta:
model=Ambulance_request
fields=('__all__')
# class Meta:
# model=Ambulance_request
# fields=('__all__')

class HospitalAdmitSerializer(serializers.ModelSerializer):
# class HospitalAdmitSerializer(serializers.ModelSerializer):

class Meta:
model=Hospital_admit
fields=('__all__')
# class Meta:
# model=Hospital_admit
# fields=('__all__')

class MedicalReliefSerializer(serializers.ModelSerializer):
# class MedicalReliefSerializer(serializers.ModelSerializer):

class Meta:
model=medical_relief
fields=('__all__')
# class Meta:
# model=medical_relief
# fields=('__all__')
8 changes: 4 additions & 4 deletions FusionIIIT/applications/health_center/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

urlpatterns = [

url(r'^compounder/$', views.compounder_view_api, name='compounder_view_api'),
url(r'^compounder/request$', views.compounder_request_api , name='compounder_request_api'),
url(r'^student/$', views.student_view_api, name='student_view'),
url(r'^student/request$', views.student_request_api, name='student_request_api')
# url(r'^compounder/$', views.compounder_view_api, name='compounder_view_api'),
# url(r'^compounder/request$', views.compounder_request_api , name='compounder_request_api'),
# url(r'^student/$', views.student_view_api, name='student_view'),
# url(r'^student/request$', views.student_request_api, name='student_request_api')
]
Loading

0 comments on commit a6182d4

Please sign in to comment.