How b4ian0-1980/sage-gere works
GERE is a municipal health-secretariat system for tracking parliamentary amendments and extraordinary resources from registration through action-plan approval and execution. Staff enter resources and plans, route plans through configurable internal validation and the granting authority, then update item progress and financial positions; DIPLAN and management also use monitoring panels. A separate captação subsystem tracks regular FNS/FES transfers and produces monthly reports. The graph includes documented product stages and sampled service/model layers; several view and reporting connections rely on README descriptions because those implementations were not excerpted.
Main entry points: fluxo.py Plan validation flow · financeiro.py Balance and execution · carga.py Import to records · painel.py Monitoring panels
Components 24
Resource workflow
- Resource screens
emendas/views/recursos.py - Resource records
emendas/models/recurso.py - Plan screens
emendas/views/planos.py - Plans and items
emendas/models/plano.py - Plan validation flow
emendas/servicos/fluxo.py
Finance and monitoring
- Finance screens
emendas/views/financeiro.py - Balance and execution
emendas/servicos/financeiro.py - Transfers and positions
emendas/models/financeiro.py - Monitoring panels
emendas/views/painel.py
Regular transfers
- Captação screens
captacao/views.py - Transfer records
captacao/models.py - FNS collection
captacao/servicos/coletor_fns.py - FES collection
captacao/servicos/coletor_fes.py - Monthly capture reports
captacao/servicos/relatorio.py
Shared services
- Role permissions
emendas/permissoes.py - Alerts and notifications
emendas/servicos/notificacoes.py - Official notice scan
emendas/servicos/coletor_web/varredura.py - DOU parsing
emendas/servicos/coletor_web/parser_dou.py - Spreadsheet import
emendas/importacao/planilha.py - Import to records
emendas/importacao/carga.py
Other components
- DIPLAN and staff
- FNS portal
- FES source
- Official gazette
Connections 28
- DIPLAN and staff → Resource screens: registers resources
README.md - Resource screens → Resource records: records
- DIPLAN and staff → Plan screens: drafts plans
README.md - Plan screens → Plans and items: edits plans
- DIPLAN and staff → Plan validation flow: submits plans
README.md - Plan validation flow → Plans and items: updates status
emendas/servicos/fluxo.py - Plan validation flow → Alerts and notifications: notifies validators
emendas/servicos/fluxo.py - Plan validation flow → Role permissions: checks authority
emendas/servicos/fluxo.py - DIPLAN and staff → Finance screens: reports execution
README.md - Finance screens → Balance and execution: records positions
- Balance and execution → Transfers and positions: writes positions
emendas/servicos/financeiro.py - Balance and execution → Plan validation flow: checks completion
emendas/servicos/financeiro.py - Monitoring panels → Balance and execution: reads status
emendas/views/painel.py - Monitoring panels → Alerts and notifications: reads alerts
emendas/views/painel.py - DIPLAN and staff → Monitoring panels: monitors resources
README.md - Official notice scan → DOU parsing: parses notices
emendas/servicos/coletor_web/varredura.py - Official notice scan → Resource records: ingests findings
- DOU parsing → Official gazette: retrieves publications
- Spreadsheet import → Import to records: supplies parsed rows
emendas/importacao/carga.py - Import to records → Resource records: creates resources
emendas/importacao/carga.py - Import to records → Plans and items: creates initial plans
- DIPLAN and staff → Captação screens: monitors transfers
README.md - FNS portal → FNS collection: provides payments
captacao/servicos/coletor_fns.py - FNS collection → Transfer records: normalizes transfers
captacao/servicos/coletor_fns.py - FES source → FES collection: provides transfers
- FES collection → Transfer records: collects transfer data
- Captação screens → Monthly capture reports: requests reports
- Monthly capture reports → Transfer records: summarizes transfers