result

List patient health results

Changed on

Get a list of patient health results.

get/result

Request

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

Query parameters

filter[patient]string required

Filter the patient health results for a specified patient

filter[actions]string

A comma-separated list of action identifiers

filter[start_at]string dateTime

Filter results that occurred after the passed ISO date and time string

filter[end_at]string dateTime

Filter results that occurred before the passed ISO date and time string

filter[threads]string

A comma-separated list of thread identifiers

filter[created_at]string

The start (inclusive) and end (exclusive) dates are ISO date and time strings separated by ... Example for results created in November 2017 (America/New_York): filter[created_at]=2017-11-01T00:00:00-04:00..2017-12-01T00:00:00-05:00

filter[updated_at]string

The start (inclusive) and end (exclusive) dates are ISO date and time strings separated by ... Example for results updated in November 2017 (America/New_York): filter[updated_at]=2017-11-01T00:00:00-04:00..2017-12-01T00:00:00-05:00

page[number]integer

Page number

page[size]integer

Page size

page[limit]integer

Page limit

page[after]string

Page cursor

Response

OK

Example response

{
  "data": [
    {
      "data": {
        "type": "result",
        "id": "5c0fc0d42d02421ed70cae16",
        "attributes": {
          "type": "medication",
          "annotations": [],
          "occurred_at": "2018-09-18T12:24:37.000Z",
          "occurred_at_time_zone": "America/New_York",
          "window": "5c0fc0d42d02421ed70cae01",
          "data": {
            "value": 1
          },
          "_thread": "569c631f4b378f51306324f2d69fd29aa0c034ac",
          "source": {},
          "created_at": "2018-09-18T12:24:37.000Z",
          "created_by": "5c0fc0d02d02421ed70ca1d1",
          "updated_at": "2018-09-18T12:24:37.000Z",
          "updated_by": "5c0fc0d02d02421ed70ca1d1"
        },
        "relationships": {
          "action": {
            "data": {
              "type": "action",
              "id": "5ada648779672451a6c1b095"
            }
          },
          "patient": {
            "data": {
              "type": "patient",
              "id": "5c0fc0d02d02421ed70ca1d1"
            }
          },
          "metric": {
            "data": {
              "type": "patient_health_metric",
              "id": "5c0fc0d42d02421ed70cae16"
            }
          }
        }
      }
    }
  ]
}

Changes