# ndmgit22/sdqa architecture

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

- Interactive diagram: https://gitdiagram.com/ndmgit22/sdqa
- Repository: https://github.com/ndmgit22/sdqa

## Overview

SDQA is a cross-platform point-of-sale medicine-sales questionnaire. A customer selects a language, answers the conditional questions, and submits the completed questionnaire; staff then review Japanese results, including highlighted cautionary answers. The results screen also supports saving a JPEG and starting over. The README documents six languages and the question set; the language-page implementations are grouped by their existing directory because their source was not excerpted.

Main entry points: [`SDQA/QuestionnairePage.xaml.cs`](https://github.com/ndmgit22/sdqa/blob/master/SDQA/QuestionnairePage.xaml.cs) (Questionnaire), [`SDQA/ResultsPage.xaml.cs`](https://github.com/ndmgit22/sdqa/blob/master/SDQA/ResultsPage.xaml.cs) (Japanese results), [`SDQA/LanguageSelectPage.xaml.cs`](https://github.com/ndmgit22/sdqa/blob/master/SDQA/LanguageSelectPage.xaml.cs) (Language selector), [`SDQA/App.xaml.cs`](https://github.com/ndmgit22/sdqa/blob/master/SDQA/App.xaml.cs) (App navigation root)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_startup["App startup"]
  node_maui["MAUI configuration<br/>[MauiProgram.cs]"]
  node_app["App navigation root<br/>[App.xaml.cs]"]
end

subgraph group_language["Language selection"]
  node_language_select["Language selector"]
  node_translations["Language pages"]
end

subgraph group_questionnaire["Questionnaire workflow"]
  node_questionnaire["Questionnaire"]
  node_answers["Answers and registry"]
end

subgraph group_review["Results and review"]
  node_results["Japanese results"]
  node_file_saver["File save service"]
end

node_customer(("Customer"))
node_staff(("Qualified staff"))

node_maui -->|"configures"| node_app
node_app -->|"opens"| node_language_select
node_customer -.->|"selects language"| node_language_select
node_language_select -->|"navigates to"| node_translations
node_translations -.->|"presents questions"| node_questionnaire
node_customer -.->|"answers questions"| node_questionnaire
node_questionnaire -->|"builds answers"| node_answers
node_questionnaire -->|"opens with answers"| node_results
node_results -->|"reads answers and order"| node_answers
node_results -->|"saves JPEG"| node_file_saver
node_staff -.->|"reviews"| node_results

click node_maui "https://github.com/ndmgit22/sdqa/blob/master/SDQA/MauiProgram.cs"
click node_app "https://github.com/ndmgit22/sdqa/blob/master/SDQA/App.xaml.cs"
click node_language_select "https://github.com/ndmgit22/sdqa/blob/master/SDQA/LanguageSelectPage.xaml.cs"
click node_translations "https://github.com/ndmgit22/sdqa/tree/master/SDQA/Translation"
click node_questionnaire "https://github.com/ndmgit22/sdqa/blob/master/SDQA/QuestionnairePage.xaml.cs"
click node_answers "https://github.com/ndmgit22/sdqa/blob/master/SDQA/QuestionnaireAnswers.cs"
click node_results "https://github.com/ndmgit22/sdqa/blob/master/SDQA/ResultsPage.xaml.cs"

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_maui,node_app toneBlue
class node_language_select,node_translations toneAmber
class node_questionnaire,node_answers toneMint
class node_results,node_file_saver toneRose
class node_customer,node_staff toneIndigo
```

## Components

### App startup

- [MAUI configuration](https://github.com/ndmgit22/sdqa/blob/master/SDQA/MauiProgram.cs): `SDQA/MauiProgram.cs`
- [App navigation root](https://github.com/ndmgit22/sdqa/blob/master/SDQA/App.xaml.cs): `SDQA/App.xaml.cs`

### Language selection

- [Language selector](https://github.com/ndmgit22/sdqa/blob/master/SDQA/LanguageSelectPage.xaml.cs): `SDQA/LanguageSelectPage.xaml.cs`
- [Language pages](https://github.com/ndmgit22/sdqa/tree/master/SDQA/Translation): `SDQA/Translation`

### Questionnaire workflow

- [Questionnaire](https://github.com/ndmgit22/sdqa/blob/master/SDQA/QuestionnairePage.xaml.cs): `SDQA/QuestionnairePage.xaml.cs`
- [Answers and registry](https://github.com/ndmgit22/sdqa/blob/master/SDQA/QuestionnaireAnswers.cs): `SDQA/QuestionnaireAnswers.cs`

### Results and review

- [Japanese results](https://github.com/ndmgit22/sdqa/blob/master/SDQA/ResultsPage.xaml.cs): `SDQA/ResultsPage.xaml.cs`
- **File save service**

### Other components

- **Customer**
- **Qualified staff**

## Connections

- MAUI configuration → App navigation root: configures (evidence: `SDQA/MauiProgram.cs`)
- App navigation root → Language selector: opens (evidence: `SDQA/App.xaml.cs`)
- Customer → Language selector: selects language (evidence: `README.md`)
- Language selector → Language pages: navigates to (evidence: `SDQA/LanguageSelectPage.xaml.cs`)
- Language pages → Questionnaire: presents questions
- Customer → Questionnaire: answers questions (evidence: `README.md`)
- Questionnaire → Answers and registry: builds answers (evidence: `SDQA/QuestionnairePage.xaml.cs`)
- Questionnaire → Japanese results: opens with answers (evidence: `SDQA/QuestionnairePage.xaml.cs`)
- Japanese results → Answers and registry: reads answers and order (evidence: `SDQA/ResultsPage.xaml.cs`)
- Japanese results → File save service: saves JPEG (evidence: `SDQA/ResultsPage.xaml.cs`)
- Qualified staff → Japanese results: reviews (evidence: `README.md`)
