How shabbirmai124/spordha-diagnostics-ltd-pki-secure-medical-web-portal works
Spordha Diagnostics is a PHP medical-laboratory portal with PKI and signed-report capabilities. The user workflow spans public service discovery and role-based sign-in, branch sample upload, pathologist report signing, and public report verification; staff also manage certificates and security incidents. The graph includes the shared database, authentication, and cryptographic helper layer, plus documented evidence and documentation features. Relationships are limited to README claims and SOURCE INDEX references; unsampled implementations are represented only at their supported paths.
Main entry points: database.php Database connection · functions.php Digest & security helpers · auth.php Authentication & roles · dashboard.php Role dashboard
Components 22
Portal & Identity
- Public portal
index.php - Diagnostic services
services.php - Sign-in & registration
login.php - Role dashboard
dashboard.php - Evidence gallery
evidence_gallery.php - Project documentation
documentation.php - Branch directory
branches.php
Clinical Workflow
- Doctor portal
doctor_portal.php - Branch upload
branch_upload.php - Pathologist studio
pathologist_studio.php - Report generation
generate_report.php - Patient portal
patient_portal.php - Report verification
verify.php - Verification API
api/verify_report.php
PKI & Security
- PKI operations center
pki_soc.php - Certificate revocation API
api/revoke_cert.php - Incident action API
api/incident_action.php
Shared Runtime
- Authentication & roles
includes/auth.php - Digest & security helpers
includes/functions.php - Database connection
config/database.php - Application data
database/spordha.db
Other components
- Portal user
Connections 26
- Portal user → Public portal: browses
README.md - Public portal → Diagnostic services: explores tests
- Portal user → Sign-in & registration: signs in
- Sign-in & registration → Authentication & roles: authenticates
login.php - Authentication & roles → Database connection: queries users
includes/auth.php - Role dashboard → Authentication & roles: checks session
dashboard.php - Role dashboard → Doctor portal: offers role access
dashboard.php - Role dashboard → Branch upload: offers upload
dashboard.php - Branch upload → Database connection: records uploads
branch_upload.php - Branch upload → Authentication & roles: checks roles
branch_upload.php - Pathologist studio → Digest & security helpers: signs reports
README.md - Digest & security helpers → Database connection: updates reports
includes/functions.php - Patient portal → Database connection: reads reports
patient_portal.php - Portal user → Report verification: submits report lookup
README.md - Report verification → Digest & security helpers: checks integrity
verify.php - Report verification → Verification API: requests verification
- Verification API → Database connection: reads report
api/verify_report.php - PKI operations center → Certificate revocation API: requests revocation
- Certificate revocation API → Database connection: updates certificate
api/revoke_cert.php - PKI operations center → Incident action API: logs incidents
- Incident action API → Digest & security helpers: records incident
api/incident_action.php - Digest & security helpers → Database connection: stores incident
includes/functions.php - Database connection → Application data: persists data
- Portal user → Evidence gallery: views evidence
- Portal user → Project documentation: views documentation
- Portal user → Branch directory: finds branches