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

Latest

Mar 4, 2015

 

Accessing the Latest Information

By default, bulk data calls are ordered by the timestamp of an individual activity. The challenge here is that if an individual was on vacation for a week and syncs a device upon returning, how will you know of data that occurred a week ago but only just made it into the Validic system?

The latest endpoint gives you the latest data recorded and updated in Validic, regardless of when the activity occurred based on the last_updated field. For example, if you pulled and processed Validic data at 4:00 a.m., and then you want to update your system again at 8:00 a.m., you can specify to only receive new and updated data that was added to our system between 4 a.m. and 8 a.m. by appending a timestamp with the start_date and end_date.

The following returns the most recently recorded/updated fitness activities for all users of an Organization that were recorded/updated between start_date and end_date:

Example
GET https://api.validic.com/v1/organizations/{ORGANIZATION_ID}/fitness/latest.json?start_date={TIMESTAMP}&end_date={TIMESTAMP}&access_token={ORGANIZATION_ACCESS_TOKEN}
GET https://api.validic.com/v1/organizations/5176906c6deddac02c000001/fitness/l
atest.json?start_date=2013-06-01T04:00:00-04:00&access_token=e61467e3845e8a
66f7453dc55ea3fc445d1b879a6f96ebe7b243badbeae04f63
 200
 {
 "summary": {
 ...
 },
 "fitness": [{
 "_id": "5176903b6dedda539c000001",
 "timestamp": "2013-06-01T04:07:01+00:00",
 "utc_offset": "-05:00"
 "type": "Running",
 "intensity": "high",
 "start_time": null,
 "distance": 2242.74,
 "duration": 1683,
 "source": "sample_app",
 "source_name": "Sample App",
 "last_updated" : "2013-06-01T04:07:01+00:00",

Latest.json Example:
A best practices implementation of /routine/latest.json calls would look something like this:

/routine/latest.json?start_date=2014-03-09T10:00:00Z&end_date=2014-03-09T10:04:59Z /
routine/latest.json?start_date=2014-03-09T10:05:00Z&end_date=2014-03-09T10:09:59Z /r
outine/latest.json?start_date=2014-03-09T10:10:00Z&end_date=2014-03-09T10:14:59Z /ro
utine/latest.json?start_date=2014-03-09T10:15:00Z&end_date=2014-03-09T10:19:59Z /rou
tine/latest.json?start_date=2014-03-09T10:20:00Z&end_date=2014-03-09T10:24:59Z /rout
ine/latest.json?start_date=2014-03-09T10:25:00Z&end_date=2014-03-09T10:29:59Z /routi
ne/latest.json?start_date=2014-03-09T10:30:00Z&end_date=2014-03-09T10:34:59Z /routin
e/latest.json?start_date=2014-03-09T10:35:00Z&end_date=2014-03-09T10:39:59Z /routine
/latest.json?start_date=2014-03-09T10:40:00Z&end_date=2014-03-09T10:44:59Z /routine/
latest.json?start_date=2014-03-09T10:45:00Z&end_date=2014-03-09T10:49:59Z 

The benefit of this series of calls is that you ping Validic every five minutes (could be every 2 minutes, every 10 minutes, etc.) and you receive any updates that have been made for your organization in the specified time range. So for example, if a user doesn’t sync her Fitbit for 5 days and then syncs it on 2014-03- 09T10:47:39Z, Validic will return all of her Fitbit activities from the last 5 days in the last call in the series above.

Latest.json vs Push Notifications
Please refer to our Knowledge Base Article for further information regarding discussion around leveraging the latest.json call vs push notification service and user level data calls.

View More >

Recent Posts

  • Why a digital health leader acquired a warehouse
  • Meet Gabe Maeck, LCSW, Senior Client Success Executive
  • 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

Archives

  • June 2023
  • 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