Skip to content
Lucas
All projects
CompletedAutomation for a clinic

ClinicaSync

Python back-end automation for a psychology clinic, with secure file management and LGPD (Brazilian data protection law) compliance.

Private code
ClinicaSync illustration

Architecture

  • Background service between the front desk (Inbox) and the permanent archive (Vault).
  • Inbox: input folder with read/write access only for front-desk staff.
  • Vault: permanent storage restricted to administrators and psychologists.
  • Python worker that validates data, moves files and writes audit logs.

Technical challenges

  • Directory polling, patient identification and dynamic folder creation in the Vault.
  • Name-conflict resolution so reports and exams are never overwritten.
  • Configuration in config.json, with no code changes needed.
  • Service installed via NSSM running 24/7, handling files still in transit on the network (PermissionError).