How suisan-neki/sechack365_electronic-medical-record works
This repository implements a secure patient-information sharing system, with a clinician workflow to select patient records, enter and share clinical notes, and let patients review them. The Flask application provides the primary web/API entry point; React pages and a separate mobile client provide user interfaces. A simulated EHR supports record exchange, while shared core modules provide authentication, authorization, encryption, signatures, and audit integrity. The README documents the product capabilities and EHR exchange flow; some subsystem relationships below rely on the source index because their implementations were not excerpted.
Main entry points: app/app.py Sharing API · App.tsx Web application · app/app.py Simulated EHR · ehr_integrator.py EHR integration
Components 23
Sharing application
- Sharing API
SecHack365_project/info_sharing_system/app/app.py - Record storage
SecHack365_project/core/database.py
Security and audit
- Authentication
SecHack365_project/core/authentication.py - Access control
SecHack365_project/core/authorization.py - Data encryption
SecHack365_project/core/data_encryption.py - Digital signatures
SecHack365_project/core/digital_signature.py - Audit logging
SecHack365_project/core/audit_logger.py - Audit integrity
SecHack365_project/core/hash_chain.py
EHR exchange
- EHR integration
SecHack365_project/core/ehr_integrator.py - CSV exchange
SecHack365_project/core/csv_handler.py - FHIR adapter
SecHack365_project/core/fhir_adapter.py - Simulated EHR
dummy_ehr_system/app/app.py
User clients
- Web application
SecHack365_project/src/App.tsx - Clinician dashboard
SecHack365_project/src/pages/DashboardPage.tsx - Clinical record entry
SecHack365_project/src/pages/InputFormPage.tsx - Patient display
SecHack365_project/src/pages/PatientDisplayPage.tsx - Admin dashboard
SecHack365_project/src/pages/AdminDashboardPage.tsx - Phase 1 management
SecHack365_project/src/pages/Phase1ManagementPage.tsx - Web client state
SecHack365_project/src/store/useAppStore.ts - Mobile client
SecHack365_project/mobile/App.tsx - Mobile state and API
SecHack365_project/mobile/src/store/useAppStore.ts
Other components
- Clinician
- Patient
Connections 23
- Clinician → Web application: uses
README.md - Patient → Web application: reviews records
README.md - Web application → Clinician dashboard: routes to
SecHack365_project/src/App.tsx - Web application → Clinical record entry: routes to
SecHack365_project/src/App.tsx - Web application → Patient display: routes to
SecHack365_project/src/App.tsx - Web application → Admin dashboard: routes to
SecHack365_project/src/App.tsx - Web application → Phase 1 management: routes to
SecHack365_project/src/App.tsx - Web application → Web client state: reads state
SecHack365_project/src/App.tsx - Clinician dashboard → Sharing API: requests records
- Clinical record entry → Sharing API: submits notes
- Sharing API → Record storage: reads and writes
SecHack365_project/info_sharing_system/app/app.py - Sharing API → EHR integration: delegates exchange
SecHack365_project/info_sharing_system/app/app.py - Sharing API → Authentication: authenticates users
SecHack365_project/info_sharing_system/app/app.py - Sharing API → Access control: checks access
SecHack365_project/info_sharing_system/app/app.py - Sharing API → Data encryption: protects data
SecHack365_project/info_sharing_system/app/app.py - Sharing API → Digital signatures: verifies records
SecHack365_project/info_sharing_system/app/app.py - Sharing API → Audit logging: records actions
SecHack365_project/info_sharing_system/app/app.py - Sharing API → Audit integrity: checks integrity
SecHack365_project/info_sharing_system/app/app.py - EHR integration → Simulated EHR: exchanges records
README.md - Simulated EHR → CSV exchange: exports CSV
dummy_ehr_system/app/app.py - Simulated EHR → FHIR adapter: exports FHIR
dummy_ehr_system/app/app.py - Mobile client → Mobile state and API: uses state
SecHack365_project/mobile/App.tsx - Mobile state and API → Sharing API: calls API
SecHack365_project/mobile/src/store/useAppStore.ts