health profile question

List health profile questions

Changed on

Get a list of health profile questions

get/health_profile_question

Request

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

Query parameters

filter[patient]string

Patient id to fetch healt profile questions. Note that one of the following filters must be specified: filter[patient], filter[group], or filter[organization].

filter[groups]string

Comma-separated list of group ids. Note that one of the following filters must be specified: filter[patient], filter[group], or filter[organization].

filter[organization]string

Fitbit Plus organization id. Note that one of the following filters must be specified: filter[patient], filter[group], or filter[organization].

include'question_definition' | 'answer'

List of related resources to include in the response

Response

OK

Example response

{
  "data": [
    {
      "type": "health_profile_question",
      "id": "52b36e3c04ad8c2224f2aa67",
      "attribute": {},
      "relationships": {
        "answer": {
          "data": {
            "id": "595fddea28c5041b84466bbe",
            "type": "health_profile_answer"
          },
          "links": {
            "related": "/pub/health_profile_question/59d435931d078505ba744e88/answer"
          }
        },
        "profile": {
          "links": {
            "related": "/pub/health_profile_question/59d435931d078505ba744e88/profile"
          }
        },
        "question_definition": {
          "data": {
            "id": "4",
            "type": "health_question_definition"
          },
          "links": {
            "related": "/pub/health_profile_question/59d435931d078505ba744e88/question_definition"
          }
        }
      },
      "links": {
        "self": "/pub/health_profile_question/59d435931d078505ba744e88"
      }
    }
  ]
}

Changes