{literal} {/literal}
{if $patientdata.statuesid != 1} {if $patientdata.mirragefromdate } {else} {/if} {/if} {if $patientdata.statuesid == 1} {/if} {if $patientdata.statuesid != 1} {/if}
{if !empty($patientdata.wifetype)}{$patientdata.wifetype} {/if}/ {$patientdata.wifename} {if $new_dateofbirth_calc != ''} {$new_dateofbirth_calc} سنة {/if} {if !empty($patientdata.wifejob)}{$patientdata.wifejob}{/if} {$patientdata.address} رقم المريضة : {$patientdata.statusno}
متزوجة منذ :{if $mirragemonths == 0} {$mirrageyears} سنة {elseif $mirrageyears==0 } {if $mirragemonths==1}{$mirragemonths} شهر {else}{$mirragemonths} شهور {/if} {else } {$mirrageyears}سنة -{if $mirragemonths==1}{$mirragemonths} شهر {else}{$mirragemonths} شهور {/if} {/if} متزوجة منذ : الذكور: {$patientdata.boyson} الإناث: {$patientdata.girlson}
{if !empty($patientdata.husbandtype)}{$patientdata.husbandtype} {/if}/ {$patientdata.husdandname} {if $patientdata.statuesid != 3 }{if $new_dateofbirth_husband != '' } {$new_dateofbirth_husband} سنة {/if} {/if} {if !empty($patientdata.husbandjob)}{$patientdata.husbandjob} {/if}
{if $phmenstrualcount > 0} {if $idData == "yes"} {if !empty($phregualrity) && ($phregualrity->id eq 1 || $phregualrity->id eq 2) } {if $phregualrity}{/if} {if $myphmenstrual->phlMP}{/if} {else} {if $myphmenstrual->menarche} {/if} {if $myphmenstrual->duration} {/if} {if $myphmenstrual->length} {/if} {if $phregualrity} {/if} {if $phamount} {/if} {if $phdysmenorrhoea} {/if} {if $myphmenstrual->phlMP} {/if} {/if} {else} {/if}
Menstrual H {$phregualrity->name} {$myphmenstrual->phlMP} {$myphmenstrual->menarche} {$myphmenstrual->duration} {$myphmenstrual->length} {$phregualrity->name} {$phamount->name} {$phdysmenorrhoea->name} {$myphmenstrual->phlMP}
{/if} {if $myallcontractcount > 0} {if $idData1 == "yes"} {if $phcontracttype->name} {/if} {if $myallcontract->contduration} {/if} {if $myallcontract->contstopped} {/if} {if $myallcontract->contranote} {/if} {else} {/if}
Contraception H {$phcontracttype->name} {$myallcontract->contduration} Y {$myallcontract->contstopped} Y {$myallcontract->contranote}
{/if} {if $myallobsteric > 0}
Obstetric H {$myallobsteric} {$pcounter} {$abcounter} {$Ectopiccounter} {$vmodelcounter}
{/if} {if $allpastmedicalcount > 0} {/if} {if $allpastsurgicalcount > 0} {/if} {if $allphpastgynecologicalcount > 0} {/if} {if $allphpastartcount > 0} {/if} {if $allphfamilycount > 0} {/if}
Past Medical H {assign var=i value=1} {foreach $allpastmedical as $myallpastmedical} {if $i == 1 } {$myallpastmedical.name} {else} ,{$myallpastmedical.name} {/if} {capture assign=i}{$i+1}{/capture} {/foreach}
Past Surgical H {assign var=i value=1} {foreach $allpastsurgical as $myallpastsurgical} {if $i == 1 } {$myallpastsurgical.name} {else} ,{$myallpastsurgical.name} {/if} {capture assign=i}{$i+1}{/capture} {/foreach}
Past Gynecological {assign var=i value=1} {foreach $allphpastgynecological as $myallphpastgynecological} {if $i == 1 } {$myallphpastgynecological.name} {else} ,{$myallphpastgynecological.name} {/if} {capture assign=i}{$i+1}{/capture} {/foreach}
Past ART {assign var=i value=1} {foreach $allphpastart as $myallphpastart} {if $i == 1 } {$myallphpastart.name} {else} ,{$myallphpastart.name} {/if} {capture assign=i}{$i+1}{/capture} {/foreach}
Family H {assign var=i value=1} {foreach $allphfamily as $myallphfamily} {if $i == 1 } {$myallphfamily.name} {else} ,{$myallphfamily.name} {/if} {capture assign=i}{$i+1}{/capture} {/foreach}
{if !empty($allexmination)} {if $programSetting->displaydoctorname eq 1}{/if} {foreach $allexmination as $myallexmination} {if $programSetting->displaydoctorname eq 1} {/if} {/foreach}
Examination
Date WT. HT. BMI BP pulse Head & neck Chest & heart Abdomen Pelvis ExtremitisDoctor
{$myallexmination.examinationdate} {$myallexmination.weight} {$myallexmination.height} {$myallexmination.bmi} {$myallexmination.pulse} {$myallexmination.headandneck} {$myallexmination.chestandheart} {$myallexmination.abdomen} {$myallexmination.pelvis} {$myallexmination.extremitis}{$myallexmination.docname}
{/if} {if !empty($allsemen)} {if $programSetting->displaydoctorname eq 1}{/if} {foreach $allsemen as $semen} {if $programSetting->displaydoctorname eq 1} {/if} {if $programSetting->displaydoctorname eq 1} {/if} {/foreach}
Semen
Date Count MotilityA MotilityA+B Normal Pus cells NotesDoctor
{$semen.sdate} {$semen.count} {$semen.motilitya} {$semen.motilityab} {$semen.normal} {$semen.puscell} {$semen.notes}{$semen.docname}
{if !empty($semen.normaltype)} Normal {/if}
{/if} {if !empty($allhsg)} {if $programSetting->displaydoctorname eq 1}{/if} {foreach $allhsg as $hsg} {if $programSetting->displaydoctorname eq 1} {/if} {/foreach}
HSG
Date Uterus R.tube L.tube Smear NotesDoctor
{$hsg.sdate} {$hsg.uterus} {$hsg.rtube} {$hsg.ltube} {$hsg.smear} {$hsg.notes}{$hsg.docname}
{/if} {if !empty($allustv)} {if $programSetting->displaydoctorname eq 1}{/if} {foreach $allustv as $ustv} {if $programSetting->displaydoctorname eq 1} {/if} {/foreach}
US/TVS
Date Uterus R.adnexa L.adnexa Pelvis NotesDoctor
{$ustv.sdate} {$ustv.uterus} {$ustv.radnexa} {$ustv.ladnexa} {$ustv.pelvis} {$ustv.notes}{$ustv.docname}
{/if} {if !empty($alllaparoscopy)} {if $programSetting->displaydoctorname eq 1}{/if} {foreach $alllaparoscopy as $lap} {if $programSetting->displaydoctorname eq 1} {/if} {/foreach}
LAPAROSCOPY
Date Uterus R.adnexa L.adnexa Pelvis NotesDoctor
{$lap.sdate} {$lap.uterus} {$lap.radnexa} {$lap.ladnexa} {$lap.pelvis} {$lap.notes}{$lap.docname}
{/if} {if !empty($allhysteroscopy)} {if $programSetting->displaydoctorname eq 1}{/if} {foreach $allhysteroscopy as $hyst} {if $programSetting->displaydoctorname eq 1} {/if} {/foreach}
HYSTEROSCOPY
Date Cervix Uterine Cavity R.Ostium L.Ostium NotesDoctor
{$hyst.sdate} {$hyst.cervix} {$hyst.uterine} {$hyst.rostium} {$hyst.lostium} {$hyst.notes}{$hyst.docname}
{/if} {if !empty($allmrict)} {if $programSetting->displaydoctorname eq 1}{/if} {foreach $allmrict as $mri} {if $programSetting->displaydoctorname eq 1} {/if} {/foreach}
MRI/CT
Date Uterus R.adnexa L.adnexa Pelvis NotesDoctor
{$mri.sdate} {$mri.uterus} {$mri.radnexa} {$mri.ladnexa} {$mri.pelvis} {$mri.notes}{$mri.docname}
{/if} {if !empty($allhormon)} {if $programSetting->displaydoctorname eq 0}{/if} {if $programSetting->displaydoctorname eq 0} {/if} {foreach $allhormon as $hormon} {if $programSetting->displaydoctorname eq 0} {/if} {/foreach}
HORMONES
Date FSH LH PRL E2 AMH FreeT TotalT P4 TSH T3 T4 DHEAS DHT B.HCG InhibinB ASD NotesDoctor
mIU/ml mIU/ml ng/ml pg/ml ng/ml pg/ml ng/dl ng/ml uIU/ml ng/ml ug/dl ug/dl ng/ml mIU/ml pg/ml ng/ml
{$hormon.sdate} {$hormon.fsh} {$hormon.lh} {$hormon.prl} {$hormon.etwo} {$hormon.amh} {$hormon.freet} {$hormon.totalt} {$hormon.pfour} {$hormon.tsh} {$hormon.tthree} {$hormon.tfour} {$hormon.dheas} {$hormon.dht} {$hormon.bhcg} {$hormon.inhibinb} {$hormon.asd} {$hormon.notes}{$hormon.docname}
{/if} {if !empty($allpathology)} {if $programSetting->displaydoctorname eq 1}{/if} {foreach $allpathology as $path} {if $programSetting->displaydoctorname eq 1} {/if} {/foreach}
PATHOLOGY
Date Cytology HistopathologyDoctor
{$path.sdate} {$path.cytology} {$path.histopathology}{$path.docname}
{/if} {if !empty($allgyna)} {if $programSetting->displaydoctorname eq 1}{/if} {foreach $allgyna as $gyna_obj} {if $programSetting->displaydoctorname eq 1} {/if} {/foreach}
Gyna Visits
Date Complaint Diagnosis NotesDoctor
{$gyna_obj.gynadate} {$gyna_obj.complaint} {$gyna_obj.diagnosistxt} {$gyna_obj.notes}{$gyna_obj.docname}
{/if} {if !empty($allgynaUS)} {foreach $allgynaUS as $us } {/foreach}
Folliculometry
Date Day Endo Uterus Cervix OVARY Lt OVARY Rt LTovary Rtovary {if $programSetting->displaydoctorname eq 1}Doctor{/if}
l w v l w v l w v l w v name Length Width Volume Name Length Width Volume
{$us->date} {$us->day} {$us->endo} {$us->uterusl} {$us->uterusw} {$us->uterusv} {$us->cervixl} {$us->cervixw} {$us->cervixv} {$us->ovrayll} {$us->ovraylw} {$us->ovraylv} {$us->ovrayrl} {$us->ovrayrw} {$us->ovraylv} {foreach $us->focilsl as $fo} {/foreach}
{$fo->name} {$fo->length} {$fo->width} {$fo->volume}
{foreach $us->focilsr as $fo} {/foreach}
{$fo->name} {$fo->length} {$fo->width} {$fo->volume}
{if $programSetting->displaydoctorname eq 1} {$us->doctorname}{/if}
{/if} {if !empty($idates)} {foreach $idates as $inv} {/foreach}
investigation
Wife Husband
{$inv.date} {foreach $inv.investsw as $invest} {$invest->invname}: {if !empty($invest->investresult)} {$invest->investresult} {else} --- {/if}, {/foreach} {foreach $inv.investsh as $invest} {$invest->invname}: {if !empty($invest->investresult)} {$invest->investresult} {else} --- {/if}, {/foreach}
{/if} {if !empty($dates)} {foreach $dates as $date} {/foreach}
Treatment
Wife Husband
{$date["date"]} {if !empty($date["drugdos"])} {$date["drugdos"]} {/if} {if !empty($date["drugtype"])} {$date["drugtype"]} {/if}
{/if} {if !empty($allObj)}
Antenatal Visits
{assign var = h value = 1} {foreach $allObj as $mainObj} {if !empty($mainObj->antvisit) || !empty($mainObj->ttt) || !empty($mainObj->Us) || !empty($mainObj->lab)} {if !empty($mainObj->antvisit)}
Pregnancy No. {$h}
{if $ProgramesettingData->diagnosshow == 0} {/if} {if $programSetting->displaydoctorname eq 1}{/if} {foreach $mainObj->antvisit as $myObject} {if $ProgramesettingData->diagnosshow == 0} {/if} {if $programSetting->displaydoctorname eq 1} {/if} {/foreach}
Date W ComplaintDiagnosisWt Bp NotesDoctor
{$myObject.antenaldate} {$myObject.w} {$myObject.complaint}{$myObject.diagnosisid}{$myObject.wt} {$myObject.bp} {$myObject.notes}{$myObject.doctorname}
{/if} {if !empty($mainObj->ttt)} {foreach $mainObj->ttt as $date} {/foreach}
TTT
Wife Husband
{$date["date"]} {if !empty($date["drugdos"])}{$date["drugdos"]} {/if} {if !empty($date["drugtype"])}{$date["drugtype"]} {/if}
{/if} {if !empty($mainObj->Us)} {assign var=i value=1} {foreach $mainObj->Us as $aUs } {if $programSetting->displaydoctorname eq 1} {/if} {capture assign=i}{$i+1}{/capture} {/foreach}
US
Date N(GA) GS CRL FHR BPD FL Placenta AI FWT Notes {if $programSetting->displaydoctorname eq 1}Doctor{/if}
{$aUs.date} {$aUs.nga} {$aUs.gs} {$aUs.crl} {$aUs.fhr} {$aUs.bpd} {$aUs.fl} {$aUs.placenta} {$aUs.ai} {$aUs.fwt} {$aUs.notes}{$aUs.doctorname}
{/if} {if !empty($mainObj->lab)} {foreach $mainObj->lab as $inv} {assign var = i value = i+1} {/foreach}
Lab
Wife Husband
{$inv.date} {foreach $inv.investsw as $invest} {$invest->invname}: {if !empty({$invest->investresult})}{$invest->investresult}{else} --- {/if} , {/foreach} {foreach $inv.investsh as $invest} {$invest->invname}: {if !empty({$invest->investresult})}{$invest->investresult}{else} --- {/if} , {/foreach}
{/if} {/if} {assign var = h value = $h+1} {/foreach} {/if}