<div class="page-content-wrapper" id="mydiv" >
    <h4  class="enfnt bold underline txtc" >الهيئة العامة للمستشفيات والمعاهد التعليمية    </h4>     
    <h4  class="enfnt bold underline txtc" > Operation Form  - صحيفة العمليات  </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;">Consultant Name : </td>
                <td> {$exit_summary.visitDoctor}     </td>
            </tr>
        </table>

        <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
            <tr>
                <td style="width: 30%;font-weight: bold;"> Final Diagnosis : </td>
                <td> {$exit_summary.final_diagnosis}     </td>
            </tr>
            <tr>
                <td style="width: 30%;font-weight: bold;">Hospital Course : </td>
                <td> {$exit_summary.hospital_course}     </td>
            </tr>
            <tr>
                <td style="width: 30%;font-weight: bold;">Investigations : </td>
                <td> {$exit_summary.investigation}     </td>
            </tr>
            <tr>
                <td style="width: 30%;font-weight: bold;">Additional Consulation : </td>
                <td>{$exit_summary.consultation}     </td>
            </tr>
            <tr>
                <td style="width: 30%;font-weight: bold;">Operation / Procedure Done : </td>
                <td>{$exit_summary.op_procedure}     </td>
            </tr>
            <tr>
                <td style="width: 30%;font-weight: bold;">Ancillary Services Provided : </td>
                <td> {$exit_summary.servies}      </td>
            </tr>

        </table>

        <h4  class="enfnt bold underline " > Patient's Medications : </h4>     

        <table style="width: 98%;margin: 5px auto;" cellpadding="2">
            <thead>
                <tr>
                    <th style="width: 33%; font-weight: bold;text-align: center !important ;">      Before admission    </th>
                    <th style="width: 34%; font-weight: bold;text-align: center !important ;">      During hospital admission   </th>
                    <th style="width: 33%; font-weight: bold;text-align: center !important ;">      Upon discharge   </th>
                </tr>

                <tr>
                    <td>{$exit_summary.med_before} </td>
                    <td>{$exit_summary.med_during} </td>
                    <td>{$exit_summary.med_upon} </td>
                </tr>
            </thead>
        </table>

        <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
            <tr>
                <td style="width: 30%;font-weight: bold;"> Discharge : </td>
                <td> {$exit_summary.discharge}     </td>
            </tr>
            <tr>
                <td style="width: 30%;font-weight: bold;">Transferred To : </td>
                <td> {$exit_summary.trans_to}     </td>
            </tr>
        </table>

        <h4  class="enfnt bold " > Discharge & Follow-up Instructions : </h4>    

        <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
            <tr>
                <td style="width: 30%;font-weight: bold;">Diet : </td>
                <td> {$exit_summary.diet}     </td>
            </tr>
            <tr>
                <td style="width: 30%;font-weight: bold;">Activity : </td>
                <td>{$exit_summary.activity}     </td>
            </tr>
            <tr>
                <td style="width: 30%;font-weight: bold;">Follow-up Appointment : </td>
                <td>{$exit_summary.followup_app}     </td>
            </tr>
            <tr>
                <td style="width: 30%;font-weight: bold;">Discharge Physician Name : </td>
                <td> {$exit_summary.dis_physician}      </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>
            </tr>
            <tr>
                <td style="width: 30%;font-weight: bold;">Date  : </td>
                <td>  {$date}</td>
            </tr>
        </table>

        <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
            <tr>
                <td style="width: 30%; font-weight: bold;text-align: center !important ;"> توقيع المريض   </td>
                <td style="font-weight: bold;">كلا من المريض وعائلته تم إعلامهم بكافة تعليمات الخروج ومواعيد المراجعات بالعيادة الخارجية  </td>
            </tr>
        </table>
    </div>
</div>

{literal}
<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>