Closed aleksa-krolls closed 4 years ago
We'll receive a date_of_birth from Oscar like... "date_of_birth": "2012/05/10",. Please add a calculation to return age based on DOB. Currently I have 0 as an age placeholder.
date_of_birth
"date_of_birth": "2012/05/10",
age
0
https://github.com/OpenFn/unicef-cambodia/blob/4ab6648ab61829ed454057b4d1c91eb78086afc5/jobs/f2-j2-upsertCasesToPrimero.js#L348 Here we return a null value if the case was already registered in Primero to prevent data overwrites.
null
remember to handle for both '' and undefined
''
undefined
We'll receive a
date_of_birth
from Oscar like..."date_of_birth": "2012/05/10",
. Please add a calculation to returnage
based on DOB. Currently I have0
as an age placeholder.https://github.com/OpenFn/unicef-cambodia/blob/4ab6648ab61829ed454057b4d1c91eb78086afc5/jobs/f2-j2-upsertCasesToPrimero.js#L348 Here we return a
null
value if the case was already registered in Primero to prevent data overwrites.