How shikhar1809/parcha_hackcbs_9_afterburners works
Parcha serves patients and their families after a prescription is written, alongside a clinic workflow for registering patients and managing visits. The patient journey turns a prescription or pharmacy bill into a person-confirmed, locked medicine schedule; the app presents doses, records adherence for family visibility, and answers questions from the patient’s records. Shared client and core packages support app state and rules, while Firebase Functions provide server-side operations and the Ask assistant. The README documents these capabilities; unsampled modules are represented at their exact paths, and unshown implementation links are omitted.
Main entry points: src/App.tsx Patient app shell · src/App.tsx Clinic app shell · assistant.ts Ask and Meko · AddParcha.tsx Add Parcha
Components 24
Patient app
- Patient app shell
apps/patient/src/App.tsx - Add Parcha
apps/patient/src/screens/AddParcha.tsx - Dose cards
apps/patient/src/screens/DoseCards.tsx - Family views
apps/patient/src/components/people.tsx - Ask assistant UI
apps/patient/src/screens/Ask.tsx - Patient identity
apps/patient/src/auth.tsx - Language support
apps/patient/src/i18n.tsx
Clinic app
- Clinic app shell
apps/clinic/src/App.tsx - Clinic management
apps/clinic/src/screens/manage/Manage.tsx - Clinic communications
apps/clinic/src/comms/Comms.tsx - Consultation
apps/clinic/src/screens/Consultation.tsx
Shared packages
- Firebase client
packages/client/src/firebase.ts - Offline outbox
packages/client/src/outbox.ts - Session handling
packages/client/src/session.tsx - Medicine rules
packages/core/src/items.ts - Special medicine rules
packages/core/src/special.ts
Firebase backend
- Callable operations
firebase/functions/src/index.ts - Server guards
firebase/functions/src/guards.ts - Server management
firebase/functions/src/manage.ts - Call handling
firebase/functions/src/calls.ts - Demo data
firebase/functions/src/seed.ts - Ask and Meko
firebase/functions/src/assistant.ts
Other components
- Patient or family
- Firebase database
Connections 28
- Patient or family → Patient app shell: uses
README.md - Patient app shell → Add Parcha: routes to
apps/patient/src/App.tsx - Patient app shell → Dose cards: opens
apps/patient/src/App.tsx - Patient app shell → Family views: shows
README.md - Patient app shell → Ask assistant UI: routes to
apps/patient/src/App.tsx - Patient app shell → Patient identity: uses
apps/patient/src/main.tsx - Add Parcha → Medicine rules: searches medicines
apps/patient/src/screens/AddParcha.tsx - Add Parcha → Offline outbox: saves schedule
README.md - Dose cards → Offline outbox: queues dose updates
README.md - Offline outbox → Firebase client: syncs changes
packages/client/src/session.tsx - Ask assistant UI → Ask and Meko: asks questions
README.md - Ask and Meko → Firebase database: reads patient records
README.md - Ask and Meko → Medicine rules: checks medicine match
README.md - Ask and Meko → Special medicine rules: checks expiry and safety
README.md - Clinic app shell → Clinic management: routes to
apps/clinic/src/App.tsx - Clinic app shell → Clinic communications: opens communications
apps/clinic/src/App.tsx - Clinic app shell → Consultation: routes to
apps/clinic/src/App.tsx - Clinic app shell → Session handling: gates staff access
apps/clinic/src/App.tsx - Clinic management → Server management: manages clinic data
- Clinic communications → Call handling: handles calls
- Callable operations → Server guards: validates requests
firebase/functions/src/index.ts - Callable operations → Firebase database: reads and writes
firebase/functions/src/index.ts - Server management → Firebase database: stores management data
- Call handling → Firebase database: stores call data
- Demo data → Firebase database: seeds demo data
- Firebase client → Firebase database: connects to
- Session handling → Firebase client: calls backend
packages/client/src/session.tsx - Patient app shell → Language support: localizes screens
apps/patient/src/App.tsx