Closed common-cold closed 5 months ago
@mozzy11 can you assign this issue to me.
@mozzy11 @common-cold
just a heads up maybe, what I would say is there can be mutiple patients with same national ID
@mozzy11 I would suggest by default we can keep allowing mutiple patients with same national ID because say I am from uganda
then there would be no point if only one patient from uganda can use our application
just reconsidering the edge cases
@codewithunknown from what I could understand the national ID in the codebase refers to the unique identification no. given by the government to its citizen. In India we have Aadhaar Card as our National ID. I don't think the code base refers to the Country Code as national Id. Correct me if I'm wrong.
@common-cold any progress or blocker here ??
hello @common-cold any progress ??
@mozzy11 yes i have done changes in the code-base I'll generate a PR soon.
Issue Description:
The Patient Configuration Menu has fields such as
Even after toggling their values to false, new patients can be persisted with duplicate national IDs and subject Number. Currently there is no Validator present in the backend during the process of saving a new patient.
Admin -> Legacy Admin -> Patient Entry Configuration
Here the properties can be toggled to true or false.
Screenshots of the issue:
Duplicate National ID Property is set to false:
Patients with duplicate national IDs are being persisted: