Skip to content

Commit

Permalink
#5237 Case sensitive should be ignored to check name duplicity
Browse files Browse the repository at this point in the history
#5237 Case sensitive should be ignored to check name du
  • Loading branch information
arjunSussol committed Jun 22, 2023
1 parent 91b4e07 commit 473d8ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selectors/patient.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const selectCanEditPatient = ({ patient }) => {
export const selectPatientByNameAndDoB = ({ lastName, firstName, dateOfBirth }) => {
if (dateOfBirth) {
const dob = moment(dateOfBirth).format('L');
const query = 'lastName = $0 AND firstName = $1 AND isDeleted = $2';
const query = 'lastName BEGINSWITH[c] $0 AND firstName BEGINSWITH[c] $1 AND isDeleted = $2';
const duplicatePatients = UIDatabase.objects('Patient').filtered(
query,
lastName.trim(),
Expand Down

0 comments on commit 473d8ed

Please sign in to comment.