record Questionnaire Response
suspend fun recordQuestionnaireResponse(name: String, code: String, date: Long, fullID: String, response: Map<String, Any>)
Saves a questionnaire response.
Parameters
name
Name of the questionnaire (one gets this from the Questionnaire Entity)
code
Code of the questionnaire (one gets this from the Questionnaire Entity)
date
UNIX Timestamp in milliseconds of the time of completion (e.g. System.currentTimeMillis())
full ID
Full ID id of the questionnaire = cohort_id+questionnaire_code
response
JSON encoded string with the response to the questionnaire, i.e. key-value map where key == question key , value == numeric answer