Skip to content

Commit

Permalink
Update care/abdm/api/viewsets/hip.py
Browse files Browse the repository at this point in the history
Co-authored-by: Rithvik Nishad <[email protected]>
  • Loading branch information
khavinshankar and rithviknishad authored Jul 20, 2023
1 parent 67fbb8b commit 3bbdb18
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions care/abdm/api/viewsets/hip.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ def share(self, request, *args, **kwargs):
patient = PatientRegistration.objects.create(
facility=Facility.objects.get(external_id=counter_id),
name=patient_data["name"],
gender=1
if patient_data["gender"] == "M"
else 2
if patient_data["gender"] == "F"
else 3,
gender={ "M": 1, "F": 2 }.get(patient_data["gender"], 3)
is_antenatal=False,
phone_number=patient_data["mobile"],
emergency_phone_number=patient_data["mobile"],
Expand Down

0 comments on commit 3bbdb18

Please sign in to comment.