decleration
Add decleration
{if $patientId}
{else} {/if}
{if $patientId} Cancel {else} Cancel {/if}