Instruction
{if $patientId} Refer to hospital Add {else} Add {/if}
Print Date
Print
{assign var=m value=1} {foreach $showElems as $single} {if $patientId} {else} {/if} {capture assign=m}{$m+1}{/capture} {/foreach}
No Name Print Edit Delete
{$m} {$single.name} Print Edit Edit Delete