CASE FILE 04 · Sagicor Innovation Lab
CardioScore
A health analytics app with a native Swift bridge to Apple HealthKit and Fitbit sign-in, a score from your data, and a comparison with your age band.
The problem
People's health data sits in separate places: a watch, a phone, a Fitbit account. CardioScore gathers it into one view and one score, on iOS and Android.
Numbers
- 13Klines of JavaScript in the app
- ~900lines in the Express backend
- 7ingest endpoints (activity, heart, sleep, body, vitals, health, history)
- 6age bands for cohort comparison
What I built
Architecture
- An app that tries the best source for each platform and falls back: HealthKit on iOS, Health Connect on Android, then Fitbit, then the backend as a last resort.
Frontend
- React Native (Expo) with a native Swift bridge to Apple HealthKit, activity rings, history and browse views, and charts.
- Fitbit OAuth2 sign-in, and a Samsung Health manager for Android.
Backend
- Express with MySQL and bcrypt auth. Raw payloads are stored first, then normalised into heart, sleep, activity, body and vitals tables.
- An insights service for streaks, personal bests, consistency and an overall health score, and a cohort service that compares a user with others in the same age band, adults only.
Infrastructure
- Deployed on AWS EC2 with a CI/CD pipeline across iOS and Android.
Hard problems
- 01Four sources, one picture
Each platform exposes health data differently. A priority chain picks the best available source and falls through to the next, so a user without a watch still gets a score.
- 02Comparing people fairly
Scores are compared inside age bands worked out from date of birth, and only for adults, so the comparison means something.
Stack
- React Native (Expo)
- Swift
- Apple HealthKit
- Health Connect
- Fitbit OAuth2
- Node.js
- Express
- MySQL
- bcrypt
- AWS EC2
- CI/CD





