Ottehr today is an open source telehealth platform with patient registration, queuing, scheduling, messaging, and provider tracking. Fork and build to your needs.
Ottehr v0.5 adds dynamic emails and SMS messaging.
More info:
https://www.ottehr.com/
https://docs.oystehr.com/ottehr/changelog/v0.5