Gayathri Sukumar / G3 Labs

Work

G3 Health — local-first care coordination

A native iPhone system for family appointments and cycle history, with pure Swift planning logic, a migratable SwiftData store, local reminders, and private sync.

SwiftUI · SwiftData · CloudKit · UserNotifications

G3 Health brings recurring care tasks into one native workflow. Each profile can have appointments, provider details, and cycle history without forcing all family members into the same feature set. The engineering problem is preserving sensitive records while turning dates into reliable next actions.

System structure

SwiftUI → SwiftData → pure Swift domain logic → local notifications. Views edit profiles, appointments, providers, and cycle records in a local-first store. Standalone date functions derive appointment states, cycle estimates, and reminder times from those records. UserNotifications schedules reminders on the device; the app does not need a push service to make the core loop work.

The persistence layer retains the original app identity and schema so an existing installation can migrate without losing records. A reconciliation pass handles duplicates from older installs. A private CloudKit-backed store provides cross-device sync, with a local store as the fallback when cloud storage is unavailable. Export, import, and deletion are explicit data-lifecycle paths.

Engineering boundaries

  • Prediction stays outside persistence. Cycle and appointment rules are plain Swift functions, so date boundaries, sparse history, and time-zone behavior can be tested without SwiftUI or a simulator.
  • Access control is distinct from encryption. The optional Face ID, Touch ID, or passcode gate protects the app interface; it does not claim a separate encryption layer for each health record.
  • Estimated means estimated. Cycle projections expose uncertainty from limited history. They are planning aids, not diagnostic outputs.

The resulting architecture keeps the sensitive data path small: on-device models, private sync, local computation, local reminders, and user-directed export or deletion.

← All work