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

        .noborder tr {
            height: 8mm;
        }

        .txtl {
            text-align: left !important;
        }

        .bold {
            font-weight: bold;
        }

        .h1 {
            font-weight: 900;
            font-size: 28px;
        }

        .h3 {
            font-weight: 700;
            font-size: 24px;
        }

        .col-md-12 {
            width: 100% !important;
        }

        .col-md-4 {
            width: 33% !important;
        }

        .col-md-8 {
            width: 66% !important;
        }

        .break {
            page-break-after: always;
        }
    }
</style>

<style>
    table {
        font-family: arial, sans-serif;
        border-collapse: collapse;
        width: 100%;

    }


    td:not(.patient_data),
    th {
        border: 1px solid #000000;
        text-align: center;
        padding: 2px;
    }

    tr:nth-child(even) {
        background-color: #dddddd;
    }
</style>






<style>
    @page {
        ldelim
    }

    size: auto;

    margin-top: {
        $ProgramesettingData->above
    }

    cm;

    margin-bottom: {
        $ProgramesettingData->buttom
    }

    cm;

        {
        rdelim
    }

    .arbfnt {
        ldelim
    }

    font-size: {
        $ProgramesettingData->fontsizear
    }

    px !important;

        {
        rdelim
    }

    .enfnt {
        ldelim
    }

    font-size: {
        $ProgramesettingData->fontsizeen
    }

    px !important;

        {
        rdelim
    }
</style>


<div class="page-content-wrapper" id="mydiv">

    <div class="row">
        <div class="portlet-title">
            <div class="caption">
                <h2 style="text-align:center; text-decoration: underline; ">Semen Processing for Intrauterine
                    Insemination (IUI)</h2>
            </div>
        </div>
        <table class="noborder">
            <tr>
                <td class="patient_data">
                    <label> Patient Name :</label>

                </td>
                <td class="patient_data">
                    {$husbandname}
                </td>
                <td class="patient_data">
                    <label> &nbsp; Date :</label>
                </td>
                <td class="patient_data">
                    {$semen_processing.semen_date}
                </td>
            </tr>
            <tr>
                <td class="patient_data">

                    <label>Wife Name :</label>
                </td>

                <td class="patient_data">
                    {$wifename}

                </td>
                <td class="patient_data">

                    <label>Referred Dr :</label>
                </td>
                <td class="patient_data">
                    {$ref_dr}

                </td>
            </tr>
        </table>
    </div>

    <div class="row">
        <div class="portlet-title">
            <div class="caption">
                <h4 style="text-decoration: underline; font-weight: bold;">Physical Parameter</h3>
            </div>
        </div>
        <table style="width: 100%;margin: 5px auto;border-collapse: unset;">
            <thead>
                <tr>
                    <th style="border-width: 4px; border-style: double;">Parameter</th>
                    <th style="border-width: 4px; border-style: double;">Value</th>
                    <th style="border-width: 4px; border-style: double;">Reference</th>
                </tr>
            </thead>

            <tbody>
                <tr>
                    <td>Volume</td>
                    <td>
                        {$semen_processing.volume} ml
                    </td>
                    <td> 2-6 ml </td>
                </tr>

                <tr>
                    <td>PH</td>
                    <td>
                        {$semen_processing.ph}
                    </td>
                    <td> 7.2-7.6</td>
                </tr>

                <tr>
                    <td>Liquefaction</td>
                    <td>
                        {$semen_processing.liquefaction}
                    </td>
                    <td> </td>
                </tr>

                <tr>
                    <td>Viscosity</td>
                    <td>
                        {$semen_processing.viscosity}
                    </td>
                    <td> Average </td>
                </tr>
            </tbody>
        </table>
    </div>

    <div class="row">
        <div class="portlet-title">
            <div class="caption">
                <h4 style="text-decoration: underline; font-weight: bold;">Microscopic Examination</h3>
            </div>
        </div>
        <table style="width: 100%;margin: 5px auto;border-collapse: unset;">
            <thead>
                <tr style="text-decoration: underline;">
                    <th style="border-width: 4px; border-style: double;">Parameter</th>
                    <th style="border-width: 4px; border-style: double;">Value</th>
                    <th style="border-width: 4px; border-style: double;">Reference value: WHO 2010</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>Sperm Count (mill/ml)</td>
                    <td>
                        {$semen_processing.sperm_count}
                    </td>
                    <td> 15mill/ml</td>
                </tr>

                <tr>
                    <td>Total Motility (PR+NP,%)</td>
                    <td>
                        {$semen_processing.mobility}
                        <span class="wds25">%</span>
                    </td>
                    <td> ≥ 40 %</td>
                </tr>

                <tr>
                    <td>Progressive Motility (PR,%)</td>
                    <td>
                        {$semen_processing.pr_motility}
                        <span class="wds25">%</span>
                    </td>
                    <td> ≥ 32 %</td>
                </tr>
                {if $semen_processing.grade_a}
                <tr>
                    <td>Grade A (%)</td>
                    <td>
                        {$semen_processing.grade_a}<span class="wds25">%</span>
                    </td>
                    <td> >25 % </td>
                </tr>
                {/if}
                {if $semen_processing.grade_b}
                <tr>
                    <td>Grade B (%)</td>
                    <td>
                        {$semen_processing.grade_b}<span class="wds25">%</span>
                    </td>
                    <td> >25 % </td>
                </tr>
                {/if}
                {if $semen_processing.grade_ab}
                <tr>
                    <td>Grade A+B (%)</td>
                    <td>
                        {$semen_processing.grade_ab}<span class="wds25">%</span>
                    </td>
                    <td> >50 % </td>
                </tr>
                {/if}
                {if $semen_processing.grade_c}
                <tr>
                    <td>Grade C (%)</td>
                    <td>
                        {$semen_processing.grade_c}<span class="wds25">%</span>
                    </td>
                    <td> </td>
                </tr>
                {/if}
                {if $semen_processing.grade_d}
                <tr>
                    <td>Grade D (%)</td>
                    <td>
                        {$semen_processing.grade_d}<span class="wds25">%</span>
                    </td>
                    <td> </td>
                </tr>
                {/if}
                {if $semen_processing.morphology}
                <tr>
                    <td>Morphology (Nor. %)</td>
                    <td>
                        {$semen_processing.morphology}<span class="wds25">%</span>
                    </td>
                    <td> >15 % </td>
                </tr>
                {/if}
                <tr>
                    <td>Abnornmal forms (%)</td>
                    <td>
                        {$semen_processing.abnormal_forms} %
                    </td>
                    <td> ≤ 96 % </td>
                </tr>

                <tr>
                    <td>Agglutination</td>
                    <td>
                        {if $semen_processing.agglutination} {$semen_processing.agglutination} {else}NIL{/if}
                    </td>
                    <td> ≤ 10 % </td>
                </tr>

                <tr>
                    <td>Pus Cells (HPF)_</td>
                    <td>
                        {$semen_processing.pus_cells}
                    </td>
                    <td> 2-3</td>
                </tr>

                <tr>
                    <td>Spermatogenic Cells (HPF)</td>
                    <td>
                        {$semen_processing.spermatogenic}
                    </td>
                    <td>1-2</td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="row">
        {if $semen_processing.swim eq 1}
        <input type="checkbox" {if $semen_processing.swim eq 1}checked{/if}>
        {/if}
        Swim up &nbsp;
        {if $semen_processing.mini_swim eq 1}
        <input type="checkbox" {if $semen_processing.mini_swim eq 1}checked{/if}>
        {/if}
        Mini Swim up &nbsp;
        {if $semen_processing.sperm_gradient eq 1}
        <input type="checkbox" {if $semen_processing.sperm_gradient eq 1}checked{/if}>
        {/if}
        Sperm gradient &nbsp;
        {if $semen_processing.sperm_wash eq 1}
        <input type="checkbox" {if $semen_processing.sperm_wash eq 1}checked{/if}>
        {/if}
        Sperm wash
    </div>
    <div class="row">
        <table class="noborder ">
            <tr>
                <td style="text-decoration: underline; text-align: left; width: 1%;">Media:</td>
                <td style="text-align: left;">{$freezingmedia}</td>
                <td style="text-decoration: underline; text-align: left; width: 1%;">Catheter:</td>
                <td style="text-align: left;">{$catheterName}</td>
            </tr>
        </table>
    </div>

    <div class="row">
        <div class="portlet-title">
            <div class="caption">
                <h4 style="text-decoration: underline; font-weight: bold;">Semen Parameter after Processing:</h3>
            </div>
        </div>
        <table style="width: 100%;margin: 5px auto;border-collapse: unset;">
            <thead>
                <tr>
                    <th style="border-width: 4px; border-style: double;">Volume</th>
                    <th style="border-width: 4px; border-style: double;">Count (mill/ml) </th>
                    <th style="border-width: 4px; border-style: double;">Motility (%) </th>
                    <th style="border-width: 4px; border-style: double;">Progressive motility% </th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>
                        {$semen_processing.volume_after}
                    </td>
                    <td>{$semen_processing.count_after} million</td>
                    <td>{$semen_processing.motility_after} %</td>
                    <td>{$semen_processing.pr_motility_after} +</td>
                </tr>
            </tbody>
        </table>
    </div>

    <div class="row">
        <label style="text-decoration: underline;">Climician: dr/ </label> {$semen_processing.clinician_name}
        <br />
        <label style="text-decoration: underline;">Embryologist: dr/ </label> {$semen_processing.embryologist_name}
        <br />
        <label style="float: right;">Signature</label>
    </div>

</div>