Sari la conținut

Business Logic Requirements

Core Entities

  • Users: Psychologists (therapists), Administrators
  • Patients: Managed by psychologists
  • Modules: 10 main development areas
  • Activities: Objectives within modules, divided into 3 columns (objective description, specific items/methods, usage techniques)
  • Segments: Multiple entries/options within columns 2 and 3 of activities

Key Workflows

For Psychologists

  1. Select patient
  2. Choose modules and activities from unified global + expansion layers
  3. Make selections with temporary UI state (sessionStorage) and save to persistent patient state
  4. Generate PIP document for download or send to secretariat inbox

For Administrators

  1. Review expanded activities from psychologists
  2. Globalize valuable activities to make them available to all
  3. Clean up unnecessary expansions
  4. Manage users and rights

System Architecture

  • 5-Layer System: Global primary, Global expansion, Patient file, Session structure, Session state
  • Expansion: Psychologists can add local activities visible to their patients
  • Globalization: Admins promote local activities to global level
  • Patient selections persist as patient states in database
  • Documents are generated on-the-fly, only sent documents are saved in inbox

Security & Privacy

  • Patient data protected, editable only by authorized personnel
  • Role-based access (psychologist vs admin)