Skip to content

Commit

Permalink
removed existing abha id validation
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar committed Mar 7, 2023
1 parent 4605dc3 commit 3ba753a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions care/abdm/api/viewsets/healthid.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,12 @@ def create_abha(self, abha_profile, token):
return abha_object

def add_abha_details_to_patient(self, abha_object, patient_object):
patient = PatientRegistration.objects.filter(
abha_number__abha_number=abha_object.abha_number
).first()
# patient = PatientRegistration.objects.filter(
# abha_number__abha_number=abha_object.abha_number
# ).first()

if patient or patient_object.abha_number:
return False
# if patient or patient_object.abha_number:
# return False

patient_object.abha_number = abha_object
patient_object.save()
Expand Down

0 comments on commit 3ba753a

Please sign in to comment.