How carlos-eduardo-suassuna-santiago/promptuario_corporativo works
Promptuário is a healthcare-records microservice platform with a React client, API gateway, identity, patient/clinical, AI, reporting, and backup capabilities. The principal workflow is a user request entering through the gateway, being authenticated and routed to patient or clinical operations, then producing persistent records and, where applicable, asynchronous events or reports. The tree contains both Python and Java service implementations; sampled evidence is limited, so cross-service links follow only README-documented HTTP/event communication, while detailed internal links are shown only where excerpts support them.
Main entry points: main.py API gateway · AuthService.java Identity service · RestoreOrchestratorService.java Restore orchestration · OAuthService.java Google OAuth
Components 25
Client access
- React client
frontend/src/App.tsx - API client
frontend/src/api/client.ts - API gateway
backend/gateway/app/main.py
Identity and access
- Identity service
backend-java/iam-service/src/main/java/br/edu/ifrn/promptuario/iam/service/AuthService.java - Google OAuth
backend-java/iam-service/src/main/java/br/edu/ifrn/promptuario/iam/service/OAuthService.java - IAM user store
backend-java/iam-service/src/main/java/br/edu/ifrn/promptuario/iam/repository/UserRepository.java
Patient and clinical care
- Clinical records
backend/patient-clinical-service/app/domain/services/clinical_service.py - Patient records
backend/patient-clinical-service/app/infrastructure/repositories/patient_repository.py - Clinical API
backend/patient-clinical-service/app/api/clinical_routers.py - Patient API
backend/patient-clinical-service/app/api/patient_routers.py - Domain events
backend/shared/events/__init__.py - RabbitMQ broker
backend/shared/events/broker.py
AI and reporting
- AI analysis
backend/ai-service/app/domain/services/ai_service.py - LLM client
backend/ai-service/app/infrastructure/llm_client.py - LLM provider
- Reports and exports
backend/reporting-service/app/main.py - Report workers
backend/reporting-service/app/workers/celery_tasks.py
Backup and platform
- Backup orchestration
backend-java/backup-service/src/main/java/br/edu/ifrn/promptuario/backup/service/BackupOrchestratorService.java - Database dumpers
backend-java/backup-service/src/main/java/br/edu/ifrn/promptuario/backup/dumper/DatabaseDumper.java - Restore orchestration
backend-java/backup-service/src/main/java/br/edu/ifrn/promptuario/backup/service/RestoreOrchestratorService.java - S3 backup storage
backend-java/backup-service/src/main/java/br/edu/ifrn/promptuario/backup/storage/S3BackupStorageService.java - PostgreSQL databases
- MongoDB
- MinIO / S3
Other components
- User
Connections 26
- User → React client: uses
- React client → API client: requests
- API client → API gateway: calls
- API gateway → Identity service: routes HTTP
- API gateway → Clinical API: routes HTTP
- API gateway → Patient API: routes HTTP
- Identity service → IAM user store: reads and writes
backend-java/iam-service/src/main/java/br/edu/ifrn/promptuario/iam/service/AuthService.java - Identity service → Google OAuth: supports OAuth
backend-java/iam-service/src/main/java/br/edu/ifrn/promptuario/iam/service/OAuthService.java - Google OAuth → IAM user store: finds or creates
backend-java/iam-service/src/main/java/br/edu/ifrn/promptuario/iam/service/OAuthService.java - Google OAuth → Identity service: issues tokens
backend-java/iam-service/src/main/java/br/edu/ifrn/promptuario/iam/service/OAuthService.java - Clinical API → Clinical records: handles clinical requests
- Patient API → Patient records: accesses patient data
- Clinical records → Domain events: publishes events
- Domain events → RabbitMQ broker: encodes messages
backend/shared/events/broker.py - RabbitMQ broker → AI analysis: delivers events
- AI analysis → LLM client: invokes
backend/ai-service/app/domain/services/ai_service.py - LLM client → LLM provider: requests inference
- Reports and exports → Report workers: queues work
backend/reporting-service/app/main.py - Backup orchestration → Database dumpers: selects dumper
backend-java/backup-service/src/main/java/br/edu/ifrn/promptuario/backup/service/BackupOrchestratorService.java - Database dumpers → PostgreSQL databases: dumps
- Database dumpers → MongoDB: dumps
- Backup orchestration → S3 backup storage: stores artifacts
backend-java/backup-service/src/main/java/br/edu/ifrn/promptuario/backup/service/BackupOrchestratorService.java - S3 backup storage → MinIO / S3: reads and writes
backend-java/backup-service/src/main/java/br/edu/ifrn/promptuario/backup/storage/S3BackupStorageService.java - Restore orchestration → S3 backup storage: downloads artifacts
backend-java/backup-service/src/main/java/br/edu/ifrn/promptuario/backup/service/RestoreOrchestratorService.java - Restore orchestration → PostgreSQL databases: restores
- Restore orchestration → MongoDB: restores