PPP Mobile App — Data Collection Inventory
Purpose: Documents all data types collected by the PPP mobile app, satisfying APP 1 (transparency) and APP 5 (notification of collection) requirements under the Australian Privacy Act 1988. This document also supports GDPR Article 13/14 transparency obligations for UK users.
Last updated: 2026-03-03
1. Apple HealthKit Data
The PPP mobile app requests read-only access to the following Apple HealthKit data types. No data is written back to HealthKit. All HealthKit data collection requires explicit user permission via the iOS HealthKit permissions dialog.
| HealthKit Data Type | Permission Constant | What It Is | Why It Is Collected | Retention | Leaves Device? |
|---|---|---|---|---|---|
| Heart Rate | HeartRate | Beats per minute (bpm) recorded by Apple Watch or compatible sensor | Used to calculate resting heart rate trends as part of the wellness readiness score | Stored in health_metric table on the server; retained while account is active | Yes — synced to PPP backend via tRPC API |
| Steps | Steps | Daily step count | Used as an activity indicator in the wellness scoring model | Stored in health_metric table; retained while account is active | Yes — synced to PPP backend |
| Sleep Analysis | SleepAnalysis | Sleep duration and sleep stage data (awake, core, deep, REM) | Sleep duration and deep/REM sleep are key inputs to the wellness readiness score and sleep guidance | Stored in health_metric table; retained while account is active | Yes — synced to PPP backend |
| Heart Rate Variability (HRV) | HeartRateVariability | Time variation between heartbeats, measured in milliseconds (ms) | HRV is a primary physiological resilience indicator in the wellness scoring algorithm | Stored in health_metric table; retained while account is active | Yes — synced to PPP backend |
| Resting Heart Rate | RestingHeartRate | Average heart rate at rest (bpm) | Used as a cardiovascular baseline in the wellness readiness model | Stored in health_metric table; retained while account is active | Yes — synced to PPP backend |
| Respiratory Rate | RespiratoryRate | Breaths per minute during sleep | Used as a recovery and wellness indicator | Stored in health_metric table; retained while account is active | Yes — synced to PPP backend |
| Oxygen Saturation (SpO2) | OxygenSaturation | Blood oxygen percentage | Used as a wellness and recovery indicator | Stored in health_metric table; retained while account is active | Yes — synced to PPP backend |
How HealthKit Data Is Used
HealthKit data feeds into the PPP wellness engine, which computes:
- Daily readiness score (0-100) — an aggregate wellness indicator
- Sleep guidance — personalised sleep duration recommendations
- Workload guidance — recommendations based on physiological recovery vs work hours
The wellness score is displayed on the user's dashboard and wellness screen. It is visible only to the user and is not shared with supervisors, employers, or any third party.
Opting Out
Users can decline HealthKit access at the iOS permission dialog without any loss of core app functionality (CPD tracking, surgical logbook, timesheets, 360 reviews). The wellness features will operate with reduced accuracy using only manually entered data (WHO-5 questionnaire) and PPP-derived metrics (timesheet hours, operative time).
Users can revoke HealthKit access at any time via iOS Settings > Privacy & Security > Health > PPP.
2. Location Data
| Data Type | What It Is | Why It Is Collected | Retention | Leaves Device? |
|---|---|---|---|---|
| GPS Coordinates | Device latitude and longitude | Used to determine proximity to assigned hospitals for automatic timesheet location tagging | Not persisted on server — used transiently for proximity calculation only. Hospital notification history stored locally in MMKV | No — proximity check performed on-device; only the boolean proximity result (near/not near hospital) may be transmitted |
Permissions Requested
ACCESS_FINE_LOCATION(Android)ACCESS_COARSE_LOCATION(Android)ACCESS_BACKGROUND_LOCATION(Android) — for background proximity checkslocationAlwaysAndWhenInUsePermission(iOS) — for background proximity checks
Opting Out
Users can decline location access without loss of core functionality. Hospital assignment for timesheets can be selected manually instead of auto-detected.
3. Camera and Photo Library
| Data Type | What It Is | Why It Is Collected | Retention | Leaves Device? |
|---|---|---|---|---|
| Camera images | Photos taken via the in-app camera | Used to photograph medical stickers for OCR analysis via Google Gemini AI | Images uploaded to S3 for processing. Retention governed by OCR privacy policy (should be deleted after processing) | Yes — uploaded to AWS S3, then sent to Google Gemini for OCR |
| Photo library images | Photos selected from the device photo library | Same as camera images — medical sticker OCR, and profile picture upload | Same as camera images | Yes — uploaded to AWS S3 |
Opting Out
Users can decline camera access. Medical sticker data can be entered manually without OCR.
4. Push Notification Tokens
| Data Type | What It Is | Why It Is Collected | Retention | Leaves Device? |
|---|---|---|---|---|
| Expo push token | A unique device identifier for push notification delivery | Used to send in-app notifications (CPD reminders, 360 review requests, approval notifications) | Stored in user_notifications table; retained while device is registered | Yes — token sent to PPP backend and then to Expo push service for delivery |
Opting Out
Users can disable push notifications via device settings (iOS Settings > Notifications > PPP, or Android Settings > Apps > PPP > Notifications).
5. Authentication Data
| Data Type | What It Is | Why It Is Collected | Retention | Leaves Device? |
|---|---|---|---|---|
| Session token | Encrypted session identifier for authenticated API access | Required for the app to communicate with the PPP backend on behalf of the user | Stored in MMKV on-device (AES-256 encrypted); expires per session policy | Yes — sent with every API request as an authorization header |
| Session IP address | IP address at time of session creation | Security audit — detect suspicious login locations | Stored in auth_session table; retained for session duration + 90 days | Yes — recorded server-side |
| User agent | Device and browser identifier string | Security audit — detect unfamiliar devices | Stored in auth_session table; retained for session duration + 90 days | Yes — recorded server-side |
6. WHO-5 Wellness Questionnaire
| Data Type | What It Is | Why It Is Collected | Retention | Leaves Device? |
|---|---|---|---|---|
| WHO-5 responses | Answers to 5 standardised mental wellbeing questions (1-5 scale each) | Used to compute a mental wellness score (0-100) as part of the wellness readiness model | Stored in wellness_questionnaire table; retained while account is active | Yes — submitted to PPP backend via tRPC |
| Computed WHO-5 score | Aggregate mental wellbeing score (0-100) | Displayed on user's wellness dashboard | Stored alongside responses | Yes |
Sensitivity note: WHO-5 questionnaire responses are classified as mental health data, which is the highest sensitivity tier under both the Australian Privacy Act 1988 and UK GDPR. This data is visible only to the user and is not shared with supervisors, employers, or any third party.
7. Cross-Reference: HealthKit Permissions vs app.config.js
The following table maps the HealthKit permissions requested in the iOS HealthKit dialog (defined in app.config.js via the react-native-health plugin and in HealthContext.ios.tsx) to the data types documented above.
| app.config.js Plugin | HealthContext Permission | Data Type Above |
|---|---|---|
react-native-health (isClinicalDataEnabled: true) | HeartRate | Heart Rate |
Steps | Steps | |
SleepAnalysis | Sleep Analysis | |
HeartRateVariability | Heart Rate Variability | |
RestingHeartRate | Resting Heart Rate | |
RespiratoryRate | Respiratory Rate | |
OxygenSaturation | Oxygen Saturation |
Note:
isClinicalDataEnabled: trueis set inapp.config.jsbut no clinical record types (medications, conditions, procedures) are currently requested in the HealthKit permissions. This flag should be reviewed — if clinical records are not being read, it should be set tofalseto align the entitlement with actual usage.
8. Wellness Metric Types (Backend)
The following metric types are accepted by the PPP wellness engine from HealthKit (via the apple_health source adapter). This is the definitive list of what HealthKit data can be stored server-side.
| Backend Metric Type | HealthKit Source | Unit | Description |
|---|---|---|---|
sleep_duration | apple_health | hours | Total sleep duration |
deep_sleep | apple_health | minutes | Deep sleep stage duration |
rem_sleep | apple_health | minutes | REM sleep stage duration |
hrv | apple_health | ms | Heart rate variability |
hrv_deviation | apple_health | ms | HRV deviation from personal baseline |
resting_hr | apple_health | bpm | Resting heart rate |
respiratory_rate | apple_health | breaths/min | Respiratory rate |
spo2 | apple_health | percent | Blood oxygen saturation |
screen_time_total | apple_health | hours | Total screen time |
screen_time_social_media | apple_health | hours | Social media screen time |
training_minutes_session_1 | apple_health | minutes | Exercise session 1 duration |
training_minutes_session_2 | apple_health | minutes | Exercise session 2 duration |
training_intensity_session_1 | apple_health | intensity | Exercise session 1 intensity |
training_intensity_session_2 | apple_health | intensity | Exercise session 2 intensity |
stress_period_1 | apple_health | minutes | Stress period 1 duration |
stress_period_2 | apple_health | minutes | Stress period 2 duration |
stress_period_3 | apple_health | minutes | Stress period 3 duration |
meditation_time | apple_health | minutes | Meditation duration |
active_recovery_minutes | apple_health | minutes | Active recovery duration |
core_temperature | apple_health | celsius | Core body temperature |