You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clean up the usage or access of the abdm app inside the facility app
care/facility/models/patient.py
abha_number=models.OneToOneField(
AbhaNumber, on_delete=models.SET_NULL, null=True, blank=True
)
# TODO: move this relation inside Abha Number modelpatient=models.OneToOneField(
Patient, on_delete=models.CASCADE, null=True, blank=True
) # VERIFY: abha number is deleted when patient is deleted and not vice versa# TODO: Add the necessary migration
care/facility/api/serializers/patient.py
abha_number=ExternalIdSerializerField(
queryset=AbhaNumber.objects.all(), required=False, allow_null=True
)
abha_number_object=AbhaNumberSerializer(source="abha_number", read_only=True)
# TODO: create an extended serializer in abdm plug for internal use and in the frontend seperate out the api calls for patient and abha number
Todo:
care/facility/models/patient.py
care/facility/api/serializers/patient.py
care/facility/api/serializers/patient_consultation.py
Extras:
The text was updated successfully, but these errors were encountered: