You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi All,
Need help regarding setting expectations on the nested JSON.
My JSON is on following type:
data = {
"id": "1234",
"version": 0,
"case": "123",
"category": "abcd",
"pat_id": "1234",
"notes": {
"version": "V1.0",
"questions": [
{
"q": "bmi",
"snomed": "",
"loinc": "",
"value": "123"
},
{
"q": "cancer_stage",
"snomed": "",
"loinc": "",
"value": "1"
}
]
}
}
I want to set an expectation on "bmi" values to be between 20-30 for example.
I could achieve top level expectation setting on column ( in this case "pat_id" attribute but not for nested structure"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi All,
Need help regarding setting expectations on the nested JSON.
My JSON is on following type:
data = {
"id": "1234",
"version": 0,
"case": "123",
"category": "abcd",
"pat_id": "1234",
"notes": {
"version": "V1.0",
"questions": [
{
"q": "bmi",
"snomed": "",
"loinc": "",
"value": "123"
},
{
"q": "cancer_stage",
"snomed": "",
"loinc": "",
"value": "1"
}
]
}
}
I want to set an expectation on "bmi" values to be between 20-30 for example.
I could achieve top level expectation setting on column ( in this case "pat_id" attribute but not for nested structure"
Any help is appreciated. thanks.
Beta Was this translation helpful? Give feedback.
All reactions