<div class="page-content-wrapper" id="mydiv">
    <h4 class="enfnt bold underline txtc">Pediatric Patient Assessment </h4>
    <div class="col-md-12">
        <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
            <tr>
                <td style="width: 23%;font-weight: bold;">Date of Visit : </td>
                <td style="width: 15%;"> {$ped_assessment.assessment_date} </td>
                <td style="width: 23%;font-weight: bold;">Age: </td>
                <td> {$age} </td>
            </tr>
            <tr>
                <td style="width: 30%;font-weight: bold;" class="underline">Complain & Present History : </td>
                <td colspan="3"> {$ped_assessment.comp_present_history} </td>
            </tr>
            <tr>
                <td>Cyanotic :</td>
                <td> {$ped_assessment.cyanotic} </td>
                <td>Chest infection :</td>
                <td> {$ped_assessment.chest_infection} </td>
            </tr>
            <tr>
                <td>Exercise tolerance :</td>
                <td> {$ped_assessment.exercise_tolerance} </td>
                <td>Chest pain :</td>
                <td> {$ped_assessment.chest_pain} </td>
            </tr>
            <tr>
                <td>Palpitations :</td>
                <td> {$ped_assessment.palpitations} </td>
                <td>Hospitalization :</td>
                <td> {$ped_assessment.hospitalization} </td>
            </tr>
            <tr>
                <td>Edema :</td>
                <td> {$ped_assessment.edema} </td>
                <td>Others:</td>
                <td> {$ped_assessment.ped_comp_others} </td>
            </tr>
            <tr>
                <td colspan="4">
                    <h4 class="enfnt bold underline"> Pregnancy History and Prenatal Testing:</h4>
                </td>
            </tr>
            <tr>
                <td>Genetic syndromes: </td>
                <td colspan="3"> {$ped_assessment.gen_syndromes} </td>
            </tr>
            <tr>
                <td>Maternal illness: </td>
                <td colspan="3"> {$ped_assessment.maternal_illness} </td>
            </tr>
            <tr>
                <td>Family history: </td>
                <td colspan="3">
                    <input type="checkbox" {if $ped_assessment.ped_cardiac_disease eq 1}checked{/if}>
                    <label>Congenital cardiac diseases</label>
                    <input type="checkbox" {if $ped_assessment.ped_sudden_death eq 1}checked{/if}>
                    <label>sudden death</label>
                </td>
            </tr>
            <tr>
                <td>Others: </td>
                <td colspan="3"> {$ped_assessment.ped_others} </td>
            </tr>

            <tr>
                <td colspan="4">
                    <h4 class="enfnt bold underline"> Past History:</h4>
                </td>
            </tr>
            <tr>
                <td>Medical: </td>
                <td colspan="3"> {$ped_assessment.medical} </td>
            </tr>
            <tr>
                <td>Surgical: </td>
                <td colspan="3"> {$ped_assessment.surgical} </td>
            </tr>
            <tr>
                <td>Co-morbidities: </td>
                <td colspan="3"> {$ped_assessment.ped_comorbidities} </td>
            </tr>

            <tr>
                <td>Allergies: </td>
                <td colspan="3"> {$ped_assessment.allergies}</td>
            </tr>

            <tr>
                <td style="width: 30%;font-weight: bold;" class="underline">Previous investigations: </td>
                <td> {$ped_assessment.prev_invst} </td>
            </tr>
            <tr>
                <td style="width: 30%;font-weight: bold;" class="underline">General Examination: </td>
            </tr>
            <tr>
                <td>General condition:</td>
                <td> {$ped_assessment.gen_condition} </td>
                <td>Mental status:</td>
                <td> {$ped_assessment.mental_status} </td>
            </tr>
            <tr>
                <td>Built:</td>
                <td> {$ped_assessment.built} </td>
                <td>Decubitus:</td>
                <td> {$ped_assessment.decubitus} </td>
            </tr>
            <tr>
                <td>Facies:</td>
                <td> {$ped_assessment.facies} </td>
                <td>Complexion:</td>
                <td> {$ped_assessment.complexion} </td>
            </tr>
            <tr>
                <td>Pulsation:</td>
                <td> {$ped_assessment.pulsation} </td>
                <td>Lymph nodes:</td>
                <td> {$ped_assessment.lymph_nodes} </td>
            </tr>
            <tr>
                <td>Upper limb:</td>
                <td> {$ped_assessment.upper_limb} </td>
                <td>Lower limb:</td>
                <td> {$ped_assessment.lower_limb} </td>
            </tr>
        </table>
        <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
            <tr>
                <td style="width: 30%;font-weight: bold;" class="underline">Cardiac Auscultation: </td>
                <td>S1:</td>
                <td>{$ped_assessment.card_s1}</td>
                <td>S2:</td>
                <td>{$ped_assessment.card_s2}</td>
                <td>Murmurs:</td>
                <td>{$ped_assessment.murmurs}</td>
            </tr>
            <tr>
                <td style="width: 30%;font-weight: bold;" class="underline">Chest Auscultation: </td>
                <td colspan="6">{$ped_assessment.chest_auscultation}</td>
            </tr>
        </table>

        <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
            <tr>
                <td style="width: 30%;font-weight: bold;" class="underline">ECG: </td>
                <td> {$ped_assessment.ecg} </td>
                <td style="width: 30%;font-weight: bold;" class="underline">CXR: </td>
                <td> {$ped_assessment.cxr} </td>
            </tr>
            {if $ped_assessment.assessment_note}
            <tr>
                <td style="width: 30%;font-weight: bold;" class="underline">Notes: </td>
                <td rowspan="3"> {$ped_assessment.assessment_note} </td>
            </tr>
            {/if}
        </table>
        {if $medCount > 0}
        <h4 class="enfnt bold underline">Current Medication</h4>
        <table>
            <thead>
                <tr>
                    <th>Drug</th>
                    <th>Dosage frequency</th>
                    <th>Route</th>
                    <th>Duration</th>
                </tr>
            <tbody>
                {foreach $allMedData as $data }
                <tr>
                    <td>{$data.drugName}</td>
                    <td>{$data.drugdos}</td>
                    <td>{$data.route}</td>
                    <td>{$data.duration}</td>
                </tr>
                {/foreach}
            </tbody>
            </thead>
        </table>
        {/if}
        <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
            <tr>
                <td style="width: 30%;font-weight: bold;" class="underline">Provisional Diagnosis: </td>
                <td> {$ped_assessment.prov_diagnos} </td>
            </tr>
            <tr>
                <td style="width: 30%;font-weight: bold;" class="underline">Plan: </td>
                <td> {$ped_assessment.plan} </td>
            </tr>
        </table>
        <h4 class="enfnt bold underline">Patient was educated about his/her diagnosis, Plan of Care and follow up </h4>
        <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
            <tr>
                <td class="underline bold">Referral</td>
                <td>{$ref_dr}</td>
            </tr>
        </table>
        <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
            <tr>
                <td style="font-weight: bold;">Physician name </td>
                <td>{$phys.name}</td>
                <td style="font-weight: bold;">Physician Signature: </td>
                <td></td>
            </tr>
        </table>
        {if $carePlanCount > 0}
        <h4 class="enfnt bold txtc">Physician care plan – خطة رعاية الطبيب</h4>
        <table>
            <thead>
                <tr>
                    <th>Date</th>
                    <th>Needs</th>
                    <th>Intervention</th>
                    <th>Outcome</th>
                    <th>Timeframe</th>
                    <th>Dr Signature</th>
                </tr>
            </thead>
            <tbody>
                {foreach $allCarePlanData as $data }
                <tr>
                    <td>{$data.care_plan_date}</td>
                    <td>{$data.needs}</td>
                    <td>{$data.intervention}</td>
                    <td>{$data.outcome}</td>
                    <td>{$data.timeframe}</td>
                    <td></td>
                </tr>
                {/foreach}
            </tbody>
        </table>
        {/if}
    </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>