How guilheslherme/projeto_politicas_seguranca works
Health In Sight is a Django portal for presenting official health information, not diagnosing users. Its central workflow lets a visitor select symptoms, then returns source-attributed conditions—or interrupts with urgent-care guidance for a warning symptom. Separate branches cover accounts and two-factor authentication, optional consent-based saved materials, privacy rights, and authentication auditing. The README documents these capabilities; sampled source confirms key catalog rules, consent behavior, and audit recording. Some view-level wiring is unsampled, so uncertain calls are omitted.
Main entry points: accounts/views.py Account flows · catalog/views.py Catalog pages · catalog/models.py Sourced associations · accounts/models.py Account and MFA data
Components 23
Health information
- Catalog pages
apps/catalog/views.py - Condition pages
apps/catalog/views.py - Saved materials
apps/catalog/views_conta.py - Symptoms
apps/catalog/models.py - Conditions
apps/catalog/models.py - Official materials
apps/catalog/models.py - Sourced associations
apps/catalog/models.py - Saved-material records
apps/catalog/models.py
Accounts and access
- Account flows
apps/accounts/views.py - Account and MFA data
apps/accounts/models.py - Account creation
apps/accounts/managers.py - Email delivery
Privacy rights
- Privacy controls
apps/privacy/views.py - Consent gate
apps/privacy/middleware.py - Consent records
apps/privacy/models.py
Security and audit
- Auth event signals
apps/audit/signals.py - Hash-chained events
apps/audit/models.py - Audit verification
apps/audit/management/commands/verificar_logs.py - Audit analysis
apps/audit/management/commands/analisar_logs.py
Other components
- Visitor
- Signed-in member
- MySQL database
- Health agencies
Connections 34
- Visitor → Catalog pages: selects symptoms
- Catalog pages → Symptoms: reads symptoms
- Catalog pages → Sourced associations: finds matches
- Sourced associations → Conditions: references
- Sourced associations → Official materials: cites source
- Catalog pages → Visitor: shows results or warning
- Visitor → Condition pages: opens condition
- Condition pages → Conditions: reads condition
- Conditions → Official materials: links sources
- Health agencies → Official materials: provides content
- Signed-in member → Account flows: registers or signs in
- Account flows → Account creation: creates account
- Account creation → Account and MFA data: saves credentials
- Account flows → Account and MFA data: checks MFA and recovery
- Account flows → Email delivery: sends recovery email
- Signed-in member → Saved materials: manages saved items
- Saved materials → Consent records: checks purpose consent
- Saved materials → Saved-material records: saves or removes items
- Signed-in member → Privacy controls: exercises data rights
- Privacy controls → Consent records: records or revokes consent
- Privacy controls → Account and MFA data: exports or deletes account
- Consent gate → Consent records: checks current policy
- Account flows → Auth event signals: emits auth events
- Auth event signals → Hash-chained events: records events
- Audit verification → Hash-chained events: verifies chain
- Audit analysis → Hash-chained events: summarizes events
- Symptoms → MySQL database: stored in
- Conditions → MySQL database: stored in
- Official materials → MySQL database: stored in
- Sourced associations → MySQL database: stored in
- Saved-material records → MySQL database: stored in
- Account and MFA data → MySQL database: stored in
- Consent records → MySQL database: stored in
- Hash-chained events → MySQL database: stored in