...
Add smart sections to your templates the same way you do with merge fields by pasting them into your template.
...
Smart sections require an appointment context so can only be used for automatic appointment reminders, or emails and sms' sent from the edit appointment window.
Outstanding Forms (Patient Portal)
...