Skip to content

Instantly share code, notes, and snippets.

@emersonf
Forked from idasim/Ida's Header Schema Draft
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emersonf/4459d165502ae654f520 to your computer and use it in GitHub Desktop.
Save emersonf/4459d165502ae654f520 to your computer and use it in GitHub Desktop.
"header": {
"id": "123e4567-e89b-12d3-a456-426655440000",
"creation_time": "2013-02-05T07:25:00Z",
"schema": {
"namespace": "omh",
"name": "calories_burned",
"version": "1.1.RC1"
"code-url": //new suggestion -- to pull out all data indexed with a SNOMED code?
},
"acquisition_provenance": {
"source": "RunKeeper",
"source_creation_timestamp": "2013-02-05T07:25:00Z",
"modality": "sensed, self-reported" // new suggestion
"location":gps-coordinates //new suggestion, probably defer
},
"processing_delivery_provenance": {
// defer, processing may occur as part of delivery (e.g., whatever Validic does to clean up) so don't split it
},
"source_data_point_ids": [ "235345", "2342423", "12312312"]
},
"header": {
"id": "123e4567-e89b-12d3-a456-426655440000",
"creation_time": "2013-02-05T07:25:00Z", //July 15, 2014
"schema": {
"namespace": "omh",
"name": "sleep-duration-(notimestamp)",
"version": "1.1.RC1"
},
"acquisition_provenance": {
"origin": "Jawbone",
"acquisition_timestamp": // jawbone's "time-created" and "time-completed"?
"modality": "sensed" //new
"location":gps-coordinates //new suggestion, probably defer
},
"processing_delivery_provenance": {
// defer
}
}
{
"sleep-duration": {
"value": 27900,
"unit": "s"
},
"effective-time-frame": {
"start-time" : "2013-02-05T21:00:00Z", //jawbone's asleep-time
"end-time" : "2013-02-05T21:00:00Z", //jawbone's awake-time
}
"effective-time-frame": {
"date-time" : "2013-02-05T21:00:00Z", //jawbone's date
}
}
}
"header": {
"id": "123e4567-e89b-12d3-a456-426655440000",
"creation_time": "2013-02-05T07:25:00Z", //July 15, 2014
"schema": {
"namespace": "omh",
"name": "body-weight",
"version": "1.1.RC1"
},
"acquisition_provenance": {
"origin": "RunKeeper",
"acquisition_timestamp": instantiate from update-time (?) in Withings API //July 10, 2014
"modality": "self-reported"
"location":gps-coordinates //new suggestion, probably defer
},
"processing_delivery_provenance": {
// defer
}
}
{
"body-weight": {
"value": 50,
"unit": "kg"
},
"effective-time-frame": {
"date-time": instantiate from "timestamp" field of runkeeper api //e.g., July 9, 2015
}
}
"header": {
"id": "123e4567-e89b-12d3-a456-426655440000",
"creation_time": "2013-02-05T07:25:00Z", //July 15, 2014
"schema": {
"namespace": "omh",
"name": "body-weight",
"version": "1.1.RC1"
},
"acquisition_provenance": {
"origin": "Withings",
"acquisition_timestamp": instantiate from update-time (?) in Withings API //July 10, 2014
"modality": "sensed" //new
"location":gps-coordinates //new suggestion, probably defer
},
"processing_delivery_provenance": {
// defer
}
}
{
"body-weight": {
"value": 50,
"unit": "kg"
},
"effective-time-frame": {
"date-time": instantiate from "date" field of withings api //e.g., July 9, 2015
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment