<div    id="patient_profile_print" >
    <hr style="border: 1px solid black;">
    <div class="col-md-12">

        <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
            <tr>
                <td style="width: 25%;font-weight: bold;"> Patient Name   </td>
                <td style="width: 25%;"> {$name}     </td>
                <td style="width: 25%;font-weight: bold;"> Patient ID   </td>
                <td style="width: 25%;"> <img id="xx"  src="{$hosturl}/../upload/barcodes/{$statusNo}.png" height="20">     </td>
            </tr>
            <tr>
                <td style="width: 25%;font-weight: bold;"> Age / Sex    </td>
                <td style="width: 25%;"> {$age} Years  / {$sex}      </td>
                <td style="width: 25%;font-weight: bold;"> Requested Date     </td>
                <td style="width: 25%;">  {$req_date} {$req_time} </td>
            </tr>
            <tr>
                <td style="width: 25%;font-weight: bold;"> Referred By   </td>
                <td style="width: 25%;">{$doctor_name}     </td>
                <td style="width: 25%;font-weight: bold;"> Printed In   </td>
                <td style="width: 25%;">   {$dateTime}   </td>
            </tr>
        </table>
    </div>

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

    <div class="row">

        <div class="col-md-12">

            {foreach from=$result key=myId item=i}
            <div class="col-md-12">
                <h4 class="catName" style="text-decoration: underline;font-weight: bold;">{$myId} Report </h4>              
            </div>

            {foreach $i as $inv}

            <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
                <tr>
                    <td>
                        <ul>
                            <li style="list-style: none;">
                                <span style="text-decoration: underline;font-weight: bold;">
                                    {$inv->invname} 
                                </span>
                            </li>
                        </ul>

                    </td>
                </tr>

                {if $inv->special_inv_type == 2  }  

                <tr>
                    <td>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr>
                                <td class="wds60"><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">Physical Examination :  </li> </ul></td>
                                <td><ul> <li style="text-decoration: underline;font-weight: bold;">Reference Range </li> </ul></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            {if $inv->urine.volume != Null && $inv->urine.volume != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Volume  <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.volume_range_txt == Null || $inv->urine.volume_range_txt  == '' ) &&    ($inv->urine.volume_low == 1 ||  $inv->urine.volume_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style="margin-left: 25% ; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style="margin-left: 25% ; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.volume}
                                        </div>  
                                </td>
                                <td class="wds15">
                                    {if $inv->urine.volume_range_txt == Null || $inv->urine.volume_range_txt  == ''}  
                                    {if $inv->urine.volume_low == 1 } L  {else if $inv->urine.volume_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td class="wds35">

                                    {if $inv->urine.volume_range_txt != Null && $inv->urine.volume_range_txt  != ''}  
                                    {$inv->urine.volume_range_txt}
                                    {else}

                                    {if $inv->urine.volume_range_low >= 0 && $inv->urine.volume_range_low != Null    }  
                                    {$inv->urine.volume_range_low}
                                    {/if}  

                                    {if $inv->urine.volume_range_high >= 0 &&  $inv->urine.volume_range_high != Null   }  
                                    -    {$inv->urine.volume_range_high}
                                    {/if}  

                                    {if $inv->urine.volume_invest_units &&  $inv->urine.volume_invest_units != Null   }  
                                    {$inv->urine.volume_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.color != Null && $inv->urine.color != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Color <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25"  style="text-align: center;"> 
                                    {if ($inv->urine.color_range_txt == Null || $inv->urine.color_range_txt  == '' ) &&    ($inv->urine.color_low == 1 ||  $inv->urine.color_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style="margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style="margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.color}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.color_range_txt == Null || $inv->urine.color_range_txt  == ''}  
                                    {if $inv->urine.color_low == 1 } L  {else if $inv->urine.color_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.color_range_txt != Null && $inv->urine.color_range_txt  != ''}  
                                    {$inv->urine.color_range_txt}
                                    {else}

                                    {if $inv->urine.color_range_low >= 0 && $inv->urine.color_range_low != Null    }  
                                    {$inv->urine.color_range_low}
                                    {/if}  

                                    {if $inv->urine.color_range_high >= 0 &&  $inv->urine.color_range_high != Null   }  
                                    -    {$inv->urine.color_range_high}
                                    {/if}  

                                    {if $inv->urine.color_invest_units &&  $inv->urine.color_invest_units != Null   }  
                                    {$inv->urine.color_invest_units}
                                    {/if}  
                                    {/if}  

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

                            {if $inv->urine.odor != Null && $inv->urine.odor != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Odor <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25"  style="text-align: center;"> 
                                    {if ($inv->urine.odor_range_txt == Null || $inv->urine.odor_range_txt  == '' ) &&    ($inv->urine.odor_low == 1 ||  $inv->urine.odor_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style="margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style="margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.odor}
                                        </div>  
                                </td>
                                <td class="wds15" >

                                    {if $inv->urine.odor_range_txt == Null || $inv->urine.odor_range_txt  == ''}  
                                    {if $inv->urine.odor_low == 1 } L  {else if $inv->urine.odor_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.odor_range_txt != Null && $inv->urine.odor_range_txt  != ''}  
                                    {$inv->urine.odor_range_txt}
                                    {else}

                                    {if $inv->urine.odor_range_low >= 0 && $inv->urine.odor_range_low != Null    }  
                                    {$inv->urine.odor_range_low}
                                    {/if}  

                                    {if $inv->urine.odor_range_high >= 0 &&  $inv->urine.odor_range_high != Null   }  
                                    -    {$inv->urine.odor_range_high}
                                    {/if}  

                                    {if $inv->urine.odor_invest_units &&  $inv->urine.odor_invest_units != Null   }  
                                    {$inv->urine.odor_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.aspect != Null && $inv->urine.aspect != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Aspect <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25"  style="text-align: center;"> 
                                    {if ($inv->urine.aspect_range_txt == Null || $inv->urine.aspect_range_txt  == '' ) &&    ($inv->urine.aspect_low == 1 ||  $inv->urine.aspect_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style="margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style="margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.aspect}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.aspect_range_txt == Null || $inv->urine.aspect_range_txt  == ''}  
                                    {if $inv->urine.aspect_low == 1 } L  {else if $inv->urine.aspect_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.aspect_range_txt != Null && $inv->urine.aspect_range_txt  != ''}  
                                    {$inv->urine.aspect_range_txt}
                                    {else}

                                    {if $inv->urine.aspect_range_low >= 0 && $inv->urine.aspect_range_low != Null    }  
                                    {$inv->urine.aspect_range_low}
                                    {/if}  

                                    {if $inv->urine.aspect_range_high >= 0 &&  $inv->urine.aspect_range_high != Null   }  
                                    -    {$inv->urine.aspect_range_high}
                                    {/if}  

                                    {if $inv->urine.aspect_invest_units &&  $inv->urine.aspect_invest_units != Null   }  
                                    {$inv->urine.aspect_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.deposit != Null && $inv->urine.deposit != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Deposit <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.deposit_range_txt == Null || $inv->urine.deposit_range_txt  == '' ) &&    ($inv->urine.deposit_low == 1 ||  $inv->urine.deposit_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style="margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style="margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.deposit}
                                        </div>  
                                </td>
                                <td class="wds15" >

                                    {if $inv->urine.deposit_range_txt == Null || $inv->urine.deposit_range_txt  == ''}  
                                    {if $inv->urine.deposit_low == 1 } L  {else if $inv->urine.deposit_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.deposit_range_txt != Null && $inv->urine.deposit_range_txt  != ''}  
                                    {$inv->urine.deposit_range_txt}
                                    {else}

                                    {if $inv->urine.deposit_range_low >= 0 && $inv->urine.deposit_range_low != Null    }  
                                    {$inv->urine.deposit_range_low}
                                    {/if}  

                                    {if $inv->urine.deposit_range_high >= 0 &&  $inv->urine.deposit_range_high != Null   }  
                                    -    {$inv->urine.deposit_range_high}
                                    {/if}  

                                    {if $inv->urine.deposit_invest_units &&  $inv->urine.deposit_invest_units != Null   }  
                                    {$inv->urine.deposit_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr>
                                <td><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">Chemical Examination :  </li> </ul></td>
                                <td><ul> <li style="text-decoration: underline;font-weight: bold;">  </li> </ul></td>
                            </tr>
                        </table>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">

                            {if $inv->urine.reaction != Null && $inv->urine.reaction != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Reaction <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25"  style="text-align: center;"> 
                                    {if ($inv->urine.reaction_range_txt == Null || $inv->urine.reaction_range_txt  == '' ) &&    ($inv->urine.reaction_low == 1 ||  $inv->urine.reaction_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style="margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style="margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.reaction}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.reaction_range_txt == Null || $inv->urine.reaction_range_txt  == ''}  
                                    {if $inv->urine.reaction_low == 1 } L  {else if $inv->urine.reaction_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td class="wds35">

                                    {if $inv->urine.reaction_range_txt != Null && $inv->urine.reaction_range_txt  != ''}  
                                    {$inv->urine.reaction_range_txt}
                                    {else}

                                    {if $inv->urine.reaction_range_low >= 0 && $inv->urine.reaction_range_low != Null    }  
                                    {$inv->urine.reaction_range_low}
                                    {/if}  

                                    {if $inv->urine.reaction_range_high >= 0 &&  $inv->urine.reaction_range_high != Null   }  
                                    -    {$inv->urine.reaction_range_high}
                                    {/if}  

                                    {if $inv->urine.reaction_invest_units &&  $inv->urine.reaction_invest_units != Null   }  
                                    {$inv->urine.reaction_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.protein != Null && $inv->urine.protein != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Protein <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.protein_range_txt == Null || $inv->urine.protein_range_txt  == '' ) &&    ($inv->urine.protein_low == 1 ||  $inv->urine.protein_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style="margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style="margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.protein}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.protein_range_txt == Null || $inv->urine.protein_range_txt  == ''}  
                                    {if $inv->urine.protein_low == 1 } L  {else if $inv->urine.protein_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td >

                                    {if $inv->urine.protein_range_txt != Null && $inv->urine.protein_range_txt  != ''}  
                                    {$inv->urine.protein_range_txt}
                                    {else}

                                    {if $inv->urine.protein_range_low >= 0 && $inv->urine.protein_range_low != Null    }  
                                    {$inv->urine.protein_range_low}
                                    {/if}  

                                    {if $inv->urine.protein_range_high >= 0 &&  $inv->urine.protein_range_high != Null   }  
                                    -    {$inv->urine.protein_range_high}
                                    {/if}  

                                    {if $inv->urine.protein_invest_units &&  $inv->urine.protein_invest_units != Null   }  
                                    {$inv->urine.protein_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.sugar != Null && $inv->urine.sugar != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Sugar <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.sugar_range_txt == Null || $inv->urine.sugar_range_txt  == '' ) &&    ($inv->urine.sugar_low == 1 ||  $inv->urine.sugar_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style="margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style="margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.sugar}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.sugar_range_txt == Null || $inv->urine.sugar_range_txt  == ''}  
                                    {if $inv->urine.sugar_low == 1 } L  {else if $inv->urine.sugar_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.sugar_range_txt != Null && $inv->urine.sugar_range_txt  != ''}  
                                    {$inv->urine.sugar_range_txt}
                                    {else}

                                    {if $inv->urine.sugar_range_low >= 0 && $inv->urine.sugar_range_low != Null    }  
                                    {$inv->urine.sugar_range_low}
                                    {/if}  

                                    {if $inv->urine.sugar_range_high >= 0 &&  $inv->urine.sugar_range_high != Null   }  
                                    -    {$inv->urine.sugar_range_high}
                                    {/if}  

                                    {if $inv->urine.sugar_invest_units &&  $inv->urine.sugar_invest_units != Null   }  
                                    {$inv->urine.sugar_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.acetone != Null && $inv->urine.acetone != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Acetone <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.acetone_range_txt == Null || $inv->urine.acetone_range_txt  == '' ) &&    ($inv->urine.acetone_low == 1 ||  $inv->urine.acetone_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style="margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style="margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.acetone}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.acetone_range_txt == Null || $inv->urine.acetone_range_txt  == ''}  
                                    {if $inv->urine.acetone_low == 1 } L  {else if $inv->urine.acetone_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.acetone_range_txt != Null && $inv->urine.acetone_range_txt  != ''}  
                                    {$inv->urine.acetone_range_txt}
                                    {else}

                                    {if $inv->urine.acetone_range_low >= 0 && $inv->urine.acetone_range_low != Null    }  
                                    {$inv->urine.acetone_range_low}
                                    {/if}  

                                    {if $inv->urine.acetone_range_high >= 0 &&  $inv->urine.acetone_range_high != Null   }  
                                    -    {$inv->urine.acetone_range_high}
                                    {/if}  

                                    {if $inv->urine.acetone_invest_units &&  $inv->urine.acetone_invest_units != Null   }  
                                    {$inv->urine.acetone_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.nitrite != Null && $inv->urine.nitrite != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Nitrite <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.nitrite_range_txt == Null || $inv->urine.nitrite_range_txt  == '' ) &&    ($inv->urine.nitrite_low == 1 ||  $inv->urine.nitrite_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.nitrite}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.nitrite_range_txt == Null || $inv->urine.nitrite_range_txt  == ''}  
                                    {if $inv->urine.nitrite_low == 1 } L  {else if $inv->urine.nitrite_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.nitrite_range_txt != Null && $inv->urine.nitrite_range_txt  != ''}  
                                    {$inv->urine.nitrite_range_txt}
                                    {else}

                                    {if $inv->urine.nitrite_range_low >= 0 && $inv->urine.nitrite_range_low != Null    }  
                                    {$inv->urine.nitrite_range_low}
                                    {/if}  

                                    {if $inv->urine.nitrite_range_high >= 0 &&  $inv->urine.nitrite_range_high != Null   }  
                                    -    {$inv->urine.nitrite_range_high}
                                    {/if}  

                                    {if $inv->urine.nitrite_invest_units &&  $inv->urine.nitrite_invest_units != Null   }  
                                    {$inv->urine.nitrite_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.gravity != Null && $inv->urine.gravity != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Specific Gravity <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.gravity_range_txt == Null || $inv->urine.gravity_range_txt  == '' ) &&    ($inv->urine.gravity_low == 1 ||  $inv->urine.gravity_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.gravity}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.gravity_range_txt == Null || $inv->urine.gravity_range_txt  == ''}  
                                    {if $inv->urine.gravity_low == 1 } L  {else if $inv->urine.gravity_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.gravity_range_txt != Null && $inv->urine.gravity_range_txt  != ''}  
                                    {$inv->urine.gravity_range_txt}
                                    {else}

                                    {if $inv->urine.gravity_range_low >= 0 && $inv->urine.gravity_range_low != Null    }  
                                    {$inv->urine.gravity_range_low}
                                    {/if}  

                                    {if $inv->urine.gravity_range_high >= 0 &&  $inv->urine.gravity_range_high != Null   }  
                                    -    {$inv->urine.gravity_range_high}
                                    {/if}  

                                    {if $inv->urine.gravity_invest_units &&  $inv->urine.gravity_invest_units != Null   }  
                                    {$inv->urine.gravity_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.bilirubin != Null && $inv->urine.bilirubin != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Bilirubin <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.bilirubin_range_txt == Null || $inv->urine.bilirubin_range_txt  == '' ) &&    ($inv->urine.bilirubin_low == 1 ||  $inv->urine.bilirubin_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.bilirubin}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.bilirubin_range_txt == Null || $inv->urine.bilirubin_range_txt  == ''}  
                                    {if $inv->urine.bilirubin_low == 1 } L  {else if $inv->urine.bilirubin_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.bilirubin_range_txt != Null && $inv->urine.bilirubin_range_txt  != ''}  
                                    {$inv->urine.bilirubin_range_txt}
                                    {else}

                                    {if $inv->urine.bilirubin_range_low >= 0 && $inv->urine.bilirubin_range_low != Null    }  
                                    {$inv->urine.bilirubin_range_low}
                                    {/if}  

                                    {if $inv->urine.bilirubin_range_high >= 0 &&  $inv->urine.bilirubin_range_high != Null   }  
                                    -    {$inv->urine.bilirubin_range_high}
                                    {/if}  

                                    {if $inv->urine.bilirubin_invest_units &&  $inv->urine.bilirubin_invest_units != Null   }  
                                    {$inv->urine.bilirubin_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.urobilinigen != Null && $inv->urine.urobilinigen != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Urobilinigen <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.urobilinigen_range_txt == Null || $inv->urine.urobilinigen_range_txt  == '' ) &&    ($inv->urine.urobilinigen_low == 1 ||  $inv->urine.urobilinigen_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.urobilinigen}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.urobilinigen_range_txt == Null || $inv->urine.urobilinigen_range_txt  == ''}  
                                    {if $inv->urine.urobilinigen_low == 1 } L  {else if $inv->urine.urobilinigen_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.urobilinigen_range_txt != Null && $inv->urine.urobilinigen_range_txt  != ''}  
                                    {$inv->urine.urobilinigen_range_txt}
                                    {else}

                                    {if $inv->urine.urobilinigen_range_low >= 0 && $inv->urine.urobilinigen_range_low != Null    }  
                                    {$inv->urine.urobilinigen_range_low}
                                    {/if}  

                                    {if $inv->urine.urobilinigen_range_high >= 0 &&  $inv->urine.urobilinigen_range_high != Null   }  
                                    -    {$inv->urine.urobilinigen_range_high}
                                    {/if}  

                                    {if $inv->urine.urobilinigen_invest_units &&  $inv->urine.urobilinigen_invest_units != Null   }  
                                    {$inv->urine.urobilinigen_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.leucocytes != Null && $inv->urine.leucocytes != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Leucocytes <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.leucocytes_range_txt == Null || $inv->urine.leucocytes_range_txt  == '' ) &&    ($inv->urine.leucocytes_low == 1 ||  $inv->urine.leucocytes_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.leucocytes}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.leucocytes_range_txt == Null || $inv->urine.leucocytes_range_txt  == ''}  
                                    {if $inv->urine.leucocytes_low == 1 } L  {else if $inv->urine.leucocytes_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.leucocytes_range_txt != Null && $inv->urine.leucocytes_range_txt  != ''}  
                                    {$inv->urine.leucocytes_range_txt}
                                    {else}

                                    {if $inv->urine.leucocytes_range_low >= 0 && $inv->urine.leucocytes_range_low != Null    }  
                                    {$inv->urine.leucocytes_range_low}
                                    {/if}  

                                    {if $inv->urine.leucocytes_range_high >= 0 &&  $inv->urine.leucocytes_range_high != Null   }  
                                    -    {$inv->urine.leucocytes_range_high}
                                    {/if}  

                                    {if $inv->urine.leucocytes_invest_units &&  $inv->urine.leucocytes_invest_units != Null   }  
                                    {$inv->urine.leucocytes_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.blood != Null && $inv->urine.blood != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Blood <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.blood_range_txt == Null || $inv->urine.blood_range_txt  == '' ) &&    ($inv->urine.blood_low == 1 ||  $inv->urine.blood_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.blood}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.blood_range_txt == Null || $inv->urine.blood_range_txt  == ''}  
                                    {if $inv->urine.blood_low == 1 } L  {else if $inv->urine.blood_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.blood_range_txt != Null && $inv->urine.blood_range_txt  != ''}  
                                    {$inv->urine.blood_range_txt}
                                    {else}

                                    {if $inv->urine.blood_range_low >= 0 && $inv->urine.blood_range_low != Null    }  
                                    {$inv->urine.blood_range_low}
                                    {/if}  

                                    {if $inv->urine.blood_range_high >= 0 &&  $inv->urine.blood_range_high != Null   }  
                                    -    {$inv->urine.blood_range_high}
                                    {/if}  

                                    {if $inv->urine.blood_invest_units &&  $inv->urine.blood_invest_units != Null   }  
                                    {$inv->urine.blood_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                        </table>


                    </td>
                </tr>
                <tr>
                    <td>

                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr>
                                <td><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">Microscopic Examination :  </li> </ul></td>
                                <td><ul> <li style="text-decoration: underline;font-weight: bold;">  </li> </ul></td>
                            </tr>
                        </table>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">

                            {if $inv->urine.pus != Null && $inv->urine.pus != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Pus Cells <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25"  style="text-align: center;"> 
                                    {if ($inv->urine.pus_range_txt == Null || $inv->urine.pus_range_txt  == '' ) &&    ($inv->urine.pus_low == 1 ||  $inv->urine.pus_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.pus}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.pus_range_txt == Null || $inv->urine.pus_range_txt  == ''}  
                                    {if $inv->urine.pus_low == 1 } L  {else if $inv->urine.pus_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.pus_range_txt != Null && $inv->urine.pus_range_txt  != ''}  
                                    {$inv->urine.pus_range_txt}
                                    {else}

                                    {if $inv->urine.pus_range_low >= 0 && $inv->urine.pus_range_low != Null    }  
                                    {$inv->urine.pus_range_low}
                                    {/if}  

                                    {if $inv->urine.pus_range_high >= 0 &&  $inv->urine.pus_range_high != Null   }  
                                    -    {$inv->urine.pus_range_high}
                                    {/if}  

                                    {if $inv->urine.pus_invest_units &&  $inv->urine.pus_invest_units != Null   }  
                                    {$inv->urine.pus_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.pbcs != Null && $inv->urine.pbcs != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">R.B.Cs <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.pbcs_range_txt == Null || $inv->urine.pbcs_range_txt  == '' ) &&    ($inv->urine.pbcs_low == 1 ||  $inv->urine.pbcs_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.pbcs}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.pbcs_range_txt == Null || $inv->urine.pbcs_range_txt  == ''}  
                                    {if $inv->urine.pbcs_low == 1 } L  {else if $inv->urine.pbcs_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.pbcs_range_txt != Null && $inv->urine.pbcs_range_txt  != ''}  
                                    {$inv->urine.pbcs_range_txt}
                                    {else}

                                    {if $inv->urine.pbcs_range_low >= 0 && $inv->urine.pbcs_range_low != Null    }  
                                    {$inv->urine.pbcs_range_low}
                                    {/if}  

                                    {if $inv->urine.pbcs_range_high >= 0 &&  $inv->urine.pbcs_range_high != Null   }  
                                    -    {$inv->urine.pbcs_range_high}
                                    {/if}  

                                    {if $inv->urine.pbcs_invest_units &&  $inv->urine.pbcs_invest_units != Null   }  
                                    {$inv->urine.pbcs_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.epithelial != Null && $inv->urine.epithelial != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Epithelial Cells <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.epithelial_range_txt == Null || $inv->urine.epithelial_range_txt  == '' ) &&    ($inv->urine.epithelial_low == 1 ||  $inv->urine.epithelial_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.epithelial}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.epithelial_range_txt == Null || $inv->urine.epithelial_range_txt  == ''}  
                                    {if $inv->urine.epithelial_low == 1 } L  {else if $inv->urine.epithelial_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.epithelial_range_txt != Null && $inv->urine.epithelial_range_txt  != ''}  
                                    {$inv->urine.epithelial_range_txt}
                                    {else}

                                    {if $inv->urine.epithelial_range_low >= 0 && $inv->urine.epithelial_range_low != Null    }  
                                    {$inv->urine.epithelial_range_low}
                                    {/if}  

                                    {if $inv->urine.epithelial_range_high >= 0 &&  $inv->urine.epithelial_range_high != Null   }  
                                    -    {$inv->urine.epithelial_range_high}
                                    {/if}  

                                    {if $inv->urine.epithelial_invest_units &&  $inv->urine.epithelial_invest_units != Null   }  
                                    {$inv->urine.epithelial_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.casts != Null && $inv->urine.casts != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Casts <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.casts_range_txt == Null || $inv->urine.casts_range_txt  == '' ) &&    ($inv->urine.casts_low == 1 ||  $inv->urine.casts_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.casts}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.casts2 != Null && $inv->urine.casts2 != ''}  
                                    {$inv->urine.casts2}
                                    {else}

                                    {if $inv->urine.casts_range_txt == Null || $inv->urine.casts_range_txt  == ''}  
                                    {if $inv->urine.casts_low == 1 } L  {else if $inv->urine.casts_high == 1 } H   {/if}
                                    {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.casts_range_txt != Null && $inv->urine.casts_range_txt  != ''}  
                                    {$inv->urine.casts_range_txt}
                                    {else}

                                    {if $inv->urine.casts_range_low >= 0 && $inv->urine.casts_range_low != Null    }  
                                    {$inv->urine.casts_range_low}
                                    {/if}  

                                    {if $inv->urine.casts_range_high >= 0 &&  $inv->urine.casts_range_high != Null   }  
                                    -    {$inv->urine.casts_range_high}
                                    {/if}  

                                    {if $inv->urine.casts_invest_units &&  $inv->urine.casts_invest_units != Null   }  
                                    {$inv->urine.casts_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.crystal != Null && $inv->urine.crystal != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Crystal <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.crystal_range_txt == Null || $inv->urine.crystal_range_txt  == '' ) &&    ($inv->urine.crystal_low == 1 ||  $inv->urine.crystal_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.crystal}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.crystal2 != Null && $inv->urine.crystal2 != ''}  
                                    {$inv->urine.crystal2}
                                    {else}


                                    {if $inv->urine.crystal_range_txt == Null || $inv->urine.crystal_range_txt  == ''}  
                                    {if $inv->urine.crystal_low == 1 } L  {else if $inv->urine.crystal_high == 1 } H   {/if}
                                    {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.crystal_range_txt != Null && $inv->urine.crystal_range_txt  != ''}  
                                    {$inv->urine.crystal_range_txt}
                                    {else}

                                    {if $inv->urine.crystal_range_low >= 0 && $inv->urine.crystal_range_low != Null    }  
                                    {$inv->urine.crystal_range_low}
                                    {/if}  

                                    {if $inv->urine.crystal_range_high >= 0 &&  $inv->urine.crystal_range_high != Null   }  
                                    -    {$inv->urine.crystal_range_high}
                                    {/if}  

                                    {if $inv->urine.crystal_invest_units &&  $inv->urine.crystal_invest_units != Null   }  
                                    {$inv->urine.crystal_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.amorphous != Null && $inv->urine.amorphous != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Amorphous <span style="float: right">:</span> </li> </ul> </td>
                                <td  class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.amorphous_range_txt == Null || $inv->urine.amorphous_range_txt  == '' ) &&    ($inv->urine.amorphous_low == 1 ||  $inv->urine.amorphous_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.amorphous}
                                        </div>  
                                </td>
                                <td class="wds15">
                                    {if $inv->urine.amorphous2 != Null && $inv->urine.amorphous2 != ''}  
                                    {$inv->urine.amorphous2}
                                    {else}
                                    {if $inv->urine.amorphous_range_txt == Null || $inv->urine.amorphous_range_txt  == ''}  
                                    {if $inv->urine.amorphous_low == 1 } L  {else if $inv->urine.amorphous_high == 1 } H   {/if}
                                    {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.amorphous_range_txt != Null && $inv->urine.amorphous_range_txt  != ''}  
                                    {$inv->urine.amorphous_range_txt}
                                    {else}

                                    {if $inv->urine.amorphous_range_low >= 0 && $inv->urine.amorphous_range_low != Null    }  
                                    {$inv->urine.amorphous_range_low}
                                    {/if}  

                                    {if $inv->urine.amorphous_range_high >= 0 &&  $inv->urine.amorphous_range_high != Null   }  
                                    -    {$inv->urine.amorphous_range_high}
                                    {/if}  

                                    {if $inv->urine.amorphous_invest_units &&  $inv->urine.amorphous_invest_units != Null   }  
                                    {$inv->urine.amorphous_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.ova != Null && $inv->urine.ova != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Ova <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.ova_range_txt == Null || $inv->urine.ova_range_txt  == '' ) &&    ($inv->urine.ova_low == 1 ||  $inv->urine.ova_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.ova}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.ova_range_txt == Null || $inv->urine.ova_range_txt  == ''}  
                                    {if $inv->urine.ova_low == 1 } L  {else if $inv->urine.ova_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.ova_range_txt != Null && $inv->urine.ova_range_txt  != ''}  
                                    {$inv->urine.ova_range_txt}
                                    {else}

                                    {if $inv->urine.ova_range_low >= 0 && $inv->urine.ova_range_low != Null    }  
                                    {$inv->urine.ova_range_low}
                                    {/if}  

                                    {if $inv->urine.ova_range_high >= 0 &&  $inv->urine.ova_range_high != Null   }  
                                    -    {$inv->urine.ova_range_high}
                                    {/if}  

                                    {if $inv->urine.ova_invest_units &&  $inv->urine.ova_invest_units != Null   }  
                                    {$inv->urine.ova_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.trophazite != Null && $inv->urine.trophazite != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Trophazite <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.trophazite_range_txt == Null || $inv->urine.trophazite_range_txt  == '' ) &&    ($inv->urine.trophazite_low == 1 ||  $inv->urine.trophazite_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.trophazite}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.trophazite_range_txt == Null || $inv->urine.trophazite_range_txt  == ''}  
                                    {if $inv->urine.trophazite_low == 1 } L  {else if $inv->urine.trophazite_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.trophazite_range_txt != Null && $inv->urine.trophazite_range_txt  != ''}  
                                    {$inv->urine.trophazite_range_txt}
                                    {else}

                                    {if $inv->urine.trophazite_range_low >= 0 && $inv->urine.trophazite_range_low != Null    }  
                                    {$inv->urine.trophazite_range_low}
                                    {/if}  

                                    {if $inv->urine.trophazite_range_high >= 0 &&  $inv->urine.trophazite_range_high != Null   }  
                                    -    {$inv->urine.trophazite_range_high}
                                    {/if}  

                                    {if $inv->urine.trophazite_invest_units &&  $inv->urine.trophazite_invest_units != Null   }  
                                    {$inv->urine.trophazite_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.mucus != Null && $inv->urine.mucus != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Mucus <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.mucus_range_txt == Null || $inv->urine.mucus_range_txt  == '' ) &&    ($inv->urine.mucus_low == 1 ||  $inv->urine.mucus_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.mucus}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.mucus_range_txt == Null || $inv->urine.mucus_range_txt  == ''}  
                                    {if $inv->urine.mucus_low == 1 } L  {else if $inv->urine.mucus_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.mucus_range_txt != Null && $inv->urine.mucus_range_txt  != ''}  
                                    {$inv->urine.mucus_range_txt}
                                    {else}

                                    {if $inv->urine.mucus_range_low >= 0 && $inv->urine.mucus_range_low != Null    }  
                                    {$inv->urine.mucus_range_low}
                                    {/if}  

                                    {if $inv->urine.mucus_range_high >= 0 &&  $inv->urine.mucus_range_high != Null   }  
                                    -    {$inv->urine.mucus_range_high}
                                    {/if}  

                                    {if $inv->urine.mucus_invest_units &&  $inv->urine.mucus_invest_units != Null   }  
                                    {$inv->urine.mucus_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.artifacts != Null && $inv->urine.artifacts != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Urine Artifacts <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.artifacts_range_txt == Null || $inv->urine.artifacts_range_txt  == '' ) &&    ($inv->urine.artifacts_low == 1 ||  $inv->urine.artifacts_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.artifacts}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.artifacts_range_txt == Null || $inv->urine.artifacts_range_txt  == ''}  
                                    {if $inv->urine.artifacts_low == 1 } L  {else if $inv->urine.artifacts_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.artifacts_range_txt != Null && $inv->urine.artifacts_range_txt  != ''}  
                                    {$inv->urine.artifacts_range_txt}
                                    {else}

                                    {if $inv->urine.artifacts_range_low >= 0 && $inv->urine.artifacts_range_low != Null    }  
                                    {$inv->urine.artifacts_range_low}
                                    {/if}  

                                    {if $inv->urine.artifacts_range_high >= 0 &&  $inv->urine.artifacts_range_high != Null   }  
                                    -    {$inv->urine.artifacts_range_high}
                                    {/if}  

                                    {if $inv->urine.artifacts_invest_units &&  $inv->urine.artifacts_invest_units != Null   }  
                                    {$inv->urine.artifacts_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.fungi != Null && $inv->urine.fungi != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Fungi <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.fungi_range_txt == Null || $inv->urine.fungi_range_txt  == '' ) &&    ($inv->urine.fungi_low == 1 ||  $inv->urine.fungi_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.fungi}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->urine.fungi_range_txt == Null || $inv->urine.fungi_range_txt  == ''}  
                                    {if $inv->urine.fungi_low == 1 } L  {else if $inv->urine.fungi_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.fungi_range_txt != Null && $inv->urine.fungi_range_txt  != ''}  
                                    {$inv->urine.fungi_range_txt}
                                    {else}

                                    {if $inv->urine.fungi_range_low >= 0 && $inv->urine.fungi_range_low != Null    }  
                                    {$inv->urine.fungi_range_low}
                                    {/if}  

                                    {if $inv->urine.fungi_range_high >= 0 &&  $inv->urine.fungi_range_high != Null   }  
                                    -    {$inv->urine.fungi_range_high}
                                    {/if}  

                                    {if $inv->urine.fungi_invest_units &&  $inv->urine.fungi_invest_units != Null   }  
                                    {$inv->urine.fungi_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  

                            {if $inv->urine.bacteria != Null && $inv->urine.bacteria != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds25"><ul> <li style="list-style: disc;">Bacteria <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->urine.bacteria_range_txt == Null || $inv->urine.bacteria_range_txt  == '' ) &&    ($inv->urine.bacteria_low == 1 ||  $inv->urine.bacteria_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->urine.bacteria}
                                        </div>  
                                </td>
                                <td class="wds15">
                                    {if $inv->urine.bacteria2 != Null && $inv->urine.bacteria2 != ''}  
                                    {$inv->urine.bacteria2}
                                    {else}


                                    {if $inv->urine.bacteria_range_txt == Null || $inv->urine.bacteria_range_txt  == ''}  
                                    {if $inv->urine.bacteria_low == 1 } L  {else if $inv->urine.bacteria_high == 1 } H   {/if}
                                    {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->urine.bacteria_range_txt != Null && $inv->urine.bacteria_range_txt  != ''}  
                                    {$inv->urine.bacteria_range_txt}
                                    {else}

                                    {if $inv->urine.bacteria_range_low >= 0 && $inv->urine.bacteria_range_low != Null    }  
                                    {$inv->urine.bacteria_range_low}
                                    {/if}  

                                    {if $inv->urine.bacteria_range_high >= 0 &&  $inv->urine.bacteria_range_high != Null   }  
                                    -    {$inv->urine.bacteria_range_high}
                                    {/if}  

                                    {if $inv->urine.bacteria_invest_units &&  $inv->urine.bacteria_invest_units != Null   }  
                                    {$inv->urine.bacteria_invest_units}
                                    {/if}  
                                    {/if}  

                                </td>

                            </tr>
                            {/if}  


                        </table>

                    </td>
                </tr>

                {if $inv->urine.comment != Null && $inv->urine.comment != ''}  
                <tr style="line-height: 30px; ">
                    <td colsan="4">
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr>
                                <td><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">Comment :  </li> </ul></td>
                                <td><ul> <li style="text-decoration: underline;font-weight: bold;">  </li> </ul></td>
                            </tr>
                        </table>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr>
                                <td class="wds65" style="padding-left: 5%;" > 
                                    {$inv->urine.comment}
                                </td>
                            </tr>
                        </table>

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


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

                <tr>
                    <td>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr>
                                <td class="wds70"><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">Physical Examination :  </li> </ul></td>
                                <td><ul> <li style="text-decoration: underline;font-weight: bold;">Reference Range </li> </ul></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">

                            {if $inv->stool.color != Null && $inv->stool.color != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">Color <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds30" style="text-align: center;"> 
                                    {if ($inv->stool.color_range_txt == Null || $inv->stool.color_range_txt  == '' ) &&    ($inv->stool.color_low == 1 ||  $inv->stool.color_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->stool.color}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->stool.color_range_txt == Null || $inv->stool.color_range_txt  == ''}  
                                    {if $inv->stool.color_low == 1 } L  {else if $inv->stool.color_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->stool.color_range_txt != Null && $inv->stool.color_range_txt  != ''}  
                                    {$inv->stool.color_range_txt}
                                    {else}

                                    {if $inv->stool.color_range_low >= 0 && $inv->stool.color_range_low != Null    }  
                                    {$inv->stool.color_range_low}
                                    {/if}  

                                    {if $inv->stool.color_range_high >= 0 &&  $inv->stool.color_range_high != Null   }  
                                    -    {$inv->stool.color_range_high}
                                    {/if}  

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

                                </td>

                            </tr>
                            {/if}

                            {if $inv->stool.reaction != Null && $inv->stool.reaction != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">Reaction <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds30" style="text-align: center;"> 
                                    {if ($inv->stool.reaction_range_txt == Null || $inv->stool.reaction_range_txt  == '' ) &&    ($inv->stool.reaction_low == 1 ||  $inv->stool.reaction_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->stool.reaction}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->stool.reaction_range_txt == Null || $inv->stool.reaction_range_txt  == ''}  
                                    {if $inv->stool.reaction_low == 1 } L  {else if $inv->stool.reaction_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->stool.reaction_range_txt != Null && $inv->stool.reaction_range_txt  != ''}  
                                    {$inv->stool.reaction_range_txt}
                                    {else}

                                    {if $inv->stool.reaction_range_low >= 0 && $inv->stool.reaction_range_low != Null    }  
                                    {$inv->stool.reaction_range_low}
                                    {/if}  

                                    {if $inv->stool.reaction_range_high >= 0 &&  $inv->stool.reaction_range_high != Null   }  
                                    -    {$inv->stool.reaction_range_high}
                                    {/if}  

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

                                </td>

                            </tr>
                            {/if}

                            {if $inv->stool.odor != Null && $inv->stool.odor != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">Odor <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds30" style="text-align: center;"> 
                                    {if ($inv->stool.odor_range_txt == Null || $inv->stool.odor_range_txt  == '' ) &&    ($inv->stool.odor_low == 1 ||  $inv->stool.odor_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->stool.odor}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->stool.odor_range_txt == Null || $inv->stool.odor_range_txt  == ''}  
                                    {if $inv->stool.odor_low == 1 } L  {else if $inv->stool.odor_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->stool.odor_range_txt != Null && $inv->stool.odor_range_txt  != ''}  
                                    {$inv->stool.odor_range_txt}
                                    {else}

                                    {if $inv->stool.odor_range_low >= 0 && $inv->stool.odor_range_low != Null    }  
                                    {$inv->stool.odor_range_low}
                                    {/if}  

                                    {if $inv->stool.odor_range_high >= 0 &&  $inv->stool.odor_range_high != Null   }  
                                    -    {$inv->stool.odor_range_high}
                                    {/if}  

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

                                </td>

                            </tr>
                            {/if}

                            {if $inv->stool.mucus != Null && $inv->stool.mucus != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">Mucus <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds30" style="text-align: center;"> 
                                    {if ($inv->stool.mucus_range_txt == Null || $inv->stool.mucus_range_txt  == '' ) &&    ($inv->stool.mucus_low == 1 ||  $inv->stool.mucus_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->stool.mucus}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->stool.mucus_range_txt == Null || $inv->stool.mucus_range_txt  == ''}  
                                    {if $inv->stool.mucus_low == 1 } L  {else if $inv->stool.mucus_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->stool.mucus_range_txt != Null && $inv->stool.mucus_range_txt  != ''}  
                                    {$inv->stool.mucus_range_txt}
                                    {else}

                                    {if $inv->stool.mucus_range_low >= 0 && $inv->stool.mucus_range_low != Null    }  
                                    {$inv->stool.mucus_range_low}
                                    {/if}  

                                    {if $inv->stool.mucus_range_high >= 0 &&  $inv->stool.mucus_range_high != Null   }  
                                    -    {$inv->stool.mucus_range_high}
                                    {/if}  

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

                                </td>

                            </tr>
                            {/if}

                            {if $inv->stool.consistency != Null && $inv->stool.consistency != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">Consistency <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds30" style="text-align: center;"> 
                                    {if ($inv->stool.consistency_range_txt == Null || $inv->stool.consistency_range_txt  == '' ) &&    ($inv->stool.consistency_low == 1 ||  $inv->stool.consistency_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->stool.consistency}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->stool.consistency_range_txt == Null || $inv->stool.consistency_range_txt  == ''}  
                                    {if $inv->stool.consistency_low == 1 } L  {else if $inv->stool.consistency_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->stool.consistency_range_txt != Null && $inv->stool.consistency_range_txt  != ''}  
                                    {$inv->stool.consistency_range_txt}
                                    {else}

                                    {if $inv->stool.consistency_range_low >= 0 && $inv->stool.consistency_range_low != Null    }  
                                    {$inv->stool.consistency_range_low}
                                    {/if}  

                                    {if $inv->stool.consistency_range_high >= 0 &&  $inv->stool.consistency_range_high != Null   }  
                                    -    {$inv->stool.consistency_range_high}
                                    {/if}  

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

                                </td>

                            </tr>
                            {/if}

                            {if $inv->stool.food != Null && $inv->stool.food != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">Food Particles <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds30" style="text-align: center;"> 
                                    {if ($inv->stool.food_range_txt == Null || $inv->stool.food_range_txt  == '' ) &&    ($inv->stool.food_low == 1 ||  $inv->stool.food_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->stool.food}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->stool.food_range_txt == Null || $inv->stool.food_range_txt  == ''}  
                                    {if $inv->stool.food_low == 1 } L  {else if $inv->stool.food_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->stool.food_range_txt != Null && $inv->stool.food_range_txt  != ''}  
                                    {$inv->stool.food_range_txt}
                                    {else}

                                    {if $inv->stool.food_range_low >= 0 && $inv->stool.food_range_low != Null    }  
                                    {$inv->stool.food_range_low}
                                    {/if}  

                                    {if $inv->stool.food_range_high >= 0 &&  $inv->stool.food_range_high != Null   }  
                                    -    {$inv->stool.food_range_high}
                                    {/if}  

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

                                </td>

                            </tr>
                            {/if}

                            {if $inv->stool.blood != Null && $inv->stool.blood != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">Blood <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds30" style="text-align: center;"> 
                                    {if ($inv->stool.blood_range_txt == Null || $inv->stool.blood_range_txt  == '' ) &&    ($inv->stool.blood_low == 1 ||  $inv->stool.blood_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->stool.blood}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->stool.blood_range_txt == Null || $inv->stool.blood_range_txt  == ''}  
                                    {if $inv->stool.blood_low == 1 } L  {else if $inv->stool.blood_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->stool.blood_range_txt != Null && $inv->stool.blood_range_txt  != ''}  
                                    {$inv->stool.blood_range_txt}
                                    {else}

                                    {if $inv->stool.blood_range_low >= 0 && $inv->stool.blood_range_low != Null    }  
                                    {$inv->stool.blood_range_low}
                                    {/if}  

                                    {if $inv->stool.blood_range_high >= 0 &&  $inv->stool.blood_range_high != Null   }  
                                    -    {$inv->stool.blood_range_high}
                                    {/if}  

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

                                </td>

                            </tr>
                            {/if}

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

                <tr>
                    <td>

                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr>
                                <td><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">Microscopic Examination :  </li> </ul></td>
                                <td><ul> <li style="text-decoration: underline;font-weight: bold;">  </li> </ul></td>
                            </tr>
                        </table>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">


                            {if $inv->stool.wbc != Null && $inv->stool.wbc != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">WBCs <span style="float: right">:</span> </li> </ul> </td>
                                <td  class="wds30" style="text-align: center;"> 
                                    {if ($inv->stool.wbc_range_txt == Null || $inv->stool.wbc_range_txt  == '' ) &&    ($inv->stool.wbc_low == 1 ||  $inv->stool.wbc_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->stool.wbc}
                                        </div>  
                                </td>
                                <td  class="wds15">

                                    {if $inv->stool.wbc_range_txt == Null || $inv->stool.wbc_range_txt  == ''}  
                                    {if $inv->stool.wbc_low == 1 } L  {else if $inv->stool.wbc_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->stool.wbc_range_txt != Null && $inv->stool.wbc_range_txt  != ''}  
                                    {$inv->stool.wbc_range_txt}
                                    {else}

                                    {if $inv->stool.wbc_range_low >= 0 && $inv->stool.wbc_range_low != Null    }  
                                    {$inv->stool.wbc_range_low}
                                    {/if}  

                                    {if $inv->stool.wbc_range_high >= 0 &&  $inv->stool.wbc_range_high != Null   }  
                                    -    {$inv->stool.wbc_range_high}
                                    {/if}  

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

                                </td>

                            </tr>
                            {/if}

                            {if $inv->stool.rbc != Null && $inv->stool.rbc != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">RBCs <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds30" style="text-align: center;"> 
                                    {if ($inv->stool.rbc_range_txt == Null || $inv->stool.rbc_range_txt  == '' ) &&    ($inv->stool.rbc_low == 1 ||  $inv->stool.rbc_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->stool.rbc}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->stool.rbc_range_txt == Null || $inv->stool.rbc_range_txt  == ''}  
                                    {if $inv->stool.rbc_low == 1 } L  {else if $inv->stool.rbc_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->stool.rbc_range_txt != Null && $inv->stool.rbc_range_txt  != ''}  
                                    {$inv->stool.rbc_range_txt}
                                    {else}

                                    {if $inv->stool.rbc_range_low >= 0 && $inv->stool.rbc_range_low != Null    }  
                                    {$inv->stool.rbc_range_low}
                                    {/if}  

                                    {if $inv->stool.rbc_range_high >= 0 &&  $inv->stool.rbc_range_high != Null   }  
                                    -    {$inv->stool.rbc_range_high}
                                    {/if}  

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

                                </td>

                            </tr>
                            {/if}

                            {if $inv->stool.trophozoite != Null && $inv->stool.trophozoite != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">Trophozoite <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds30" style="text-align: center;"> 
                                    {if ($inv->stool.trophozoite_range_txt == Null || $inv->stool.trophozoite_range_txt  == '' ) &&    ($inv->stool.trophozoite_low == 1 ||  $inv->stool.trophozoite_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->stool.trophozoite}
                                        </div>  
                                </td>
                                <td class="wds15">
                                    {if $inv->stool.trophozoite2 != Null && $inv->stool.trophozoite2 != ''}  
                                    {$inv->stool.trophozoite2}
                                    {/if}

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

                                    {if $inv->stool.trophozoite_range_txt == Null || $inv->stool.trophozoite_range_txt  == ''}  
                                    {if $inv->stool.trophozoite_low == 1 } L  {else if $inv->stool.trophozoite_high == 1 } H   {/if}
                                    {/if}

                                </td>
                                <td>

                                    {if $inv->stool.trophozoite_range_txt != Null && $inv->stool.trophozoite_range_txt  != ''}  
                                    {$inv->stool.trophozoite_range_txt}
                                    {else}

                                    {if $inv->stool.trophozoite_range_low >= 0 && $inv->stool.trophozoite_range_low != Null    }  
                                    {$inv->stool.trophozoite_range_low}
                                    {/if}  

                                    {if $inv->stool.trophozoite_range_high >= 0 &&  $inv->stool.trophozoite_range_high != Null   }  
                                    -    {$inv->stool.trophozoite_range_high}
                                    {/if}  

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

                                </td>

                            </tr>
                            {/if}

                            {if $inv->stool.cysts != Null && $inv->stool.cysts != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">Cysts <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds30" style="text-align: center;"> 
                                    {if ($inv->stool.cysts_range_txt == Null || $inv->stool.cysts_range_txt  == '' ) &&    ($inv->stool.cysts_low == 1 ||  $inv->stool.cysts_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->stool.cysts}
                                        </div>  
                                </td>
                                <td class="wds15">
                                    {if $inv->stool.cysts2 != Null && $inv->stool.cysts2 != ''}  
                                    {$inv->stool.cysts2}
                                    {/if}
                                    {if $inv->stool.cysts_range_txt == Null || $inv->stool.cysts_range_txt  == ''}  
                                    {if $inv->stool.cysts_low == 1 } L  {else if $inv->stool.cysts_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->stool.cysts_range_txt != Null && $inv->stool.cysts_range_txt  != ''}  
                                    {$inv->stool.cysts_range_txt}
                                    {else}

                                    {if $inv->stool.cysts_range_low >= 0 && $inv->stool.cysts_range_low != Null    }  
                                    {$inv->stool.cysts_range_low}
                                    {/if}  

                                    {if $inv->stool.cysts_range_high >= 0 &&  $inv->stool.cysts_range_high != Null   }  
                                    -    {$inv->stool.cysts_range_high}
                                    {/if}  

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

                                </td>

                            </tr>
                            {/if}

                            {if $inv->stool.ova != Null && $inv->stool.ova != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">Ova <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds30" style="text-align: center;"> 
                                    {if ($inv->stool.ova_range_txt == Null || $inv->stool.ova_range_txt  == '' ) &&    ($inv->stool.ova_low == 1 ||  $inv->stool.ova_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->stool.ova}
                                        </div>  
                                </td>
                                <td class="wds15">
                                    {if $inv->stool.ova2 != Null && $inv->stool.ova2 != ''}  
                                    {$inv->stool.ova2}
                                    {/if}
                                    {if $inv->stool.ova_range_txt == Null || $inv->stool.ova_range_txt  == ''}  
                                    {if $inv->stool.ova_low == 1 } L  {else if $inv->stool.ova_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->stool.ova_range_txt != Null && $inv->stool.ova_range_txt  != ''}  
                                    {$inv->stool.ova_range_txt}
                                    {else}

                                    {if $inv->stool.ova_range_low >= 0 && $inv->stool.ova_range_low != Null    }  
                                    {$inv->stool.ova_range_low}
                                    {/if}  

                                    {if $inv->stool.ova_range_high >= 0 &&  $inv->stool.ova_range_high != Null   }  
                                    -    {$inv->stool.ova_range_high}
                                    {/if}  

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

                                </td>

                            </tr>
                            {/if}

                            {if $inv->stool.larva != Null && $inv->stool.larva != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">Larva <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds30" style="text-align: center;"> 
                                    {if ($inv->stool.larva_range_txt == Null || $inv->stool.larva_range_txt  == '' ) &&    ($inv->stool.larva_low == 1 ||  $inv->stool.larva_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->stool.larva}
                                        </div>  
                                </td>
                                <td class="wds15">
                                    {if $inv->stool.larva2 != Null && $inv->stool.larva2 != ''}  
                                    {$inv->stool.larva2}
                                    {/if}
                                    {if $inv->stool.larva_range_txt == Null || $inv->stool.larva_range_txt  == ''}  
                                    {if $inv->stool.larva_low == 1 } L  {else if $inv->stool.larva_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->stool.larva_range_txt != Null && $inv->stool.larva_range_txt  != ''}  
                                    {$inv->stool.larva_range_txt}
                                    {else}

                                    {if $inv->stool.larva_range_low >= 0 && $inv->stool.larva_range_low != Null    }  
                                    {$inv->stool.larva_range_low}
                                    {/if}  

                                    {if $inv->stool.larva_range_high >= 0 &&  $inv->stool.larva_range_high != Null   }  
                                    -    {$inv->stool.larva_range_high}
                                    {/if}  

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

                                </td>

                            </tr>
                            {/if}

                            {if $inv->stool.prog != Null && $inv->stool.prog != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">Proglottids <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds30" style="text-align: center;"> 
                                    {if ($inv->stool.prog_range_txt == Null || $inv->stool.prog_range_txt  == '' ) &&    ($inv->stool.prog_low == 1 ||  $inv->stool.prog_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->stool.prog}
                                        </div>  
                                </td>
                                <td class="wds15">
                                    {if $inv->stool.prog2 != Null && $inv->stool.prog2 != ''}  
                                    {$inv->stool.prog2}
                                    {/if}
                                    {if $inv->stool.prog_range_txt == Null || $inv->stool.prog_range_txt  == ''}  
                                    {if $inv->stool.prog_low == 1 } L  {else if $inv->stool.prog_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->stool.prog_range_txt != Null && $inv->stool.prog_range_txt  != ''}  
                                    {$inv->stool.prog_range_txt}
                                    {else}

                                    {if $inv->stool.prog_range_low >= 0 && $inv->stool.prog_range_low != Null    }  
                                    {$inv->stool.prog_range_low}
                                    {/if}  

                                    {if $inv->stool.prog_range_high >= 0 &&  $inv->stool.prog_range_high != Null   }  
                                    -    {$inv->stool.prog_range_high}
                                    {/if}  

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

                                </td>

                            </tr>
                            {/if}



                            {if $inv->stool.flagellates != Null && $inv->stool.flagellates != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">Flagellates <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds30" style="text-align: center;"> 
                                    {if ($inv->stool.flagellates_range_txt == Null || $inv->stool.flagellates_range_txt  == '' ) &&    ($inv->stool.flagellates_low == 1 ||  $inv->stool.flagellates_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->stool.flagellates}
                                        </div>  
                                </td>
                                <td class="wds15">

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


                                    {if $inv->stool.flagellates_range_txt == Null || $inv->stool.flagellates_range_txt  == ''}  
                                    {if $inv->stool.flagellates_low == 1 } L  {else if $inv->stool.flagellates_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->stool.flagellates_range_txt != Null && $inv->stool.flagellates_range_txt  != ''}  
                                    {$inv->stool.flagellates_range_txt}
                                    {else}

                                    {if $inv->stool.flagellates_range_low >= 0 && $inv->stool.flagellates_range_low != Null    }  
                                    {$inv->stool.flagellates_range_low}
                                    {/if}  

                                    {if $inv->stool.flagellates_range_high >= 0 &&  $inv->stool.flagellates_range_high != Null   }  
                                    -    {$inv->stool.flagellates_range_high}
                                    {/if}  

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

                                </td>

                            </tr>
                            {/if}

                            {if $inv->stool.ciliate != Null && $inv->stool.ciliate != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">Ciliate <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds30" style="text-align: center;"> 
                                    {if ($inv->stool.ciliate_range_txt == Null || $inv->stool.ciliate_range_txt  == '' ) &&    ($inv->stool.ciliate_low == 1 ||  $inv->stool.ciliate_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->stool.ciliate}
                                        </div>  
                                </td>
                                <td class="wds15">

                                    {if $inv->stool.ciliate_range_txt == Null || $inv->stool.ciliate_range_txt  == ''}  
                                    {if $inv->stool.ciliate_low == 1 } L  {else if $inv->stool.ciliate_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->stool.ciliate_range_txt != Null && $inv->stool.ciliate_range_txt  != ''}  
                                    {$inv->stool.ciliate_range_txt}
                                    {else}

                                    {if $inv->stool.ciliate_range_low >= 0 && $inv->stool.ciliate_range_low != Null    }  
                                    {$inv->stool.ciliate_range_low}
                                    {/if}  

                                    {if $inv->stool.ciliate_range_high >= 0 &&  $inv->stool.ciliate_range_high != Null   }  
                                    -    {$inv->stool.ciliate_range_high}
                                    {/if}  

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

                                </td>

                            </tr>
                            {/if}

                            {if $inv->stool.undigested != Null && $inv->stool.undigested != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">Undigested Food <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds30" style="text-align: center;"> 
                                    {if ($inv->stool.undigested_range_txt == Null || $inv->stool.undigested_range_txt  == '' ) &&    ($inv->stool.undigested_low == 1 ||  $inv->stool.undigested_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->stool.undigested}
                                        </div>  
                                </td>
                                <td class="wds15">

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

                                    {if $inv->stool.undigested_range_txt == Null || $inv->stool.undigested_range_txt  == ''}  
                                    {if $inv->stool.undigested_low == 1 } L  {else if $inv->stool.undigested_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->stool.undigested_range_txt != Null && $inv->stool.undigested_range_txt  != ''}  
                                    {$inv->stool.undigested_range_txt}
                                    {else}

                                    {if $inv->stool.undigested_range_low >= 0 && $inv->stool.undigested_range_low != Null    }  
                                    {$inv->stool.undigested_range_low}
                                    {/if}  

                                    {if $inv->stool.undigested_range_high >= 0 &&  $inv->stool.undigested_range_high != Null   }  
                                    -    {$inv->stool.undigested_range_high}
                                    {/if}  

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

                                </td>

                            </tr>
                            {/if}

                            {if $inv->stool.parasitology != Null && $inv->stool.parasitology != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">Parasitology Artifacts <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds30" style="text-align: center;"> 
                                    {if ($inv->stool.parasitology_range_txt == Null || $inv->stool.parasitology_range_txt  == '' ) &&    ($inv->stool.parasitology_low == 1 ||  $inv->stool.parasitology_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}

                                            {$inv->stool.parasitology}
                                        </div>  
                                </td>
                                <td class="wds15">
                                    {if $inv->stool.parasitology2 != Null && $inv->stool.parasitology2 != ''}  
                                    {$inv->stool.parasitology2}
                                    {/if}
                                    {if $inv->stool.parasitology_range_txt == Null || $inv->stool.parasitology_range_txt  == ''}  
                                    {if $inv->stool.parasitology_low == 1 } L  {else if $inv->stool.parasitology_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>

                                    {if $inv->stool.parasitology_range_txt != Null && $inv->stool.parasitology_range_txt  != ''}  
                                    {$inv->stool.parasitology_range_txt}
                                    {else}

                                    {if $inv->stool.parasitology_range_low >= 0 && $inv->stool.parasitology_range_low != Null    }  
                                    {$inv->stool.parasitology_range_low}
                                    {/if}  

                                    {if $inv->stool.parasitology_range_high >= 0 &&  $inv->stool.parasitology_range_high != Null   }  
                                    -    {$inv->stool.parasitology_range_high}
                                    {/if}  

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

                                </td>

                            </tr>
                            {/if}

                        </table>



                    </td>
                </tr>

                {if $inv->stool.comment != Null && $inv->stool.comment != ''}  
                <tr style="line-height: 30px; ">
                    <td colsan="4">
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr>
                                <td><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">Comment :  </li> </ul></td>
                                <td><ul> <li style="text-decoration: underline;font-weight: bold;">  </li> </ul></td>
                            </tr>
                        </table>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr>
                                <td class="wds65" style="padding-left: 5%;" > 
                                    {$inv->stool.comment}
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                {/if}  


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

                <tr>
                    <td>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr>
                                <td class="wds65"></td>
                                <td><ul> <li style="text-decoration: underline;font-weight: bold;">Reference Range </li> </ul></td>
                            </tr>
                        </table>
                    </td>
                </tr>

                <tr>
                    <td>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">


                            {if $inv->blood->hgb != Null && $inv->blood->hgb != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">Hgb (Hemoglobin)  <span style="float: right">:</span></li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->blood->hgb_range_txt == Null || $inv->blood->hgb_range_txt  == '' ) &&    ($inv->blood->hgb_low == 1 ||  $inv->blood->hgb_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}
                                            {$inv->blood->hgb}
                                        </div>  
                                </td>
                                <td class="wds15">
                                    {if $inv->blood->hgb_range_txt == Null || $inv->blood->hgb_range_txt  == ''}  
                                    {if $inv->blood->hgb_low == 1 } L  {else if $inv->blood->hgb_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>
                                    {if $inv->blood->hgb_range_txt != Null && $inv->blood->hgb_range_txt  != ''}  
                                    {$inv->blood->hgb_range_txt}
                                    {else}

                                    {if $inv->blood->hgb_range_low >= 0 && $inv->blood->hgb_range_low != Null    }  
                                    {$inv->blood->hgb_range_low}
                                    {/if}  

                                    {if $inv->blood->hgb_range_high >= 0 &&  $inv->blood->hgb_range_high != Null   }  
                                    -    {$inv->blood->hgb_range_high}
                                    {/if}  

                                    {if $inv->blood->hgb_invest_units &&  $inv->blood->hgb_invest_units != Null   }  
                                    {$inv->blood->hgb_invest_units}
                                    {/if}  
                                    {/if}  
                                </td>
                            </tr>
                            {/if}

                            {if $inv->blood->rbc != Null && $inv->blood->rbc != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">RBCs ( Red Blood Cells) <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->blood->rbc_range_txt == Null || $inv->blood->rbc_range_txt  == '' ) &&    ($inv->blood->rbc_low == 1 ||  $inv->blood->rbc_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}
                                            {$inv->blood->rbc}
                                        </div>  
                                </td>
                                <td class="wds15">
                                    {if $inv->blood->rbc_range_txt == Null || $inv->blood->rbc_range_txt  == ''}  
                                    {if $inv->blood->rbc_low == 1 } L  {else if $inv->blood->rbc_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>
                                    {if $inv->blood->rbc_range_txt != Null && $inv->blood->rbc_range_txt  != ''}  
                                    {$inv->blood->rbc_range_txt}
                                    {else}

                                    {if $inv->blood->rbc_range_low >= 0 && $inv->blood->rbc_range_low != Null    }  
                                    {$inv->blood->rbc_range_low}
                                    {/if}  

                                    {if $inv->blood->rbc_range_high >= 0 &&  $inv->blood->rbc_range_high != Null   }  
                                    -    {$inv->blood->rbc_range_high}
                                    {/if}  

                                    {if $inv->blood->rbc_invest_units &&  $inv->blood->rbc_invest_units != Null   }  
                                    {$inv->blood->rbc_invest_units}
                                    {/if}  
                                    {/if}  
                                </td>
                            </tr>
                            {/if}

                            {if $inv->blood->hct != Null && $inv->blood->hct != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">Hct ( Hematocrit) <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->blood->hct_range_txt == Null || $inv->blood->hct_range_txt  == '' ) &&    ($inv->blood->hct_low == 1 ||  $inv->blood->hct_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}
                                            {$inv->blood->hct}
                                        </div>  
                                </td>
                                <td class="wds15">
                                    {if $inv->blood->hct_range_txt == Null || $inv->blood->hct_range_txt  == ''}  
                                    {if $inv->blood->hct_low == 1 } L  {else if $inv->blood->hct_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>
                                    {if $inv->blood->hct_range_txt != Null && $inv->blood->hct_range_txt  != ''}  
                                    {$inv->blood->hct_range_txt}
                                    {else}

                                    {if $inv->blood->hct_range_low >= 0 && $inv->blood->hct_range_low != Null    }  
                                    {$inv->blood->hct_range_low}
                                    {/if}  

                                    {if $inv->blood->hct_range_high >= 0 &&  $inv->blood->hct_range_high != Null   }  
                                    -    {$inv->blood->hct_range_high}
                                    {/if}  

                                    {if $inv->blood->hct_invest_units &&  $inv->blood->hct_invest_units != Null   }  
                                    {$inv->blood->hct_invest_units}
                                    {/if}  
                                    {/if}  
                                </td>
                            </tr>
                            {/if}

                            {if $inv->blood->hgbpercent != Null && $inv->blood->hgbpercent != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">Hgb % <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->blood->hgbpercent_range_txt == Null || $inv->blood->hgbpercent_range_txt  == '' ) &&    ($inv->blood->hgbpercent_low == 1 ||  $inv->blood->hgbpercent_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}
                                            {$inv->blood->hgbpercent}
                                        </div>  
                                </td>
                                <td class="wds15">
                                    {if $inv->blood->hgbpercent_range_txt == Null || $inv->blood->hgbpercent_range_txt  == ''}  
                                    {if $inv->blood->hgbpercent_low == 1 } L  {else if $inv->blood->hgbpercent_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>
                                    {if $inv->blood->hgbpercent_range_txt != Null && $inv->blood->hgbpercent_range_txt  != ''}  
                                    {$inv->blood->hgbpercent_range_txt}
                                    {else}

                                    {if $inv->blood->hgbpercent_range_low >= 0 && $inv->blood->hgbpercent_range_low != Null    }  
                                    {$inv->blood->hgbpercent_range_low}
                                    {/if}  

                                    {if $inv->blood->hgbpercent_range_high >= 0 &&  $inv->blood->hgbpercent_range_high != Null   }  
                                    -    {$inv->blood->hgbpercent_range_high}
                                    {/if}  

                                    {if $inv->blood->hgbpercent_invest_units &&  $inv->blood->hgbpercent_invest_units != Null   }  
                                    {$inv->blood->hgbpercent_invest_units}
                                    {/if}  
                                    {/if}  
                                </td>
                            </tr>
                            {/if}

                            {if $inv->blood->mcv != Null && $inv->blood->mcv != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">MCV <span style="float: right">:</span></li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->blood->mcv_range_txt == Null || $inv->blood->mcv_range_txt  == '' ) &&    ($inv->blood->mcv_low == 1 ||  $inv->blood->mcv_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}
                                            {$inv->blood->mcv}
                                        </div>  
                                </td>
                                <td class="wds15">
                                    {if $inv->blood->mcv_range_txt == Null || $inv->blood->mcv_range_txt  == ''}  
                                    {if $inv->blood->mcv_low == 1 } L  {else if $inv->blood->mcv_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>
                                    {if $inv->blood->mcv_range_txt != Null && $inv->blood->mcv_range_txt  != ''}  
                                    {$inv->blood->mcv_range_txt}
                                    {else}

                                    {if $inv->blood->mcv_range_low >= 0 && $inv->blood->mcv_range_low != Null    }  
                                    {$inv->blood->mcv_range_low}
                                    {/if}  

                                    {if $inv->blood->mcv_range_high >= 0 &&  $inv->blood->mcv_range_high != Null   }  
                                    -    {$inv->blood->mcv_range_high}
                                    {/if}  

                                    {if $inv->blood->mcv_invest_units &&  $inv->blood->mcv_invest_units != Null   }  
                                    {$inv->blood->mcv_invest_units}
                                    {/if}  
                                    {/if}  
                                </td>
                            </tr>
                            {/if}

                            {if $inv->blood->mch != Null && $inv->blood->mch != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">MCH <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->blood->mch_range_txt == Null || $inv->blood->mch_range_txt  == '' ) &&    ($inv->blood->mch_low == 1 ||  $inv->blood->mch_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}
                                            {$inv->blood->mch}
                                        </div>  
                                </td>
                                <td class="wds15">
                                    {if $inv->blood->mch_range_txt == Null || $inv->blood->mch_range_txt  == ''}  
                                    {if $inv->blood->mch_low == 1 } L  {else if $inv->blood->mch_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>
                                    {if $inv->blood->mch_range_txt != Null && $inv->blood->mch_range_txt  != ''}  
                                    {$inv->blood->mch_range_txt}
                                    {else}

                                    {if $inv->blood->mch_range_low >= 0 && $inv->blood->mch_range_low != Null    }  
                                    {$inv->blood->mch_range_low}
                                    {/if}  

                                    {if $inv->blood->mch_range_high >= 0 &&  $inv->blood->mch_range_high != Null   }  
                                    -    {$inv->blood->mch_range_high}
                                    {/if}  

                                    {if $inv->blood->mch_invest_units &&  $inv->blood->mch_invest_units != Null   }  
                                    {$inv->blood->mch_invest_units}
                                    {/if}  
                                    {/if}  
                                </td>
                            </tr>
                            {/if}

                            {if $inv->blood->mchc != Null && $inv->blood->mchc != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">MCHC <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->blood->mchc_range_txt == Null || $inv->blood->mchc_range_txt  == '' ) &&    ($inv->blood->mchc_low == 1 ||  $inv->blood->mchc_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}
                                            {$inv->blood->mchc}
                                        </div>  
                                </td>
                                <td class="wds15">
                                    {if $inv->blood->mchc_range_txt == Null || $inv->blood->mchc_range_txt  == ''}  
                                    {if $inv->blood->mchc_low == 1 } L  {else if $inv->blood->mchc_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>
                                    {if $inv->blood->mchc_range_txt != Null && $inv->blood->mchc_range_txt  != ''}  
                                    {$inv->blood->mchc_range_txt}
                                    {else}

                                    {if $inv->blood->mchc_range_low >= 0 && $inv->blood->mchc_range_low != Null    }  
                                    {$inv->blood->mchc_range_low}
                                    {/if}  

                                    {if $inv->blood->mchc_range_high >= 0 &&  $inv->blood->mchc_range_high != Null   }  
                                    -    {$inv->blood->mchc_range_high}
                                    {/if}  

                                    {if $inv->blood->mchc_invest_units &&  $inv->blood->mchc_invest_units != Null   }  
                                    {$inv->blood->mchc_invest_units}
                                    {/if}  
                                    {/if}  
                                </td>
                            </tr>
                            {/if}

                            {if $inv->blood->rdw != Null && $inv->blood->rdw != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">RDW <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->blood->rdw_range_txt == Null || $inv->blood->rdw_range_txt  == '' ) &&    ($inv->blood->rdw_low == 1 ||  $inv->blood->rdw_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}
                                            {$inv->blood->rdw}
                                        </div>  
                                </td>
                                <td class="wds15">
                                    {if $inv->blood->rdw_range_txt == Null || $inv->blood->rdw_range_txt  == ''}  
                                    {if $inv->blood->rdw_low == 1 } L  {else if $inv->blood->rdw_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>
                                    {if $inv->blood->rdw_range_txt != Null && $inv->blood->rdw_range_txt  != ''}  
                                    {$inv->blood->rdw_range_txt}
                                    {else}

                                    {if $inv->blood->rdw_range_low >= 0 && $inv->blood->rdw_range_low != Null    }  
                                    {$inv->blood->rdw_range_low}
                                    {/if}  

                                    {if $inv->blood->rdw_range_high >= 0 &&  $inv->blood->rdw_range_high != Null   }  
                                    -    {$inv->blood->rdw_range_high}
                                    {/if}  

                                    {if $inv->blood->rdw_invest_units &&  $inv->blood->rdw_invest_units != Null   }  
                                    {$inv->blood->rdw_invest_units}
                                    {/if}  
                                    {/if}  
                                </td>
                            </tr>
                            {/if}

                            {if $inv->blood->plt != Null && $inv->blood->plt != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">Plt (Platelet) <span style="float: right">:</span> </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->blood->plt_range_txt == Null || $inv->blood->plt_range_txt  == '' ) &&    ($inv->blood->plt_low == 1 ||  $inv->blood->plt_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}
                                            {$inv->blood->plt}
                                        </div>  
                                </td>
                                <td class="wds15">
                                    {if $inv->blood->plt_range_txt == Null || $inv->blood->plt_range_txt  == ''}  
                                    {if $inv->blood->plt_low == 1 } L  {else if $inv->blood->plt_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>
                                    {if $inv->blood->plt_range_txt != Null && $inv->blood->plt_range_txt  != ''}  
                                    {$inv->blood->plt_range_txt}
                                    {else}

                                    {if $inv->blood->plt_range_low >= 0 && $inv->blood->plt_range_low != Null    }  
                                    {$inv->blood->plt_range_low}
                                    {/if}  

                                    {if $inv->blood->plt_range_high >= 0 &&  $inv->blood->plt_range_high != Null   }  
                                    -    {$inv->blood->plt_range_high}
                                    {/if}  

                                    {if $inv->blood->plt_invest_units &&  $inv->blood->plt_invest_units != Null   }  
                                    {$inv->blood->plt_invest_units}
                                    {/if}  
                                    {/if}  
                                </td>
                            </tr>
                            {/if}

                            {if $inv->blood->wbc != Null && $inv->blood->wbc != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">WBCs (Leukocytes) <span style="float: right">:</span>  </li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->blood->wbc_range_txt == Null || $inv->blood->wbc_range_txt  == '' ) &&    ($inv->blood->wbc_low == 1 ||  $inv->blood->wbc_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}
                                            {$inv->blood->wbc}
                                        </div>  
                                </td>
                                <td class="wds15">
                                    {if $inv->blood->wbc_range_txt == Null || $inv->blood->wbc_range_txt  == ''}  
                                    {if $inv->blood->wbc_low == 1 } L  {else if $inv->blood->wbc_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>
                                    {if $inv->blood->wbc_range_txt != Null && $inv->blood->wbc_range_txt  != ''}  
                                    {$inv->blood->wbc_range_txt}
                                    {else}

                                    {if $inv->blood->wbc_range_low >= 0 && $inv->blood->wbc_range_low != Null    }  
                                    {$inv->blood->wbc_range_low}
                                    {/if}  

                                    {if $inv->blood->wbc_range_high >= 0 &&  $inv->blood->wbc_range_high != Null   }  
                                    -    {$inv->blood->wbc_range_high}
                                    {/if}  

                                    {if $inv->blood->wbc_invest_units &&  $inv->blood->wbc_invest_units != Null   }  
                                    {$inv->blood->wbc_invest_units}
                                    {/if}  
                                    {/if}  
                                </td>
                            </tr>
                            {/if}


                            {if $inv->blood->mindex != Null && $inv->blood->mindex != ''}  
                            <tr style="line-height: 30px; ">
                                <td class="wds30"><ul> <li style="list-style: disc;">Mentzer Index  <span style="float: right">:</span></li> </ul> </td>
                                <td class="wds25" style="text-align: center;"> 
                                    {if ($inv->blood->mindex_range_txt == Null || $inv->blood->mindex_range_txt  == '' ) &&    ($inv->blood->mindex_low == 1 ||  $inv->blood->mindex_high == 1 )}    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;">
                                            {/if}
                                            {$inv->blood->mindex}
                                        </div>  
                                </td>
                                <td class="wds15">
                                    {if $inv->blood->mindex_range_txt == Null || $inv->blood->mindex_range_txt  == ''}  
                                    {if $inv->blood->mindex_low == 1 } L  {else if $inv->blood->mindex_high == 1 } H   {/if}
                                    {/if}
                                </td>
                                <td>
                                    {if $inv->blood->mindex_range_txt != Null && $inv->blood->mindex_range_txt  != ''}  
                                    {$inv->blood->mindex_range_txt}
                                    {else}

                                    {if $inv->blood->mindex_range_low >= 0 && $inv->blood->mindex_range_low != Null    }  
                                    {$inv->blood->mindex_range_low}
                                    {/if}  

                                    {if $inv->blood->mindex_range_high >= 0 &&  $inv->blood->mindex_range_high != Null   }  
                                    -    {$inv->blood->mindex_range_high}
                                    {/if}  

                                    {if $inv->blood->mindex_invest_units &&  $inv->blood->mindex_invest_units != Null   }  
                                    {$inv->blood->mindex_invest_units}
                                    {/if}  
                                    {/if}  
                                </td>
                            </tr>
                            {/if}








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

                            <tr>
                                <td colspan="4">
                                    <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">

                                        <tr>
                                            <td class="wds25 bold"> Test </td>
                                            <td class="wds30 bold" colspan="2"><ul> <li>Relative Counts % </li> </ul></td>
                                            <td class="bold" colspan="2"><ul> <li>Absolute Counts k/ul  </li> </ul></td>
                                        </tr>


                                        <tr style="line-height: 30px; ">
                                            <td><ul> <li style="list-style: disc;">Neutrophil <span style="float: right">:</span> </li> </ul> </td>
                                            <td style="text-align: center;" >
                                                {if ($inv->blood->neutrophil_r_range_txt == Null || $inv->blood->neutrophil_r_range_txt  == '' ) &&    ($inv->blood->neutrophil_r_low == 1 ||  $inv->blood->neutrophil_r_high == 1 )}    
                                                <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;display: inline-block;">
                                                    {else}
                                                    <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;display: inline-block;">
                                                        {/if}
                                                        {$inv->blood->neutrophil_r}
                                                    </div>  
                                                    {if $inv->blood->neutrophil_r_range_txt == Null || $inv->blood->neutrophil_r_range_txt  == ''}  
                                                    {if $inv->blood->neutrophil_r_low == 1 } L  {else if $inv->blood->neutrophil_r_high == 1 } H   {/if}
                                                    {/if}
                                            </td>  
                                            <td style="text-align: center;" >  
                                                {if $inv->blood->neutrophil_r_range_txt != Null && $inv->blood->neutrophil_r_range_txt  != ''}  
                                                {$inv->blood->neutrophil_r_range_txt}
                                                {else}

                                                {if $inv->blood->neutrophil_r_range_low >= 0 && $inv->blood->neutrophil_r_range_low != Null    }  
                                                {$inv->blood->neutrophil_r_range_low}
                                                {/if}  

                                                {if $inv->blood->neutrophil_r_range_high >= 0 &&  $inv->blood->neutrophil_r_range_high != Null   }  
                                                -    {$inv->blood->neutrophil_r_range_high}
                                                {/if}  

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

                                            <td style="text-align: center;" >
                                                {if ($inv->blood->neutrophil_abs_range_txt == Null || $inv->blood->neutrophil_abs_range_txt  == '' ) &&    ($inv->blood->neutrophil_abs_low == 1 ||  $inv->blood->neutrophil_abs_high == 1 )}    
                                                <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;display: inline-block;">
                                                    {else}
                                                    <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;display: inline-block;">
                                                        {/if}
                                                        {$inv->blood->neutrophil_abs}
                                                    </div>  
                                                    {if $inv->blood->neutrophil_abs_range_txt == Null || $inv->blood->neutrophil_abs_range_txt  == ''}  
                                                    {if $inv->blood->neutrophil_abs_low == 1 } L  {else if $inv->blood->neutrophil_abs_high == 1 } H   {/if}
                                                    {/if}
                                            </td>  
                                            <td style="text-align: center;" >  
                                                {if $inv->blood->neutrophil_abs_range_txt != Null && $inv->blood->neutrophil_abs_range_txt  != ''}  
                                                {$inv->blood->neutrophil_abs_range_txt}
                                                {else}

                                                {if $inv->blood->neutrophil_abs_range_low >= 0 && $inv->blood->neutrophil_abs_range_low != Null    }  
                                                {$inv->blood->neutrophil_abs_range_low}
                                                {/if}  

                                                {if $inv->blood->neutrophil_abs_range_high >= 0 &&  $inv->blood->neutrophil_abs_range_high != Null   }  
                                                -    {$inv->blood->neutrophil_abs_range_high}
                                                {/if}  

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

                                        </tr>


                                        <tr style="line-height: 30px; ">
                                            <td><ul> <li style="list-style: disc;">Lymphocytes <span style="float: right">:</span> </li> </ul> </td>
                                            <td style="text-align: center;" >
                                                {if ($inv->blood->lymphocytes_r_range_txt == Null || $inv->blood->lymphocytes_r_range_txt  == '' ) &&    ($inv->blood->lymphocytes_r_low == 1 ||  $inv->blood->lymphocytes_r_high == 1 )}    
                                                <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;display: inline-block;">
                                                    {else}
                                                    <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;display: inline-block;">
                                                        {/if}
                                                        {$inv->blood->lymphocytes_r}
                                                    </div>  
                                                    {if $inv->blood->lymphocytes_r_range_txt == Null || $inv->blood->lymphocytes_r_range_txt  == ''}  
                                                    {if $inv->blood->lymphocytes_r_low == 1 } L  {else if $inv->blood->lymphocytes_r_high == 1 } H   {/if}
                                                    {/if}
                                            </td>  
                                            <td style="text-align: center;" >  
                                                {if $inv->blood->lymphocytes_r_range_txt != Null && $inv->blood->lymphocytes_r_range_txt  != ''}  
                                                {$inv->blood->lymphocytes_r_range_txt}
                                                {else}

                                                {if $inv->blood->lymphocytes_r_range_low >= 0 && $inv->blood->lymphocytes_r_range_low != Null    }  
                                                {$inv->blood->lymphocytes_r_range_low}
                                                {/if}  

                                                {if $inv->blood->lymphocytes_r_range_high >= 0 &&  $inv->blood->lymphocytes_r_range_high != Null   }  
                                                -    {$inv->blood->lymphocytes_r_range_high}
                                                {/if}  

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

                                            <td style="text-align: center;" >
                                                {if ($inv->blood->lymphocytes_abs_range_txt == Null || $inv->blood->lymphocytes_abs_range_txt  == '' ) &&    ($inv->blood->lymphocytes_abs_low == 1 ||  $inv->blood->lymphocytes_abs_high == 1 )}    
                                                <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;display: inline-block;">
                                                    {else}
                                                    <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;display: inline-block;">
                                                        {/if}
                                                        {$inv->blood->lymphocytes_abs}
                                                    </div>  
                                                    {if $inv->blood->lymphocytes_abs_range_txt == Null || $inv->blood->lymphocytes_abs_range_txt  == ''}  
                                                    {if $inv->blood->lymphocytes_abs_low == 1 } L  {else if $inv->blood->lymphocytes_abs_high == 1 } H   {/if}
                                                    {/if}
                                            </td>  
                                            <td style="text-align: center;" >  
                                                {if $inv->blood->lymphocytes_abs_range_txt != Null && $inv->blood->lymphocytes_abs_range_txt  != ''}  
                                                {$inv->blood->lymphocytes_abs_range_txt}
                                                {else}

                                                {if $inv->blood->lymphocytes_abs_range_low >= 0 && $inv->blood->lymphocytes_abs_range_low != Null    }  
                                                {$inv->blood->lymphocytes_abs_range_low}
                                                {/if}  

                                                {if $inv->blood->lymphocytes_abs_range_high >= 0 &&  $inv->blood->lymphocytes_abs_range_high != Null   }  
                                                -    {$inv->blood->lymphocytes_abs_range_high}
                                                {/if}  

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

                                        </tr>


                                        <tr style="line-height: 30px; ">
                                            <td><ul> <li style="list-style: disc;">Monocytes <span style="float: right">:</span> </li> </ul> </td>
                                            <td style="text-align: center;" >
                                                {if ($inv->blood->monocytes_r_range_txt == Null || $inv->blood->monocytes_r_range_txt  == '' ) &&    ($inv->blood->monocytes_r_low == 1 ||  $inv->blood->monocytes_r_high == 1 )}    
                                                <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;display: inline-block;">
                                                    {else}
                                                    <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;display: inline-block;">
                                                        {/if}
                                                        {$inv->blood->monocytes_r}
                                                    </div>  
                                                    {if $inv->blood->monocytes_r_range_txt == Null || $inv->blood->monocytes_r_range_txt  == ''}  
                                                    {if $inv->blood->monocytes_r_low == 1 } L  {else if $inv->blood->monocytes_r_high == 1 } H   {/if}
                                                    {/if}
                                            </td>  
                                            <td style="text-align: center;" >  
                                                {if $inv->blood->monocytes_r_range_txt != Null && $inv->blood->monocytes_r_range_txt  != ''}  
                                                {$inv->blood->monocytes_r_range_txt}
                                                {else}

                                                {if $inv->blood->monocytes_r_range_low >= 0 && $inv->blood->monocytes_r_range_low != Null    }  
                                                {$inv->blood->monocytes_r_range_low}
                                                {/if}  

                                                {if $inv->blood->monocytes_r_range_high >= 0 &&  $inv->blood->monocytes_r_range_high != Null   }  
                                                -    {$inv->blood->monocytes_r_range_high}
                                                {/if}  

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

                                            <td style="text-align: center;" >
                                                {if ($inv->blood->monocytes_abs_range_txt == Null || $inv->blood->monocytes_abs_range_txt  == '' ) &&    ($inv->blood->monocytes_abs_low == 1 ||  $inv->blood->monocytes_abs_high == 1 )}    
                                                <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;display: inline-block;">
                                                    {else}
                                                    <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;display: inline-block;">
                                                        {/if}
                                                        {$inv->blood->monocytes_abs}
                                                    </div>  
                                                    {if $inv->blood->monocytes_abs_range_txt == Null || $inv->blood->monocytes_abs_range_txt  == ''}  
                                                    {if $inv->blood->monocytes_abs_low == 1 } L  {else if $inv->blood->monocytes_abs_high == 1 } H   {/if}
                                                    {/if}
                                            </td>  
                                            <td style="text-align: center;" >  
                                                {if $inv->blood->monocytes_abs_range_txt != Null && $inv->blood->monocytes_abs_range_txt  != ''}  
                                                {$inv->blood->monocytes_abs_range_txt}
                                                {else}

                                                {if $inv->blood->monocytes_abs_range_low >= 0 && $inv->blood->monocytes_abs_range_low != Null    }  
                                                {$inv->blood->monocytes_abs_range_low}
                                                {/if}  

                                                {if $inv->blood->monocytes_abs_range_high >= 0 &&  $inv->blood->monocytes_abs_range_high != Null   }  
                                                -    {$inv->blood->monocytes_abs_range_high}
                                                {/if}  

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

                                        </tr>


                                        <tr style="line-height: 30px; ">
                                            <td><ul> <li style="list-style: disc;">Eosinophils <span style="float: right">:</span> </li> </ul> </td>
                                            <td style="text-align: center;" >
                                                {if ($inv->blood->eosinophils_r_range_txt == Null || $inv->blood->eosinophils_r_range_txt  == '' ) &&    ($inv->blood->eosinophils_r_low == 1 ||  $inv->blood->eosinophils_r_high == 1 )}    
                                                <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;display: inline-block;">
                                                    {else}
                                                    <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;display: inline-block;">
                                                        {/if}
                                                        {$inv->blood->eosinophils_r}
                                                    </div>  
                                                    {if $inv->blood->eosinophils_r_range_txt == Null || $inv->blood->eosinophils_r_range_txt  == ''}  
                                                    {if $inv->blood->eosinophils_r_low == 1 } L  {else if $inv->blood->eosinophils_r_high == 1 } H   {/if}
                                                    {/if}
                                            </td>  
                                            <td style="text-align: center;" >  
                                                {if $inv->blood->eosinophils_r_range_txt != Null && $inv->blood->eosinophils_r_range_txt  != ''}  
                                                {$inv->blood->eosinophils_r_range_txt}
                                                {else}

                                                {if $inv->blood->eosinophils_r_range_low >= 0 && $inv->blood->eosinophils_r_range_low != Null    }  
                                                {$inv->blood->eosinophils_r_range_low}
                                                {/if}  

                                                {if $inv->blood->eosinophils_r_range_high >= 0 &&  $inv->blood->eosinophils_r_range_high != Null   }  
                                                -    {$inv->blood->eosinophils_r_range_high}
                                                {/if}  

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

                                            <td style="text-align: center;" >
                                                {if ($inv->blood->eosinophils_abs_range_txt == Null || $inv->blood->eosinophils_abs_range_txt  == '' ) &&    ($inv->blood->eosinophils_abs_low == 1 ||  $inv->blood->eosinophils_abs_high == 1 )}    
                                                <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;display: inline-block;">
                                                    {else}
                                                    <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;display: inline-block;">
                                                        {/if}
                                                        {$inv->blood->eosinophils_abs}
                                                    </div>  
                                                    {if $inv->blood->eosinophils_abs_range_txt == Null || $inv->blood->eosinophils_abs_range_txt  == ''}  
                                                    {if $inv->blood->eosinophils_abs_low == 1 } L  {else if $inv->blood->eosinophils_abs_high == 1 } H   {/if}
                                                    {/if}
                                            </td>  
                                            <td style="text-align: center;" >  
                                                {if $inv->blood->eosinophils_abs_range_txt != Null && $inv->blood->eosinophils_abs_range_txt  != ''}  
                                                {$inv->blood->eosinophils_abs_range_txt}
                                                {else}

                                                {if $inv->blood->eosinophils_abs_range_low >= 0 && $inv->blood->eosinophils_abs_range_low != Null    }  
                                                {$inv->blood->eosinophils_abs_range_low}
                                                {/if}  

                                                {if $inv->blood->eosinophils_abs_range_high >= 0 &&  $inv->blood->eosinophils_abs_range_high != Null   }  
                                                -    {$inv->blood->eosinophils_abs_range_high}
                                                {/if}  

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

                                        </tr>


                                        <tr style="line-height: 30px; ">
                                            <td><ul> <li style="list-style: disc;">Basophils <span style="float: right">:</span> </li> </ul> </td>
                                            <td style="text-align: center;" >
                                                {if ($inv->blood->basophils_r_range_txt == Null || $inv->blood->basophils_r_range_txt  == '' ) &&    ($inv->blood->basophils_r_low == 1 ||  $inv->blood->basophils_r_high == 1 )}    
                                                <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;display: inline-block;">
                                                    {else}
                                                    <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;display: inline-block;">
                                                        {/if}
                                                        {$inv->blood->basophils_r}
                                                    </div>  
                                                    {if $inv->blood->basophils_r_range_txt == Null || $inv->blood->basophils_r_range_txt  == ''}  
                                                    {if $inv->blood->basophils_r_low == 1 } L  {else if $inv->blood->basophils_r_high == 1 } H   {/if}
                                                    {/if}
                                            </td>  
                                            <td style="text-align: center;" >  
                                                {if $inv->blood->basophils_r_range_txt != Null && $inv->blood->basophils_r_range_txt  != ''}  
                                                {$inv->blood->basophils_r_range_txt}
                                                {else}

                                                {if $inv->blood->basophils_r_range_low >= 0 && $inv->blood->basophils_r_range_low != Null    }  
                                                {$inv->blood->basophils_r_range_low}
                                                {/if}  

                                                {if $inv->blood->basophils_r_range_high >= 0 &&  $inv->blood->basophils_r_range_high != Null   }  
                                                -    {$inv->blood->basophils_r_range_high}
                                                {/if}  

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

                                            <td style="text-align: center;" >
                                                {if ($inv->blood->basophils_abs_range_txt == Null || $inv->blood->basophils_abs_range_txt  == '' ) &&    ($inv->blood->basophils_abs_low == 1 ||  $inv->blood->basophils_abs_high == 1 )}    
                                                <div class=" wds50 bg-grey "   style=" margin-left: 25%; line-height: 150%;display: inline-block;">
                                                    {else}
                                                    <div class=" wds50"   style=" margin-left: 25%; line-height: 150%;display: inline-block;">
                                                        {/if}
                                                        {$inv->blood->basophils_abs}
                                                    </div>  
                                                    {if $inv->blood->basophils_abs_range_txt == Null || $inv->blood->basophils_abs_range_txt  == ''}  
                                                    {if $inv->blood->basophils_abs_low == 1 } L  {else if $inv->blood->basophils_abs_high == 1 } H   {/if}
                                                    {/if}
                                            </td>  
                                            <td style="text-align: center;" >  
                                                {if $inv->blood->basophils_abs_range_txt != Null && $inv->blood->basophils_abs_range_txt  != ''}  
                                                {$inv->blood->basophils_abs_range_txt}
                                                {else}

                                                {if $inv->blood->basophils_abs_range_low >= 0 && $inv->blood->basophils_abs_range_low != Null    }  
                                                {$inv->blood->basophils_abs_range_low}
                                                {/if}  

                                                {if $inv->blood->basophils_abs_range_high >= 0 &&  $inv->blood->basophils_abs_range_high != Null   }  
                                                -    {$inv->blood->basophils_abs_range_high}
                                                {/if}  

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

                                        </tr>


                                        <!------------------------------------------------------------------------------------------------------------->
                                    </table>
                                </td>
                            </tr>





                            {if $inv->blood->comment != Null && $inv->blood->comment != ''}  
                            <tr style="line-height: 30px; ">
                                <td colsan="4">
                                    <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                                        <tr>
                                            <td><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">Comment :  </li> </ul></td>
                                            <td><ul> <li style="text-decoration: underline;font-weight: bold;">  </li> </ul></td>
                                        </tr>
                                    </table>
                                    <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                                        <tr>
                                            <td class="wds65" style="padding-left: 5%;" > 
                                                {$inv->blood->comment}
                                            </td>
                                        </tr>
                                    </table>

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

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

                            <tr>
                                <td>
                                    <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                                        <tr>
                                            <td class="wds60"><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;"> Culture :   </li> </ul></td>
                                            <td><ul> <li style="text-decoration: underline;font-weight: bold;">Reference Range </li> </ul></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>

                            <tr>
                                <td>
                                    <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">

                                        {if $inv->culture.sample != Null && $inv->culture.sample != ''}  
                                        <tr style="line-height: 30px; ">
                                            <td class="wds30"><ul><li style="list-style: disc;">Sample <span style="float: right">:</span>  </li> </ul>  </td>

                                            <td style="text-align: left; padding-left: 5px;"> 
                                                {$inv->culture.sample_value}
                                            </td>
                                        </tr>
                                        {/if}  


                                        {if $inv->culture.organism_a != Null && $inv->culture.organism_a != ''}  
                                        <tr style="line-height: 30px; ">
                                            <td class="wds30"><ul><li style="list-style: disc;">Organism A <span style="float: right">:</span>  </li> </ul>  </td>

                                            <td style="text-align: left; padding-left: 5px;"> 
                                                {$inv->culture.organism_a_value}
                                            </td>
                                        </tr>
                                        {/if}  

                                        {if $inv->culture.organism_b != Null && $inv->culture.organism_b != ''}  
                                        <tr style="line-height: 30px; ">
                                            <td class="wds30"><ul><li style="list-style: disc;">Organism B <span style="float: right">:</span>  </li> </ul>  </td>

                                            <td style="text-align: left; padding-left: 5px;"> 
                                                {$inv->culture.organism_b_value}
                                            </td>
                                        </tr>
                                        {/if}  

                                        {if $inv->culture.organism_c != Null && $inv->culture.organism_c != ''}  
                                        <tr style="line-height: 30px; ">
                                            <td class="wds30"><ul><li style="list-style: disc;">Organism C <span style="float: right">:</span>  </li> </ul>  </td>

                                            <td style="text-align: left; padding-left: 5px;"> 
                                                {$inv->culture.organism_c_value}
                                            </td>
                                        </tr>
                                        {/if}  


                                        {if $inv->culture.condition != Null && $inv->culture.condition != ''}  
                                        <tr style="line-height: 30px; ">
                                            <td class="wds30"><ul><li style="list-style: disc;">Culture Condition <span style="float: right">:</span>  </li> </ul>  </td>

                                            <td style="text-align: left; padding-left: 5px;"> 
                                                {$inv->culture.condition_value}
                                            </td>
                                        </tr>
                                        {/if}  

                                        {if $inv->culture.condition1 != Null && $inv->culture.condition1 != ''}  
                                        <tr style="line-height: 30px; ">
                                            <td class="wds30"> </td>

                                            <td style="text-align: left; padding-left: 5px;"> 
                                                {$inv->culture.condition1_value}
                                            </td>
                                        </tr>
                                        {/if}  

                                        {if $inv->culture.colony_count != Null && $inv->culture.colony_count != ''}  
                                        <tr style="line-height: 30px; ">
                                            <td class="wds30"><ul><li style="list-style: disc;">Colony Count <span style="float: right">:</span>  </li> </ul>  </td>

                                            <td style="text-align: left; padding-left: 5px;"> 
                                                {$inv->culture.colony_count_value}
                                            </td>
                                        </tr>
                                        {/if}  

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

                            <tr>
                                <td>
                                    <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                                        <tr>
                                            <td class="wds60"><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;"> Sensitivity :   </li> </ul></td>
                                            <td></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>

                            {if $investigationresults_culture_hsCount > 0 ||   $investigationresults_culture_msCount > 0  ||  $investigationresults_culture_lsCount > 0 ||  $investigationresults_culture_rsCount > 0 }  
                            <tr>
                                <td>
                                    <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                                        {if $investigationresults_culture_hsCount > 0}  
                                        <tr style="line-height: 30px; ">
                                            <td class="wds50 bold"><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">
                                                        Highly {$inv->culture.sensitivity_cat_value} For  :   </li> </ul></td>
                                            <th class="wds25"> Sensitive</th>
                                            <th class="wds25"> Commercial Name </th>
                                        </tr>

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

                                        <tr style="line-height: 30px; ">
                                            <td> 
                                                <div  style=" margin-left: 5%;">
                                                    {$i}  -   {$data.scientific_name}  
                                                </div>
                                            </td>
                                            <td>  {$data.sensitivity}  </td>
                                            <td>    </td>
                                        </tr>

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

                                        {if $investigationresults_culture_msCount > 0}  
                                        <tr style="line-height: 30px; ">
                                            <td class="wds50 bold"><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">
                                                        Moderate {$inv->culture.sensitivity_cat_value} For  :   </li> </ul></td>
                                            <th class="wds25"> Sensitive</th>
                                            <th class="wds25"> Commercial Name </th>
                                        </tr>

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

                                        <tr style="line-height: 30px; ">
                                            <td> 
                                                <div  style=" margin-left: 5%;">
                                                    {$i}  -   {$data.scientific_name}  
                                                </div>
                                            </td>
                                            <td>  {$data.sensitivity}  </td>
                                            <td>    </td>
                                        </tr>

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

                                        {if $investigationresults_culture_lsCount > 0}  
                                        <tr style="line-height: 30px; ">
                                            <td class="wds50 bold"><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">
                                                        Low {$inv->culture.sensitivity_cat_value} For  :   </li> </ul></td>
                                            <th class="wds25"> Sensitive</th>
                                            <th class="wds25"> Commercial Name </th>
                                        </tr>

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

                                        <tr style="line-height: 30px; ">
                                            <td> 
                                                <div  style=" margin-left: 5%;">
                                                    {$i}  -   {$data.scientific_name}  
                                                </div>
                                            </td>
                                            <td>  {$data.sensitivity}  </td>
                                            <td>    </td>
                                        </tr>

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

                                        {if $investigationresults_culture_rsCount > 0}  
                                        <tr style="line-height: 30px; ">
                                            <td class="wds50 bold"><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">
                                                        Resistant {$inv->culture.sensitivity_cat_value} For  :   </li> </ul></td>
                                            <th class="wds25"> Sensitive</th>
                                            <th class="wds25"> Commercial Name </th>
                                        </tr>

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

                                        <tr style="line-height: 30px; ">
                                            <td> 
                                                <div  style=" margin-left: 5%;">
                                                    {$i}  -   {$data.scientific_name}  
                                                </div>
                                            </td>
                                            <td>  {$data.sensitivity}  </td>
                                            <td>    </td>
                                        </tr>

                                        {capture assign=i}{$i+1}{/capture}
                                        {/foreach}
                                        {/if}  
                                    </table>
                                </td>
                                <td>

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


                            {else if $inv->special_inv_type == 5  }  
                            <tr>
                                <td>
                                    <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                                        <tr>
                                            <td class="wds60"><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">  </li> </ul></td>
                                            <td><ul> <li style="text-decoration: underline;font-weight: bold;">Reference Range </li> </ul></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>


                            <tr>
                                <td>
                                    <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">

                                        {if $inv->esr.hour1 != Null && $inv->esr.hour1 != ''}  
                                        <tr style="line-height: 30px; ">
                                            <td class="wds25"><ul><li style="list-style: disc;">First Hour <span style="float: right">:</span>  </li> </ul>  </td>

                                            <td class="wds25" style="text-align: center;"> 
                                                {if ($inv->esr.hour1_range_txt == Null || $inv->esr.hour1_range_txt  == '' ) &&    ($inv->esr.hour1_low == 1 ||  $inv->esr.hour1_high == 1 )}    
                                                <div class=" wds50 bg-grey "   style="margin-left: 25%  ;   line-height: 150%;">
                                                    {else}
                                                    <div class=" wds50"   style="margin-left: 25%  ;   line-height: 150%;">
                                                        {/if}

                                                        {$inv->esr.hour1_value}
                                                    </div>  

                                            </td>

                                            <td class="wds15">
                                                {if $inv->esr.hour1_range_txt == Null || $inv->esr.hour1_range_txt  == ''}  
                                                {if $inv->esr.hour1_low == 1 }Low  {else if $inv->esr.hour1_high == 1 } High   {/if}
                                                {/if}
                                            </td>

                                            <td>
                                                Normal : 

                                                {if $inv->esr.hour1_range_txt != Null && $inv->esr.hour1_range_txt  != ''}  
                                                {$inv->esr.hour1_range_txt}
                                                {else}

                                                {if $inv->esr.hour1_range_low >= 0 && $inv->esr.hour1_range_low != Null    }  
                                                {$inv->esr.hour1_range_low}
                                                {/if}  

                                                {if $inv->esr.hour1_range_high >= 0 &&  $inv->esr.hour1_range_high != Null   }  
                                                -    {$inv->esr.hour1_range_high}
                                                {/if}  

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


                                        {if $inv->esr.hour2 != Null && $inv->esr.hour2 != ''}  
                                        <tr style="line-height: 30px; ">
                                            <td class="wds25"><ul> <li style="list-style: disc;">Second Hour <span style="float: right">:</span> </li> </ul> </td>

                                            <td class="wds25" style="text-align: center;"> 
                                                {if ($inv->esr.hour2_range_txt == Null || $inv->esr.hour2_range_txt  == '' ) &&    ($inv->esr.hour2_low == 1 ||  $inv->esr.hour2_high == 1 )}    
                                                <div class=" wds50 bg-grey "   style="margin-left: 25% ;   line-height: 150%;">
                                                    {else}
                                                    <div class=" wds50"   style="margin-left: 25% ;   line-height: 150%;">
                                                        {/if}

                                                        {$inv->esr.hour2_value}
                                                    </div>  

                                            </td>

                                            <td class="wds15">
                                                {if $inv->esr.hour2_range_txt == Null || $inv->esr.hour2_range_txt  == ''}  
                                                {if $inv->esr.hour2_low == 1 } Low  {else if $inv->esr.hour2_high == 1 } High   {/if}
                                                {/if}
                                            </td>

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

                                                {if $inv->esr.hour2_range_low >= 0 && $inv->esr.hour2_range_low != Null    }  
                                                {$inv->esr.hour2_range_low}
                                                {/if}  

                                                {if $inv->esr.hour2_range_high >= 0 &&  $inv->esr.hour2_range_high != Null   }  
                                                -    {$inv->esr.hour2_range_high}
                                                {/if}  

                                                {if $inv->esr.hour2_invest_units &&  $inv->esr.hour2_invest_units != Null   }  
                                                {$inv->esr.hour2_invest_units}
                                                {/if}  
                                                {/if}  
                                            </td>
                                        </tr>
                                        {/if}  
                                    </table>

                                </td>
                            </tr>

                            {if $inv->esr.comment != Null && $inv->esr.comment != ''}  

                            <tr style="line-height: 30px; ">
                                <td colsan="4">
                                    <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                                        <tr>
                                            <td><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">Comment :  </li> </ul></td>
                                            <td><ul> <li style="text-decoration: underline;font-weight: bold;">  </li> </ul></td>
                                        </tr>
                                    </table>
                                    <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                                        <tr>
                                            <td class="wds65" style="padding-left: 5%;" > 
                                                {$inv->esr.comment}
                                            </td>
                                        </tr>
                                    </table>

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


                            {else}  

                            <tr>
                                <td>
                                    <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                                        <tr>
                                            <td class="wds60"></td>
                                            <td><ul> <li style="text-decoration: underline;font-weight: bold;">Reference Range </li> </ul></td>
                                        </tr>
                                    </table>

                                    <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                                        <tr style="line-height: 30px; ">
                                            <td class="wds25">
                                                <ul> 
                                                    <li style="list-style: disc;">Result <span style="float: right">:</span> </li>
                                                </ul> 
                                            </td>

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

                                            <td class="wds15">

                                                {if $inv->range->range_txt == Null && $inv->range->range_txt  ==  ''}  
                                                {if $inv->low == 1 } L  {else if $inv->high == 1 } H   {/if}
                                                {/if}
                                            </td>
                                            <td>  
                                                {if $inv->range->range_txt != Null && $inv->range->range_txt  != ''}  
                                                {$inv->range->range_txt}
                                                {else}

                                                {if $inv->range->range_low >= 0 && $inv->range->range_low != Null    }  
                                                {$inv->range->range_low}
                                                {/if}  

                                                {if $inv->range->range_high >= 0 &&  $inv->range->range_high != Null   }  
                                                -    {$inv->range->range_high}
                                                {/if}  

                                                {if $inv->range->invest_units &&  $inv->range->invest_units != Null   }  
                                                {$inv->range->invest_units}
                                                {/if}  
                                                {/if}  


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

                                </td>
                            </tr>

                            {/if}

                        </table>
                        {/foreach}

                        {/foreach}
                        <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
                            <tr>
                                <td style="width: 50%;">
                                    <h4 >
                                        <span style="margin-right: 20%">        </span>
                                    </h4>
                                </td>
                                <td style="width: 50%;">
                                    <h4 >
                                        <span style="float: left;    margin-left: 45%;">Doctor's Signature </span>
                                    </h4>
                                </td>
                            </tr>

                            <tr>
                                <td style="width: 50%;">
                                    </br>
                                    </br>
                                </td>
                                <td style="width: 50%;">
                                    <h4 >

                                    </h4>
                                </td>
                            </tr>

                            <tr>
                                <td style="width: 50%;">
                                    <h4 >
                                        <span style="margin-right: 20%">        </span>
                                    </h4>
                                </td>
                                <td style="width: 50%;">
                                    <h4 >
                                        <span style="float: left;    margin-left: 45%;">Thanks </span>
                                    </h4>
                                </td>
                            </tr>
                        </table>
                        </div>
                        </div>

                        </div>

                        {literal}
                        <style>

                            .form-group.form-md-line-input .help-block {
                                position: absolute;
                                margin: 2px 0 0 0;
                                opacity: 1;
                                filter: alpha(opacity=0);
                                font-size: 13px;
                            }

                            ol, ul {
                                margin-top: 0;
                                margin-bottom: -2px;
                            }

                            @media print {


                                .catName{
                                    font-size: 20px;
                                }

                                ol, ul {
                                    margin-top: 0;
                                    margin-bottom: -5px;
                                }
                            }
                        </style>
                        {/literal}

                        <style>

                            @page {ldelim}
                            size: auto;
                            margin-top: {$programesetting->above2}cm !important;
                            margin-bottom: {$programesetting->buttom2}cm !important;
                            {rdelim}

                            .arbfnt {ldelim}
                            font-size: {$programesetting->fontsizear2}px !important;
                            {rdelim}

                            .enfnt {ldelim}
                            font-size: {$programesetting->fontsizeen2}px !important;
                            {rdelim}

                            #content, #page {
                                width: 100%; 
                                margin: 0; 
                                float: none;
                            }


                            /* Unnötige Elemente ausblenden für den Druck */

                            #header-widgets, nav, aside.mashsb-container, 
                            .sidebar, .mashshare-top, .mashshare-bottom, 
                            .content-ads, .make-comment, .author-bio, 
                            .heading, .related-posts, #decomments-form-add-comment, 
                            #breadcrumbs, #footer, .post-byline, .meta-single, 
                            .site-title img, .post-tags, .readability 
                            {
                                display: none;
                            }



                        </style>
