Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion commons/connector/huawei/huawei_activity_record.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,16 @@
"null",
"int"
],
"doc": "Huawei device type code for the recording device.",
"doc": "Huawei device code of the recording device (deviceInfo.deviceCode).",
"default": null
},
{
"name": "deviceTypeName",
"type": [
"null",
"string"
],
"doc": "Type of the recording device as named by Huawei (deviceInfo.devType), for example 'Smart watch'.",
"default": null
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@
],
"doc": "Map of Huawei exercise type code (as string) to duration in minutes for that activity type during the aggregation window.",
"default": null
},
{
"name": "totalIntensity",
"type": [
"null",
"int"
],
"doc": "Total intensity minutes in the aggregation window as reported by Huawei (totalIntensity). Huawei computes it separately, so it need not equal the sum of intensityMap.",
"default": null
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"null",
"int"
],
"doc": "Sleep stage: 1=awake, 2=REM, 3=light sleep, 4=deep sleep.",
"doc": "Sleep stage: 1=light sleep, 2=REM, 3=deep sleep, 4=awake.",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think we should have another key like sleepStateString or something just for values?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you mean like an enum?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah like in addition to. the int sleepState so we have the value as well?

"default": null
}
]
Expand Down
10 changes: 5 additions & 5 deletions commons/connector/huawei/huawei_health_record_sleep.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"null",
"int"
],
"doc": "Light sleep duration (ms).",
"doc": "Light sleep duration (min).",
"default": null
},
{
Expand All @@ -56,7 +56,7 @@
"null",
"int"
],
"doc": "Deep (slow-wave) sleep duration (ms).",
"doc": "Deep (slow-wave) sleep duration (min).",
"default": null
},
{
Expand All @@ -65,7 +65,7 @@
"null",
"int"
],
"doc": "REM sleep duration (ms).",
"doc": "REM sleep duration (min).",
"default": null
},
{
Expand All @@ -74,7 +74,7 @@
"null",
"int"
],
"doc": "Time spent awake after sleep onset (ms).",
"doc": "Time spent awake between falling asleep and waking up (min).",
"default": null
},
{
Expand All @@ -83,7 +83,7 @@
"null",
"int"
],
"doc": "Total sleep duration (ms).",
"doc": "Total sleep duration, the sum of light, deep and REM sleep (min).",
"default": null
},
{
Expand Down
27 changes: 27 additions & 0 deletions commons/connector/huawei/huawei_heart_rate.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"namespace": "org.radarcns.connector.huawei",
"type": "record",
"name": "HuaweiHeartRate",
"doc": "Single heart rate reading as collected by the Huawei Health Kit instantaneous.heart_rate data type.",
"fields": [
{
"name": "time",
"type": "double",
"doc": "Start time of the sample or record in UTC (s)."
},
{
"name": "timeReceived",
"type": "double",
"doc": "Time the connector received this record from the Huawei Health API (s)."
},
{
"name": "heartRate",
"type": [
"null",
"float"
],
"doc": "Heart rate (beats per minute).",
"default": null
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"null",
"int"
],
"doc": "Bed occupancy state: indicates whether the user is in or out of bed.",
"doc": "Bed state: 1 = getting in bed, 2 = getting out of bed.",
"default": null
}
]
Expand Down
36 changes: 36 additions & 0 deletions commons/connector/huawei/huawei_spo2.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"namespace": "org.radarcns.connector.huawei",
"type": "record",
"name": "HuaweiSpo2",
"doc": "Single blood oxygen saturation (SpO2) reading as collected by the Huawei Health Kit instantaneous.spo2 data type.",
"fields": [
{
"name": "time",
"type": "double",
"doc": "Start time of the sample or record in UTC (s)."
},
{
"name": "timeReceived",
"type": "double",
"doc": "Time the connector received this record from the Huawei Health API (s)."
},
{
"name": "saturation",
"type": [
"null",
"float"
],
"doc": "Blood oxygen saturation (%).",
"default": null
},
{
"name": "oxygenSupplyFlowRate",
"type": [
"null",
"float"
],
"doc": "Flow rate of supplemental oxygen during the reading (L/min), 0 when no oxygen is supplied.",
"default": null
}
]
}
6 changes: 6 additions & 0 deletions specifications/connector/radar-huawei-connector-1.0.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ data:
- doc: Huawei Health Kit data type health.record.sleep.
topic: connect_huawei_health_record_sleep
value_schema: .connector.huawei.HuaweiHealthRecordSleep
- doc: "Huawei Health Kit data type instantaneous.heart_rate (unit: bpm)."
topic: connect_huawei_instantaneous_heart_rate
value_schema: .connector.huawei.HuaweiHeartRate
- doc: "Huawei Health Kit data type instantaneous.spo2 (unit: %)."
topic: connect_huawei_instantaneous_spo2
value_schema: .connector.huawei.HuaweiSpo2
- doc: "Huawei Health Kit data type heart_rate_variability (unit: ms RMSSD)."
topic: connect_huawei_heart_rate_variability
value_schema: .connector.huawei.HuaweiHeartRateVariability
Expand Down
Loading