Skip to content

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 TypePermission ConstantWhat It IsWhy It Is CollectedRetentionLeaves Device?
Heart RateHeartRateBeats per minute (bpm) recorded by Apple Watch or compatible sensorUsed to calculate resting heart rate trends as part of the wellness readiness scoreStored in health_metric table on the server; retained while account is activeYes — synced to PPP backend via tRPC API
StepsStepsDaily step countUsed as an activity indicator in the wellness scoring modelStored in health_metric table; retained while account is activeYes — synced to PPP backend
Sleep AnalysisSleepAnalysisSleep 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 guidanceStored in health_metric table; retained while account is activeYes — synced to PPP backend
Heart Rate Variability (HRV)HeartRateVariabilityTime variation between heartbeats, measured in milliseconds (ms)HRV is a primary physiological resilience indicator in the wellness scoring algorithmStored in health_metric table; retained while account is activeYes — synced to PPP backend
Resting Heart RateRestingHeartRateAverage heart rate at rest (bpm)Used as a cardiovascular baseline in the wellness readiness modelStored in health_metric table; retained while account is activeYes — synced to PPP backend
Respiratory RateRespiratoryRateBreaths per minute during sleepUsed as a recovery and wellness indicatorStored in health_metric table; retained while account is activeYes — synced to PPP backend
Oxygen Saturation (SpO2)OxygenSaturationBlood oxygen percentageUsed as a wellness and recovery indicatorStored in health_metric table; retained while account is activeYes — 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 TypeWhat It IsWhy It Is CollectedRetentionLeaves Device?
GPS CoordinatesDevice latitude and longitudeUsed to determine proximity to assigned hospitals for automatic timesheet location taggingNot persisted on server — used transiently for proximity calculation only. Hospital notification history stored locally in MMKVNo — 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 checks
  • locationAlwaysAndWhenInUsePermission (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 TypeWhat It IsWhy It Is CollectedRetentionLeaves Device?
Camera imagesPhotos taken via the in-app cameraUsed to photograph medical stickers for OCR analysis via Google Gemini AIImages 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 imagesPhotos selected from the device photo librarySame as camera images — medical sticker OCR, and profile picture uploadSame as camera imagesYes — 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 TypeWhat It IsWhy It Is CollectedRetentionLeaves Device?
Expo push tokenA unique device identifier for push notification deliveryUsed to send in-app notifications (CPD reminders, 360 review requests, approval notifications)Stored in user_notifications table; retained while device is registeredYes — 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 TypeWhat It IsWhy It Is CollectedRetentionLeaves Device?
Session tokenEncrypted session identifier for authenticated API accessRequired for the app to communicate with the PPP backend on behalf of the userStored in MMKV on-device (AES-256 encrypted); expires per session policyYes — sent with every API request as an authorization header
Session IP addressIP address at time of session creationSecurity audit — detect suspicious login locationsStored in auth_session table; retained for session duration + 90 daysYes — recorded server-side
User agentDevice and browser identifier stringSecurity audit — detect unfamiliar devicesStored in auth_session table; retained for session duration + 90 daysYes — recorded server-side

6. WHO-5 Wellness Questionnaire ​

Data TypeWhat It IsWhy It Is CollectedRetentionLeaves Device?
WHO-5 responsesAnswers 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 modelStored in wellness_questionnaire table; retained while account is activeYes — submitted to PPP backend via tRPC
Computed WHO-5 scoreAggregate mental wellbeing score (0-100)Displayed on user's wellness dashboardStored alongside responsesYes

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 PluginHealthContext PermissionData Type Above
react-native-health (isClinicalDataEnabled: true)HeartRateHeart Rate
StepsSteps
SleepAnalysisSleep Analysis
HeartRateVariabilityHeart Rate Variability
RestingHeartRateResting Heart Rate
RespiratoryRateRespiratory Rate
OxygenSaturationOxygen Saturation

Note: isClinicalDataEnabled: true is set in app.config.js but 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 to false to 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 TypeHealthKit SourceUnitDescription
sleep_durationapple_healthhoursTotal sleep duration
deep_sleepapple_healthminutesDeep sleep stage duration
rem_sleepapple_healthminutesREM sleep stage duration
hrvapple_healthmsHeart rate variability
hrv_deviationapple_healthmsHRV deviation from personal baseline
resting_hrapple_healthbpmResting heart rate
respiratory_rateapple_healthbreaths/minRespiratory rate
spo2apple_healthpercentBlood oxygen saturation
screen_time_totalapple_healthhoursTotal screen time
screen_time_social_mediaapple_healthhoursSocial media screen time
training_minutes_session_1apple_healthminutesExercise session 1 duration
training_minutes_session_2apple_healthminutesExercise session 2 duration
training_intensity_session_1apple_healthintensityExercise session 1 intensity
training_intensity_session_2apple_healthintensityExercise session 2 intensity
stress_period_1apple_healthminutesStress period 1 duration
stress_period_2apple_healthminutesStress period 2 duration
stress_period_3apple_healthminutesStress period 3 duration
meditation_timeapple_healthminutesMeditation duration
active_recovery_minutesapple_healthminutesActive recovery duration
core_temperatureapple_healthcelsiusCore body temperature

Internal documentation — org members only