# misamu12/heath-detect architecture

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

- Interactive diagram: https://gitdiagram.com/misamu12/heath-detect
- Repository: https://github.com/misamu12/heath-detect

## Overview

HealthDetect is an Expo mobile health app. Its documented core flow is symptom entry followed by disease identification and diagnostic results; separate capabilities cover medical resources, health advice, diagnostic history, and associated clinicians. The sampled code confirms local sign-in state and biometric sign-in, while the README describes Firebase but no Firebase implementation appears in the supplied tree. Several screens are indexed but not excerpted, so their internal calls and data flow remain unverified.

Main entry points: [`app/sign-in.tsx`](https://github.com/misamu12/heath-detect/blob/main/app/sign-in.tsx) (Sign in), [`app/(tabs)/result.tsx`](https://github.com/misamu12/heath-detect/blob/main/app/(tabs)/result.tsx) (Diagnostic results), [`app/auth-context.tsx`](https://github.com/misamu12/heath-detect/blob/main/app/auth-context.tsx) (Auth context), [`app/_layout.tsx`](https://github.com/misamu12/heath-detect/blob/main/app/_layout.tsx) (Root layout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Account access"]
  node_signin["Sign in<br/>[sign-in.tsx]"]
  node_signup["Create account<br/>[create-account.tsx]"]
  node_auth["Auth context<br/>[auth-context.tsx]"]
  node_biometric["Device biometrics"]
end

subgraph group_diagnosis["Diagnosis workflow"]
  node_diagnostic["Symptom diagnosis<br/>[dianostic.tsx]"]
  node_results["Diagnostic results<br/>[result.tsx]"]
end

subgraph group_health["Health information"]
  node_resources["Disease resources<br/>[ressource.tsx]"]
  node_advice["Health advice<br/>[ressource.tsx]"]
end

subgraph group_care["Follow-up care"]
  node_history["Diagnosis history"]
  node_clinicians["Associated clinicians"]
  node_profile["User profile<br/>[profil.tsx]"]
  node_imageviewer["Profile image viewer<br/>[ImageViewer.tsx]"]
end

subgraph group_navigation["App navigation"]
  node_root["Root layout<br/>[_layout.tsx]"]
  node_tabs["Tab navigation<br/>[_layout.tsx]"]
  node_home["Home screen<br/>[index.tsx]"]
end

node_user(("Mobile user"))

node_user -->|"enters credentials"| node_signin
node_user -->|"creates account"| node_signup
node_signin -->|"sets login state"| node_auth
node_signup -->|"uses auth context"| node_auth
node_signin -->|"requests authentication"| node_biometric
node_root -->|"provides context"| node_auth
node_root -.->|"routes to tabs"| node_tabs
node_user -->|"enters symptoms"| node_diagnostic
node_diagnostic -.->|"produces diagnosis"| node_results
node_user -->|"explores diseases"| node_resources
node_resources -->|"offers health advice"| node_advice
node_results -.->|"tracks prior diagnoses"| node_history
node_results -->|"identifies professionals"| node_clinicians
node_user -.->|"views profile"| node_profile
node_profile -->|"renders profile image"| node_imageviewer

click node_signin "https://github.com/misamu12/heath-detect/blob/main/app/sign-in.tsx"
click node_signup "https://github.com/misamu12/heath-detect/blob/main/app/create-account.tsx"
click node_auth "https://github.com/misamu12/heath-detect/blob/main/app/auth-context.tsx"
click node_root "https://github.com/misamu12/heath-detect/blob/main/app/_layout.tsx"
click node_tabs "https://github.com/misamu12/heath-detect/blob/main/app/(tabs)/_layout.tsx"
click node_home "https://github.com/misamu12/heath-detect/blob/main/app/(tabs)/index.tsx"
click node_diagnostic "https://github.com/misamu12/heath-detect/blob/main/app/(tabs)/dianostic.tsx"
click node_results "https://github.com/misamu12/heath-detect/blob/main/app/(tabs)/result.tsx"
click node_resources "https://github.com/misamu12/heath-detect/blob/main/app/(tabs)/ressource.tsx"
click node_advice "https://github.com/misamu12/heath-detect/blob/main/app/(tabs)/ressource.tsx"
click node_history "https://github.com/misamu12/heath-detect/tree/main/app/(tabs)"
click node_clinicians "https://github.com/misamu12/heath-detect/tree/main/app/(tabs)"
click node_profile "https://github.com/misamu12/heath-detect/blob/main/app/(tabs)/profil.tsx"
click node_imageviewer "https://github.com/misamu12/heath-detect/blob/main/composants/ImageViewer.tsx"

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_signin,node_signup,node_auth,node_biometric,node_user toneBlue
class node_diagnostic,node_results toneAmber
class node_resources,node_advice toneMint
class node_history,node_clinicians,node_profile,node_imageviewer toneRose
class node_root,node_tabs,node_home toneIndigo
```

## Components

### Account access

- [Sign in](https://github.com/misamu12/heath-detect/blob/main/app/sign-in.tsx): `app/sign-in.tsx`
- [Create account](https://github.com/misamu12/heath-detect/blob/main/app/create-account.tsx): `app/create-account.tsx`
- [Auth context](https://github.com/misamu12/heath-detect/blob/main/app/auth-context.tsx): `app/auth-context.tsx`
- **Device biometrics**

### Diagnosis workflow

- [Symptom diagnosis](https://github.com/misamu12/heath-detect/blob/main/app/(tabs)/dianostic.tsx): `app/(tabs)/dianostic.tsx`
- [Diagnostic results](https://github.com/misamu12/heath-detect/blob/main/app/(tabs)/result.tsx): `app/(tabs)/result.tsx`

### Health information

- [Disease resources](https://github.com/misamu12/heath-detect/blob/main/app/(tabs)/ressource.tsx): `app/(tabs)/ressource.tsx`
- [Health advice](https://github.com/misamu12/heath-detect/blob/main/app/(tabs)/ressource.tsx): `app/(tabs)/ressource.tsx`

### Follow-up care

- [Diagnosis history](https://github.com/misamu12/heath-detect/tree/main/app/(tabs)): `app/(tabs)`
- [Associated clinicians](https://github.com/misamu12/heath-detect/tree/main/app/(tabs)): `app/(tabs)`
- [User profile](https://github.com/misamu12/heath-detect/blob/main/app/(tabs)/profil.tsx): `app/(tabs)/profil.tsx`
- [Profile image viewer](https://github.com/misamu12/heath-detect/blob/main/composants/ImageViewer.tsx): `composants/ImageViewer.tsx`

### App navigation

- [Root layout](https://github.com/misamu12/heath-detect/blob/main/app/_layout.tsx): `app/_layout.tsx`
- [Tab navigation](https://github.com/misamu12/heath-detect/blob/main/app/(tabs)/_layout.tsx): `app/(tabs)/_layout.tsx`
- [Home screen](https://github.com/misamu12/heath-detect/blob/main/app/(tabs)/index.tsx): `app/(tabs)/index.tsx`

### Other components

- **Mobile user**

## Connections

- Mobile user → Sign in: enters credentials (evidence: `app/sign-in.tsx`)
- Mobile user → Create account: creates account
- Sign in → Auth context: sets login state (evidence: `app/sign-in.tsx`)
- Create account → Auth context: uses auth context (evidence: `app/create-account.tsx`)
- Sign in → Device biometrics: requests authentication (evidence: `app/sign-in.tsx`)
- Root layout → Auth context: provides context (evidence: `app/_layout.tsx`)
- Root layout → Tab navigation: routes to tabs
- Mobile user → Symptom diagnosis: enters symptoms (evidence: `README.md`)
- Symptom diagnosis → Diagnostic results: produces diagnosis
- Mobile user → Disease resources: explores diseases (evidence: `README.md`)
- Disease resources → Health advice: offers health advice (evidence: `README.md`)
- Diagnostic results → Diagnosis history: tracks prior diagnoses
- Diagnostic results → Associated clinicians: identifies professionals (evidence: `README.md`)
- Mobile user → User profile: views profile
- User profile → Profile image viewer: renders profile image (evidence: `app/(tabs)/profil.tsx`)
