Patient Data
Patient No
{$statusno}
Age
{$age}
Patient Sex
{$gender}
Patient Name
{$name}
{if $medicalCount > 0 }
Medical History
Disease
Note
Dr
{foreach $medicals as $medical }
{$medical->disease}
{$medical->medicalnote}
{$medical->username}
{/foreach}
{/if} {if $surgicalCount > 0 }
Surgical History
Operation
Year
Surgeon
Note
Dr
{foreach $surgicals as $surgical }
{$surgical->operation}
{$surgical->phsurgicalyear}
{$surgical->phsurgicalsurgeon}
{$surgical->surgicalnote}
{$surgical->username}
{/foreach}
{/if} {if $pastCount > 0 }
Past History
Date
Complaint
Note
Dr
{foreach $pasts as $past }
{$past->sysdate}
{$past->complaint}
{$past->note}
{$past->username}
{/foreach}
{/if} {if $presentCount > 0 }
Present History
Date
Present hx
Dr
{foreach $presents as $present }
{$present->sysdate}
{$present->presenthx}
{$present->username}
{/foreach}
{/if} {if $lastPresCount > 0 }
Last Prescription ( {$presDate} )
Group
Drug
Form
Use
Dr
{assign var=i value=1} {foreach $lastPres as $pres }
{$i}
{$pres->drugcat}
{$pres->drugname}
{$pres->drugtype}
{$pres->drugdos}
{$pres->username}
{capture assign=i}{$i+1}{/capture} {/foreach}
{/if}