Validic
  • Solutions
    • Inform: Data Connectivity Platform
    • Impact: Remote Monitoring Platform
    • Logistics & Support
    • Mobile Solutions & HealthBridge
  • Industries
    • Hospitals & Health Systems
    • Healthcare IT Companies
    • Wellness Companies
    • Pharmaceutical Companies & CROs
    • Payers & Insurers
    • Device Manufacturers & App Developers
  • Ecosystem
  • Resources
    • Blog
    • Learning Center
  • Contact
Select Page

Filters

Mar 4, 2015

Filters

Activity Data can be filtered to retrieve a specific range of data, data from a specific source, to allow non-standardized data to be exposed and to provide administrative functionality from a population view. The following examples outline how to use data filters available via the Validic API:


Start Date of Activity

GET https://api.validic.com/v1/organizations/{ORGANIZATION_ID}/fitness.json?access_token={ORGANIZATION_ACCESS_TOKEN}&start_date=2014-03-10T00:00:00+00:00

 

End Date of Activity

GET https://api.validic.com/v1/organizations/{ORGANIZATION_ID}/fitness.json?access_token={ORGANIZATION_ACCESS_TOKEN}&end_date=2014-03-10T23:59:59+00:00

 

Source Filter

The source filter allows for retrieving datasets specific to a particular source (e.g., Fitbit, BodyMedia, etc.).

GET https://api.validic.com/v1/fitness.json?authentication_token={USER_ACCESS_TOKEN}&source={SOURCE}
GET https://api.validic.com/v1/fitness.json?authentication_token=df3e98f9947c1f348ee097fafa07e27898cb3a78e46fb518488d53f26ff27717&source=sample_app
 200
 {
 "summary": {
 ...
 }, "fitness": [
 {
 "_id": "51552cd7fded0807c400001f",
 "timestamp": "2013-03-10T07:12:16+00:00",
 "utc_offset": "-05:00"
 "type": "Walking",
 "intensity": "low",
 "start_time": "2013-03-10T02:12:16-05:00",
 "total_distance": 2600,
 "duration": 2460,
 "source": "sample_app",
 "source_name": "Sample App",
 "last_updated": "2013-03-10T07:12:16+00:00"
 },
 {
 "_id": "51552cd7fded0807c400001f",
 "timestamp": "2013-03-10T07:12:16+00:00",
 "utc_offset": "-05:00"
 "type": "Walking",
 "intensity": "low",
 "start_time": "2013-03-10T02:12:16-05:00",
 "total_distance": 2600,
 "duration": 2460,
 "source": "sample_app",
 "source_name": "Sample App",
 "last_updated": "2013-03-10T07:12:16+00:00"
 }
 ]
 }


Expanded Filter
The expanded filter allows for displaying all available additional output parameters from a single source. By default, expanded is set to 0 (false). Note that expanded is only available when combined with the source filter, and only one source is specified.

For example, the Lumo API returns "time_in_bad_posture" and "time_in_good_posture" as part of its response, which is not something Validic returns by default. To access this, you would specify source=lumo&expanded=1.

GET https://api.validic.com/v1/routine.json?authentication_token={USER_ACCESS_TO
KEN}&source=lumo&expanded=1

GET https://api.validic.com/v1/routine.json?authentication_token={USER_ACCESS_TOKEN}&source=lumo&expanded=1
 200
 {
 "summary": {
 ...
 },Routine
{
"_id": "5508682080d3798d780000a5",
"timestamp": "2015-03-09T00:00:00+00:00",
"utc_offset": "+00:00",
"steps": 10413,
"calories_burned": 261,
"distance": 7974,
"floors": null,
"elevation": null,
"source": "lumo",
"source_name": "Lumo",
"last_updated": "2015-03-17T17:45:04+00:00",
"extras": {
   "data_source": "LUMO_LIFT",
   "local_time": 1425859200,
   "total_calories": 261,
   "total_steps": 10413,
   "total_distance": 7974,
   "time_walking": 1154,
   "running_calories": 145,
   "running_distance": 2955,
   "running_steps": 2927,
   "time_running": 383,
   "time_in_bad_posture": 26883,
   "time_in_good_posture": 18417
}
 ]
 }


Status Filter
The status filter allows for displaying all users within an organization with the supplied status. By default, status is set to all.

GET https://api.validic.com/v1/organizations/{ORGANIZATION_ID}/users.json?access_token={ORGANIZATION_ACCESS_TOKEN}&status=all
GET https://api.validic.com/v1/organizations/5176906c6deddac02c000001/users.jso
n?access_token=df3e98f9947c1f348ee097fafa07e27898cb3a78e46fb518488d53f26f
f27717&status=all
 200
 {
 "summary": {
 ...
 }, "users": [
 {
 "_id": "51552cd7fded0807c400001f",
 "uid": "1"
 },
 {
 "_id": "51433ft7fdrd0719c4010011",
 "uid": "2"
 }
 ]
 }

Status List and Definitions

Status
Description
all
All users within the organization
active
All users within the organization that have one or more synced application that is integrated with Validic, and has logged at least one activity in any of their synced applications within the last 90 days.
inactive
All users within the organization that have one or more synced application that is integrated with Validic, and has not logged at least one activity in any of their synced applications within the last 90 days.
provisioned
All users within the organization that have not yet synced any application that is integrated with Validic.
suspended
All users within the organization whose accounts have been suspended.

#
Validated Data Filter
The show_validated filter allows you to be able to determine if the data you are receiving through the Validic API was generated using a device. Responses returned by the Validic API will include a new “validated” field which you may refer to for dertermining if data was device generated. For data to be considered as validated, any activity retrieved by Validic from a source that can be confirmed as recorded by a device, as opposed to entered manually, is considered validated. When determining if a record is validated, Validic will only set the “validated” field to true if there is information coming from the source that the activity was recorded by the device, If the value is false, this may mean that it was manually entered or that Validic is unable to definitively determine that the origin of the record was through the use of a device.

GET https://api.validic.com/v1/organizations/{ORGANIZATION_ID}/fitness.json?access_token={ORGANIZATION_ACCESS_TOKEN}&show_validated=1
GET https://api.validic.com/v1/organizations/51aca5a06dedda916400002b/fitness.json?access_token=ENTERPRISE_KEY&show_validated=1
200
{
  "summary": {
    ...
  },
  "fitness": [
    {
      "_id": "55018daa8d01da30e4000139",
      "timestamp": "2015-03-12T18:00:00+00:00",
      "utc_offset": "-09:00",
      "type": "Martial Arts:Brazilian Jiu Jitsu",
      "intensity": null,
      "start_time": "2015-03-12T09:00:00-09:00",
      "distance": 40346.1538,
      "duration": 8100.0,
      "calories": 1372.0,
      "source": "fitbug",
      "source_name": "Fitbug",
      "last_updated": "2015-03-12T12:59:22+00:00",
      "user_id": "52ffcb4bf1f70eefba000004",
      "validated": false
    },
    ...
  ]
}

View More >

Recent Posts

  • Converting Patient Insight into Action: Exploring New Connections in Patient Data
  • Remote Patient Monitoring Has Failed — Now What?
  • Reducing Long Wait Times for Provider Care
  • Activating Technology as a “Force Multiplier” that Reduces Clinical Burden
  • Personalized care company Validic acquires Trapollo

Archives

  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • October 2021
  • July 2021
  • June 2021
  • April 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • March 2017
  • February 2017
  • January 2017
  • June 2016
  • January 2016
  • September 2015
  • August 2015
  • July 2015

Categories

News
Events
Awards

About

  • Blog
  • Company
  • How It Works
  • Careers

Developers

  • Inform Platform Documentation
  • Legacy Platform Documentation
  • Connect API Documentation
  • Mobile Documentation

Legal

  • Data Security Policy
  • Service Level Agreement
  • Support Policy
  • Privacy Policy
  • Terms and Conditions

Contact Us

  • Request to Become a Client
Validic

Validic Inc. is a digital health and personalized care company devoted to our mission of improving the quality of human life by making personal data actionable. With the world’s largest health IoT platform and EHR-embedded remote care application, we help healthcare organizations give every person tailored interventions and personalized care, improving healthcare efficiency and delivery, and empowering people to play an active role in their health and well-being.

Validic Twitter Validic LinkedIn

hello@validic.com
1-800-495-7934

701 W Main St, Suite 620
Durham, NC 27701

This website uses cookies to improve your user experience. By using our website, you consent to all cookies in accordance with our Privacy Policy.AcceptPrivacy policy