opengovsg/mockpass

Add MyInfo Children data

kenjin-work opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
The current Persons JSON doesn't have children data which is accessible through MyInfo v3.

Describe the solution you'd like
I would like to add that data.

Additional context
I will work on this.

Example JSON retrieved from the MyInfo docs:

"childrenbirthrecords": [
{
"birthcertno": {
"value": "S5562882C"
},
"name": {
"value": "Jo Tan Pei Ni"
},
"hanyupinyinname": {
"value": "Cheng Pei Ni"
},
"aliasname": {
"value": ""
},
"hanyupinyinaliasname": {
"value": ""
},
"marriedname": {
"value": ""
},
"sex": {
"code": "F",
"desc": "FEMALE"
},
"race": {
"code": "CN",
"desc": "CHINESE"
},
"secondaryrace": {
"code": "",
"desc": ""
},
"dialect": {
"code": "HK",
"desc": "HOKKIEN"
},
"lifestatus": {
"code": "D",
"desc": "DECEASED"
},
"dob": {
"value": "2011-09-10"
},
"tob": {
"value": "0901"
},
"vaccinationrequirements": [
{
"requirement": {
"code": "1M3D",
"desc": "MINIMUM VACCINATION REQUIREMENT FOR PRESCHOOL"
},
"fulfilled": {
"value": true
}
}
],
"sgcitizenatbirthind": {
"value": "Y"
},
"classification": "C",
"source": "1",
"lastupdated": "2019-03-26"
}
],

Nevermind. It seems I jumped the gun. There are instances of people with children in the v3.json. Thanks!