# eric134/axxesshackathon2025 architecture

> Architecture diagram of the GitHub repository eric134/axxesshackathon2025, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/eric134/axxesshackathon2025
- Repository: https://github.com/eric134/axxesshackathon2025

## Overview

myCheckUp is a React Native/Expo health checkup app with a tabbed patient experience: users can open a daily health survey, ask the chatbot questions, and access a Google sign-in profile. The chat screen sends messages to a Flask service, which obtains generated health advice from Gemini; the survey is embedded from Google Forms. The README also describes caregiver-facing care reports, but the available excerpts do not show their implementation or data flow. The architecture below reflects only relationships evidenced by the excerpts or README.

Main entry points: [`AxxessApp/app/(tabs)/_layout.tsx`](https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/(tabs)/_layout.tsx) (Tab navigation), [`AxxessApp/app/(tabs)/index.tsx`](https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/(tabs)/index.tsx) (Home screen), [`AxxessApp/app/(tabs)/survey.tsx`](https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/(tabs)/survey.tsx) (Survey screen), [`AxxessApp/app/GoogleForm.tsx`](https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/GoogleForm.tsx) (Survey form embed)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_patient_ui["Patient app"]
  node_tabs["Tab navigation<br/>[_layout.tsx]"]
  node_home["Home screen<br/>[index.tsx]"]
  node_checkup_photo["Checkup illustration<br/>[photo.tsx]"]
  node_survey_screen["Survey screen<br/>[survey.tsx]"]
  node_google_form["Survey form embed<br/>[GoogleForm.tsx]"]
  node_chat_screen["Chat screen<br/>[chat.tsx]"]
  node_chat_ui["Chat interface<br/>[chatbot.js]"]
  node_profile["User profile<br/>[profile.tsx]"]
end

subgraph group_chat_service["Chat service"]
  node_flask_api["Chat API<br/>[server.py]"]
end

subgraph group_external_services["External services"]
  node_gemini{{"Gemini model"}}
  node_google_forms{{"Google Forms"}}
  node_google_identity{{"Google identity API"}}
end

node_patient(("Patient"))
node_caregiver(("Caregiver"))
node_care_reports["Care reports"]

node_patient -->|"uses"| node_tabs
node_tabs -->|"routes to"| node_home
node_tabs -->|"routes to"| node_survey_screen
node_tabs -->|"routes to"| node_chat_screen
node_tabs -->|"routes to"| node_profile
node_home -->|"renders"| node_checkup_photo
node_home -->|"links to"| node_survey_screen
node_survey_screen -->|"renders"| node_google_form
node_google_form -->|"embeds"| node_google_forms
node_chat_screen -->|"renders"| node_chat_ui
node_chat_ui -->|"requests chat"| node_flask_api
node_flask_api -->|"generates advice"| node_gemini
node_profile -->|"fetches profile"| node_google_identity
node_caregiver -.->|"receives"| node_care_reports
node_care_reports -.->|"relays chatbot advice"| node_patient

click node_tabs "https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/(tabs)/_layout.tsx"
click node_home "https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/(tabs)/index.tsx"
click node_checkup_photo "https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/photo.tsx"
click node_survey_screen "https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/(tabs)/survey.tsx"
click node_google_form "https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/GoogleForm.tsx"
click node_chat_screen "https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/(tabs)/chat.tsx"
click node_chat_ui "https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/chatbot.js"
click node_profile "https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/(tabs)/profile.tsx"
click node_flask_api "https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/server.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_tabs,node_home,node_checkup_photo,node_survey_screen,node_google_form,node_chat_screen,node_chat_ui,node_profile toneBlue
class node_flask_api toneAmber
class node_gemini,node_google_forms,node_google_identity toneMint
class node_patient,node_caregiver,node_care_reports toneIndigo
```

## Components

### Patient app

- [Tab navigation](https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/(tabs)/_layout.tsx): `AxxessApp/app/(tabs)/_layout.tsx`
- [Home screen](https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/(tabs)/index.tsx): `AxxessApp/app/(tabs)/index.tsx`
- [Checkup illustration](https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/photo.tsx): `AxxessApp/app/photo.tsx`
- [Survey screen](https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/(tabs)/survey.tsx): `AxxessApp/app/(tabs)/survey.tsx`
- [Survey form embed](https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/GoogleForm.tsx): `AxxessApp/app/GoogleForm.tsx`
- [Chat screen](https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/(tabs)/chat.tsx): `AxxessApp/app/(tabs)/chat.tsx`
- [Chat interface](https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/chatbot.js): `AxxessApp/app/chatbot.js`
- [User profile](https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/(tabs)/profile.tsx): `AxxessApp/app/(tabs)/profile.tsx`

### Chat service

- [Chat API](https://github.com/eric134/AxxessHackathon2025/blob/main/AxxessApp/app/server.py): `AxxessApp/app/server.py`

### External services

- **Gemini model**
- **Google Forms**
- **Google identity API**

### Other components

- **Patient**
- **Caregiver**
- **Care reports**

## Connections

- Patient → Tab navigation: uses (evidence: `AxxessApp/app/(tabs)/_layout.tsx`)
- Tab navigation → Home screen: routes to (evidence: `AxxessApp/app/(tabs)/_layout.tsx`)
- Tab navigation → Survey screen: routes to (evidence: `AxxessApp/app/(tabs)/_layout.tsx`)
- Tab navigation → Chat screen: routes to (evidence: `AxxessApp/app/(tabs)/_layout.tsx`)
- Tab navigation → User profile: routes to (evidence: `AxxessApp/app/(tabs)/_layout.tsx`)
- Home screen → Checkup illustration: renders (evidence: `AxxessApp/app/(tabs)/index.tsx`)
- Home screen → Survey screen: links to (evidence: `AxxessApp/app/(tabs)/index.tsx`)
- Survey screen → Survey form embed: renders (evidence: `AxxessApp/app/(tabs)/survey.tsx`)
- Survey form embed → Google Forms: embeds (evidence: `AxxessApp/app/GoogleForm.tsx`)
- Chat screen → Chat interface: renders (evidence: `AxxessApp/app/(tabs)/chat.tsx`)
- Chat interface → Chat API: requests chat (evidence: `AxxessApp/app/chatbot.js`)
- Chat API → Gemini model: generates advice (evidence: `AxxessApp/app/server.py`)
- User profile → Google identity API: fetches profile (evidence: `AxxessApp/app/(tabs)/profile.tsx`)
- Caregiver → Care reports: receives (evidence: `README.md`)
- Care reports → Patient: relays chatbot advice (evidence: `README.md`)
