<div class="page-content-wrapper" id="mydiv" >
    <h4  class="enfnt bold underline txtc" >الهيئة العامة للمستشفيات والمعاهد التعليمية    </h4>     
    <h4  class="enfnt bold underline txtc" > Pre-Anaesthetic Record ( Physician )  -  نموذج التخدير قبل الجراحة   </h4>     

    <hr style="border: 1px solid black;     margin: 5px 0; ">
    <div class="col-md-12">

        <table style="width: 98%;margin: 5px auto;    direction: rtl;    text-align: right;" cellpadding="2" class="noborder">
            <tr>
                <td style="width: 25%;font-weight: bold;text-align: right !important;"> اسم المريض :   </td>
                <td style="width: 25%;text-align: right !important;"> {$name}     </td>
                <td style="width: 25%;font-weight: bold;text-align: right !important;"> رقم الملف :   </td>
                <td style="width: 25%;text-align: right !important;"> {$statusNo}    </td>
            </tr>
            <tr>
                <td style="width: 25%;font-weight: bold;text-align: right !important;"> النوع  / السن     : </td>
                <td style="width: 25%; direction:ltr ;text-align: right !important;"> {$age}   / {$sex}      </td>
                <td style="width: 25%;font-weight: bold;text-align: right !important;"> القسم      : </td>
                <td style="width: 25%;text-align: right !important;">  {$deptName} </td>
            </tr>
            <tr>
                <td style="width: 25%;font-weight: bold;text-align: right !important;">  السرير   / رقم الغرفة         : </td>
                <td style="width: 25%;text-align: right !important;"> {$bedNo}   / {$roomNo}     </td>
                <td style="width: 25%;font-weight: bold;text-align: right !important;"> تاريخ دخول القسم     : </td>
                <td style="width: 25%;text-align: right !important;">   {$visitDate}   </td>
            </tr>
        </table>
    </div>

    <hr style="border: 1px solid black;  margin: 5px 0;">

    <div class="col-md-12">
        <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
            <tr>
                <td style="width: 30%;font-weight: bold;">Wt : </td>
                <td> {$exmination.weight}    KG  </td>

                <td style="width: 30%;font-weight: bold;">Ht : </td>
                <td> {$exmination.height}    M  </td>
            </tr>
        </table>

        <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
            <tr>
                <td style="width: 30%;font-weight: bold;">  Diagnosis : </td>
                <td> {$pre_diagnoses}     </td>
            </tr>
            <tr>
                <td style="width: 30%;font-weight: bold;">Proposed Operation  : </td>
                <td> {$operations}     </td>
            </tr>
            <tr>
                <td style="width: 30%;font-weight: bold;">History : </td>
                <td> {$pre_anaesthetic.pre_history}     </td>
            </tr>
        </table>

        <h4  class="enfnt bold underline " > Drug Therapy before surgery : </h4>     

        <table style="width: 98%;margin: 5px auto;" cellpadding="2">
            <thead>
                <tr>
                    <th style="width: 5%; font-weight: bold;text-align: center !important ;">      No    </th>
                    <th style="width: 31%; font-weight: bold;text-align: center !important ;">      Drug    </th>
                    <th style="width: 31%; font-weight: bold;text-align: center !important ;">      Dose   </th>
                    <th style="width: 33%; font-weight: bold;text-align: center !important ;">      Duration    </th>
                </tr>
                {assign var=m value=1}
                {foreach $drug_therapy as $drug} 
                <tr>
                    <td>{$m} </td>
                    <td>{$drug.drug} </td>
                    <td>{$drug.dose} </td>
                    <td>{$drug.duration} </td>
                </tr>
                {capture assign=m}{$m+1}{/capture}
                {/foreach}
            </thead>
        </table>

        <h4  class="enfnt bold underline " style="width: 49%;float: left;display: inline-block;"> Physical Examination : </h4>    
        <h4  class="enfnt bold underline " style="width: 49%;float: right;display: inline-block;"> Investigation : </h4>    


        <table style="width: 49%;margin: 5px auto;float: left;display: inline-block;" cellpadding="2" class="noborder">
            <tr>
                <td style="width: 50%;font-weight: bold;">  General Condition : </td>
                <td> {$pre_anaesthetic.general_cond}     </td>
            </tr>
            <tr>
                <td style="width: 50%;font-weight: bold;">Airway Assessment  : </td>
                <td> {$pre_anaesthetic.airway}     </td>
            </tr>
            <tr>
                <td style="width: 50%;font-weight: bold;"> Blood Pressure  : </td>
                <td>  
                    <div class="input-group">
                        <input type="text" class=" bp_mask txtc"  style="width: 50%;"
                               disabled  value="{$exmination->b_p}"/>
                        <span>mmHg</span>
                    </div>
                </td>
            </tr>
            <tr>
                <td style="width: 50%;font-weight: bold;">Heart Rate  : </td>
                <td> {$exmination->pulse}   /min  </td>
            </tr>
            <tr>
                <td style="width: 50%;font-weight: bold;">Temperature  : </td>
                <td> {$exmination->temp}     </td>
            </tr>

            <tr>
                <td style="width: 50%;font-weight: bold;"> Chest and heart  : </td>
                <td> {$exmination->chestandheart}     </td>
            </tr>
            <tr>
                <td style="width: 50%;font-weight: bold;">Abdomen  : </td>
                <td> {$exmination->abdomen}     </td>
            </tr>



        </table>

        <table style="width: 49%;margin: 5px auto; float: right;display: inline-block;" cellpadding="2" class="noborder">
            <tr>
                <td style="width: 50%;font-weight: bold;">ECG  : </td>
                <td> {$pre_anaesthetic.ecg}     </td>
            </tr>

            <tr>
                <td style="width: 50%;font-weight: bold;">Chest X-ray   : </td>
                <td> {$pre_anaesthetic.chest_xray}     </td>
            </tr>

            <tr>
                <td style="width: 50%;font-weight: bold;">Abdomen  Ultra sound  : </td>
                <td> {$pre_anaesthetic.abdomen_ultra}     </td>
            </tr>

            <tr>
                <td style="width: 50%;font-weight: bold;">Echocardiography  : </td>
                <td> {$pre_anaesthetic.echo}     </td>
            </tr>

            <tr>
                <td style="width: 50%;font-weight: bold;">Angiography  : </td>
                <td> {$pre_anaesthetic.angiography}     </td>
            </tr>

            <tr>
                <td style="width: 50%;font-weight: bold;">Carotid Duplex  : </td>
                <td> {$pre_anaesthetic.carotid_duplex}     </td>
            </tr>

            <tr>
                <td style="width: 50%;font-weight: bold;">Radial Duplex   : </td>
                <td> {$pre_anaesthetic.radial_duplex}     </td>
            </tr>

            <tr>
                <td style="width: 50%;font-weight: bold;">Comments  : </td>
                <td> {$pre_anaesthetic.comments}     </td>
            </tr>
        </table>

        <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
            <tr>
                <td style="width: 65%;font-weight: bold;">The patient is safe candidate for anaesthesia type :  </td>
                <td> {$exmination->anaesthesia_type}     </td>
            </tr>
        </table>

        <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
            <tr>
                <td style="width: 30%; font-weight: bold;"> Signature :   </td>
                <td></td>
                <td style="width: 30%;font-weight: bold;">Date  : </td>
                <td>  {$date}</td>
            </tr>
        </table>
    </div>
</div>

{literal}
<script>
    $(".bp_mask").inputmask("999/999", {
        autoUnmask: true});
</script>
<style>

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

    tr {
        line-height: 25px;
    }

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

        tr {
            line-height: 25px;
        }

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