How ahsan-ra2a/medshield-privacyguard works
MedShield is a local Streamlit workspace for demonstrating hospital-record privacy controls with fictional patient data. Users sign in, receive role-specific workspace access, and perform permitted tasks such as searching masked records, registering or correcting records, reviewing consent and retention, auditing activity, viewing analytics, or exporting data. The UI delegates protected operations to Store, which authorizes sessions and works transactionally with SQLite. The README documents the major capabilities; unsampled implementation details are represented at subsystem level rather than inferred as finer-grained calls.
Main entry points: core.py Trusted Store service · app.py Role-aware Streamlit workspace
Components 16
User experience
Privacy operations
- Authentication and sessions
core.py - Role authorization
core.py - Patient registry
core.py - Masking and encryption
core.py - Consent register
core.py - Record corrections
core.py
Governance and assurance
- Retention management
core.py - Audit chain and review
core.py - Activity analytics
app.py - CSV and snapshot export
core.py - Backup and recovery
core.py
Local persistence
- Trusted Store service
core.py - Application database
- Local encryption key
Other components
- Hospital workspace users
Connections 20
- Hospital workspace users → Role-aware Streamlit workspace: use workspace
README.md - Role-aware Streamlit workspace → Authentication and sessions: sign in
README.md - Role-aware Streamlit workspace → Trusted Store service: call protected operations
README.md - Authentication and sessions → Role authorization: establish session
README.md - Trusted Store service → Role authorization: authorize requests
README.md - Trusted Store service → Application database: transactional reads and writes
README.md - Trusted Store service → Local encryption key: encrypt and decrypt records
README.md - Trusted Store service → Patient registry: serve registry operations
README.md - Trusted Store service → Masking and encryption: protect patient fields
README.md - Trusted Store service → Consent register: record consent choices
README.md - Trusted Store service → Record corrections: apply authorized corrections
README.md - Trusted Store service → Retention management: manage expiry and deletion
README.md - Trusted Store service → Audit chain and review: record and verify activity
README.md - Role-aware Streamlit workspace → Activity analytics: display activity counts
README.md - Role-aware Streamlit workspace → CSV and snapshot export: request exports
app.py - Role-aware Streamlit workspace → Backup and recovery: present recovery workflow
README.md - Activity analytics → Trusted Store service: read event counts
README.md - CSV and snapshot export → Application database: read export data
README.md - Backup and recovery → Application database: restore database snapshot
README.md - Backup and recovery → Local encryption key: restore matching key
README.md