Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Status: Reflects the state of the session (CON or END).

  • Message: Question item, options, or validation message displayed to the user.

  • QuestionnaireResponse: Returned if showQR is true or the session reaches the end.

Example Response

...

Code Block
languagejson
{
    "status": "CON",
    "message": "2. Household owns a mobile phone?<br/>1. Yes<br/>2. No",
    "questionnnaireResponse": {
        "resourceType": "QuestionnaireResponse",
        "questionnaire": "BI USSD - Register Household",
        "status": "in-progress",
        "item": [
            {
                "linkId": "CHW_02",
                "text": "Has the client consented to data capture?",
                "answer": [
                    {
                        "valueBoolean": true
                    }
                ]
            }
        ]
    },
    "linkId": "CHW_03"
}

Supported FHIR Question Types

...