Designing a Smart Medical System for Psychosocial Support