<div class="page-content-wrapper" id="mydiv" >
    <h4  class="enfnt bold underline txtc" >Royal Fertility center   </h4>     
    <h4  class="enfnt bold underline txtc" > Obstetric 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>

        </table> 

        <table  cellpadding="2">
            <tr>
                <th style="width: 11%;" >  Complaint</th>
                <td>
                    <span>  {$complaint}  </span>
                </td>
            </tr>
        </table>

        <table  cellpadding="2">
            <tr>
                <th style="width: 11%;" rowspan="3" >  Menstrual History</th>
                <td>
                    <span> Menarche : </span>  
                    <span>  {$phmenstrual->menarche}  </span>
                </td>
                <td> 
                    <span>L.M.P :   </span>
                    <span> {$phmenstrual->phl_mp}</span>  
                </td>
            </tr>

            <tr>
                <td>
                    <span> Rhythm : </span>  
                    <span>    {$phmenstrual->phregularity}  </span>
                </td>
                <td> 
                    <span>E.D.D: :   </span>
                    <span> {$phmenstrual->edd}</span>  
                </td>
            </tr>

            <tr>
                <td colspan="2">
                    <span> Frequency : </span>  
                    <span>  {$phmenstrual->duration}  /  {$phmenstrual->length}  Days</span>
                </td>
            </tr>
        </table>

        <table class="tb1"  cellpadding="2" style="border :  1px solid black;">
            <tr>
                <th  style="width: 11%;" rowspan="12">  Obstetric   History</th>

                <td>
                    <span> G : </span>  
                    <span>{$obstetric_case->g} </span>
                </td>
                <td>
                    <span> P :</span>
                    <span>{$obstetric_case->p} </span> 
                </td>
                <td>  
                    <span> A : </span>  
                    <span>{$obstetric_case->ab} </span> 
                </td>
            </tr>

            <tr>
                <th  colspan="3"> Previous Deliveries</th>
            </tr>

            <tr>
                <td  colspan="3"> 
                    <span> FTNDs :</span>
                    <span>{$obstetric_case->ftnds}</span> 
                </td>
            </tr>

            <tr>
                <td  colspan="3"> 
                    <span> Preterm Labors :</span>
                    <span>{$obstetric_case->preterm}</span> 
                </td>
            </tr>

            <tr>
                <td  colspan="3"> 
                    <span> Still Births :</span>
                    <span>{$obstetric_case->still_birth}</span> 
                </td>
            </tr>

            <tr>
                <td  colspan="3"> 
                    <span> Difficult Labors  :</span>
                    <span>{$obstetric_case->difficults}</span> 
                </td>
            </tr>

            <tr>
                <td  colspan="3"> 
                    <span> C.S :</span>
                    <span>{$obstetric_case->cs}</span> 
                </td>
            </tr>

            <tr>
                <td  colspan="3"> 
                    <span> Date Of Last Delivery :</span>
                    <span>{$obstetric_case->last_delivery}</span> 
                </td>
            </tr>

            <tr>
                <th  colspan="3"> Previous Pregnancies</th>
            </tr>
            <tr>
                <td  colspan="3"> 
                    <span> 
                        {if  $obstetric_case->prev_preg  == 1 } Not complicated 
                        {else if  $obstetric_case->prev_preg  == 2 } Complicated  {/if}
                    </span>
                    <span> ( {$obstetric_case->prev_preg_note} ) </span> 
                </td>
            </tr>

            <tr>
                <th  colspan="3"> Previous Puerperium</th>
            </tr>

            <tr>
                <td  colspan="3"> 
                    <span> 
                        {if  $obstetric_case->prev_puer  == 1 } Not complicated 
                        {else if  $obstetric_case->prev_puer  == 2 } Complicated  {/if}
                    </span>
                    <span> ( {$obstetric_case->prev_puer_note} ) </span> 
                </td>
            </tr>

        </table>

        <table class="tb1"  cellpadding="2" style="border :  1px solid black;">
            <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 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>

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

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

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


        </table>

        <table class="tb1"  cellpadding="2" style="border :  1px solid black;">
            <tr>
                <th rowspan="4" style="width: 11%;">  Present   History</th>
                <td></td>
            </tr>

            <tr>
                <td style="border-bottom: 1px solid black;" > 
                    <span> Complaint Analysis : </span>  <br>
                    <span> {$complaint_analysis} {$complaint_analysis_note}</span>
                </td>
            </tr>

            <tr>
                <td style="border-bottom: 1px solid black;" > 
                    <span> Drug Symptoms of High Risk Pregnancy (Warning Symptoms)  :</span> <br>
                    <span> {$symptoms} {$symptoms_note}</span>
                </td>
            </tr>

            <tr>
                <td style="border-bottom: 1px solid black;" > 
                    <span> Symptoms of Approaching Labor :</span> <br>
                    <span> {$approaching}</span>
                </td>
            </tr>
        </table>


        <table class="tb1"  cellpadding="2" style="border :  1px solid black;">
            <caption style=" background-color: #DDD;"> Examination</caption>
            <tr>
                <th rowspan="5" style="width: 11%;">General Examination </th>
                <td></td>
            </tr>

            <tr>
                <td style="border-bottom: 1px solid black;" > 
                    <span> General condition : </span>  <br>
                    <span> Appearance: N/</span> 
                    <span> {$obstetric_case->appearance}</span>  &nbsp;&nbsp;&nbsp;
                    <span> Gait: N/</span> 
                    <span> {$obstetric_case->gaint}</span>
                </td>
            </tr>

            <tr>
                <td style="border-bottom: 1px solid black;" > 
                    <span> Vital signs : </span>  <br>
                    <span> BP : </span> 
                    <input type="text" class="bp_mask" value="{$sign->bp}" disabled style="border: none;background: inherit ;width: 50px;"/>
                    <span>mmHg</span>  &nbsp;&nbsp;&nbsp;
                    <span> Pulse : </span> 
                    <span> {$sign->pulse} bpm</span>  &nbsp;&nbsp;&nbsp;
                    <span> RR : </span> 
                    <span> {$sign->rr} /min</span>  &nbsp;&nbsp;&nbsp;
                    <span> Temp : </span> 
                    <span> {$sign->temp} C</span>  
                </td>
            </tr>

            <tr>
                <td > 
                    <span> Systemic examniation : </span>  <br>
                    <span> Head:  N/</span> 
                    <span> {$obstetric_case->head}</span>  &nbsp;&nbsp;&nbsp;
                    <span> Neck:  N/</span> 
                    <span> {$obstetric_case->neck}</span>  &nbsp;&nbsp;&nbsp;
                    <span> Breast: N/</span> 
                    <span> {$obstetric_case->breast}</span>
                </td>
            </tr>

            <tr>
                <td> 
                    <span> Chest:  N/</span> 
                    <span> {$obstetric_case->chest}</span>  &nbsp;&nbsp;&nbsp;
                    <span> Limbs:  N/</span> 
                    <span> {$obstetric_case->limbs}</span>  &nbsp;&nbsp;&nbsp;
                    <span> Back: N/</span> 
                    <span> {$obstetric_case->back}</span>
                </td>
            </tr>
        </table>


        <table class="tb1"  cellpadding="2"  style="border :  1px solid black;">
            <tr>
                <th rowspan="10" style="width: 11%;">Abdominal Examination </th>
                <td></td>
            </tr>

            <tr>
                <td > 
                    <span> Inspection : </span>  <br>
                    <span> Contour: N/</span> 
                    <span> {$obstetric_case->contour}</span>  &nbsp;&nbsp;&nbsp;
                    <span> Skin: N/</span> 
                    <span> {$obstetric_case->skin}</span>  &nbsp;&nbsp;&nbsp;
                    <span> abdominal wall edema: N/</span> 
                    <span> {$obstetric_case->abdominal}</span>  
                </td>
            </tr>

            <tr>
                <td > 
                    <span> Umbilicus: N/</span> 
                    <span> {$obstetric_case->umbilicus}</span>  &nbsp;&nbsp;&nbsp;
                    <span> Subcostal angle: N/</span> 
                    <span> {$obstetric_case->subcostal}</span>  &nbsp;&nbsp;&nbsp;
                    <span> Divarication of recti  : N/</span> 
                    <span> {$obstetric_case->divarication}</span>  
                </td>
            </tr>

            <tr>
                <td > 
                    <span> Pubic hair distribution: N/</span> 
                    <span> {$obstetric_case->hair}</span>  
                </td>
            </tr>


            <tr>
                <td > 
                    <span> Palpation : </span>  <br>
                    <span class="underline"> Superficial palpation  : </span> 
                    <span> {$obstetric_case->superficial}</span>  
                </td>
            </tr>


            <tr>
                <td > 
                    <span class="underline"> Deep palpation   : </span> 
                    <span> {$obstetric_case->deep_palpation}</span>  
                </td>
            </tr>


            <tr>
                <td > 
                    <span class="underline"> Obstetric palpation : </span> 
                </td>
            </tr>

            <tr>
                <td> 
                    <span> Fundal level : </span> 
                    <span> {$obstetric_case->fundal_level}</span>  &nbsp;&nbsp;&nbsp;
                    <span> Fundal grip : </span> 
                    <span> {$obstetric_case->fundal_grip}</span>  &nbsp;&nbsp;&nbsp;
                    <span> Umbilical grip : </span> 
                    <span> {$obstetric_case->umbilical_grip}</span>
                </td>
            </tr>

            <tr>
                <td> 
                    <span>  1st pelvic grip : </span> 
                    <span> {$obstetric_case->pelvicf}</span>  &nbsp;&nbsp;&nbsp;
                    <span> 2nd pelvic grip : </span> 
                    <span> {$obstetric_case->pelvics}</span>  
                </td>
            </tr>

            <tr>
                <td> 
                    <span> Auscultation : </span>  <br>
                    <span>  FHS : </span> 
                    <span> {$obstetric_case->fhs}  /bpm</span>  
                </td>
            </tr>
        </table>


        <table  cellpadding="2" >
            <caption style=" background-color: #DDD;"> Pelvic score (Bishop score)</caption>
            <tr>
                <th style="width: 11%;">  Local Examination</th>
                <td>
                    <table>
                        <thead>
                            <tr>
                                <th class="wds20">   </th>  
                                <th class="wds20"> 0     </th> 
                                <th class="wds20"> 1     </th>  
                                <th class="wds20"> 2     </th>  
                                <th class="wds20">3     </th>  
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <th>Cx. consistency</th>
                                <td class="txtc">{$obstetric_case_ex->consistency0} </td>
                                <td class="txtc">{$obstetric_case_ex->consistency1} </td>
                                <td class="txtc">{$obstetric_case_ex->consistency2} </td>
                                <td class="txtc">{$obstetric_case_ex->consistency3} </td>
                            </tr>

                            <tr>
                                <th>Cx. effacement</th>
                                <td class="txtc">{$obstetric_case_ex->effacement0} </td>
                                <td class="txtc">{$obstetric_case_ex->effacement1} </td>
                                <td class="txtc">{$obstetric_case_ex->effacement2} </td>
                                <td class="txtc">{$obstetric_case_ex->effacement3} </td>
                            </tr>

                            <tr>
                                <th>Cx. dilatation</th>
                                <td class="txtc">{$obstetric_case_ex->dilatation0} </td>
                                <td class="txtc">{$obstetric_case_ex->dilatation1} </td>
                                <td class="txtc">{$obstetric_case_ex->dilatation2} </td>
                                <td class="txtc">{$obstetric_case_ex->dilatation3} </td>
                            </tr>

                            <tr>
                                <th>Cx. position</th>
                                <td class="txtc">{$obstetric_case_ex->position0} </td>
                                <td class="txtc">{$obstetric_case_ex->position1} </td>
                                <td class="txtc">{$obstetric_case_ex->position2} </td>
                                <td class="txtc">{$obstetric_case_ex->position3} </td>
                            </tr>

                            <tr>
                                <th>Station of head</th>
                                <td class="txtc"  >{$obstetric_case_ex->station0} </td>
                                <td class="txtc" >{$obstetric_case_ex->station1} </td>
                                <td class="txtc" >{$obstetric_case_ex->station2} </td>
                                <td class="txtc" >{$obstetric_case_ex->station3} </td>
                            </tr>

                            <tr>
                                <th>Score</th>
                                <td class="txtc" colspan="4">
                                    {if  $obstetric_case_ex->score == 1 } 
                                    <span>   > 9  </span>  &nbsp;&nbsp;&nbsp;
                                    {/if}

                                    {if  $obstetric_case_ex->score == 2 } 
                                    <span>      5 - 9   </span>  &nbsp;&nbsp;&nbsp;
                                    {/if}

                                    {if  $obstetric_case_ex->score == 3 } 
                                    <span>             < 4   </span>  &nbsp;&nbsp;&nbsp;
                                    {/if}

                                </td>
                            </tr>
                        </tbody>
                    </table>


                    <table class="tb1"  cellpadding="2" >
                        <tr>
                            <td> 
                                <span> Condition of fetal membranes:  </span> 
                                {if  $obstetric_case_ex->intact == 1 } 
                                <span>  Intact  </span>  &nbsp;&nbsp;&nbsp;
                                {/if}
                                {if  $obstetric_case_ex->ruptured == 1 } 
                                <span>  ruptured  </span>  &nbsp;&nbsp;&nbsp;
                                {/if}
                            </td>
                        </tr>

                        <tr>
                            <td> 
                                <span> Fetal presentation:  </span> 
                                {if  $obstetric_case_ex->vertex == 1 } 
                                <span>  Vertex  </span>  &nbsp;&nbsp;&nbsp;
                                {/if}
                                {if  $obstetric_case_ex->face == 1 } 
                                <span>  Face  </span>  &nbsp;&nbsp;&nbsp;
                                {/if}
                                {if  $obstetric_case_ex->brow == 1 } 
                                <span>  Brow  </span>  &nbsp;&nbsp;&nbsp;
                                {/if}
                                {if  $obstetric_case_ex->parietal_bone == 1 } 
                                <span>  Parietal bone(asynclitism)  </span>  &nbsp;&nbsp;&nbsp;
                                {/if}
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>


        <table class="tb1"  cellpadding="2" style="border :  1px solid black;" >
            <caption style=" background-color: #DDD;"> Obs. U\S:</caption>
            <tbody>
                <tr>
                    <td > 
                        <span class="bold"> No : </span> 
                        <span> {$obstetric_case_ex->obs_no}</span>  &nbsp;&nbsp;&nbsp;
                        <span class="bold"> Viability : </span> 
                        <span> {$obstetric_case_ex->viability}</span>  &nbsp;&nbsp;&nbsp;
                        <span class="bold"> Fetal gender  : </span> 
                        <span> {$obstetric_case_ex->fetal_gender}</span>  &nbsp;&nbsp;&nbsp;

                    </td>
                </tr>
                <tr>
                    <td >
                        <span class="bold"> Presentation : </span> 
                        <span> {$obstetric_case_ex->presentation}</span>  &nbsp;&nbsp;&nbsp;
                        <span class="bold" > Liquor : </span> 
                        <span> {$obstetric_case_ex->liquor}</span>  
                    </td>
                </tr>

                <tr>
                    <td > 
                        <span class="bold"> Placenta : </span> 
                        <span > Site : </span> 
                        <span> {$obstetric_case_ex->placenta_site}</span>  &nbsp;&nbsp;&nbsp;
                        <span> Abnormalites : </span> 
                        <span> {$obstetric_case_ex->placenta_abnormalites}</span> 
                    </td>
                </tr>

                <tr>
                    <td> 
                        <span class="bold"> Fetal Biometry  : </span>  <br>
                    </td>
                </tr>

                <tr>
                    <td> 
                        <span> BPD : </span> 
                        <span> {$obstetric_case_ex->bpd} W</span>  &nbsp;&nbsp;&nbsp;
                        <span> FL : </span> 
                        <span> {$obstetric_case_ex->fl} W</span>  &nbsp;&nbsp;&nbsp;
                        <span> AC : </span> 
                        <span> {$obstetric_case_ex->ac} W</span>  &nbsp;&nbsp;&nbsp;
                    </td>
                </tr>

                <tr>
                    <td > 
                        <span> Average G.A : </span> 
                        <span> {$obstetric_case_ex->ga} W</span>   &nbsp;&nbsp;&nbsp;
                        <span> EFW : </span> 
                        <span> {$obstetric_case_ex->efw} gm</span>  

                    </td>
                </tr>
            </tbody>
        </table>

        <table class="tb1"  cellpadding="2" style="border :  1px solid black;" >
            <caption style=" background-color: #DDD;"> Doppler U/S</caption>
            <tbody>
                <tr>
                    <td style="width:50%;">  <span class="bold"> Umbilical Artery</span>  <br></td>
                    <td style="width:50%;"> <span class="bold"> Middle Cerebral Artery<</span>  <br></td>
                </tr>
                <tr>
                    <td > 
                        <span> PI : </span> 
                        <span> {$obstetric_case_ex->pl} </span>   
                    </td>
                    <td > 
                        <span> PSV : </span> 
                        <span> {$obstetric_case_ex->psv} </span>   
                    </td>
                </tr>

                <tr>
                    <td > 
                        <span> RI : </span> 
                        <span> {$obstetric_case_ex->rl} </span>   
                    </td>
                    <td>

                    </td>
                </tr>

                <tr>
                    <td > 
                        <span> S/D ratio  : </span> 
                        <span> {$obstetric_case_ex->sd_ratio} </span>   
                    </td>
                    <td>

                    </td>
                </tr>

            </tbody>
        </table>

    </div>
</div>

{literal}
<style>

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

    caption{
        text-align: center;
        background-color: #DDD;
    }

    .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;}

        caption{
            text-align: center;
            background-color: #DDD;
        }


        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>