
{assign var="d" value="1"}
{foreach from=$result key=myId item=i}

<table   class="noborder wds98">
    <tr>
        {if $d == 1}

        <td class="wds75">
            <h4 class="underline bold catName">{$myId} Report </h4>    
        </td>

        <td class="wds25">
            <h4  class="underline bold catName">Reference Range</h4>    
        </td>

        {else}
        <td class="wds100">
            <h4 class="underline bold catName">{$myId} Report </h4>    
        </td>
        {/if}
    </tr>
</table>

{foreach $i as $inv}

<table   class="noborder wds98">


    {if $inv->special_inv_type == 1  }  

    <tr>
        <td colspan="2" class="wds100">
            <ul style="margin-left: -25px;">
                <li style="list-style: none;">
                    <span class="underline bold">
                        {$inv->invname} 
                    </span>
                </li>
            </ul>

        </td>
    </tr>

    {if $inv->blood->hgb != Null && $inv->blood->hgb != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds45" style=" padding-left: 10%;">
                <li style="list-style: disc;"> Hgb (Hemoglobin)    
                    <span class="right">:</span> 
                </li> 
            </ul>


            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->blood->hgb_low == 1 ||  $inv->blood->hgb_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->blood->hgb}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->blood->hgb_invest_units}  </li> 
            </ul>

            <ul class="col-med wds5">
                <li style="list-style: none;">  {if $inv->blood->hgb_low == 1 } L  {else if $inv->blood->hgb_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->blood->hgb_range_txt != Null && $inv->blood->hgb_range_txt  != ''}  
            {$inv->blood->hgb_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->blood->rbc != Null && $inv->blood->rbc != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds45" style=" padding-left: 10%;">
                <li style="list-style: disc;">RBCs ( Red Blood Cells)   
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->blood->rbc_low == 1 ||  $inv->blood->rbc_high == 1 }     <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->blood->rbc}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->blood->rbc_invest_units}  </li> 
            </ul>

            <ul class="col-med wds5">
                <li style="list-style: none;">  {if $inv->blood->rbc_low == 1 } L  {else if $inv->blood->rbc_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->blood->rbc_range_txt != Null && $inv->blood->rbc_range_txt  != ''}  
            {$inv->blood->rbc_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->blood->hct != Null && $inv->blood->hct != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds45" style=" padding-left: 10%;">
                <li style="list-style: disc;">Hct ( Hematocrit)   
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->blood->hct_low == 1 ||  $inv->blood->hct_high == 1 }    <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->blood->hct}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->blood->hct_invest_units}  </li> 
            </ul>

            <ul class="col-med wds5">
                <li style="list-style: none;">  {if $inv->blood->hct_low == 1 } L  {else if $inv->blood->hct_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->blood->hct_range_txt != Null && $inv->blood->hct_range_txt  != ''}  
            {$inv->blood->hct_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->blood->hgbpercent != Null && $inv->blood->hgbpercent != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds45" style=" padding-left: 10%;">
                <li style="list-style: disc;">Hgb %   
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->blood->hgbpercent_low == 1 ||  $inv->blood->hgbpercent_high == 1 }      <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->blood->hgbpercent}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->blood->hgbpercent_invest_units}  </li> 
            </ul>

            <ul class="col-med wds5">
                <li style="list-style: none;">  {if $inv->blood->hgbpercent_low == 1 } L  {else if $inv->blood->hgbpercent_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->blood->hgbpercent_range_txt != Null && $inv->blood->hgbpercent_range_txt  != ''}  
            {$inv->blood->hgbpercent_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->blood->mcv_calc != Null && $inv->blood->mcv_calc != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds45" style=" padding-left: 10%;">
                <li style="list-style: disc;">MCV  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->blood->mcv_calc_low == 1 ||  $inv->blood->mcv_calc_high == 1 }      <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->blood->mcv_calc}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->blood->mcv_calc_invest_units}  </li> 
            </ul>

            <ul class="col-med wds5">
                <li style="list-style: none;">  {if $inv->blood->mcv_calc_low == 1 } L  {else if $inv->blood->mcv_calc_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->blood->mcv_calc_range_txt != Null && $inv->blood->mcv_calc_range_txt  != ''}  
            {$inv->blood->mcv_calc_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->blood->mch_calc != Null && $inv->blood->mch_calc != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds45" style=" padding-left: 10%;">
                <li style="list-style: disc;">MCH  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->blood->mch_calc_low == 1 ||  $inv->blood->mch_calc_high == 1 }      <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->blood->mch_calc}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->blood->mch_calc_invest_units}  </li> 
            </ul>

            <ul class="col-med wds5">
                <li style="list-style: none;">  {if $inv->blood->mch_calc_low == 1 } L  {else if $inv->blood->mch_calc_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->blood->mch_calc_range_txt != Null && $inv->blood->mch_calc_range_txt  != ''}  
            {$inv->blood->mch_calc_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->blood->mchc_calc != Null && $inv->blood->mchc_calc != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds45" style=" padding-left: 10%;">
                <li style="list-style: disc;">MCHC  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->blood->mchc_calc_low == 1 ||  $inv->blood->mchc_calc_high == 1 }         <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->blood->mchc_calc}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->blood->mchc_calc_invest_units}  </li> 
            </ul>

            <ul class="col-med wds5">
                <li style="list-style: none;">  {if $inv->blood->mchc_calc_low == 1 } L  {else if $inv->blood->mchc_calc_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->blood->mchc_calc_range_txt != Null && $inv->blood->mchc_calc_range_txt  != ''}  
            {$inv->blood->mchc_calc_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->blood->rdw != Null && $inv->blood->rdw != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds45" style=" padding-left: 10%;">
                <li style="list-style: disc;">RDW  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->blood->rdw_low == 1 ||  $inv->blood->rdw_high == 1 }        <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->blood->rdw}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->blood->rdw_invest_units}  </li> 
            </ul>

            <ul class="col-med wds5">
                <li style="list-style: none;">  {if $inv->blood->rdw_low == 1 } L  {else if $inv->blood->rdw_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->blood->rdw_range_txt != Null && $inv->blood->rdw_range_txt  != ''}  
            {$inv->blood->rdw_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->blood->plt != Null && $inv->blood->plt != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds45" style=" padding-left: 10%;">
                <li style="list-style: disc;">Plt (Platelet)   
                    <span class="right">:</span> 
                </li> 
            </ul>


            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->blood->plt_low == 1 ||  $inv->blood->plt_high == 1 }        <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->blood->plt}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->blood->plt_invest_units}  </li> 
            </ul>

            <ul class="col-med wds5">
                <li style="list-style: none;">  {if $inv->blood->plt_low == 1 } L  {else if $inv->blood->plt_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->blood->plt_range_txt != Null && $inv->blood->plt_range_txt  != ''}  
            {$inv->blood->plt_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 


    {if $inv->blood->wbc != Null && $inv->blood->wbc != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds45" style=" padding-left: 10%;">
                <li style="list-style: disc;"> WBCs (Leukocytes)
                    <span class="right">:</span> 
                </li> 
            </ul>


            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->blood->wbc_low == 1 ||  $inv->blood->wbc_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->blood->wbc}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->blood->wbc_invest_units}  </li> 
            </ul>

            <ul class="col-med wds5">
                <li style="list-style: none;">  {if $inv->blood->wbc_low == 1 } L  {else if $inv->blood->wbc_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->blood->wbc_range_txt != Null && $inv->blood->wbc_range_txt  != ''}  
            {$inv->blood->wbc_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->blood->mindex != Null && $inv->blood->mindex != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds45" style=" padding-left: 10%;">
                <li style="list-style: disc;">Mentzer Index
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->blood->mindex_low == 1 ||  $inv->blood->mindex_high == 1 }     <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->blood->mindex}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->blood->mindex_invest_units}  </li> 
            </ul>

            <ul class="col-med wds5">
                <li style="list-style: none;">  {if $inv->blood->mindex_low == 1 } L  {else if $inv->blood->mindex_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->blood->mindex_range_txt != Null && $inv->blood->mindex_range_txt  != ''}  
            {$inv->blood->mindex_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    <!------------------------------------------------------------------------------------------------------------------------------>

    <tr>
        <td colspan="2" class="wds100">

            <table style="width: 98% ;margin-left: 8%;"  class="noborder">
                <tr>
                    <td class="wds30 bold"> Differential </td>
                    <td class="wds35 bold txtl">Relative Counts % </td>
                    <td class="bold txtl">Absolute Counts k/ul  </td>
                </tr>
                <tr>
                    <td>
                        <ul class="col-med wds85" style=" padding-left: 15%;">
                            <li style="list-style: disc;"> Neutrophil  <span class="right">:</span>  </li> 
                        </ul>
                    </td>

                    <td class=" txtc">
                        <ul class=" col-med wds25  txtc ">
                            <li style="list-style: none;"> 
                                {if $inv->blood->neutrophil_r_low == 1 ||  $inv->blood->neutrophil_r_high == 1 }   <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                                        {$inv->blood->neutrophil_r}
                                    </div> 
                            </li> 
                        </ul>

                        <ul class="col-med wds8">
                            <li style="list-style: none;">  {if $inv->blood->neutrophil_r_low == 1 } L  {else if $inv->blood->neutrophil_r_high == 1 } H   {/if} </li> 
                        </ul>
                        <ul class=" col-med   txtc ">
                            <li style="list-style: none;"> 
                                {if $inv->blood->neutrophil_r_range_txt != Null && $inv->blood->neutrophil_r_range_txt  != ''}  
                                {$inv->blood->neutrophil_r_range_txt}
                                {/if}  
                            </li> 
                        </ul>
                    </td>

                    <td>
                        <ul class=" col-med wds25  txtc ">
                            <li style="list-style: none;"> 
                                {if $inv->blood->neutrophil_abs_low == 1 ||  $inv->blood->neutrophil_abs_high == 1 }     <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                                        {$inv->blood->neutrophil_abs}
                                    </div> 
                            </li> 
                        </ul>

                        <ul class="col-med wds8">
                            <li style="list-style: none;"> 
                                {if $inv->blood->neutrophil_abs_low == 1 } L  {else if $inv->blood->neutrophil_abs_high == 1 } H   {/if}
                            </li> 
                        </ul>
                        <ul class=" col-med   txtc ">
                            <li style="list-style: none;"> 
                                {if $inv->blood->neutrophil_abs_range_txt != Null && $inv->blood->neutrophil_abs_range_txt  != ''}  
                                {$inv->blood->neutrophil_abs_range_txt}
                                {/if}  
                            </li> 
                        </ul>
                    </td>
                </tr>

                <tr>
                    <td>
                        <ul class="col-med wds85" style=" padding-left: 15%;">
                            <li style="list-style: disc;"> Lymphocytes  <span class="right">:</span>  </li> 
                        </ul>
                    </td>

                    <td class=" txtc">
                        <ul class=" col-med wds25  txtc ">
                            <li style="list-style: none;"> 
                                {if $inv->blood->lymphocytes_r_low == 1 ||  $inv->blood->lymphocytes_r_high == 1 }   <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                                        {$inv->blood->lymphocytes_r}
                                    </div> 
                            </li> 
                        </ul>

                        <ul class="col-med wds8">
                            <li style="list-style: none;">  {if $inv->blood->lymphocytes_r_low == 1 } L  {else if $inv->blood->lymphocytes_r_high == 1 } H   {/if} </li> 
                        </ul>
                        <ul class=" col-med   txtc ">
                            <li style="list-style: none;"> 
                                {if $inv->blood->lymphocytes_r_range_txt != Null && $inv->blood->lymphocytes_r_range_txt  != ''}  
                                {$inv->blood->lymphocytes_r_range_txt}
                                {/if}  
                            </li> 
                        </ul>
                    </td>

                    <td>
                        <ul class=" col-med wds25  txtc ">
                            <li style="list-style: none;"> 
                                {if $inv->blood->lymphocytes_abs_low == 1 ||  $inv->blood->lymphocytes_abs_high == 1 }     <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                                        {$inv->blood->lymphocytes_abs}
                                    </div> 
                            </li> 
                        </ul>

                        <ul class="col-med wds8">
                            <li style="list-style: none;"> 
                                {if $inv->blood->lymphocytes_abs_low == 1 } L  {else if $inv->blood->lymphocytes_abs_high == 1 } H   {/if}
                            </li> 
                        </ul>
                        <ul class=" col-med   txtc ">
                            <li style="list-style: none;"> 
                                {if $inv->blood->lymphocytes_abs_range_txt != Null && $inv->blood->lymphocytes_abs_range_txt  != ''}  
                                {$inv->blood->lymphocytes_abs_range_txt}
                                {/if}  
                            </li> 
                        </ul>
                    </td>
                </tr>

                <tr>
                    <td>
                        <ul class="col-med wds85" style=" padding-left: 15%;">
                            <li style="list-style: disc;"> Monocytes  <span class="right">:</span>  </li> 
                        </ul>
                    </td>

                    <td class=" txtc">
                        <ul class=" col-med wds25  txtc ">
                            <li style="list-style: none;"> 
                                {if $inv->blood->monocytes_r_low == 1 ||  $inv->blood->monocytes_r_high == 1 }   <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                                        {$inv->blood->monocytes_r}
                                    </div> 
                            </li> 
                        </ul>

                        <ul class="col-med wds8">
                            <li style="list-style: none;">  {if $inv->blood->monocytes_r_low == 1 } L  {else if $inv->blood->monocytes_r_high == 1 } H   {/if} </li> 
                        </ul>
                        <ul class=" col-med   txtc ">
                            <li style="list-style: none;"> 
                                {if $inv->blood->monocytes_r_range_txt != Null && $inv->blood->monocytes_r_range_txt  != ''}  
                                {$inv->blood->monocytes_r_range_txt}
                                {/if}  
                            </li> 
                        </ul>
                    </td>

                    <td>
                        <ul class=" col-med wds25  txtc ">
                            <li style="list-style: none;"> 
                                {if $inv->blood->monocytes_abs_low == 1 ||  $inv->blood->monocytes_abs_high == 1 }     <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                                        {$inv->blood->monocytes_abs}
                                    </div> 
                            </li> 
                        </ul>

                        <ul class="col-med wds8">
                            <li style="list-style: none;"> 
                                {if $inv->blood->monocytes_abs_low == 1 } L  {else if $inv->blood->monocytes_abs_high == 1 } H   {/if}
                            </li> 
                        </ul>
                        <ul class=" col-med   txtc ">
                            <li style="list-style: none;"> 
                                {if $inv->blood->monocytes_abs_range_txt != Null && $inv->blood->monocytes_abs_range_txt  != ''}  
                                {$inv->blood->monocytes_abs_range_txt}
                                {/if}  
                            </li> 
                        </ul>
                    </td>
                </tr>

                <tr>
                    <td>
                        <ul class="col-med wds85" style=" padding-left: 15%;">
                            <li style="list-style: disc;"> Eosinophils  <span class="right">:</span>  </li> 
                        </ul>
                    </td>

                    <td class=" txtc">
                        <ul class=" col-med wds25  txtc ">
                            <li style="list-style: none;"> 
                                {if $inv->blood->eosinophils_r_low == 1 ||  $inv->blood->eosinophils_r_high == 1 }   <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                                        {$inv->blood->eosinophils_r}
                                    </div> 
                            </li> 
                        </ul>

                        <ul class="col-med wds8">
                            <li style="list-style: none;">  {if $inv->blood->eosinophils_r_low == 1 } L  {else if $inv->blood->eosinophils_r_high == 1 } H   {/if} </li> 
                        </ul>
                        <ul class=" col-med   txtc ">
                            <li style="list-style: none;"> 
                                {if $inv->blood->eosinophils_r_range_txt != Null && $inv->blood->eosinophils_r_range_txt  != ''}  
                                {$inv->blood->eosinophils_r_range_txt}
                                {/if}  
                            </li> 
                        </ul>
                    </td>

                    <td>
                        <ul class=" col-med wds25  txtc ">
                            <li style="list-style: none;"> 
                                {if $inv->blood->eosinophils_abs_low == 1 ||  $inv->blood->eosinophils_abs_high == 1 }     <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                                        {$inv->blood->eosinophils_abs}
                                    </div> 
                            </li> 
                        </ul>

                        <ul class="col-med wds8">
                            <li style="list-style: none;"> 
                                {if $inv->blood->eosinophils_abs_low == 1 } L  {else if $inv->blood->eosinophils_abs_high == 1 } H   {/if}
                            </li> 
                        </ul>
                        <ul class=" col-med   txtc ">
                            <li style="list-style: none;"> 
                                {if $inv->blood->eosinophils_abs_range_txt != Null && $inv->blood->eosinophils_abs_range_txt  != ''}  
                                {$inv->blood->eosinophils_abs_range_txt}
                                {/if}  
                            </li> 
                        </ul>
                    </td>
                </tr>

                <tr>
                    <td>
                        <ul class="col-med wds85" style=" padding-left: 15%;">
                            <li style="list-style: disc;"> Basophils  <span class="right">:</span>  </li> 
                        </ul>
                    </td>

                    <td class=" txtc">
                        <ul class=" col-med wds25  txtc ">
                            <li style="list-style: none;"> 
                                {if $inv->blood->basophils_r_low == 1 ||  $inv->blood->basophils_r_high == 1 }   <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                                        {$inv->blood->basophils_r}
                                    </div> 
                            </li> 
                        </ul>

                        <ul class="col-med wds8">
                            <li style="list-style: none;">  {if $inv->blood->basophils_r_low == 1 } L  {else if $inv->blood->basophils_r_high == 1 } H   {/if} </li> 
                        </ul>
                        <ul class=" col-med   txtc ">
                            <li style="list-style: none;"> 
                                {if $inv->blood->basophils_r_range_txt != Null && $inv->blood->basophils_r_range_txt  != ''}  
                                {$inv->blood->basophils_r_range_txt}
                                {/if}  
                            </li> 
                        </ul>
                    </td>

                    <td>
                        <ul class=" col-med wds25  txtc ">
                            <li style="list-style: none;"> 
                                {if $inv->blood->basophils_abs_low == 1 ||  $inv->blood->basophils_abs_high == 1 }     <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                                        {$inv->blood->basophils_abs}
                                    </div> 
                            </li> 
                        </ul>

                        <ul class="col-med wds8">
                            <li style="list-style: none;"> 
                                {if $inv->blood->basophils_abs_low == 1 } L  {else if $inv->blood->basophils_abs_high == 1 } H   {/if}
                            </li> 
                        </ul>
                        <ul class=" col-med   txtc ">
                            <li style="list-style: none;"> 
                                {if $inv->blood->basophils_abs_range_txt != Null && $inv->blood->basophils_abs_range_txt  != ''}  
                                {$inv->blood->basophils_abs_range_txt}
                                {/if}  
                            </li> 
                        </ul>
                    </td>
                </tr>
            </table>

        </td>
    </tr>

    {if $inv->blood->comment != Null && $inv->blood->comment != ''}  
    <tr>
        <td class="wds75">
            <ul  class="col-med-ex wds40" style=" margin-left: 5px;"> 
                <li style="list-style: disc;">
                    <span class="underline bold">
                        Comment  :
                    </span>
                </li> 
            </ul>
            <ul class="col-med ">
                <li style="list-style: none;">      {$inv->blood->comment}   </li> 
            </ul>
        </td>
        <td class="wds25"></td>
    </tr>
    {/if} 


    {else if $inv->special_inv_type == 2  }  
    <tr>
        <td colspan="2" class="wds100">
            <ul style="margin-left: -18px;">
                <li style="list-style: none;">
                    <span class="underline bold">
                        {$inv->invname} 
                    </span>
                </li>
            </ul>

        </td>
    </tr>
    <tr>
        <td colspan="2" class="wds100">
            <ul style=" margin-left: 5px;"> 
                <li style="list-style: disc;">
                    <span class="underline bold">
                        Physical Examination :
                    </span>
                </li> 
            </ul>
        </td>
    </tr>

    {if $inv->urine.volume != Null && $inv->urine.volume != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Volume  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.volume_low == 1 ||  $inv->urine.volume_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.volume}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.volume_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.volume_low == 1 } L  {else if $inv->urine.volume_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.volume_range_txt != Null && $inv->urine.volume_range_txt  != ''}  
            {$inv->urine.volume_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.color != Null && $inv->urine.color != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Color  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.color_low == 1 ||  $inv->urine.color_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.color}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.color_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.color_low == 1 } L  {else if $inv->urine.color_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.color_range_txt != Null && $inv->urine.color_range_txt  != ''}  
            {$inv->urine.color_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.odor != Null && $inv->urine.odor != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Odor  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.odor_low == 1 ||  $inv->urine.odor_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.odor}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.odor_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.odor_low == 1 } L  {else if $inv->urine.odor_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.odor_range_txt != Null && $inv->urine.odor_range_txt  != ''}  
            {$inv->urine.odor_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.aspect != Null && $inv->urine.aspect != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Aspect  
                    <span class="right">:</span> 
                </li> 
            </ul>


            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.aspect_low == 1 ||  $inv->urine.aspect_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.aspect}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.aspect_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.aspect_low == 1 } L  {else if $inv->urine.aspect_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.aspect_range_txt != Null && $inv->urine.aspect_range_txt  != ''}  
            {$inv->urine.aspect_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.deposit != Null && $inv->urine.deposit != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Deposit  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.deposit_low == 1 ||  $inv->urine.deposit_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.deposit}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.deposit_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.deposit_low == 1 } L  {else if $inv->urine.deposit_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.deposit_range_txt != Null && $inv->urine.deposit_range_txt  != ''}  
            {$inv->urine.deposit_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    <tr>
        <td colspan="2" class="wds100">
            <ul style=" margin-left: 5px;"> 
                <li style="list-style: disc;">
                    <span class="underline bold">
                        Chemical Examination :
                    </span>
                </li> 
            </ul>
        </td>
    </tr>

    {if $inv->urine.reaction != Null && $inv->urine.reaction != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Reaction  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.reaction_low == 1 ||  $inv->urine.reaction_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.reaction}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.reaction_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.reaction_low == 1 } L  {else if $inv->urine.reaction_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.reaction_range_txt != Null && $inv->urine.reaction_range_txt  != ''}  
            {$inv->urine.reaction_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.protein != Null && $inv->urine.protein != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Protein  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.protein_low == 1 ||  $inv->urine.protein_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.protein}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.protein_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.protein_low == 1 } L  {else if $inv->urine.protein_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.protein_range_txt != Null && $inv->urine.protein_range_txt  != ''}  
            {$inv->urine.protein_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.sugar != Null && $inv->urine.sugar != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Sugar  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.sugar_low == 1 ||  $inv->urine.sugar_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.sugar}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.sugar_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.sugar_low == 1 } L  {else if $inv->urine.sugar_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.sugar_range_txt != Null && $inv->urine.sugar_range_txt  != ''}  
            {$inv->urine.sugar_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.acetone != Null && $inv->urine.acetone != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Acetone  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.acetone_low == 1 ||  $inv->urine.acetone_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.acetone}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.acetone_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.acetone_low == 1 } L  {else if $inv->urine.acetone_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.acetone_range_txt != Null && $inv->urine.acetone_range_txt  != ''}  
            {$inv->urine.acetone_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.nitrite != Null && $inv->urine.nitrite != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Nitrite  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.nitrite_low == 1 ||  $inv->urine.nitrite_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.nitrite}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.nitrite_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.nitrite_low == 1 } L  {else if $inv->urine.nitrite_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.nitrite_range_txt != Null && $inv->urine.nitrite_range_txt  != ''}  
            {$inv->urine.nitrite_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.gravity != Null && $inv->urine.gravity != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Specific Gravity   
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.gravity_low == 1 ||  $inv->urine.gravity_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.gravity}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.gravity_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.gravity_low == 1 } L  {else if $inv->urine.gravity_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.gravity_range_txt != Null && $inv->urine.gravity_range_txt  != ''}  
            {$inv->urine.gravity_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.bilirubin != Null && $inv->urine.bilirubin != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Bilirubin  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.bilirubin_low == 1 ||  $inv->urine.bilirubin_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.bilirubin}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.bilirubin_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.bilirubin_low == 1 } L  {else if $inv->urine.bilirubin_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.bilirubin_range_txt != Null && $inv->urine.bilirubin_range_txt  != ''}  
            {$inv->urine.bilirubin_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.urobilinigen != Null && $inv->urine.urobilinigen != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Urobilinigen  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.urobilinigen_low == 1 ||  $inv->urine.urobilinigen_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.urobilinigen}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.urobilinigen_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.urobilinigen_low == 1 } L  {else if $inv->urine.urobilinigen_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.urobilinigen_range_txt != Null && $inv->urine.urobilinigen_range_txt  != ''}  
            {$inv->urine.urobilinigen_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.leucocytes != Null && $inv->urine.leucocytes != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Leucocytes  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.leucocytes_low == 1 ||  $inv->urine.leucocytes_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.leucocytes}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.leucocytes_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.leucocytes_low == 1 } L  {else if $inv->urine.leucocytes_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.leucocytes_range_txt != Null && $inv->urine.leucocytes_range_txt  != ''}  
            {$inv->urine.leucocytes_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.blood != Null && $inv->urine.blood != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Blood  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.blood_low == 1 ||  $inv->urine.blood_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.blood}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.blood_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.blood_low == 1 } L  {else if $inv->urine.blood_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.blood_range_txt != Null && $inv->urine.blood_range_txt  != ''}  
            {$inv->urine.blood_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 


    <tr>
        <td colspan="2" class="wds100">
            <ul style=" margin-left: 5px;"> 
                <li style="list-style: disc;">
                    <span class="underline bold">
                        Microscopic Examination :
                    </span>
                </li> 
            </ul>
        </td>
    </tr>

    {if $inv->urine.pus != Null && $inv->urine.pus != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Pus Cells  
                    <span class="right">:</span> 
                </li> 
            </ul>


            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.pus_low == 1 ||  $inv->urine.pus_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.pus}     -  {$inv->urine.pus2}  
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.pus_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.pus_low == 1 } L  {else if $inv->urine.pus_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.pus_range_txt != Null && $inv->urine.pus_range_txt  != ''}  
            {$inv->urine.pus_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.pbcs != Null && $inv->urine.pbcs != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">R.B.Cs  
                    <span class="right">:</span> 
                </li> 
            </ul>


            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.pbcs_low == 1 ||  $inv->urine.pbcs_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.pbcs}    -  {$inv->urine.pbcs2}    
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.pbcs_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.pbcs_low == 1 } L  {else if $inv->urine.pbcs_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.pbcs_range_txt != Null && $inv->urine.pbcs_range_txt  != ''}  
            {$inv->urine.pbcs_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.epithelial != Null && $inv->urine.epithelial != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Epithelial Cells  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.epithelial_low == 1 ||  $inv->urine.epithelial_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.epithelial}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.epithelial_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.epithelial_low == 1 } L  {else if $inv->urine.epithelial_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.epithelial_range_txt != Null && $inv->urine.epithelial_range_txt  != ''}  
            {$inv->urine.epithelial_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.casts != Null && $inv->urine.casts != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Casts  
                    <span class="right">:</span> 
                </li> 
            </ul>


            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.casts_low == 1 ||  $inv->urine.casts_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.casts}   
                            {if $inv->urine.casts2 != Null && $inv->urine.casts2 != ''}   
                            {$inv->urine.casts2} 
                            {/if}
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.casts_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.casts_low == 1 } L  {else if $inv->urine.casts_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.casts_range_txt != Null && $inv->urine.casts_range_txt  != ''}  
            {$inv->urine.casts_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.crystal != Null && $inv->urine.crystal != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Crystal  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.crystal_low == 1 ||  $inv->urine.crystal_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.crystal}   
                            {if $inv->urine.crystal2 != Null && $inv->urine.crystal2 != ''}   
                            {$inv->urine.crystal2} 
                            {/if}
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.crystal_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.crystal_low == 1 } L  {else if $inv->urine.crystal_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.crystal_range_txt != Null && $inv->urine.crystal_range_txt  != ''}  
            {$inv->urine.crystal_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.amorphous != Null && $inv->urine.amorphous != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Amorphous  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.amorphous_low == 1 ||  $inv->urine.amorphous_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.amorphous}   
                            {if $inv->urine.amorphous2 != Null && $inv->urine.amorphous2 != ''}   
                            {$inv->urine.amorphous2} 
                            {/if}
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.amorphous_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.amorphous_low == 1 } L  {else if $inv->urine.amorphous_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.amorphous_range_txt != Null && $inv->urine.amorphous_range_txt  != ''}  
            {$inv->urine.amorphous_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.ova != Null && $inv->urine.ova != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Ova  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.ova_low == 1 ||  $inv->urine.ova_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.ova}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.ova_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.ova_low == 1 } L  {else if $inv->urine.ova_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.ova_range_txt != Null && $inv->urine.ova_range_txt  != ''}  
            {$inv->urine.ova_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.trophazite != Null && $inv->urine.trophazite != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Trophazite  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.trophazite_low == 1 ||  $inv->urine.trophazite_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.trophazite}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.trophazite_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.trophazite_low == 1 } L  {else if $inv->urine.trophazite_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.trophazite_range_txt != Null && $inv->urine.trophazite_range_txt  != ''}  
            {$inv->urine.trophazite_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.mucus != Null && $inv->urine.mucus != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Mucus  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.mucus_low == 1 ||  $inv->urine.mucus_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.mucus}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.mucus_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.mucus_low == 1 } L  {else if $inv->urine.mucus_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.mucus_range_txt != Null && $inv->urine.mucus_range_txt  != ''}  
            {$inv->urine.mucus_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.artifacts != Null && $inv->urine.artifacts != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Urine Artifacts  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.artifacts_low == 1 ||  $inv->urine.artifacts_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.artifacts}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.artifacts_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.artifacts_low == 1 } L  {else if $inv->urine.artifacts_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.artifacts_range_txt != Null && $inv->urine.artifacts_range_txt  != ''}  
            {$inv->urine.artifacts_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.fungi != Null && $inv->urine.fungi != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Fungi  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.fungi_low == 1 ||  $inv->urine.fungi_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.fungi}   
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.fungi_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.fungi_low == 1 } L  {else if $inv->urine.fungi_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.fungi_range_txt != Null && $inv->urine.fungi_range_txt  != ''}  
            {$inv->urine.fungi_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.bacteria != Null && $inv->urine.bacteria != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Bacteria  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30  txtc ">
                <li style="list-style: none;"> 
                    {if $inv->urine.bacteria_low == 1 ||  $inv->urine.bacteria_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->urine.bacteria}   
                            {if $inv->urine.bacteria2 != Null && $inv->urine.bacteria2 != ''}   
                            {$inv->urine.bacteria2} 
                            {/if}
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->urine.bacteria_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->urine.bacteria_low == 1 } L  {else if $inv->urine.bacteria_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->urine.bacteria_range_txt != Null && $inv->urine.bacteria_range_txt  != ''}  
            {$inv->urine.bacteria_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->urine.comment != Null && $inv->urine.comment != ''}  
    <tr>
        <td class="wds75">
            <ul  class="col-med-ex wds40" style=" margin-left: 5px;"> 
                <li style="list-style: disc;">
                    <span class="underline bold">
                        Comment  :
                    </span>
                </li> 
            </ul>
            <ul class="col-med ">
                <li style="list-style: none;">  {$inv->urine.comment}  </li> 
            </ul>
        </td>
        <td class="wds25"></td>
    </tr>
    {/if} 

    {else if $inv->special_inv_type == 3  }  

    <tr>
        <td colspan="2" class="wds100">
            <ul style="margin-left: -18px;">
                <li style="list-style: none;">
                    <span class="underline bold">
                        {$inv->invname} 
                    </span>
                </li>
            </ul>

        </td>
    </tr>

    <tr>
        <td colspan="2" class="wds100">
            <ul style=" margin-left: 5px;"> 
                <li style="list-style: disc;">
                    <span class="underline bold">
                        Physical Examination :
                    </span>
                </li> 
            </ul>
        </td>
    </tr>

    {if $inv->stool.color != Null && $inv->stool.color != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Color  
                    <span class="right">:</span> 
                </li> 
            </ul>

            {if $inv->stool.color_low == 1 ||  $inv->stool.color_high == 1 }    
            <ul class=" col-med wds30  bg-grey  p5 txtc "> {else} <ul class=" col-med wds30  txtc ">{/if}
                    <li style="list-style: none;">  {$inv->stool.color}    </li> 
                </ul>

                <ul class="col-med wds15">
                    <li style="list-style: none;">  {$inv->stool.color_invest_units}  </li> 
                </ul>

                <ul class="col-med wds8">
                    <li style="list-style: none;">  {if $inv->stool.color_low == 1 } L  {else if $inv->stool.color_high == 1 } H   {/if}  </li> 
                </ul>

        </td>
        <td class="wds25">

            {if $inv->stool.color_range_txt != Null && $inv->stool.color_range_txt  != ''}  
            {$inv->stool.color_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->stool.reaction != Null && $inv->stool.reaction != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Reaction  
                    <span class="right">:</span> 
                </li> 
            </ul>

            {if $inv->stool.reaction_low == 1 ||  $inv->stool.reaction_high == 1 }    
            <ul class=" col-med wds30  bg-grey  p5 txtc "> {else} <ul class=" col-med wds30  txtc ">{/if}
                    <li style="list-style: none;">  {$inv->stool.reaction}    </li> 
                </ul>

                <ul class="col-med wds15">
                    <li style="list-style: none;">  {$inv->stool.reaction_invest_units}  </li> 
                </ul>

                <ul class="col-med wds8">
                    <li style="list-style: none;">  {if $inv->stool.reaction_low == 1 } L  {else if $inv->stool.reaction_high == 1 } H   {/if}  </li> 
                </ul>

        </td>
        <td class="wds25">

            {if $inv->stool.reaction_range_txt != Null && $inv->stool.reaction_range_txt  != ''}  
            {$inv->stool.reaction_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->stool.odor != Null && $inv->stool.odor != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Odor  
                    <span class="right">:</span> 
                </li> 
            </ul>

            {if $inv->stool.odor_low == 1 ||  $inv->stool.odor_high == 1 }    
            <ul class=" col-med wds30  bg-grey  p5 txtc "> {else} <ul class=" col-med wds30  txtc ">{/if}
                    <li style="list-style: none;">  {$inv->stool.odor}    </li> 
                </ul>

                <ul class="col-med wds15">
                    <li style="list-style: none;">  {$inv->stool.odor_invest_units}  </li> 
                </ul>

                <ul class="col-med wds8">
                    <li style="list-style: none;">  {if $inv->stool.odor_low == 1 } L  {else if $inv->stool.odor_high == 1 } H   {/if}  </li> 
                </ul>

        </td>
        <td class="wds25">

            {if $inv->stool.odor_range_txt != Null && $inv->stool.odor_range_txt  != ''}  
            {$inv->stool.odor_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->stool.mucus != Null && $inv->stool.mucus != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Mucus  
                    <span class="right">:</span> 
                </li> 
            </ul>

            {if $inv->stool.mucus_low == 1 ||  $inv->stool.mucus_high == 1 }    
            <ul class=" col-med wds30  bg-grey  p5 txtc "> {else} <ul class=" col-med wds30  txtc ">{/if}
                    <li style="list-style: none;">  {$inv->stool.mucus}    </li> 
                </ul>

                <ul class="col-med wds15">
                    <li style="list-style: none;">  {$inv->stool.mucus_invest_units}  </li> 
                </ul>

                <ul class="col-med wds8">
                    <li style="list-style: none;">  {if $inv->stool.mucus_low == 1 } L  {else if $inv->stool.mucus_high == 1 } H   {/if}  </li> 
                </ul>

        </td>
        <td class="wds25">

            {if $inv->stool.mucus_range_txt != Null && $inv->stool.mucus_range_txt  != ''}  
            {$inv->stool.mucus_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->stool.consistency != Null && $inv->stool.consistency != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Consistency  
                    <span class="right">:</span> 
                </li> 
            </ul>

            {if $inv->stool.consistency_low == 1 ||  $inv->stool.consistency_high == 1 }    
            <ul class=" col-med wds30  bg-grey  p5 txtc "> {else} <ul class=" col-med wds30  txtc ">{/if}
                    <li style="list-style: none;">  {$inv->stool.consistency}    </li> 
                </ul>

                <ul class="col-med wds15">
                    <li style="list-style: none;">  {$inv->stool.consistency_invest_units}  </li> 
                </ul>

                <ul class="col-med wds8">
                    <li style="list-style: none;">  {if $inv->stool.consistency_low == 1 } L  {else if $inv->stool.consistency_high == 1 } H   {/if}  </li> 
                </ul>

        </td>
        <td class="wds25">

            {if $inv->stool.consistency_range_txt != Null && $inv->stool.consistency_range_txt  != ''}  
            {$inv->stool.consistency_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->stool.food != Null && $inv->stool.food != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Food Particles   
                    <span class="right">:</span> 
                </li> 
            </ul>

            {if $inv->stool.food_low == 1 ||  $inv->stool.food_high == 1 }    
            <ul class=" col-med wds30  bg-grey  p5 txtc "> {else} <ul class=" col-med wds30  txtc ">{/if}
                    <li style="list-style: none;">  {$inv->stool.food}    </li> 
                </ul>

                <ul class="col-med wds15">
                    <li style="list-style: none;">  {$inv->stool.food_invest_units}  </li> 
                </ul>

                <ul class="col-med wds8">
                    <li style="list-style: none;">  {if $inv->stool.food_low == 1 } L  {else if $inv->stool.food_high == 1 } H   {/if}  </li> 
                </ul>

        </td>
        <td class="wds25">

            {if $inv->stool.food_range_txt != Null && $inv->stool.food_range_txt  != ''}  
            {$inv->stool.food_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->stool.blood != Null && $inv->stool.blood != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Blood  
                    <span class="right">:</span> 
                </li> 
            </ul>

            {if $inv->stool.blood_low == 1 ||  $inv->stool.blood_high == 1 }    
            <ul class=" col-med wds30  bg-grey  p5 txtc "> {else} <ul class=" col-med wds30  txtc ">{/if}
                    <li style="list-style: none;">  {$inv->stool.blood}    </li> 
                </ul>

                <ul class="col-med wds15">
                    <li style="list-style: none;">  {$inv->stool.blood_invest_units}  </li> 
                </ul>

                <ul class="col-med wds8">
                    <li style="list-style: none;">  {if $inv->stool.blood_low == 1 } L  {else if $inv->stool.blood_high == 1 } H   {/if}  </li> 
                </ul>

        </td>
        <td class="wds25">

            {if $inv->stool.blood_range_txt != Null && $inv->stool.blood_range_txt  != ''}  
            {$inv->stool.blood_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    <tr>
        <td colspan="2" class="wds100">
            <ul style=" margin-left: 5px;"> 
                <li style="list-style: disc;">
                    <span class="underline bold">
                        Microscopic Examination :
                    </span>
                </li> 
            </ul>
        </td>
    </tr>

    {if $inv->stool.wbc != Null && $inv->stool.wbc != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">WBCs  
                    <span class="right">:</span> 
                </li> 
            </ul>

            {if $inv->stool.wbc_low == 1 ||  $inv->stool.wbc_high == 1 }    
            <ul class=" col-med wds30  bg-grey  p5 txtc "> {else} <ul class=" col-med wds30  txtc ">{/if}
                    <li style="list-style: none;">  {$inv->stool.wbc}   -  {$inv->stool.wbc2}    </li> 
                </ul>

                <ul class="col-med wds15">
                    <li style="list-style: none;">  {$inv->stool.wbc_invest_units}  </li> 
                </ul>

                <ul class="col-med wds8">
                    <li style="list-style: none;">  {if $inv->stool.wbc_low == 1 } L  {else if $inv->stool.wbc_high == 1 } H   {/if}  </li> 
                </ul>

        </td>
        <td class="wds25">

            {if $inv->stool.wbc_range_txt != Null && $inv->stool.wbc_range_txt  != ''}  
            {$inv->stool.wbc_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->stool.rbc != Null && $inv->stool.rbc != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">RBCs  
                    <span class="right">:</span> 
                </li> 
            </ul>

            {if $inv->stool.rbc_low == 1 ||  $inv->stool.rbc_high == 1 }    
            <ul class=" col-med wds30  bg-grey  p5 txtc "> {else} <ul class=" col-med wds30  txtc ">{/if}
                    <li style="list-style: none;">  {$inv->stool.rbc}     -  {$inv->stool.rbc2}  </li> 
                </ul>

                <ul class="col-med wds15">
                    <li style="list-style: none;">  {$inv->stool.rbc_invest_units}  </li> 
                </ul>

                <ul class="col-med wds8">
                    <li style="list-style: none;">  {if $inv->stool.rbc_low == 1 } L  {else if $inv->stool.rbc_high == 1 } H   {/if}  </li> 
                </ul>

        </td>
        <td class="wds25">

            {if $inv->stool.rbc_range_txt != Null && $inv->stool.rbc_range_txt  != ''}  
            {$inv->stool.rbc_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->stool.trophozoite != Null && $inv->stool.trophozoite != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Trophozoite  
                    <span class="right">:</span> 
                </li> 
            </ul>

            {if $inv->stool.trophozoite_low == 1 ||  $inv->stool.trophozoite_high == 1 }    
            <ul class=" col-med wds30  bg-grey  p5 txtc "> {else} <ul class=" col-med wds30  txtc ">{/if}
                    <li style="list-style: none;">
                        {$inv->stool.trophozoite}   

                        {if $inv->stool.trophozoite2 != Null && $inv->stool.trophozoite2 != ''}  
                        {$inv->stool.trophozoite2}
                        {/if}

                        {if $inv->stool.trophozoite3 != Null && $inv->stool.trophozoite3 != ''}  
                        {$inv->stool.trophozoite3}
                        {/if}
                    </li> 
                </ul>

                <ul class="col-med wds15">
                    <li style="list-style: none;">  {$inv->stool.trophozoite_invest_units}  </li> 
                </ul>

                <ul class="col-med wds8">
                    <li style="list-style: none;">  {if $inv->stool.trophozoite_low == 1 } L  {else if $inv->stool.trophozoite_high == 1 } H   {/if}  </li> 
                </ul>

        </td>
        <td class="wds25">

            {if $inv->stool.trophozoite_range_txt != Null && $inv->stool.trophozoite_range_txt  != ''}  
            {$inv->stool.trophozoite_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->stool.cysts != Null && $inv->stool.cysts != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Cysts  
                    <span class="right">:</span> 
                </li> 
            </ul>

            {if $inv->stool.cysts_low == 1 ||  $inv->stool.cysts_high == 1 }    
            <ul class=" col-med wds30  bg-grey  p5 txtc "> {else} <ul class=" col-med wds30  txtc ">{/if}
                    <li style="list-style: none;"> 
                        {$inv->stool.cysts}  

                        {if $inv->stool.cysts2 != Null && $inv->stool.cysts2 != ''}  
                        {$inv->stool.cysts2}
                        {/if}
                    </li> 
                </ul>

                <ul class="col-med wds15">
                    <li style="list-style: none;">  {$inv->stool.cysts_invest_units}  </li> 
                </ul>

                <ul class="col-med wds8">
                    <li style="list-style: none;">  {if $inv->stool.cysts_low == 1 } L  {else if $inv->stool.cysts_high == 1 } H   {/if}  </li> 
                </ul>

        </td>
        <td class="wds25">

            {if $inv->stool.cysts_range_txt != Null && $inv->stool.cysts_range_txt  != ''}  
            {$inv->stool.cysts_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->stool.ova != Null && $inv->stool.ova != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Ova  
                    <span class="right">:</span> 
                </li> 
            </ul>

            {if $inv->stool.ova_low == 1 ||  $inv->stool.ova_high == 1 }    
            <ul class=" col-med wds30  bg-grey  p5 txtc "> {else} <ul class=" col-med wds30  txtc ">{/if}
                    <li style="list-style: none;"> 
                        {$inv->stool.ova}  

                        {if $inv->stool.ova2 != Null && $inv->stool.ova2 != ''}  
                        {$inv->stool.ova2}
                        {/if}

                    </li> 
                </ul>

                <ul class="col-med wds15">
                    <li style="list-style: none;">  {$inv->stool.ova_invest_units}  </li> 
                </ul>

                <ul class="col-med wds8">
                    <li style="list-style: none;">  {if $inv->stool.ova_low == 1 } L  {else if $inv->stool.ova_high == 1 } H   {/if}  </li> 
                </ul>

        </td>
        <td class="wds25">

            {if $inv->stool.ova_range_txt != Null && $inv->stool.ova_range_txt  != ''}  
            {$inv->stool.ova_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->stool.larva != Null && $inv->stool.larva != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Larva  
                    <span class="right">:</span> 
                </li> 
            </ul>

            {if $inv->stool.larva_low == 1 ||  $inv->stool.larva_high == 1 }    
            <ul class=" col-med wds30  bg-grey  p5 txtc "> {else} <ul class=" col-med wds30  txtc ">{/if}
                    <li style="list-style: none;"> 
                        {$inv->stool.larva}  

                        {if $inv->stool.larva2 != Null && $inv->stool.larva2 != ''}  
                        {$inv->stool.larva2}
                        {/if}
                    </li> 
                </ul>

                <ul class="col-med wds15">
                    <li style="list-style: none;">  {$inv->stool.larva_invest_units}  </li> 
                </ul>

                <ul class="col-med wds8">
                    <li style="list-style: none;">  {if $inv->stool.larva_low == 1 } L  {else if $inv->stool.larva_high == 1 } H   {/if}  </li> 
                </ul>

        </td>
        <td class="wds25">

            {if $inv->stool.larva_range_txt != Null && $inv->stool.larva_range_txt  != ''}  
            {$inv->stool.larva_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->stool.prog != Null && $inv->stool.prog != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Proglottids  
                    <span class="right">:</span> 
                </li> 
            </ul>

            {if $inv->stool.prog_low == 1 ||  $inv->stool.prog_high == 1 }    
            <ul class=" col-med wds30  bg-grey  p5 txtc "> {else} <ul class=" col-med wds30  txtc ">{/if}
                    <li style="list-style: none;">
                        {$inv->stool.prog}   

                        {if $inv->stool.prog2 != Null && $inv->stool.prog2 != ''}  
                        {$inv->stool.prog2}
                        {/if}
                    </li> 
                </ul>

                <ul class="col-med wds15">
                    <li style="list-style: none;">  {$inv->stool.prog_invest_units}  </li> 
                </ul>

                <ul class="col-med wds8">
                    <li style="list-style: none;">  {if $inv->stool.prog_low == 1 } L  {else if $inv->stool.prog_high == 1 } H   {/if}  </li> 
                </ul>

        </td>
        <td class="wds25">

            {if $inv->stool.prog_range_txt != Null && $inv->stool.prog_range_txt  != ''}  
            {$inv->stool.prog_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->stool.flagellates != Null && $inv->stool.flagellates != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Flagellates  
                    <span class="right">:</span> 
                </li> 
            </ul>

            {if $inv->stool.flagellates_low == 1 ||  $inv->stool.flagellates_high == 1 }    
            <ul class=" col-med wds30  bg-grey  p5 txtc "> {else} <ul class=" col-med wds30  txtc ">{/if}
                    <li style="list-style: none;">
                        {$inv->stool.flagellates} 

                        {if $inv->stool.flagellates2 != Null && $inv->stool.flagellates2 != ''}  
                        {$inv->stool.flagellates2}
                        {/if}
                    </li> 
                </ul>

                <ul class="col-med wds15">
                    <li style="list-style: none;">  {$inv->stool.flagellates_invest_units}  </li> 
                </ul>

                <ul class="col-med wds8">
                    <li style="list-style: none;">  {if $inv->stool.flagellates_low == 1 } L  {else if $inv->stool.flagellates_high == 1 } H   {/if}  </li> 
                </ul>

        </td>
        <td class="wds25">

            {if $inv->stool.flagellates_range_txt != Null && $inv->stool.flagellates_range_txt  != ''}  
            {$inv->stool.flagellates_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->stool.ciliate != Null && $inv->stool.ciliate != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Ciliate  
                    <span class="right">:</span> 
                </li> 
            </ul>

            {if $inv->stool.ciliate_low == 1 ||  $inv->stool.ciliate_high == 1 }    
            <ul class=" col-med wds30  bg-grey  p5 txtc "> {else} <ul class=" col-med wds30  txtc ">{/if}
                    <li style="list-style: none;">  {$inv->stool.ciliate}    </li> 
                </ul>

                <ul class="col-med wds15">
                    <li style="list-style: none;">  {$inv->stool.ciliate_invest_units}  </li> 
                </ul>

                <ul class="col-med wds8">
                    <li style="list-style: none;">  {if $inv->stool.ciliate_low == 1 } L  {else if $inv->stool.ciliate_high == 1 } H   {/if}  </li> 
                </ul>

        </td>
        <td class="wds25">

            {if $inv->stool.ciliate_range_txt != Null && $inv->stool.ciliate_range_txt  != ''}  
            {$inv->stool.ciliate_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->stool.undigested != Null && $inv->stool.undigested != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Undigested Food  
                    <span class="right">:</span> 
                </li> 
            </ul>

            {if $inv->stool.undigested_low == 1 ||  $inv->stool.undigested_high == 1 }    
            <ul class=" col-med wds30  bg-grey  p5 txtc "> {else} <ul class=" col-med wds30  txtc ">{/if}
                    <li style="list-style: none;">  
                        {$inv->stool.undigested}  

                        {if $inv->stool.undigested2 != Null && $inv->stool.undigested2 != ''}  
                        {$inv->stool.undigested2}
                        {/if}
                    </li> 
                </ul>

                <ul class="col-med wds15">
                    <li style="list-style: none;">  {$inv->stool.undigested_invest_units}  </li> 
                </ul>

                <ul class="col-med wds8">
                    <li style="list-style: none;">  {if $inv->stool.undigested_low == 1 } L  {else if $inv->stool.undigested_high == 1 } H   {/if}  </li> 
                </ul>

        </td>
        <td class="wds25">

            {if $inv->stool.undigested_range_txt != Null && $inv->stool.undigested_range_txt  != ''}  
            {$inv->stool.undigested_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->stool.parasitology != Null && $inv->stool.parasitology != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Parasitology Artifacts  
                    <span class="right">:</span> 
                </li> 
            </ul>

            {if $inv->stool.parasitology_low == 1 ||  $inv->stool.parasitology_high == 1 }    
            <ul class=" col-med wds30  bg-grey  p5 txtc "> {else} <ul class=" col-med wds30  txtc ">{/if}
                    <li style="list-style: none;">  
                        {$inv->stool.parasitology}  

                        {if $inv->stool.parasitology2 != Null && $inv->stool.parasitology2 != ''}  
                        {$inv->stool.parasitology2}
                        {/if}
                    </li> 
                </ul>

                <ul class="col-med wds15">
                    <li style="list-style: none;">  {$inv->stool.parasitology_invest_units}  </li> 
                </ul>

                <ul class="col-med wds8">
                    <li style="list-style: none;">  {if $inv->stool.parasitology_low == 1 } L  {else if $inv->stool.parasitology_high == 1 } H   {/if}  </li> 
                </ul>

        </td>
        <td class="wds25">

            {if $inv->stool.parasitology_range_txt != Null && $inv->stool.parasitology_range_txt  != ''}  
            {$inv->stool.parasitology_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 


    {if $inv->stool.comment != Null && $inv->stool.comment != ''}  
    <tr>
        <td class="wds75">
            <ul  class="col-med-ex wds40" style=" margin-left: 5px;"> 
                <li style="list-style: disc;">
                    <span class="underline bold">
                        Comment  :
                    </span>
                </li> 
            </ul>
            <ul class="col-med ">
                <li style="list-style: none;">  {$inv->stool.comment}  </li> 
            </ul>
        </td>
        <td class="wds25"></td>
    </tr>
    {/if} 


    {else if $inv->special_inv_type == 4  }  

    <tr>
        <td colspan="2" class="wds100">
            <ul style="margin-left: -18px;">
                <li style="list-style: none;">
                    <span class="underline bold">
                        {$inv->invname} 
                    </span>
                </li>
            </ul>

        </td>
    </tr>

    <tr>
        <td colspan="2" class="wds100">
            <ul style=" margin-left: 10px;"> 
                <li style="list-style: disc;">
                    <span class="underline bold">
                        Culture :
                    </span>
                </li> 
            </ul>
        </td>
    </tr>


    {if $inv->culture.sample != Null && $inv->culture.sample != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Sample  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds60  txtl " style=" padding-left: 15%;">
                <li style="list-style: none;">
                    {$inv->culture.sample_value}
                </li> 
            </ul>
        </td>
        <td class="wds25">
        </td>

    </tr>
    {/if} 

    {if $inv->culture.organism_a != Null && $inv->culture.organism_a != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Organism A  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds60  txtl " style=" padding-left: 15%;">
                <li style="list-style: none;">
                    {$inv->culture.organism_a_value}
                </li> 
            </ul>
        </td>
        <td class="wds25">
        </td>

    </tr>
    {/if} 

    {if $inv->culture.organism_b != Null && $inv->culture.organism_b != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Organism B 
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds60  txtl " style=" padding-left: 15%;">
                <li style="list-style: none;">
                    {$inv->culture.organism_b_value}
                </li> 
            </ul>
        </td>
        <td class="wds25">
        </td>

    </tr>
    {/if} 


    {if $inv->culture.organism_c != Null && $inv->culture.organism_c != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Organism C  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds60  txtl " style=" padding-left: 15%;">
                <li style="list-style: none;">
                    {$inv->culture.organism_c_value}
                </li> 
            </ul>
        </td>
        <td class="wds25">
        </td>

    </tr>
    {/if} 

    {if $inv->culture.condition != Null && $inv->culture.condition != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Culture Condition  
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds60  txtl " style=" padding-left: 15%;">
                <li style="list-style: none;">
                    {$inv->culture.condition_value}
                </li> 
            </ul>
        </td>
        <td class="wds25">
        </td>

    </tr>
    {/if} 

    {if $inv->culture.colony_count != Null && $inv->culture.colony_count != ''}  
    <tr>
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Colony Count   
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds60  txtl " style=" padding-left: 15%;">
                <li style="list-style: none;">
                    {$inv->culture.colony_count_value}
                </li> 
            </ul>
        </td>
        <td class="wds25">
        </td>

    </tr>
    {/if} 


    <tr>
        <td colspan="2" class="wds100">
            <ul style=" margin-left: 10px;"> 
                <li style="list-style: disc;">
                    <span class="underline bold">
                        Sensitivity :
                    </span>
                </li> 
            </ul>
        </td>
    </tr>

    {if $investigationresults_culture_hsCount > 0 ||   $investigationresults_culture_msCount > 0  ||  $investigationresults_culture_lsCount > 0 ||  $investigationresults_culture_rsCount > 0 }  

    <tr>
        <td colspan="2" class="wds100">
            <table style="width: 98% ;margin-left: 8%;"  class="noborder">
                <tr>
                    <td class="wds50 "></td>
                    <th class="wds25"> Sensitive</th>
                    <th class="wds25"> Commercial Name </th>
                </tr>

                {if $investigationresults_culture_hsCount > 0}  
                <tr>
                    <td class="wds50 bold">
                        <ul class="col-med wds100">
                            <li style="list-style: disc;"> Highly {$inv->culture.sensitivity_cat_value} For  
                                <span  style=" margin-left: 15px;">:</span>
                            </li> 
                        </ul>
                    </td>
                    <th class="wds25"> </th>
                    <th class="wds25"> </th>
                </tr>

                {assign var=i value=1}
                {foreach $investigationresults_culture_hs as $data}

                <tr>
                    <td>      {$i}  -   {$data.scientific_name}  </td>
                    <td>  {$data.sensitivity}  </td>
                    <td>    </td>
                </tr>

                {capture assign=i}{$i+1}{/capture}
                {/foreach}


                {/if}  

                {if $investigationresults_culture_msCount > 0}  
                <tr>
                    <td class="wds50 bold">
                        <ul class="col-med wds100">
                            <li style="list-style: disc;"> Moderate {$inv->culture.sensitivity_cat_value} For  
                                <span  style=" margin-left: 15px;">:</span> 
                            </li> 
                        </ul>
                    </td>
                    <th class="wds25"> </th>
                    <th class="wds25"> </th>
                </tr>

                {assign var=i value=1}
                {foreach $investigationresults_culture_ms as $data}

                <tr>
                    <td>      {$i}  -   {$data.scientific_name}  </td>
                    <td>  {$data.sensitivity}  </td>
                    <td>    </td>
                </tr>

                {capture assign=i}{$i+1}{/capture}
                {/foreach}


                {/if}  
                {if $investigationresults_culture_lsCount > 0}  
                <tr>
                    <td class="wds50 bold">
                        <ul class="col-med wds100">
                            <li style="list-style: disc;"> Low {$inv->culture.sensitivity_cat_value} For  
                                <span  style=" margin-left: 15px;">:</span>
                            </li> 
                        </ul>
                    </td>
                    <th class="wds25"> </th>
                    <th class="wds25"> </th>
                </tr>

                {assign var=i value=1}
                {foreach $investigationresults_culture_ls as $data}

                <tr>
                    <td>      {$i}  -   {$data.scientific_name}  </td>
                    <td>  {$data.sensitivity}  </td>
                    <td>    </td>
                </tr>

                {capture assign=i}{$i+1}{/capture}
                {/foreach}


                {/if}  
                {if $investigationresults_culture_rsCount > 0}  
                <tr>
                    <td class="wds50 bold">
                        <ul class="col-med wds100">
                            <li style="list-style: disc;"> Resistant {$inv->culture.sensitivity_cat_value} For  
                                <span  style=" margin-left: 15px;">:</span>
                            </li> 
                        </ul>
                    </td>
                    <th class="wds25"> </th>
                    <th class="wds25"> </th>
                </tr>

                {assign var=i value=1}
                {foreach $investigationresults_culture_rs as $data}

                <tr>
                    <td>      {$i}  -   {$data.scientific_name}  </td>
                    <td>  {$data.sensitivity}  </td>
                    <td>    </td>
                </tr>

                {capture assign=i}{$i+1}{/capture}
                {/foreach}


                {/if}  
            </table>
        </td>
    </tr>

    {/if}  

    {if $inv->culture.comment != Null && $inv->culture.comment != ''}  
    <tr>
        <td class="wds75">
            <ul  class="col-med-ex wds40" style=" margin-left: 5px;"> 
                <li style="list-style: disc;">
                    <span class="underline bold">
                        Comment  :
                    </span>
                </li> 
            </ul>
            <ul class="col-med ">
                <li style="list-style: none;">  {$inv->culture.comment}  </li> 
            </ul>
        </td>
        <td class="wds25"></td>
    </tr>
    {/if} 


    {else if $inv->special_inv_type == 5  }  

    <tr>
        <td colspan="2" class="wds100">
            <ul style="margin-left: -18px;">
                <li style="list-style: none;">
                    <span class="underline bold">
                        {$inv->invname} 
                    </span>
                </li>
            </ul>

        </td>
    </tr>


    {if $inv->esr.hour1 != Null && $inv->esr.hour1 != ''}  
    <tr style="line-height: 30px; ">
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">First Hour  
                    <span class="right">:</span> 
                </li> 
            </ul>

            {if $inv->esr.hour1_low == 1 ||  $inv->esr.hour1_high == 1 }    
            <ul class=" col-med wds30  bg-grey  p5 txtc "> {else} <ul class=" col-med wds30  txtc ">{/if}
                    <li style="list-style: none;">  {$inv->esr.hour1_value}    </li> 
                </ul>

                <ul class="col-med wds15">
                    <li style="list-style: none;">  {$inv->esr.hour1_invest_units}  </li> 
                </ul>

                <ul class="col-med wds8">
                    <li style="list-style: none;">  {if $inv->esr.hour1_low == 1 } L  {else if $inv->esr.hour1_high == 1 } H   {/if}  </li> 
                </ul>

        </td>
        <td class="wds25">

            {if $inv->esr.hour1_range_txt != Null && $inv->esr.hour1_range_txt  != ''}  
            {$inv->esr.hour1_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->esr.hour2 != Null && $inv->esr.hour2 != ''}  
    <tr style="line-height: 30px; ">
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Second Hour  
                    <span class="right">:</span> 
                </li> 
            </ul>

            {if $inv->esr.hour2_low == 1 ||  $inv->esr.hour2_high == 1 }    
            <ul class=" col-med wds30  bg-grey  p5 txtc "> {else} <ul class=" col-med wds30  txtc ">{/if}
                    <li style="list-style: none;">  {$inv->esr.hour2_value}    </li> 
                </ul>

                <ul class="col-med wds15">
                    <li style="list-style: none;">  {$inv->esr.hour2_invest_units}  </li> 
                </ul>

                <ul class="col-med wds8">
                    <li style="list-style: none;">  {if $inv->esr.hour2_low == 1 } L  {else if $inv->esr.hour2_high == 1 } H   {/if}  </li> 
                </ul>

        </td>
        <td class="wds25">

            {if $inv->esr.hour2_range_txt != Null && $inv->esr.hour2_range_txt  != ''}  
            {$inv->esr.hour2_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->esr.comment != Null && $inv->esr.comment != ''}  
    <tr style="line-height: 30px; ">
        <td class="wds75">
            <ul  class="col-med-ex wds40" style=" margin-left: 5px;"> 
                <li style="list-style: disc;">
                    <span class="underline bold">
                        Comment  :
                    </span>
                </li> 
            </ul>
            <ul class="col-med ">
                <li style="list-style: none;">  {$inv->esr.comment}  </li> 
            </ul>
        </td>
        <td class="wds25"></td>
    </tr>
    {/if} 


    {else if $inv->special_inv_type == 6  }  

    <tr>
        <td colspan="2" class="wds100">
            <ul style="margin-left: -18px;">
                <li style="list-style: none;">
                    <span class="underline bold">
                        {$inv->invname} 
                    </span>
                </li>
            </ul>

        </td>
    </tr>



    <tr style="line-height: 30px; ">
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc; font-weight: bold;">The Patient 
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds60  txtl " style=" padding-left: 15%;">
                <li style="list-style: none;">
                    {if $inv->cross.abo > 0 }   {$inv->cross.abo_value}  {/if}     
                    {if $inv->cross.rh > 0 }   {$inv->cross.rh_value}  {/if}  
                </li> 
            </ul>
        </td>
        <td class="wds25">
        </td>

    </tr>

    <tr style="line-height: 30px; ">
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc; font-weight: bold;">The Donors 
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds10  txtl " style=" padding-left: 15%;">

            </ul>

            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: none; font-weight: bold;">Viral Screen
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds10  txtl " style=" padding-left: 15%;">

            </ul>
        </td>
        <td class="wds25">
        </td>

    </tr>

    {if $inv->cross.donnersItr > 0 }
    <tr>
        <td colspan="2" class="wds100">

            <table style="float: left;" cellpadding="2" class="noborder wds54">
                <tr style="line-height: 25px; " class="bg-grey">
                    <th class="wds50 txtc">Donor Name</th>
                    <th class="wds25 txtc"> Result  </th>
                    <th class="wds25">   </th>
                </tr>

                {foreach $inv->cross.donners as $donner}
                {if $donner.name != Null && $donner.name != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds50 txtl ">
                        <ul><li style="list-style: none;">{$donner.name}  <span style="float: right">:</span>  </li> </ul> 
                    </td>
                    <td class="wds25 txtc">
                        {if $donner.abo > 0 }   {$donner.abo_value}  {/if}     
                        {if $donner.rh > 0 }   {$donner.rh_value}  {/if}  
                    </td>
                    <td class="wds25 txtc">
                        {if $donner.compatibility > 0 }   {$donner.compatibility_value}  {/if}     
                    </td>
                </tr>
                {/if}     
                {/foreach}

            </table>

            <table style="float: right;" cellpadding="2" class="noborder wds44">
                <tr style="line-height: 25px; " class="bg-grey">
                    <th class="wds33 txtc"> HCV  </th>
                    <th class="wds33 txtc"> HBsAg  </th>
                    <th class="wds34 txtc"> HV  </th>
                </tr>

                {foreach $inv->cross.donners as $donner}
                {if $donner.name != Null && $donner.name != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds33 txtc ">
                        {if $donner.hcv > 0 }   {$donner.hcv_value}  {/if}     
                    </td>
                    <td class="wds33 txtc">
                        {if $donner.hbsag > 0 }   {$donner.hbsag_value}  {/if}     
                    </td>
                    <td class="wds34 txtc">
                        {if $donner.hv > 0 }   {$donner.hv_value}  {/if}     
                    </td>
                </tr>
                {/if}     
                {/foreach}

            </table>


        </td>
    </tr>

    {/if}  

    {if $inv->cross.comment != Null && $inv->cross.comment != ''}  
    <tr style="line-height: 30px; ">
        <td class="wds75">
            <ul  class="col-med-ex wds40" style=" margin-left: 5px;"> 
                <li style="list-style: disc;">
                    <span class="underline bold">
                        Comment  :
                    </span>
                </li> 
            </ul>
            <ul class="col-med ">
                <li style="list-style: none;">  {$inv->cross.comment}  </li> 
            </ul>
        </td>
        <td class="wds25"></td>
    </tr>
    {/if} 


    {else if $inv->special_inv_type == 7  }  
    {else if $inv->special_inv_type == 8  }  

    <tr>
        <td colspan="2" class="wds100">
            <ul style="margin-left: -18px;">
                <li style="list-style: none;">
                    <span class="underline bold">
                        {$inv->invname} 
                    </span>
                </li>
            </ul>

        </td>
    </tr>

    {if $inv->clothing->bleeding != Null && $inv->clothing->bleeding != ''}  
    <tr style="line-height: 30px; ">
        <td class="wds75">
            <ul class="col-med wds50" style=" padding-left: 15%;">
                <li style="list-style: disc;">Bleeding Time ( BT )   
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30   txtc ">
                <li style="list-style: none;"> 
                    {if $inv->clothing->bleeding_low == 1 ||  $inv->clothing->bleeding_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->clothing->bleeding} :  {$inv->clothing->bleeding_sec} 
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->clothing->bleeding_invest_units}  </li> 
            </ul>

            <ul class="col-med wds5">
                <li style="list-style: none;">  {if $inv->clothing->bleeding_low == 1 } L  {else if $inv->clothing->bleeding_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->clothing->bleeding_range_txt != Null && $inv->clothing->bleeding_range_txt  != ''}  
            {$inv->clothing->bleeding_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->clothing->clothing != Null && $inv->clothing->clothing != ''}  
    <tr style="line-height: 30px; ">
        <td class="wds75">
            <ul class="col-med wds50" style=" padding-left: 15%;">
                <li style="list-style: disc;">Clothing Time ( CT )   
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30   txtc ">
                <li style="list-style: none;"> 
                    {if $inv->clothing->clothing_low == 1 ||  $inv->clothing->clothing_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->clothing->clothing} :  {$inv->clothing->clothing_sec} 
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->clothing->clothing_invest_units}  </li> 
            </ul>

            <ul class="col-med wds5">
                <li style="list-style: none;">  {if $inv->clothing->clothing_low == 1 } L  {else if $inv->clothing->clothing_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->clothing->clothing_range_txt != Null && $inv->clothing->clothing_range_txt  != ''}  
            {$inv->clothing->clothing_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 


    {if $inv->clothing->comment != Null && $inv->clothing->comment != ''}  
    <tr style="line-height: 30px; ">
        <td class="wds75">
            <ul  class="col-med-ex wds40" style=" margin-left: 5px;"> 
                <li style="list-style: disc;">
                    <span class="underline bold">
                        Comment  :
                    </span>
                </li> 
            </ul>
            <ul class="col-med ">
                <li style="list-style: none;">  {$inv->clothing->comment}  </li> 
            </ul>
        </td>
        <td class="wds25"></td>
    </tr>
    {/if} 


    {else if $inv->special_inv_type == 9 || $inv->special_inv_type == 12 || $inv->special_inv_type == 13  }  
    <tr>
        <td colspan="2" class="wds100">
            <ul style="margin-left: -18px;">
                <li style="list-style: none;">
                    <span class="underline bold">
                        {$inv->invname} 
                    </span>
                </li>
            </ul>

        </td>
    </tr>


    {if $inv->special_inv_type == 9 || $inv->special_inv_type == 12   }  
    <tr>
        <td colspan="2" class="wds100">
            <ul style=" margin-left: 5px;"> 
                <li style="list-style: disc;">
                    <span class="underline bold">
                        PT ( Prothrombin Time ) :  
                    </span>
                </li> 
            </ul>
        </td>
    </tr>

    {if $inv->pt->patient_time != Null && $inv->pt->patient_time != ''}  
    <tr style="line-height: 30px; ">
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Patient's Time
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30   txtc ">
                <li style="list-style: none;"> 
                    {if $inv->pt->patient_time_low == 1 ||  $inv->pt->patient_time_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->pt->patient_time}
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->pt->patient_time_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->pt->patient_time_low == 1 } L  {else if $inv->pt->patient_time_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->pt->patient_time_range_txt != Null && $inv->pt->patient_time_range_txt  != ''}  
            {$inv->pt->patient_time_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {if $inv->pt->concentration != Null && $inv->pt->concentration != ''}  
    <tr style="line-height: 30px; ">
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Concentration
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30   txtc ">
                <li style="list-style: none;"> 
                    {if $inv->pt->concentration_low == 1 ||  $inv->pt->concentration_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->pt->concentration}
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->pt->concentration_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->pt->concentration_low == 1 } L  {else if $inv->pt->concentration_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->pt->concentration_range_txt != Null && $inv->pt->concentration_range_txt  != ''}  
            {$inv->pt->concentration_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 


    {if $inv->pt->inr != Null && $inv->pt->inr != ''}  
    <tr style="line-height: 30px; ">
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">I.N.R
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30   txtc ">
                <li style="list-style: none;"> 
                    {if $inv->pt->inr_low == 1 ||  $inv->pt->inr_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->pt->inr}
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->pt->inr_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->pt->inr_low == 1 } L  {else if $inv->pt->inr_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->pt->inr_range_txt != Null && $inv->pt->inr_range_txt  != ''}  
            {$inv->pt->inr_range_txt}
            {/if}  
        </td>

    </tr>
    {/if} 

    {/if}

    {if $inv->special_inv_type == 9 || $inv->special_inv_type == 13   }  
    <tr>
        <td colspan="2" class="wds100">
            <ul style=" margin-left: 5px;"> 
                <li style="list-style: disc;">
                    <span class="underline bold">
                        APTT  :  
                    </span>
                </li> 
            </ul>
        </td>
    </tr>


    {if $inv->pt->patient_time1 != Null && $inv->pt->patient_time1 != ''}  
    <tr style="line-height: 30px; ">
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Patient's Time
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30   txtc ">
                <li style="list-style: none;"> 
                    {if $inv->pt->patient_time1_low == 1 ||  $inv->pt->patient_time1_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->pt->patient_time1}
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->pt->patient_time1_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->pt->patient_time1_low == 1 } L  {else if $inv->pt->patient_time1_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->pt->patient_time1_range_txt != Null && $inv->pt->patient_time1_range_txt  != ''}  
            {$inv->pt->patient_time1_range_txt}
            {/if}  
        </td>

    </tr>
    {/if}

    {if $inv->pt->fibrinogen != Null && $inv->pt->fibrinogen != ''}  
    <tr style="line-height: 30px; ">
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Fibrinogen 
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30   txtc ">
                <li style="list-style: none;"> 
                    {if $inv->pt->fibrinogen_low == 1 ||  $inv->pt->fibrinogen_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->pt->fibrinogen}
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->pt->fibrinogen_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->pt->fibrinogen_low == 1 } L  {else if $inv->pt->fibrinogen_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->pt->fibrinogen_range_txt != Null && $inv->pt->fibrinogen_range_txt  != ''}  
            {$inv->pt->fibrinogen_range_txt}
            {/if}  
        </td>
    </tr>
    {/if}


    {if $inv->pt->fdp != Null && $inv->pt->fdp != ''}  
    <tr style="line-height: 30px; ">
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">FDP 
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds30   txtc ">
                <li style="list-style: none;"> 
                    {if $inv->pt->fdp_low == 1 ||  $inv->pt->fdp_high == 1 } <div class="bg-grey wds50 m25 " >   {else}  <div>  {/if}
                            {$inv->pt->fdp}
                        </div> 
                </li> 
            </ul>

            <ul class="col-med wds15">
                <li style="list-style: none;">  {$inv->pt->fdp_invest_units}  </li> 
            </ul>

            <ul class="col-med wds8">
                <li style="list-style: none;">  {if $inv->pt->fdp_low == 1 } L  {else if $inv->pt->fdp_high == 1 } H   {/if}  </li> 
            </ul>

        </td>
        <td class="wds25">

            {if $inv->pt->fdp_range_txt != Null && $inv->pt->fdp_range_txt  != ''}  
            {$inv->pt->fdp_range_txt}
            {/if}  
        </td>

    </tr>
    {/if}

    {/if}

    {if $inv->pt->comment != Null && $inv->pt->comment != ''}  
    <tr style="line-height: 30px; ">
        <td class="wds75">
            <ul  class="col-med-ex wds40" style=" margin-left: 5px;"> 
                <li style="list-style: disc;">
                    <span class="underline bold">
                        Comment  :
                    </span>
                </li> 
            </ul>
            <ul class="col-med ">
                <li style="list-style: none;">  {$inv->pt->comment}  </li> 
            </ul>
        </td>
        <td class="wds25"></td>
    </tr>
    {/if} 


    {else if $inv->special_inv_type == 10  }  

    <tr>
        <td colspan="2" class="wds100">
            <ul style="margin-left: -18px;">
                <li style="list-style: none;">
                    <span class="underline bold">
                        {$inv->invname} 
                    </span>
                </li>
            </ul>

        </td>
    </tr>


    <tr style="line-height: 30px; ">
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">ABO System
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds60  txtl " style=" padding-left: 15%;">
                <li style="list-style: none;">
                    {if $inv->aborh.abo > 0 }   {$inv->aborh.abo_value}  {/if}     
                </li> 
            </ul>
        </td>
        <td class="wds25">
        </td>

    </tr>


    <tr style="line-height: 30px; ">
        <td class="wds75">
            <ul class="col-med wds40" style=" padding-left: 15%;">
                <li style="list-style: disc;">Blood Rh
                    <span class="right">:</span> 
                </li> 
            </ul>

            <ul class=" col-med wds60  txtl " style=" padding-left: 15%;">
                <li style="list-style: none;">
                    {if $inv->aborh.rh > 0 }   {$inv->aborh.rh_value}  {/if}  
                </li> 
            </ul>
        </td>
        <td class="wds25">
        </td>

    </tr>



    {if $inv->aborh.comment != Null && $inv->aborh.comment != ''}  
    <tr style="line-height: 30px; ">
        <td class="wds75">
            <ul  class="col-med-ex wds40" style=" margin-left: 5px;"> 
                <li style="list-style: disc;">
                    <span class="underline bold">
                        Comment  :
                    </span>
                </li> 
            </ul>
            <ul class="col-med ">
                <li style="list-style: none;">  {$inv->aborh.comment}  </li> 
            </ul>
        </td>
        <td class="wds25"></td>
    </tr>
    {/if} 


    {else if $inv->special_inv_type == 11  }  

    {foreach  $inv->elements  as $data}

    <tr>
        <td colspan="2" class="wds100">
            <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;" >
                        <ul> 
                            <li style="list-style: disc;font-weight: bold;"> {$data->show_name}   <span style="float: right">:</span> </li>
                        </ul> 
                    </td>

                    <td class="wds25" style="text-align: center; vertical-align: top;"> 
                        <div class=" wds50   {if   $data->element_text_low == 1 ||  $data->element_text_high == 1}     bg-grey  {/if}" style=" margin-left: 25%; ">
                            <span style="float: left;"> {$data->content->element_select_text} </span>
                            <span style="float: right;">{$data->content->element_text}</span>
                        </div>  

                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$data->content->element_text_unit}
                    </td>

                    <td class="wds5" style="vertical-align: top;" >
                        {if $data->content->element_text_low == 1 } L  {else if $data->content->element_text_high == 1 } H   {/if}
                    </td>
                    <td style="vertical-align: top;" >  
                        {if $data->content->element_text_range_txt != Null && $data->content->element_text_range_txt  != ''}  
                        {$data->content->element_text_range_txt}
                        {/if}  
                    </td>
                </tr>
            </table>

        </td>
    </tr>





    {/foreach}

    {if $inv->comment != Null && $inv->comment != ''}  
    <tr style="line-height: 30px; ">
        <td class="wds75">
            <ul  class="col-med-ex wds40" style=" margin-left: 10px;"> 
                <li style="list-style: none;">
                    <span class="underline bold">
                        Comment  :
                    </span>
                </li> 
            </ul>
            <ul class="col-med ">
                <li style="list-style: none;">  {$inv->comment}  </li> 
            </ul>
        </td>
        <td class="wds25"></td>
    </tr>
    {/if} 


    {else}  

    <tr>
        <td colspan="2" class="wds100">
            <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
                <tr style="line-height: 25px; ">
                    <td class="wds26" style="vertical-align: top;" >
                        <ul> 
                            <li style="list-style: disc;font-weight: bold;"> {$inv->invname}  <span style="float: right">:</span> </li>
                        </ul> 
                    </td>

                    <td class="wds22" style="text-align: center; vertical-align: top;"> 
                        <div class=" wds50    {if $inv->low == 1 || $inv->high == 1 }    bg-grey  {/if}" style=" margin-left: 25%; ">
                            {$inv->investresult} 
                        </div>  

                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->range->invest_units} 
                    </td>

                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->low == 1 } L  {else if $inv->high == 1 } H   {/if} 
                    </td>
                    <td style="vertical-align: top;" >  
                        {if $inv->range->range_txt != Null && $inv->range->range_txt  != ''}  
                        {$inv->range->range_txt}
                        {/if}  
                    </td>
                </tr>
            </table>

        </td>
    </tr>

    {if $inv->comment != Null && $inv->comment != ''}  
    <tr style="line-height: 30px; ">
        <td class="wds75">
            <ul  class="col-med-ex wds40" style=" margin-left: 5px;"> 
                <li style="list-style: none;">
                    <span class="underline bold">
                        Comment  :
                    </span>
                </li> 
            </ul>
            <ul class="col-med ">
                <li style="list-style: none;">  {$inv->comment}  </li> 
            </ul>
        </td>
        <td class="wds25"></td>
    </tr>
    {/if} 




    {/if}

</table>
{if $source == 5 }
<hr style="border: 1px solid black;  margin: 5px 0;">
{/if}


{/foreach}


{assign var="d" value={$d+1}}
{/foreach}
