forked from FusionIIIT/Fusion
-
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.
Health Center Contribution - PR201 (FusionIIIT#1625)
* 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
1 parent
f2e171f
commit a6182d4
Showing
27 changed files
with
4,577 additions
and
1,340 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 |
---|---|---|
|
@@ -75,4 +75,4 @@ package-lock.json | |
|
||
|
||
.DS_Store | ||
|
||
**/generated.pdf |
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
144 changes: 72 additions & 72 deletions
144
FusionIIIT/applications/health_center/api/serializers.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 |
---|---|---|
@@ -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__') |
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
Oops, something went wrong.