How nmedussuriya/chdr-mobileapp works
CHDR is a mobile child-health record system for parents and midwives. Parents sign in to review child information, track milestones and vaccination, submit milestone reports, and ask the AI assistant for guidance. Midwives manage assigned children, enter health and immunization records, confirm milestones, review screening responses, and generate reports. The graph preserves these distinct domains and the Firebase/OpenAI service layer. Some screen-to-service wiring is unsampled; those relationships are omitted or shown as unverified rather than asserted as inspected.
Main entry points: index.tsx Welcome and routing · childrenService.ts Child profiles · authService.ts Authentication service · firebaseConfig.ts Firestore
Components 22
Access and dashboards
- Welcome and routing
app/index.tsx - Parent sign-in
app/parent/parent-login.tsx - Midwife sign-in
app/midwife_details/midwife-login.tsx - Parent dashboard
app/parent/parent-dashboard.tsx - Midwife dashboard
app/midwife_details/MidwifeDashboard.tsx
Child records and care
- Child profiles
firebase/services/childrenService.ts - Add child record
app/midwife_details/add_child_form.tsx - Health and follow-ups
app/midwife_details/child-health-form.tsx - Parent vaccination view
app/parent/Immunization.tsx - Record immunization
app/midwife_details/immunization.tsx
Development and screening
- Parent milestone report
app/parent/add_development_milestone.tsx - Confirm milestones
app/midwife_details/confirm_development_milestone.tsx - Screening responses
app/midwife_details/view-screening-response.tsx - Child health report
app/midwife_details/ChildReportScreen.tsx - AI health chat
app/parent/AIChatScreen.tsx
Services and data
- Authentication service
firebase/services/authService.ts - Milestone records
firebase/services/childMilestonesService.ts - AI response service
firebase/services/realAIService.ts - Firestore
firebase/firebaseConfig.ts
Other components
- Parent
- Midwife
- OpenAI
Connections 25
- Parent → Welcome and routing: opens app
README.md - Midwife → Welcome and routing: opens app
README.md - Welcome and routing → Parent sign-in: offers sign-in
app/index.tsx - Welcome and routing → Midwife sign-in: offers sign-in
app/index.tsx - Parent → Parent dashboard: manages child health
README.md - Midwife → Midwife dashboard: manages assigned children
README.md - Parent sign-in → Authentication service: authenticates via
- Midwife sign-in → Authentication service: authenticates via
- Authentication service → Firestore: reads and writes
firebase/services/authService.ts - Midwife dashboard → Child profiles: loads child records
- Add child record → Child profiles: creates child record
- Health and follow-ups → Child profiles: reads child data
app/midwife_details/child-health-form.tsx - Parent dashboard → Child profiles: views child information
- Parent → Parent vaccination view: views vaccination schedule
README.md - Midwife → Record immunization: records vaccinations
README.md - Parent → Parent milestone report: submits milestones
README.md - Parent milestone report → Milestone records: submits records
app/parent/add_development_milestone.tsx - Midwife → Confirm milestones: confirms milestones
README.md - Midwife → Screening responses: reviews screening
README.md - Midwife → Child health report: generates report
README.md - Child health report → Firestore: reads report data
app/midwife_details/ChildReportScreen.tsx - Parent → AI health chat: requests health guidance
README.md - AI health chat → AI response service: requests response
app/parent/AIChatScreen.tsx - AI response service → OpenAI: requests completion
firebase/services/realAIService.ts - Milestone records → Firestore: stores milestone records
firebase/services/childMilestonesService.ts