health question definition

List health question definitions

Changed on

Get a list of all health question definitions

get/health_question_definition

Request

  • Base URL
    https://api.twinehealth.com/pub
  • Auth
    none declared

Response

OK

Example response

{
  "data": [
    {
      "type": "health_question_definition",
      "id": "21",
      "attributes": {
        "category": "preventative_care",
        "format": {
          "data": [
            {
              "label": "I Don't know",
              "value": "0"
            },
            {
              "label": "I've never had a colonoscopy",
              "value": "1"
            }
          ],
          "type": "last_occurrence"
        },
        "requirements": [
          {
            "property": "age",
            "shouldBeGreaterThan": 49,
            "shouldBeLessThan": 76
          }
        ],
        "text": "When was your last colonoscopy?"
      },
      "links": {
        "self": "/pub/health_question_definition/21"
      }
    }
  ]
}

Changes