Many many thanks @W_Brunette
I am so grateful
Link to guide on what I request help on
A snippet of my case. I have hardcoded the variable data values but the expectation is that they be drawn from the participant through odk-x survey
var soundex = require(‘soundex-code’) //include the soundex library
var doubleMet= require(‘double-metaphone’) //include the double metaphone library
var gender=“M” //gender can be Male M, Female F, or Other O, or Unknown U
var dob=“19990203” //date of birth is in YMD format
var fname=soundex(‘john’) //apply soundex to the first name
var lname=doubleMet(“achieng”) //apply double-metaphone to the last name
var PKV1=gender+fname+lname[0]+dob //use the first metaphone for the last name
var PKV2=gender+fname+lname[1]+dob //use the second metaphone for the last name
You can test your code on runkit (RunKit)
From the odk-x survey a user inputs this data
First Name Last Name Gender DOB gender
JOHN KAHINDI M 1999-02-03 M
The input is subjected to the phonetic algorithmn
To get
The PKV flag potential duplicates at facility level and merge multiple records from the same individual at central level. It’s used for deduplication
The database should have
Summary of what I want
I have an odk-x survey configured with these variables( firstname, lastname, gender, DOB).Identifiers such as name should be anonymized such that the data leaving the facility(data on the tablet) should bear phonetics rather than the actual names. patient PII (name) should not leave the health facility for privacy/data security concerns
My request is that if my explanation above is not explicit then please accept that we have a zoom call
The doublemetaphone library can be downloaded
The soundex library can be downloaded