From 1463b8ad0134a2483d5eebbc2b5d727a09757160 Mon Sep 17 00:00:00 2001 From: Pauline Date: Tue, 5 Mar 2024 13:52:24 +0000 Subject: [PATCH] Add Fitbit intraday spo2 to schemas and specs --- commons/connector/fitbit/fitbit_intraday_spo2.avsc | 12 ++++++++++++ specifications/connector/radar-fitbit-connector.yml | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 commons/connector/fitbit/fitbit_intraday_spo2.avsc diff --git a/commons/connector/fitbit/fitbit_intraday_spo2.avsc b/commons/connector/fitbit/fitbit_intraday_spo2.avsc new file mode 100644 index 00000000..ff51a4e0 --- /dev/null +++ b/commons/connector/fitbit/fitbit_intraday_spo2.avsc @@ -0,0 +1,12 @@ +{ + "namespace": "org.radarcns.connector.fitbit", + "type": "record", + "name": "FitbitIntradaySpo2", + "doc": "Intra day spo2 data from fitbit device.", + "fields": [ + { "name": "time", "type": "double", "doc": "Device timestamp in UTC (s)." }, + { "name": "timeReceived", "type": "double", "doc": "Time that the data was received from the Fitbit API (seconds since the Unix Epoch)." }, + { "name": "timeInterval", "type": "int", "doc": "Chronological window size (s)." }, + { "name": "spo2", "type": "float", "doc": "Percentage value of SpO2 calculated at the specific time."} + ] +} diff --git a/specifications/connector/radar-fitbit-connector.yml b/specifications/connector/radar-fitbit-connector.yml index 3825f4e0..cebb0835 100644 --- a/specifications/connector/radar-fitbit-connector.yml +++ b/specifications/connector/radar-fitbit-connector.yml @@ -37,3 +37,6 @@ data: - doc: Skin temperature topic: connect_fitbit_skin_temperature value_schema: .connector.fitbit.FitbitSkinTemperature + - doc: Spo2 or Blood oxygen saturation + topic: connect_fitbit_intraday_spo2 + value_schema: .connector.fitbit.FitbitIntradaySpo2 \ No newline at end of file