Export Options
Three export buttons appear on the results page:- Export JSON: Structured data format for programmatic use
- Export CSV: Spreadsheet format for analysis in Excel or Google Sheets
- Export PDF: Printable document format for sharing with professionals
ExportButtons.tsx and export.ts
JSON Export
When to Use JSON
- Long-term archival of complete response data
- Importing into other applications or databases
- Programmatic analysis or integration
- Preserving full fidelity of all responses and metadata
JSON Structure
The exported JSON file includes:JSON Fields Explained
Top-Level Fields
Top-Level Fields
- quiz: Always “RAADS-R”
- completedAt: ISO 8601 timestamp of export time
- results: Complete results object with scores and thresholds
- responses: Array of all 80 question responses with details
Response Object Fields
Response Object Fields
- id: Question number (1-80)
- text: Full question text
- domain: Which subscale the question belongs to
- response: The selected response option text
- responseIndex: Numeric index (0-3) of the response
- score: Points earned for this question (0-3)
Using JSON Export
Click “Export JSON” to downloadraads-r-results.json. The file can be:
- Opened in any text editor
- Parsed by programming languages (Python, JavaScript, etc.)
- Imported into data analysis tools
- Stored as a backup of your complete responses
export.ts:46-50
CSV Export
When to Use CSV
- Analysis in spreadsheet software (Excel, Google Sheets, LibreOffice)
- Creating custom visualizations or charts
- Filtering and sorting responses by domain or score
- Sharing data in a widely compatible format
CSV Structure
The CSV file contains two sections:1. Individual Responses Table
Headers:2. Summary Section
After the 80 response rows, a summary section includes:CSV Features
Question text is properly escaped with quotes and double-quote characters are escaped as
"" for CSV compatibility.- Compatible with all major spreadsheet applications
- Text fields containing commas or quotes are properly escaped
- Summary data appears at the bottom for easy reference
- All 80 questions included with full details
export.ts:52-76
Using CSV Export
Click “Export CSV” to downloadraads-r-results.csv. You can:
- Open directly in Excel, Google Sheets, or Numbers
- Filter responses by domain to analyze specific subscales
- Sort by score to see highest-scoring items
- Create pivot tables or custom charts
- Calculate additional statistics
PDF Export
When to Use PDF
- Sharing with healthcare professionals
- Printing a physical copy for your records
- Creating a permanent, formatted document
- Discussing results in appointments
PDF Contents
The PDF export opens in a new browser window and includes:1. Header
- Title: “RAADS-R Results”
- Date: Formatted date of export (e.g., “3 March 2026”)
2. Summary Table
| Field | Value |
|---|---|
| Total Score | 127 / 240 |
| Threshold | 65 |
| Status | Above threshold |
3. Subscale Scores Table
| Subscale | Score | Max | Threshold | Status |
|---|---|---|---|---|
| Social Relatedness | 45 | 117 | 30 | Above |
| Circumscribed Interests | 28 | 42 | 14 | Above |
| Language | 12 | 21 | 3 | Above |
| Sensory Motor | 42 | 60 | 15 | Above |
4. All Responses Table
| # | Question | Subscale | Response | Points |
|---|---|---|---|---|
| 1 | I am a sympathetic person. | Social Relatedness | True only now | 1 |
| 2 | I often use words and phrases… | Language | True now and when I was young | 3 |
| … | … | … | … | … |
5. Footer
“This is a self-report screening tool, not a diagnostic instrument.”
PDF Styling
The PDF is professionally formatted with:- Clean, readable typography (system fonts)
- Table borders and zebra striping for readability
- Compact 11px font size to fit all data
- Print-optimized layout
- Page break handling for long tables
export.ts:78-178
Using PDF Export
Click “Export PDF” to:- View: A new browser window opens with the formatted PDF
- Print: The browser print dialog automatically appears
- Save: Use the print dialog’s “Save as PDF” option to create a file
- Share: Print to paper or save digitally to share with professionals
Print View Alternative
In addition to PDF export, a separate “Print View” button offers:- Browser-native print dialog
- Print directly from the results page
- Similar formatted output to PDF export
- Alternative if PDF export doesn’t work in your browser
PrintView.tsx and Results.tsx:152-156
Data Privacy
All exports are generated entirely in your browser using client-side JavaScript. No data is transmitted to any server during the export process.
Export Process
- Your response data is read from browser memory (localStorage if enabled)
- Export functions process the data into the target format
- A download is triggered using browser APIs (Blob URLs)
- The file is saved to your device’s download folder
- No network requests are made
Security Considerations
- Exported files contain your complete questionnaire responses
- Store files securely if they contain sensitive information
- Consider using encryption if emailing to healthcare providers
- Delete exports from shared computers after use
Comparing Export Formats
| Feature | JSON | CSV | |
|---|---|---|---|
| File Size | Medium | Small | Large |
| Human Readable | Moderate | High | Highest |
| Machine Readable | Highest | High | Low |
| Spreadsheet Compatible | No | Yes | No |
| Print Ready | No | No | Yes |
| Full Metadata | Yes | Yes | Yes |
| Easy Sharing | Moderate | Moderate | Highest |
Best Practices
Export Immediately After Completion
Don’t rely solely on browser localStorage. Export your results right away as a backup.
Use Multiple Formats
Export both JSON (for archival) and PDF (for sharing) to cover different use cases.
Keep Files Secure
Store exported files in a secure location, especially if they contain sensitive information.
Troubleshooting
Export button doesn't work
Export button doesn't work
CSV opens incorrectly in Excel
CSV opens incorrectly in Excel
- Try importing the CSV instead of opening directly
- Use Excel’s “Data > From Text/CSV” import feature
- Ensure UTF-8 encoding is selected
PDF won't save
PDF won't save
- Use the browser print dialog’s “Save as PDF” option
- Try the “Print View” button as an alternative
- Check if your browser has a built-in PDF viewer enabled
File Information
Default filenames for exports:- JSON:
raads-r-results.json - CSV:
raads-r-results.csv - PDF: (browser-generated, typically based on page title)
raads-r-results-2026-03-03.jsonraads-r-results-john-doe.pdf