A Patient-Centric Digital Repository for Medical Abstracts and Health History to Ensure Diagnostic Continuity
MedArchive is a secure, web-based repository that empowers patients to digitize and manage their own medical history. Built with SvelteKit and Supabase, it addresses the critical problem of fragmented medical records in developing healthcare ecosystems.
In many developing healthcare ecosystems, patient medical records (abstracts, lab results, and prescriptions) are primarily handled in physical paper formats. This decentralized and manual storage method leads to frequent data fragmentation, where patients lose their medical history due to physical damage, misplacement, or lack of a unified storage system.
Consequently, healthcare providers often face "information gaps," leading to redundant testing, delayed treatments, and complicated or inaccurate diagnoses due to an incomplete clinical picture of the patient's past medical history.
To develop a secure, web-based repository using SvelteKit and Supabase that empowers patients to digitize and manage their own medical history.
- To implement a secure authentication system to protect sensitive Personal Health Information (PHI).
- To create a categorical filing system (OCR-enabled or manual) for organizing medical abstracts, imaging, and lab reports.
- To design a "Quick-Access" mechanism (like QR codes or time-limited tokens) for seamless data sharing between patients and clinicians during consultations.
- To assess the usability of the platform in improving the retrieval speed of medical records compared to traditional physical filing.
This study/project is significant for three major stakeholders:
- For Patients: It provides autonomy over their data, ensuring that their medical history travels with them regardless of which hospital or doctor they visit.
- For Healthcare Providers: It reduces the time spent on "diagnostic guesswork" by providing a structured, chronological view of the patient's health.
- For the Healthcare System: It minimizes redundant costs (re-running tests) and improves the overall quality of care by facilitating Evidence-Based Medicine (EBM).
The project utilizes a BaaS (Backend as a Service) architecture:
- Frontend Framework: SvelteKit (for high-performance, server-side rendering)
- Styling & UI: Tailwind CSS v4 and Shadcn Svelte (for a clean, accessible, and professional medical interface)
- Database & Auth: Supabase (utilizing PostgreSQL for relational data and Row Level Security for HIPAA-compliant-style privacy)
- File Storage: Supabase Storage (for encrypted hosting of medical PDFs and images)
- Runtime: Bun
- Input Phase: User registers and uploads a digital copy (photo/PDF) of a medical abstract.
- Processing Phase: Data is categorized by date, specialty (e.g., Cardiology, Pediatrics), and provider.
- Output Phase: When a diagnosis is needed, the system generates a summary or a view-only link for the physician, bridging the information gap.
Install dependencies:
bun installStart a development server:
bun dev
# or start the server and open the app in a new browser tab
bun dev -- --openTo create a production version of your app:
bun run buildYou can preview the production build with bun run preview.
To deploy your app, you may need to install an adapter for your target environment.
Licensed under the GNU General Public License v3. See LICENSE for details.