How jnaurot/pillreminder works
This is a caregiver-focused medication management app. Its main workflow is to maintain people and medication schedules, calculate daily doses, record doses taken or skipped, and schedule reminders. Separate workflows support medication history, refills and drug information, plus caregiver shifts and secure medication handoffs. The sampled sources show an encrypted SQLite store and the main scheduling and messaging layers; some route capabilities are represented by tree paths and source-index references rather than inspected implementations.
Main entry points: [id]/index.tsx Person overview · [medId]/index.tsx Medication details · medications.ts Medication records · today.tsx Today’s doses
Components 28
People and care
- People and records
app/entities/index.tsx - Person overview
app/entities/[id]/index.tsx - Compliance history
app/entities/[id]/compliance.tsx - Person history
app/entities/[id]/history.tsx
Medication management
- Medication editor
src/components/MedicationForm.tsx - Medication details
app/entities/[id]/medications/[medId]/index.tsx - Medication history
app/entities/[id]/medications/[medId]/history.tsx - Refill workflow
app/entities/[id]/medications/[medId]/refill.tsx - Drug information lookup
src/services/rxnorm.ts
Daily medication runtime
- App entry
app/index.tsx - Today’s doses
app/today.tsx - Dose actions
src/components/DoseCard.tsx - Dose schedule and logs
src/db/doseLogs.ts - Reminder scheduler
src/notifications/scheduler.ts
Caregiver sharing
- Caregiver shifts
app/caregivers/index.tsx - Create shift
app/caregivers/shift/new.tsx - Incoming invitations
app/caregivers/incoming.tsx - Secure handoff protocol
src/messaging/secureProtocol.ts - Message transport
src/messaging/transport.ts
Storage and settings
- Medication records
src/db/medications.ts - Prescription records
src/db/prescriptions.ts - Caregiver records
src/db/caregivers.ts - App settings
app/settings.tsx - Settings records
src/db/settings.ts - Data backup
src/db/backup.ts - Encrypted local database
src/db/database.ts
Other components
- Caregiver
- Drug information services
Connections 48
- Caregiver → App entry: opens
app/index.tsx - App entry → Today’s doses: routes to
app/index.tsx - Caregiver → People and records: manages
app/entities/index.tsx - People and records → Person overview: opens
- Person overview → Compliance history: opens
- Person overview → Person history: opens
- Person overview → Medication details: opens
- People and records → Medication records: reads records
app/entities/index.tsx - People and records → Caregiver records: reads shifts
app/entities/index.tsx - Person overview → Medication records: reads records
app/entities/[id]/index.tsx - Person overview → Prescription records: reads supply
app/entities/[id]/index.tsx - Person overview → Reminder scheduler: updates reminders
app/entities/[id]/index.tsx - Caregiver → Medication editor: edits schedule
- Medication editor → Medication records: writes medication
src/components/MedicationForm.tsx - Medication details → Medication records: reads medication
app/entities/[id]/medications/[medId]/index.tsx - Medication details → Prescription records: reads supply
app/entities/[id]/medications/[medId]/index.tsx - Medication details → Reminder scheduler: updates reminders
app/entities/[id]/medications/[medId]/index.tsx - Medication details → Drug information lookup: requests enrichment
app/entities/[id]/medications/[medId]/index.tsx - Drug information lookup → Drug information services: queries
src/services/rxnorm.ts - Drug information lookup → Medication records: updates drug info
src/services/rxnorm.ts - Medication details → Medication history: opens history
- Medication details → Refill workflow: opens refill
- Refill workflow → Prescription records: records refill
- Caregiver → Today’s doses: reviews doses
app/today.tsx - Today’s doses → Dose schedule and logs: loads daily doses
app/today.tsx - Today’s doses → Dose actions: renders actions
app/today.tsx - Dose actions → Dose schedule and logs: records dose
src/components/DoseCard.tsx - Today’s doses → Reminder scheduler: refreshes reminders
app/today.tsx - Dose schedule and logs → Medication records: loads schedules
src/db/doseLogs.ts - Dose schedule and logs → Caregiver records: checks active shift
src/db/doseLogs.ts - Caregiver → Caregiver shifts: manages shifts
app/caregivers/index.tsx - Caregiver → Create shift: creates shift
app/caregivers/shift/new.tsx - Caregiver → Incoming invitations: reviews invitations
app/caregivers/incoming.tsx - Caregiver shifts → Secure handoff protocol: creates envelopes
app/caregivers/index.tsx - Caregiver shifts → Message transport: sends envelopes
app/caregivers/index.tsx - Create shift → Secure handoff protocol: creates handoff
app/caregivers/shift/new.tsx - Create shift → Message transport: sends messages
app/caregivers/shift/new.tsx - Incoming invitations → Secure handoff protocol: handles protocol
app/caregivers/incoming.tsx - Incoming invitations → Message transport: receives messages
app/caregivers/incoming.tsx - Incoming invitations → Caregiver records: updates shifts
app/caregivers/incoming.tsx - Secure handoff protocol → Encrypted local database: reads and writes
src/messaging/secureProtocol.ts - Caregiver records → Medication records: loads medications
src/db/caregivers.ts - Caregiver → App settings: configures app
app/settings.tsx - App settings → Settings records: reads and writes
app/settings.tsx - App settings → Data backup: backs up data
app/settings.tsx - App settings → Reminder scheduler: configures alerts
app/settings.tsx - Settings records → Encrypted local database: uses store
src/db/settings.ts - Medication records → Encrypted local database: uses store
src/db/medications.ts