changed practiceId to clinicId and updated related wiring