<div class="page-content-wrapper" id="mydiv" {if $newPage > 0 } style="page-break-after: always;"  {/if}>
    <h4  class="enfnt bold underline txtc" >Royal Fertility center   </h4>     
    <h4  class="enfnt bold underline txtc" > Case Summary   </h4>     

    <div class="col-md-12">

        <table  cellpadding="2">

            <tr>
                <th rowspan="7"  style="width: 11%;">
                    <span class="vertical  txtc" style="margin-left: 30px;" > Personal History</span>
                </th>
                <td colspan="3">
                    <span>Date of current marriage :  </span>
                    <span>{$patient->mirragefromdate}</span>
                </td>
            </tr>

            <tr>
                <th rowspan="3" style="width: 3%;">Wife</th>
                <td style="width: 50%;">  
                    <span> Name : </span> 
                    <span>{$patient->wifename}  </span>   
                </td>
                <td style="width: 40%;"> 
                    <span>Occupation :  </span>  
                    <span>{$patient->wifejob}  </span>   
                </td>
            </tr>

            <tr>
                <td> 
                    <span> Age :  </span>
                    <span> {$wAge} </span> 
                </td>
                <td> 
                    <span>Special Habits :  </span>  
                    <span>{$phpersonal->personal_habits}  </span>   
                </td>
            </tr>

            <tr>
                <td> 
                    <span> Pr . Marriage :</span>  
                    <span>{$phpersonal->present_marriage}  </span> 
                </td>
                <td> 
                    <span> Offspring's :  </span> 
                    <span> {$phpersonal->offsprings} </span>  
                </td>
            </tr>

            <tr>
                <th rowspan="3" >Husband</th>
                <td> 
                    <span>Name : </span> 
                    <span> {$patient->husdandname} </span>  
                </td>
                <td> 
                    <span>Occupation :  </span>  
                    <span>{$patient->husbandjob}  </span>   
                </td>
            </tr>

            <tr>
                <td> 
                    <span>Age :  </span>
                    <span> {$hAge}  </span>
                </td>
                <td> 
                    <span>Special Habits :   </span>  
                    <span> {$phpersonal->hus_personal_habits} </span>  
                </td>
            </tr>

            <tr>
                <td> 
                    <span> Pr . Marriage : </span> 
                    <span> {$phpersonal->hus_present_marriage} </span>
                </td>
                <td> 
                    <span> Offspring's : </span>
                    <span> {$phpersonal->hus_offsprings} </span>  
                </td>
            </tr>
            <tr>
                <th>  Menstrual History</th>
                <td colspan="2">
                    <span> Rhythm , Frequency : </span>  
                    <span>  {$phmenstrual->duration}  -  {$phmenstrual->length}  -  {$phmenstrual->phregularity}  -  
                        {$phmenstrual->phamount}  -   {$phmenstrual->phdysmenorrhoea} </span>
                </td>
                <td> 
                    <span>L.M.P :   </span>
                    <span> {$phmenstrual->phlMP}</span>  
                </td>
            </tr>
        </table> 

        <table class="tb1"  cellpadding="2">
            <tr>
                <th   {if  $AbortiondataCount > 0 }rowspan="4" {else} rowspan="3"rowspan="3" {/if}  style="width: 11%;">  Obstetric   History</th>

                <td>
                    <span> G : </span>  
                    <span>{$myallobsteric} </span>
                </td>
                <td>
                    <span> P :</span>
                    <span>{$pcounter} </span> 
                </td>
                <td> 
                    <span> C.S : </span>  
                    <span> {$cscounter}</span>  
                </td>
                <td>  
                    <span> AB : </span>  
                    <span>{$abcounter} </span> 
                </td>
                <td> 
                    <span> Ectopic : </span> 
                    <span>{$Ectopiccounter} </span>
                </td>
                <td>
                    <span> V.mole : </span> 
                    <span> {$vmodelcounter}</span> 
                </td>

            </tr>

            <tr>
                <td colspan="5"> 
                    <span>Abnormal Deliveries  :  </span> 
                    <span>  {$cscounter}</span>
                </td>
                <td colspan="1"> 
                    <span> Date Of Last Delivery  : </span> 
                    <span>{$lastCsDelivery}  </span>  
                </td>
            </tr>

            <tr>
                <td colspan="6"> 
                    <span>Abortions: </span>
                    <span>   {$abcounter}  </span> 
                </td>
            </tr>

            {if  $AbortiondataCount > 0 }
            <tr>
                <td colspan="2">  </td>
                <td colspan="4"> 
                    <table   cellpadding="2" >
                        {foreach $Abortiondata as $abortion }
                        <tr>
                            <td> 
                                <span>  Gestational age : </span>  
                                <span>  {$abortion.obstrduration}   </span>  
                            </td>
                            <td> 
                                <span> Date Of  Abortion : </span> 
                                <span>{$abortion.obsdate} </span>   
                            </td>
                        </tr>
                        {/foreach}

                    </table>
                </td>
            </tr>
            {/if} 
        </table>

        <table class="tb1"  cellpadding="2" >
            <tr>
                <th rowspan="9" style="width: 11%;">  Past   History</th>
                <td class="underline">Wife : </td>
            </tr>

            <tr>
                <td>
                    <span>Medical  : </span> 
                    <span> {$medical} </span>   
                </td>
            </tr>

            <tr>
                <td> 
                    <span>General Surgery :   </span> 
                    <span>{$surgical} </span> 
                </td>
            </tr>

            <tr>
                <td style="border-bottom: 1px solid black;" > 
                    <span> Gynecological  Surgery :</span> 
                    <span> {$gynecological}</span>
                </td>
            </tr>

            <tr>
                <td class="underline">
                    <span> Husband : </span> 
                    <span> </span>
                </td>
            </tr>

            <tr>
                <td>
                    <span>Medical  : </span> 
                    <span> {$hus_medical} </span>   
                </td>
            </tr>

            <tr>
                <td style="border-bottom: 1px solid black;" > 
                    <span>General Surgery :   </span> 
                    <span>{$hus_surgical} </span> 
                </td>
            </tr>
        </table>

        <table class="tb1"  cellpadding="2" >
            <tr>
                <th rowspan="9" style="width: 11%;">  Family   History</th>
                <td class="underline">Wife : </td>
            </tr>

            <tr>
                <td style="border-bottom: 1px solid black;" > 
                    <span> {$family} </span>   
                </td>
            </tr>

            <tr>
                <td class="underline">
                    <span> Husband : </span> 
                </td>
            </tr>

            <tr>
                <td style="border-bottom: 1px solid black;" > 
                    <span>{$hus_family} </span> 
                </td>
            </tr>
        </table>

        <table class="tb1 break"  cellpadding="2">
            <tr>
                <th  style="width: 11%;">
                    <span> Sexual   History </span> 
                </th>
                <td> 
                    <span> Continuous  / Interrupted : </span>
                    <span>  {$phsexual->sexual_type} </span>
                </td>
            </tr>
        </table>

        <table  cellpadding="2" style="border-bottom: 10px solid black;">
            <tr>
                <th  style="width: 11%;" rowspan="18">
                    <span class="vertical  txtc" style="margin-left: 30px;" > Investigation </span> 
                </th>
                <td colspan="4" style="border-right: none;"> 
                    <span> Semen analysis  : </span>
                    <span> </span>
                </td>
                <td style="border-left:  none;"> 
                    <span > Date  : </span>
                    <span > {$semen->sdate}</span>
                </td>
            </tr>

            <tr>
                <td> 
                    <span>  Total count : </span>
                </td>
                <td colspan="4"> 
                    <span> {$semen->count}</span>
                </td>
            </tr>

            <tr>
                <td> 
                    <span>  Concentration : </span>
                </td>
                <td colspan="4"> 
                    <span>{$semen->concentration}</span>
                </td>
            </tr>

            <tr>
                <td style=" width: 18%;"> 
                    <span>  Mobility  : </span>
                </td>
                <td style=" width: 15%;border-right: none;"> 
                    <span>  Total  : </span>
                </td>
                <td style="border-left:  none;"> 
                    <span>{$semen->motilityab}</span>
                </td>
                <td style=" width: 15%;border-right: none;"> 
                    <span>  Progressive  : </span>
                </td>
                <td style=" width: 35%;border-left:  none;"> 
                    <span>{$semen->motilitya}</span>
                </td>
            </tr>

            <tr>
                <td> 
                    <span>  Normal  Forms : </span>
                </td>
                <td colspan="4"> 
                    <span> {$semen->normal}</span>
                </td>
            </tr>

            <tr>
                <td> 
                    <span>  Abnormal Forms : </span>
                </td>
                <td colspan="4"> 
                    <span> {$semen->abnormal}</span>
                </td>
            </tr>

            <tr>
                <th colspan="2" style="border-right: none;"> 
                    <span style="float: left;"> Past hx. Of testicular biobsy  : </span>
                </th>
                <td colspan="3" style="border-left:  none;"> 
                    <span> {$phpasthx}</span>
                </td>
            </tr>

            <tr>
                <th colspan="2" style="border-right: none;"> 
                    <span style="float: left;"> Hormones  : </span>
                    <span> </span>
                </th>
                <td colspan="3" style="border-left:  none;"> 
                    <span > </span>
                    <span > </span>
                </td>
            </tr>

            <tr>
                <td colspan="3"> 
                    <span> Serum TSH : </span>
                    <span>  {$hormon->tsh} </span>
                </td>

                <td colspan="2"> 
                    <span> Day 3 serum E2 : </span>
                    <span>  {$hormon->etwo} </span>
                </td>
            </tr>

            <tr>
                <td colspan="3"> 
                    <span> Serum Prolactin : </span>
                    <span>  {$hormon->prl} </span>
                </td>

                <td colspan="2"> 
                    <span> Day 3 serum FSH : </span>
                    <span>  {$hormon->fsh} </span>
                </td>
            </tr>

            <tr>
                <td colspan="3"> 
                    <span> Serum LH : </span>
                    <span>  {$hormon->lh} </span>
                </td>

                <td colspan="2"> 
                    <span>  Serum AMH : </span>
                    <span>  {$hormon->amh} </span>
                </td>
            </tr>

            <tr>
                <th> 
                    <span style="float: left;"> TVS  : </span>
                    <span> </span>
                </th>
                <td  colspan="4"> 
                    {if  $ustv->sdate }  <span > Date : </span><span >{$ustv->sdate}   ,    </span>  {/if}
                    {if  $ustv->uterus }  <span > Uterus : </span><span >{$ustv->uterus}   ,    </span>  {/if}
                    {if  $ustv->radnexa } <span >R.adnexa :   </span><span >{$ustv->radnexa}  ,   </span> {/if}
                    {if  $ustv->ladnexa } <span > L.adnexa : </span><span >{$ustv->ladnexa}   ,  </span> {/if}
                    {if  $ustv->pelvis } <span >Pelvis  :  </span><span >{$ustv->pelvis}  ,   </span> {/if}
                    {if  $ustv->notes } <span >Notes  :  </span><span >{$ustv->notes}     </span> {/if}
                </td>
            </tr>

            <tr>
                <th> 
                    <span style="float: left;"> HSG  : </span>
                    <span> </span>
                </th>
                <td  colspan="4"> 
                    {if  $hsg->sdate }  <span > Date : </span><span >{$hsg->sdate}   ,    </span>  {/if}
                    {if  $hsg->uterus }  <span > Uterus : </span><span >{$hsg->uterus}   ,    </span>  {/if}
                    {if  $hsg->rtube } <span >R.tube :   </span><span >{$hsg->rtube}  ,   </span> {/if}
                    {if  $hsg->ltube } <span > L.tube : </span><span >{$hsg->ltube}   ,  </span> {/if}
                    {if  $hsg->smear } <span >Smear  :  </span><span >{$hsg->smear}  ,   </span> {/if}
                    {if  $hsg->notes } <span >Notes  :  </span><span >{$hsg->notes}     </span> {/if}
                </td>
            </tr>

            <tr>
                <th> 
                    <span style="float: left;"> Laparoscopy  : </span>
                    <span> </span>
                </th>
                <td  colspan="4"> 
                    {if  $laparoscopy->sdate }  <span > Date : </span><span >{$laparoscopy->sdate}   ,    </span>  {/if}
                    {if  $laparoscopy->uterus }  <span > Uterus : </span><span >{$laparoscopy->uterus}   ,    </span>  {/if}
                    {if  $laparoscopy->radnexa } <span >R.adnexa :   </span><span >{$laparoscopy->radnexa}  ,   </span> {/if}
                    {if  $laparoscopy->ladnexa } <span > L.adnexa : </span><span >{$laparoscopy->ladnexa}   ,  </span> {/if}
                    {if  $laparoscopy->pelvis } <span >Pelvis  :  </span><span >{$laparoscopy->pelvis}  ,   </span> {/if}
                    {if  $laparoscopy->notes } <span >Notes  :  </span><span >{$laparoscopy->notes}     </span> {/if}
                </td>
            </tr>

            <tr>
                <th> 
                    <span style="float: left;">  Hysteroscopy  : </span>
                    <span> </span>
                </th>
                <td  colspan="4"> 
                    {if  $hysteroscopy->sdate }  <span > Date : </span><span >{$hysteroscopy->sdate}   ,    </span>  {/if}
                    {if  $hysteroscopy->cervix }  <span > Cervix : </span><span >{$hysteroscopy->cervix}   ,    </span>  {/if}
                    {if  $hysteroscopy->uterine } <span >Ut Cavity :   </span><span >{$hysteroscopy->uterine}  ,   </span> {/if}
                    {if  $hysteroscopy->rostium } <span > R.Ostium : </span><span >{$hysteroscopy->rostium}   ,  </span> {/if}
                    {if  $hysteroscopy->lostium } <span >L.Ostium  :  </span><span >{$hysteroscopy->lostium}  ,   </span> {/if}
                    {if  $hysteroscopy->notes } <span >Notes  :  </span><span >{$hysteroscopy->notes}    </span> {/if}
                </td>
            </tr>

            <tr>
                <th> 
                    <span style="float: left;"> Other Investigations   : </span>
                    <span> </span>
                </th>
                <td  colspan="4"> 
                    {if $case_summary == 1 }
                    {$otherInvs}
                    {else}
                    {if  $otherinvestDate}  <span > Date  : </span><span >{$otherinvestDate}   ,    </span>  {/if}
                    {foreach $otherinvest as $data }
                    {if  $data->value }  <span > {$data->investName}  : </span><span >{$data->value}   ,    </span>  {/if}
                    {/foreach}
                    {/if}
                </td>
            </tr>
        </table>

        <table  cellpadding="2" >
            <tr>
                <th colspan="5"> 
                    <span style="float: left;"> Previous Art Cycles   : </span>
                    <span> </span>
                </th>
            </tr>
            <tr>
                <th style="width:11%;">  Types   </th>
                <th style="width:20%;">  No of cycles   </th>
                <th style="width:24%;">  Center   </th>
                <th style="width:20%;">  Date   </th>
                <th style="width:24%;">  Result   </th>
            </tr>

            <tr>
                <th>  IUI   </th>
                <td colspan="4" style="padding: 0">
                    <table>
                        {foreach $iui as $data }
                        <tr>
                            <td style="width:20%;" class="txtc"></td>
                            <td style="width:24%;" class="txtc">{$data->artcenter} </td>
                            <td style="width:20%;" class="txtc">{$data->artyear} </td>
                            <td style="width:24%;" class="txtc">{$data->result} </td>
                        </tr>
                        {/foreach}
                    </table>
                </td>
            </tr>

            <tr style="border-bottom: 10px solid black;">
                <th>  ICSI   </th>
                <td colspan="4" style="padding : 0">
                    <table>
                        {foreach $icsi as $data }
                        <tr>
                            <td style="width:20%;" class="txtc"></td>
                            <td style="width:24%;" class="txtc">{$data->artcenter} </td>
                            <td style="width:20%;" class="txtc">{$data->artyear} </td>
                            <td style="width:24%;" class="txtc">{$data->result} </td>
                        </tr>
                        {/foreach}
                    </table>
                </td>
            </tr>

            <tr>
                <th colspan="5"> 
                    <span style="float: left;"> Final Diagnosis   : </span>
                    <span>  {if $newPage > 0 } {$patient.diagnosis }  {elseif $case_summary == 1 }{$diagnosis}{/if} </span>
                </th>
            </tr>

            <tr>
                <th colspan="5"> 
                    <span style="float: left;"> Recommended Plan of treatment   : </span>
                    <span> {if $case_summary == 1 }{$recommend}{/if}  </span>
                </th>
            </tr>

        </table>
    </div>
</div>

{literal}
<style>

    table{
        width: 100%;
        border-spacing: 0px;
        border: none;
    }

    .tb1 td , .noborder {
        border: none;
    }

    .tb1{
        border-bottom: 1px solid black;
        border-right: 1px solid black;
    }

    td , th{
        border: 1px solid black;
        padding: 3px;
    }

    p3{    padding: 3px}

    .txtc{    text-align:  center !important; }

    th{    text-align:  center !important; }

    .bold { font-weight: bold;}

    .underline { text-decoration: underline;}

    .vertical{
        writing-mode: vertical-rl;
        -webkit-transform:rotate(180deg);
        -moz-transform:rotate(180deg);
        -o-transform: rotate(180deg);
        -ms-transform:rotate(180deg);
        transform: rotate(180deg);
        white-space:nowrap;
    }

    @media print {
        #patient_profile_print {
            transform: scale(.9);
        }

        .break { page-break-after: always;}


        table{
            width: 100%;
            border-spacing: 0px;
            border: none;
        }

        .tb1 td , .noborder {
            border: none;
        }

        .tb1{
            border-bottom: 1px solid black;
            border-right: 1px solid black;
        }

        td , th{
            border: 1px solid black;
            padding: 3px;
        }

        p3{    padding: 3px}

        .txtc{    text-align:  center !important; }

        th{    text-align:  center !important; }

        td{    text-align:  left !important; }


        .bold { font-weight: bold;}

        .underline { text-decoration: underline;}

        .vertical{
            writing-mode: vertical-rl;
            -webkit-transform:rotate(180deg);
            -moz-transform:rotate(180deg);
            -o-transform: rotate(180deg);
            -ms-transform:rotate(180deg);
            transform: rotate(180deg);
            white-space:nowrap;
        }
    }
</style>
{/literal}

<style>

    @page {ldelim}
    size: auto;
    margin-top: {$programesetting->above2}cm !important;
    margin-bottom: {$programesetting->buttom2}cm !important;
    {rdelim}

    .arbfnt {ldelim}
    font-size: {$programesetting->fontsizear2}px !important;
    {rdelim}

    .enfnt {ldelim}
    font-size: {$programesetting->fontsizeen2}px !important;
    {rdelim}

    #content, #page {
        width: 100%; 
        margin: 0; 
        float: none;
    }


    /* Unnötige Elemente ausblenden für den Druck */

    #header-widgets, nav, aside.mashsb-container, 
    .sidebar, .mashshare-top, .mashshare-bottom, 
    .content-ads, .make-comment, .author-bio, 
    .heading, .related-posts, #decomments-form-add-comment, 
    #breadcrumbs, #footer, .post-byline, .meta-single, 
    .site-title img, .post-tags, .readability 
    {
        display: none;
    }



</style>