health profile answer

List health profile answers

Changed on

Get a list of health profile answers

get/health_profile_answer

Request

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

Query parameters

filter[patient]string

Patient id to fetch healt profile answers. 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].

page[number]integer

Page number

page[size]integer

Page size

page[limit]integer

Page limit

page[cursor]string

Page cursor

include'patient'

List of related resources to include in the response

Response

OK

Example response

{
  "data": [
    {
      "type": "health_profile_answer",
      "id": "59d441ac21741161bbe266b5",
      "attributes": {
        "created_at": "2017-07-07T19:15:56.229Z",
        "history": [
          {
            "answered_at": "2017-10-03T12:45:16.720Z",
            "value": "2",
            "_created_by": "59d4d7dcd843ee01be71fcf8",
            "_id": "59d4d7dcd843ee01be71fcfb"
          }
        ],
        "latest": {
          "answered_at": "2017-10-04T12:45:16.720Z",
          "value": "1",
          "_created_by": "59d4d7dcd843ee01be71fcf8"
        },
        "question_id": "4",
        "updated_at": "2017-07-07T19:15:56.229Z"
      },
      "relationships": {
        "patient": {
          "data": {
            "id": "595fddea28c5041b84466bbe",
            "type": "patient"
          },
          "links": {
            "related": "/pub/health_profile_answer/59d441ac21741161bbe266b5/patient"
          }
        }
      },
      "links": {
        "self": "/pub/health_profile_answer/59d441ac21741161bbe266b5"
      }
    }
  ]
}

Changes