Skip to content

Commit

Permalink
[ETL-590] Fitbit ecg (#102)
Browse files Browse the repository at this point in the history
* Add FitbitEcg table
  • Loading branch information
BryanFauble authored Jan 10, 2024
1 parent 84bbffb commit ffaad2f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/glue/jobs/json_to_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"fitbitdevices": ["ParticipantIdentifier", "Date"],
"fitbitactivitylogs": ["LogId"],
"fitbitdailydata": ["ParticipantIdentifier", "Date"],
"fitbitecg": ["FitbitEcgKey"],
"fitbitintradaycombined": ["ParticipantIdentifier", "Type", "DateTime"],
"fitbitrestingheartrates": ["ParticipantIdentifier", "Date"],
"fitbitsleeplogs": ["LogId"],
Expand Down
33 changes: 33 additions & 0 deletions src/glue/resources/table_columns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,39 @@ tables:
partition_keys:
- Name: cohort
Type: string
FitbitEcg:
columns:
- Name: FitbitEcgKey
Type: string
- Name: ParticipantIdentifier
Type: string
- Name: ParticipantID
Type: string
- Name: StartTime
Type: string
- Name: AverageHeartRate
Type: double
- Name: ResultClassification
Type: string
- Name: WaveformSamples
Type: array<int>
- Name: SamplingFrequencyHz
Type: int
- Name: ScalingFactor
Type: int
- Name: NumberOfWaveformSamples
Type: int
- Name: LeadNumber
Type: int
- Name: FeatureVersion
Type: string
- Name: DeviceName
Type: string
- Name: FirmwareVersion
Type: string
partition_keys:
- Name: cohort
Type: string
FitbitDevices:
columns:
- Name: ParticipantIdentifier
Expand Down

0 comments on commit ffaad2f

Please sign in to comment.