Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added more fields to Consultation API #876

Closed
wants to merge 26 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
1ccda71
Removed allergies field from Patient Model
aeswibon Aug 11, 2022
c9c99ce
Added allergies and has_allergy field in Patient Consultation Model
aeswibon Aug 11, 2022
80fc7af
Removed allergies from exclude list
aeswibon Aug 11, 2022
946918b
Added migrations file for the changes made in the models
aeswibon Aug 11, 2022
27ba489
Added logic to copy allergies field data from patient registration to…
aeswibon Aug 11, 2022
1380df0
Removed blood_group field from patient registration model
aeswibon Aug 11, 2022
f36b5b8
Added blood_group field in patient consultation model
aeswibon Aug 11, 2022
5e71f4f
Removed blood_group field from patient serializer
aeswibon Aug 11, 2022
d5803d9
Added blood_group field in patient consultation serializer
aeswibon Aug 11, 2022
41f3a09
Added migrations for blood_group field
aeswibon Aug 11, 2022
11ca14e
Added logic to migrate blood_group field data
aeswibon Aug 11, 2022
fca1173
Minor formatting
aeswibon Aug 11, 2022
02fddf5
Added family details field to patient consultation model
aeswibon Aug 11, 2022
ee3f4a9
Added migration for family details field
aeswibon Aug 11, 2022
1856326
Added blood_group field as csv field
aeswibon Aug 11, 2022
8c5622b
Removed present_health & ongoing_medication field from patient regist…
aeswibon Aug 11, 2022
a211116
Added present_health & ongoing_medication field to patient consultati…
aeswibon Aug 11, 2022
539dfd2
Migrated csv fields from patient registration model to patient consul…
aeswibon Aug 11, 2022
a3ff26f
Added migration for present_health & ongoing_medication field
aeswibon Aug 11, 2022
55afe3e
Added logic to migrate present_health & ongoing_medication field data
aeswibon Aug 11, 2022
9da31c9
Removed medical_history field from PatientDetailSerializer
aeswibon Aug 11, 2022
4ab7f35
Added medical_history field in PatientConsultationSerializer
aeswibon Aug 11, 2022
6e0161b
Updated create and update method of serializer
aeswibon Aug 11, 2022
e187c59
Updated method logic of serializer
aeswibon Aug 11, 2022
1cb8f1c
Removed ongoing_medication from exclude field
aeswibon Aug 11, 2022
698cbd0
Fixed Sonarcloud code smells
aeswibon Aug 12, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Removed allergies field from Patient Model
aeswibon committed Aug 11, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 1ccda7185e88924565beeac98f769705cfbbaaec
2 changes: 0 additions & 2 deletions care/facility/models/patient.py
Original file line number Diff line number Diff line change
@@ -155,8 +155,6 @@ class TestTypeEnum(enum.Enum):
verbose_name="Return Date from the Last Country if Travelled",
)

allergies = models.TextField(default="", blank=True, verbose_name="Patient's Known Allergies")

present_health = models.TextField(default="", blank=True, verbose_name="Patient's Current Health Details")
ongoing_medication = models.TextField(default="", blank=True, verbose_name="Already pescribed medication if any")
has_SARI = models.BooleanField(default=False, verbose_name="Does the Patient Suffer from SARI")