Skip to content

Instantly share code, notes, and snippets.

@ameyawebonise
Created January 14, 2016 04:41
Show Gist options
  • Save ameyawebonise/263b41eda0de901d3e62 to your computer and use it in GitHub Desktop.
Save ameyawebonise/263b41eda0de901d3e62 to your computer and use it in GitHub Desktop.
{
"compliance" : "BOTH",
"who" : [ {
"lhs" : {
"type" : "AllTrackers"
},
"operator" : null,
"rhs" : [ ]
} ],
"what" : [ {
"type" : "Expression",
"requirement" : {
"type" : "TrackerItem",
"id" : 4495
},
"field" : "SMART_FIELDS",
"operator" : "VHR_FIELDS_DRILLDOWN_OPERATOR",
"values" : [ {"questionId":"1","answer":"1","questionId":"3","answer":"2"} ]
} ]
}
}
@ameyawebonise
Copy link
Author

the json posted above is correct.We need values to be a List<QuestionAnswerMapping> where QuestionAnswerMapping is as follows:

public class QuestionAnswerMapping{ int questionId; //question id chosen for filter int answer; //answer = 1 if yes 2 if no }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment