
<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <div class="col-md-12 clinick invz">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-user"></i>Investigations
                        </div>
                    </div>
                    <div class="portlet-body all">
                        <input type="hidden" id="investigationPage" value="1"/>
                        <input type="hidden" id="patientId" value="{$patientid}"/>
                        <input type="hidden" id="tdate" value="{$today}">
                        <input type="hidden" id="controllName" value="investigation"/>
                        <input type="hidden" id="DocName" value="{$doctorData.user_name}"/>
                        <input type="hidden" id="showDoc" value="{$ProgramesettingData->displaydoctorname}"/>
                        <!--Begin Semen-->

                        <div class="row">
                            <div class="portlet-title tbox">
                                <div class="caption font-green-haze col-md-6">
                                    <span class="caption-subject bold uppercase"> Semen</span>
                                </div>
                                <div class="actions col-md-6">
                                    <button type="button" class="btn btn-xs blue fright" id="addSemen" data-table="semen"><i class="fa fa-plus"></i> Add</button>
                                </div>
                            </div>
                            <div id="semenDiv">
                                <div class="clearfix"></div>
                                <input type="hidden" id="semenitr" value="{$semencount}">

                                {assign var="i" value="1"}
                                {foreach $allsemen as $semen}

                                {if $ProgramesettingData->displaydoctorname eq 1}
                                <div class="row">
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <label for="form_control_1">{$semen->docname}</label>
                                        </div>
                                    </div>
                                </div>
                                {/if}

                                <div class="row clinick">

                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control datepicker updateElement txtc" id="semendate{$i}" data-tableName="semen" data-colName="sdate" data-id="{$semen->id}" value="{$semen->sdate}"/>
                                            <!--<label for="form_control_1">Date</label>-->
                                        </div>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="semencount{$i}" data-tableName="semen" data-colName="count" data-id="{$semen->id}" value="{$semen->count}"/>
                                            <label for="form_control_1">Count</label>
                                        </div>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="semenA{$i}" data-tableName="semen" data-colName="motilitya" data-id="{$semen->id}" value="{$semen->motilitya}"/>
                                            <label for="form_control_1">MotilityA</label>
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="semenAB{$i}" data-tableName="semen" data-colName="motilityab" data-id="{$semen->id}" value="{$semen->motilityab}"/>
                                            <label for="form_control_1">MotilityA+B</label>
                                        </div>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="semennormal{$i}" data-tableName="semen" data-colName="normal" data-id="{$semen->id}" value="{$semen->normal}"/>
                                            <label for="form_control_1">Normal</label>
                                        </div>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="semenpus{$i}" data-tableName="semen" data-colName="puscell" data-id="{$semen->id}" value="{$semen->puscell}"/>
                                            <label for="form_control_1">Pus cells</label>
                                        </div>
                                    </div>

                                    <div class="col-md-5">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$semen->notes}" id="semennote{$i}" data-tableName="semen" data-colName="notes" data-id="{$semen->id}" value="{$semen->notes}" />
                                            <label for="form_control_1">Notes</label>
                                            <!--                                                        <span class="input-group-btn">
                                    <a href="javascript:void(0)" class="btn blue shownotes" type="button" {if !empty($semen->notes)} data-toggle="popover" {/if} data-trigger="focus" data-placement="top" title="Semen" data-content="{$semen->notes}"><span class="glyphicon glyphicon-info-sign"></span></a>
                                                                                                    </span>-->
                                            <!---->
                                        </div>
                                    </div>

                                    <div class="form-group form-md-line-input">
                                        <div class="col-md-1"></div>
                                        <div class="col-md-11">

                                            <div class="md-checkbox-inline">
                                                <div class="md-checkbox">
                                                    <input type="checkbox" class="md-check updateCheckbox" id="normaltype{$i}" name="sementype1" data-tableName="semen" data-colName="normaltype" data-id="{$semen->id}" {if $semen->normaltype eq 1}checked{/if}/>
                                                    <label for="normaltype{$i}">
                                                        <span></span>
                                                        <span class="check"></span>
                                                        <span class="box"></span>
                                                        Normal </label>
                                                </div>
                                                <div class="md-checkbox">
                                                    <input type="checkbox" class="md-check updateCheckbox" id="Oligotype{$i}" name="sementype2" data-tableName="semen" data-colName="oligo" data-id="{$semen->id}" {if $semen->oligo eq 1}checked{/if}/>
                                                    <label for="Oligotype{$i}">
                                                        <span></span>
                                                        <span class="check"></span>
                                                        <span class="box"></span>
                                                        Oligo sprerm</label>
                                                </div>
                                                <div class="md-checkbox">
                                                    <input type="checkbox" class="md-check updateCheckbox" id="asthenotype{$i}" name="sementype3" data-tableName="semen" data-colName="astheno" data-id="{$semen->id}" {if $semen->astheno eq 1}checked{/if}/>
                                                    <label for="asthenotype{$i}">
                                                        <span></span>
                                                        <span class="check"></span>
                                                        <span class="box"></span>
                                                        Astheno sperm </label>
                                                </div>
                                                <div class="md-checkbox">
                                                    <input type="checkbox" class="md-check updateCheckbox" id="Tetratotype{$i}" name="sementype4" data-tableName="semen" data-colName="tetrato" data-id="{$semen->id}" {if $semen->tetrato eq 1}checked{/if}/>
                                                    <label for="Tetratotype{$i}">
                                                        <span></span>
                                                        <span class="check"></span>
                                                        <span class="box"></span>
                                                        Tetrato sperm </label>
                                                </div>

                                            </div>

                                            <button type="button" class="btn btn-xs red fright removeMsg axedelete2" id="delsemen{$i}" data-tableName="semen" data-id="{$semen->id}"><i class="fa fa-close"></i></button>
                                        </div>
                                    </div>

                                </div>

                                <div class="clearfix"></div>
                                {assign var="i" value=$i+1}
                                {/foreach}
                            </div>
                        </div>

                        <!--End Semen-->


                        <!--Begin HSG-->

                        <div class="row">


                            <div class="portlet-title tbox">
                                <div class="caption font-green-haze col-md-6">
                                    <span class="caption-subject bold uppercase"> HSG</span>
                                </div>
                                <div class="actions col-md-6">
                                    <button type="button" class="btn btn-xs blue fright" id="addHsg" data-table="hsg"><i class="fa fa-plus"></i> Add</button>
                                </div>
                            </div>

                            <div class="clearfix"></div>
                            <div id="hsgDiv">

                                <input type="hidden" id="hsgitr" value="{$hsgcount}">
                                {assign var="i" value="1"}
                                {foreach $allhsg as $hsg}


                                {if $ProgramesettingData->displaydoctorname eq 1}
                                <div class="row">
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <label for="form_control_1">{$hsg->docname}</label>
                                        </div>
                                    </div>
                                </div>
                                {/if}


                                <div class="row clinick">
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control datepicker txtc updateElement" id="hsg{$i}" data-tableName="hsg" data-colName="sdate" data-id="{$hsg->id}" value="{$hsg->sdate}">
                                            <!--<label for="form_control_1">Date</label>-->
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="uterus{$i}" data-tableName="hsg" data-colName="uterus" data-id="{$hsg->id}" value="{$hsg->uterus}">
                                            <label for="form_control_1">Uterus</label>
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="rtube{$i}" data-tableName="hsg" data-colName="rtube" data-id="{$hsg->id}" value="{$hsg->rtube}">
                                            <label for="form_control_1">R.tube</label>
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="ltube{$i}" data-tableName="hsg" data-colName="ltube" data-id="{$hsg->id}" value="{$hsg->ltube}">
                                            <label for="form_control_1">L.tube</label>
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="smear{$i}" data-tableName="hsg" data-colName="smear" data-id="{$hsg->id}" value="{$hsg->smear}">
                                            <label for="form_control_1">Smear</label>
                                        </div>
                                    </div>

                                    <div class="col-md-3">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info wds99">
                                            <input type="text" class="form-control updateElement" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$hsg->notes}" id="hnotes{$i}" data-tableName="hsg" data-colName="notes" data-id="{$hsg->id}" value="{$hsg->notes}">
                                            <label for="form_control_1">Notes</label>
                                            <!--                                                        <span class="input-group-btn">
                                    <a href="javascript:void(0)" class="btn blue shownotes" type="button" {if !empty($hsg->notes)} data-toggle="popover" {/if} data-trigger="focus" data-placement="top" title="HSG" data-content="{$hsg->notes}"><span class="glyphicon glyphicon-info-sign"></span></a>
                                                                                                    </span>-->

                                        </div>
                                        <button type="button" class="btn btn-xs red fright removeMsg axedelete2" style="margin-top: 25px;" id="delhsg{$i}" data-tableName="hsg" data-id="{$hsg->id}"><i class="fa fa-close"></i></button>
                                    </div>
                                </div>
                                <div class="clearfix"></div>
                                {assign var="i" value=$i+1}
                                {/foreach}
                                <div class="clearfix"></div>
                            </div>
                        </div>

                        <!--End HSG-->


                        <!--Begin US/TVS-->

                        <div class="row">


                            <div class="portlet-title tbox">
                                <div class="caption font-green-haze col-md-6">
                                    <span class="caption-subject bold uppercase"> US/TVS</span>
                                </div>
                                <div class="actions col-md-6">
                                    <button type="button" class="btn btn-xs blue fright" id="addUs" data-table="ustv"><i class="fa fa-plus"></i> Add</button>
                                </div>
                            </div>

                            <div class="clearfix"></div>
                            <div id="usDiv">

                                <input type="hidden" id="ustvitr" value="{$ustvcount}">

                                {assign var="i" value="1"}
                                {foreach $allustv as $ustv}

                                {if $ProgramesettingData->displaydoctorname eq 1}
                                <div class="row">
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <label for="form_control_1">{$ustv->docname}</label>
                                        </div>
                                    </div>
                                </div>
                                {/if}

                                <div class="row clinick">

                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control datepicker txtc updateElement" id="ustvdate{$i}" data-tableName="ustv" data-colName="sdate" data-id="{$ustv->id}" value="{$ustv->sdate}">
                                            <!--<label for="form_control_1">Date</label>-->
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="uuterus{$i}" data-tableName="ustv" data-colName="uterus" data-id="{$ustv->id}" value="{$ustv->uterus}">
                                            <label for="form_control_1">Uterus</label>
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="uradnexa{$i}" data-tableName="ustv" data-colName="radnexa" data-id="{$ustv->id}" value="{$ustv->radnexa}">
                                            <label for="form_control_1">R.adnexa</label>
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="uladnexa{$i}" data-tableName="ustv" data-colName="ladnexa" data-id="{$ustv->id}" value="{$ustv->ladnexa}">
                                            <label for="form_control_1">L.adnexa</label>
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="upelvis{$i}" data-tableName="ustv" data-colName="pelvis" data-id="{$ustv->id}" value="{$ustv->pelvis}">
                                            <label for="form_control_1">Pelvis</label>
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info wds99">
                                            <input type="text" class="form-control updateElement" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$ustv->notes}" id="unotes{$i}" data-tableName="ustv" data-colName="notes" data-id="{$ustv->id}" value="{$ustv->notes}">
                                            <label for="form_control_1">Notes</label>
                                            <!--                                                        <span class="input-group-btn">
                                    <a href="javascript:void(0)" class="btn blue shownotes" type="button" {if !empty($ustv->notes)} data-toggle="popover" {/if} data-trigger="focus" data-placement="top" title="US/TVS" data-content="{$ustv->notes}"><span class="glyphicon glyphicon-info-sign"></span></a>
                                                                                                    </span>-->

                                        </div>
                                        <button type="button" class="btn btn-xs red fright removeMsg axedelete2" style="margin-top: 25px;" id="delustv{$i}" data-tableName="ustv" data-id="{$ustv->id}"><i class="fa fa-close"></i></button>
                                    </div>
                                </div>

                                <div class="clearfix"></div>
                                {assign var="i" value=$i+1}
                                {/foreach}
                                <div class="clearfix"></div>
                            </div>
                        </div>

                        <!--End US/TVS-->

                        <!--Begin Laparoscopy-->

                        <div class="row">


                            <div class="portlet-title tbox">
                                <div class="caption font-green-haze col-md-6">
                                    <span class="caption-subject bold uppercase"> Laparoscopy</span>
                                </div>
                                <div class="actions col-md-6">
                                    <button type="button" class="btn btn-xs blue fright" id="addLap" data-table="laparoscopy"><i class="fa fa-plus"></i> Add</button>
                                </div>
                            </div>

                            <div class="clearfix"></div>
                            <div id="lapDiv">

                                <input type="hidden" id="lapitr" value="{$lapcount}">
                                {assign var="i" value="1"}
                                {foreach $alllaparoscopy as $lap}

                                {if $ProgramesettingData->displaydoctorname eq 1}
                                <div class="row">
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <label for="form_control_1">{$lap->docname}</label>
                                        </div>
                                    </div>
                                </div>
                                {/if}

                                <div class="row clinick">

                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control datepicker txtc updateElement" id="lsdate1" data-tableName="laparoscopy" data-colName="sdate" data-id="{$lap->id}" value="{$lap->sdate}">
                                            <!--<label for="form_control_1">Date</label>-->
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="luterus1" data-tableName="laparoscopy" data-colName="uterus" data-id="{$lap->id}" value="{$lap->uterus}">
                                            <label for="form_control_1">Uterus</label>
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="lradnexa1" data-tableName="laparoscopy" data-colName="radnexa" data-id="{$lap->id}" value="{$lap->radnexa}">
                                            <label for="form_control_1">R.adnexa</label>
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="lladnexa1" data-tableName="laparoscopy" data-colName="ladnexa" data-id="{$lap->id}" value="{$lap->ladnexa}">
                                            <label for="form_control_1">L.adnexa</label>
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="lpelvis1" data-tableName="laparoscopy" data-colName="pelvis" data-id="{$lap->id}" value="{$lap->pelvis}">
                                            <label for="form_control_1">Pelvis</label>
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info wds99">
                                            <input type="text" class="form-control updateElement" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$lap->notes}" id="lnotes1" data-tableName="laparoscopy" data-colName="notes" data-id="{$lap->id}" value="{$lap->notes}">
                                            <label for="form_control_1">Notes</label>
                                            <!--                                                        <span class="input-group-btn">
                                    <a href="javascript:void(0)" class="btn blue shownotes" type="button" {if !empty($lap->notes)} data-toggle="popover" {/if} data-trigger="focus" data-placement="top" title="LAPAROSCOPY" data-content="{$lap->notes}"><span class="glyphicon glyphicon-info-sign"></span></a>
                                                                                                    </span>-->

                                        </div>
                                        <button type="button" class="btn btn-xs red fright removeMsg axedelete2" style="margin-top: 25px;" id="dellap{$i}" data-tableName="laparoscopy" data-id="{$lap->id}"><i class="fa fa-close"></i></button>
                                    </div>
                                </div>
                                <div class="clearfix"></div>
                                {assign var="i" value=$i+1}
                                {/foreach}
                                <div class="clearfix"></div>
                            </div>
                        </div>

                        <!--End Laparoscopy-->

                        <!--Begin Hysteroscopy-->

                        <div class="row">


                            <div class="portlet-title tbox">
                                <div class="caption font-green-haze col-md-6">
                                    <span class="caption-subject bold uppercase"> Hysteroscopy</span>
                                </div>
                                <div class="actions col-md-6">
                                    <button type="button" class="btn btn-xs blue fright" id="addHyst" data-table="hysteroscopy"><i class="fa fa-plus"></i> Add</button>
                                </div>
                            </div>

                            <div class="clearfix"></div>
                            <div id="hystDiv">

                                <input type="hidden" id="hystitr" value="{$hystcount}">
                                {assign var="i" value="1"}
                                {foreach $allhysteroscopy as $hyst}

                                {if $ProgramesettingData->displaydoctorname eq 1}
                                <div class="row">
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <label for="form_control_1">{$hyst->docname}</label>
                                        </div>
                                    </div>
                                </div>
                                {/if}

                                <div class="row clinick">

                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control datepicker txtc updateElement" id="hystdate1" data-tableName="hysteroscopy" data-colName="sdate" data-id="{$hyst->id}" value="{$hyst->sdate}">
                                            <!--<label for="form_control_1">Date</label>-->
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="hcervix1" data-tableName="hysteroscopy" data-colName="cervix" data-id="{$hyst->id}" value="{$hyst->cervix}">
                                            <label for="form_control_1">Cervix</label>
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="huterine1" data-tableName="hysteroscopy" data-colName="uterine" data-id="{$hyst->id}" value="{$hyst->uterine}">
                                            <label for="form_control_1">Ut Cavity</label>
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="hrostium1" data-tableName="hysteroscopy" data-colName="rostium" data-id="{$hyst->id}" value="{$hyst->rostium}">
                                            <label for="form_control_1">R.Ostium</label>
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="hlostium1" data-tableName="hysteroscopy" data-colName="lostium" data-id="{$hyst->id}" value="{$hyst->lostium}">
                                            <label for="form_control_1">L.Ostium</label>
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info wds99">
                                            <input type="text" class="form-control updateElement" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$hyst->notes}" id="hystnotes1" data-tableName="hysteroscopy" data-colName="notes" data-id="{$hyst->id}" value="{$hyst->notes}">
                                            <label for="form_control_1">Notes</label>
                                            <!--                                                        <span class="input-group-btn">
                                    <a href="javascript:void(0)" class="btn blue shownotes" type="button" {if !empty($hyst->notes)} data-toggle="popover" {/if} data-trigger="focus" data-placement="top" title="HYSTEROSCOPY" data-content="{$hyst->notes}"><span class="glyphicon glyphicon-info-sign"></span></a>
                                                                                                    </span>-->

                                        </div>
                                        <button type="button" class="btn btn-xs red fright removeMsg axedelete2" style="margin-top: 25px;" id="delhyst{$i}" data-tableName="hysteroscopy" data-id="{$hyst->id}"><i class="fa fa-close"></i></button>
                                    </div>

                                </div>
                                <div class="clearfix"></div>
                                {assign var="i" value=$i+1}
                                {/foreach}
                                <div class="clearfix"></div>
                            </div>
                        </div>
                        <!--End Hysteroscopy-->

                        <!--Begin MRI/CT-->

                        <div class="row">


                            <div class="portlet-title tbox">
                                <div class="caption font-green-haze col-md-6">
                                    <span class="caption-subject bold uppercase"> MRI/CT</span>
                                </div>
                                <div class="actions col-md-6">
                                    <button type="button" class="btn btn-xs blue fright" id="addMri" data-table="mrict"><i class="fa fa-plus"></i> Add</button>
                                </div>
                            </div>

                            <div class="clearfix"></div>
                            <div id="mriDiv">
                                <input type="hidden" id="mriitr" value="{$mricount}">
                                {assign var="i" value="1"}
                                {foreach $allmrict as $mri}

                                {if $ProgramesettingData->displaydoctorname eq 1}
                                <div class="row">
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <label for="form_control_1">{$mri->docname}</label>
                                        </div>
                                    </div>
                                </div>
                                {/if}

                                <div class="row clinick">
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control datepicker txtc updateElement" id="mridate{$i}" data-tableName="mrict" data-colName="sdate" data-id="{$mri->id}" value="{$mri->sdate}">
                                            <!--<label for="form_control_1">Date</label>-->
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="muterus{$i}" data-tableName="mrict" data-colName="uterus"  data-id="{$mri->id}" value="{$mri->uterus}">
                                            <label for="form_control_1">Uterus</label>
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="mradnexa{$i}" data-tableName="mrict" data-colName="radnexa"  data-id="{$mri->id}" value="{$mri->radnexa}">
                                            <label for="form_control_1">R.adnexa</label>
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="mladnexa{$i}" data-tableName="mrict" data-colName="ladnexa"  data-id="{$mri->id}" value="{$mri->ladnexa}">
                                            <label for="form_control_1">L.adnexa</label>
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="mpelvis{$i}" data-tableName="mrict" data-colName="pelvis"  data-id="{$mri->id}" value="{$mri->pelvis}">
                                            <label for="form_control_1">Pelvis</label>
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info wds99">
                                            <input type="text" class="form-control updateElement" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$mri->notes}" id="mnotes{$i}" data-tableName="mrict" data-colName="notes"  data-id="{$mri->id}" value="{$mri->notes}">
                                            <label for="form_control_1">Notes</label>
                                            <!--                                                        <span class="input-group-btn">
                                    <a href="javascript:void(0)" class="btn blue shownotes" type="button" {if !empty($mri->notes)} data-toggle="popover" {/if} data-trigger="focus" data-placement="top" title="MRI/CT" data-content="{$mri->notes}"><span class="glyphicon glyphicon-info-sign"></span></a>
                                                                                                    </span>-->

                                        </div>
                                        <button type="button" class="btn btn-xs red fright removeMsg axedelete2" style="margin-top: 25px;" id="delmri{$i}" data-tableName="mrict" data-id="{$mri->id}"><i class="fa fa-close"></i></button>
                                    </div>

                                </div>

                                <div class="clearfix"></div>

                                {assign var="i" value=$i+1}
                                {/foreach}
                                <div class="clearfix"></div>
                            </div>
                        </div>
                        <!--End MRI/CT-->

                        <!--Begin Hormones-->

                        <div class="row">


                            <div class="portlet-title tbox">
                                <div class="caption font-green-haze col-md-6">
                                    <span class="caption-subject bold uppercase"> Hormones</span>
                                </div>
                                <div class="actions col-md-6">
                                    <button type="button" class="btn btn-xs blue fright" id="addHormon" data-table="hormon"><i class="fa fa-plus"></i> Add</button>
                                </div>
                            </div>

                            <div class="clearfix"></div>
                            <div id="hormonDiv" class="hormonz">
                                <input type="hidden" id="hormonitr" value="{$hormoncount}">
                                {assign var="i" value="1"}
                                {foreach $allhormon as $hormon}

                                {if $ProgramesettingData->displaydoctorname eq 1}
                                <div class="row">
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <label for="form_control_1">{$hormon->docname}</label>
                                        </div>
                                    </div>
                                </div>
                                {/if}

                                <div class="row clinick oddev">

                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control datepicker txtc updateElement" id="hodate{$i}" data-tableName="hormon" data-colName="sdate" data-id="{$hormon->id}" value="{$hormon->sdate}">
                                            <!--<label for="form_control_1">Date</label>-->
                                        </div>
                                    </div>
                                    {if $hormon->fsh}
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="fsh{$i}" data-tableName="hormon" data-colName="fsh" data-id="{$hormon->id}" value="{$hormon->fsh}">
                                            <label for="form_control_1">FSH</label>
                                            <span class="input-group-addon">mIU/ml</span>
                                        </div>
                                    </div>
                                    {/if}
                                    {if $hormon->lh}
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="lh{$i}" data-tableName="hormon" data-colName="lh" data-id="{$hormon->id}" value="{$hormon->lh}">
                                            <label for="form_control_1">LH</label>
                                            <span class="input-group-addon">mIU/ml</span>
                                        </div>
                                    </div>
                                    {/if}
                                    {if $hormon->prl}
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="prl{$i}" data-tableName="hormon" data-colName="prl" data-id="{$hormon->id}" value="{$hormon->prl}">
                                            <label for="form_control_1">PRL</label>
                                            <span class="input-group-addon">ng/ml</span>
                                        </div>
                                    </div>
                                    {/if}
                                    {if $hormon->etwo}
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="etwo{$i}" data-tableName="hormon" data-colName="etwo" data-id="{$hormon->id}" value="{$hormon->etwo}">
                                            <label for="form_control_1">E2</label>
                                            <span class="input-group-addon">pg/ml</span>
                                        </div>
                                    </div>
                                    {/if}
                                    {if $hormon->amh}
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="amh{$i}" data-tableName="hormon" data-colName="amh" data-id="{$hormon->id}" value="{$hormon->amh}">
                                            <label for="form_control_1">AMH</label>
                                            <span class="input-group-addon">ng/ml</span>
                                        </div>
                                    </div>
                                    {/if}
                                    {if $hormon->freet}
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="freet{$i}" data-tableName="hormon" data-colName="freet" data-id="{$hormon->id}" value="{$hormon->freet}">
                                            <label for="form_control_1">FreeT</label>
                                            <span class="input-group-addon">pg/ml</span>
                                        </div>
                                    </div>
                                    {/if}
                                    {if $hormon->totalt}
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="totalt{$i}" data-tableName="hormon" data-colName="totalt" data-id="{$hormon->id}" value="{$hormon->totalt}">
                                            <label for="form_control_1">TotalT</label>
                                            <span class="input-group-addon">ng/dl</span>
                                        </div>
                                    </div>
                                    {/if}
                                    {if $hormon->pfour}
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="pfour{$i}" data-tableName="hormon" data-colName="pfour" data-id="{$hormon->id}" value="{$hormon->pfour}">
                                            <label for="form_control_1">P4</label>
                                            <span class="input-group-addon">ng/ml</span>
                                        </div>
                                    </div>
                                    {/if}
                                    {if $hormon->tsh}
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="tsh{$i}" data-tableName="hormon" data-colName="tsh" data-id="{$hormon->id}" value="{$hormon->tsh}">
                                            <label for="form_control_1">TSH</label>
                                            <span class="input-group-addon">uIU/ml</span>
                                        </div>
                                    </div>
                                    {/if}
                                    {if $hormon->tthree}

                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="tthree{$i}" data-tableName="hormon" data-colName="tthree" data-id="{$hormon->id}" value="{$hormon->tthree}">
                                            <label for="form_control_1">T3</label>
                                            <span class="input-group-addon">ng/ml</span>
                                        </div>
                                    </div>
                                    {/if}
                                    {if $hormon->tfour}
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="tfour{$i}" data-tableName="hormon" data-colName="tfour" data-id="{$hormon->id}" value="{$hormon->tfour}">
                                            <label for="form_control_1">T4</label>
                                            <span class="input-group-addon">ug/dl</span>
                                        </div>
                                    </div>
                                    {/if}

                                    {if $hormon->dheas}
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="dheas{$i}" data-tableName="hormon" data-colName="dheas" data-id="{$hormon->id}" value="{$hormon->dheas}">
                                            <label for="form_control_1">DHEAS</label>
                                            <span class="input-group-addon">ug/dl</span>
                                        </div>
                                    </div>
                                    {/if}
                                    {if $hormon->dht}
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="dht{$i}" data-tableName="hormon" data-colName="dht" data-id="{$hormon->id}" value="{$hormon->dht}">
                                            <label for="form_control_1">DHT</label>
                                            <span class="input-group-addon">ng/ml</span>
                                        </div>
                                    </div>
                                    {/if}
                                    {if $hormon->bhcg}
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="bhcg{$i}" data-tableName="hormon" data-colName="bhcg" data-id="{$hormon->id}" value="{$hormon->bhcg}">
                                            <label for="form_control_1">B-HCG</label>
                                            <span class="input-group-addon">mIU/ml</span>
                                        </div>
                                    </div>
                                    {/if}
                                    {if $hormon->inhibinb}
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="inhibinb{$i}" data-tableName="hormon" data-colName="inhibinb" data-id="{$hormon->id}" value="{$hormon->inhibinb}">
                                            <label for="form_control_1">InhibinB</label>
                                            <span class="input-group-addon">pg/ml</span>
                                        </div>
                                    </div>
                                    {/if}
                                    {if $hormon->asd}
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="asd{$i}" data-tableName="hormon" data-colName="asd" data-id="{$hormon->id}" value="{$hormon->asd}">
                                            <label for="form_control_1">ASD</label>
                                            <span class="input-group-addon">ng/ml</span>
                                        </div>
                                    </div>
                                    {/if}

                                    {if $ProgramesettingData->visitsform eq 1}

                                    {if $hormon->ca125 ||$hormon->cea || $hormon->calgg|| $hormon->ldh||$hormon->tfehprotein }


                                    <div class="col-md-1" style="width: 12%;">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">

                                            <label class="form-control" style="background-color: #999;font-weight: bold;">Tum.markers</label>
                                            <label for="form_control_1"></label>
                                            <span class="input-group-addon"></span>
                                        </div>
                                    </div>

                                    {/if}
                                    {if $hormon->ca125}
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="ca125{$i}" data-tableName="hormon" data-colName="ca125" data-id="{$hormon->id}" value="{$hormon->ca125}">
                                            <label for="form_control_1">CA125</label>
                                            <span class="input-group-addon"></span>
                                        </div>
                                    </div>
                                    {/if}

                                    {if $hormon->cea}
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="cea{$i}" data-tableName="hormon" data-colName="cea" data-id="{$hormon->id}" value="{$hormon->cea}">
                                            <label for="form_control_1">CEA</label>
                                            <span class="input-group-addon"></span>
                                        </div>
                                    </div>
                                    {/if}

                                    {if $hormon->calgg}
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="calgg{$i}" data-tableName="hormon" data-colName="calgg" data-id="{$hormon->id}" value="{$hormon->calgg}">
                                            <label for="form_control_1">CAlg-9</label>
                                            <span class="input-group-addon"></span>
                                        </div>
                                    </div>
                                    {/if}

                                    {if $hormon->ldh}
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="ldh{$i}" data-tableName="hormon" data-colName="ldh" data-id="{$hormon->id}" value="{$hormon->ldh}">
                                            <label for="form_control_1">LDH</label>
                                            <span class="input-group-addon"></span>
                                        </div>
                                    </div>
                                    {/if}

                                    {if $hormon->tfehprotein}
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" id="tfehprotein{$i}" data-tableName="hormon" data-colName="tfehprotein" data-id="{$hormon->id}" value="{$hormon->tfehprotein}">
                                            <label for="form_control_1">tfehprotein</label>
                                            <span class="input-group-addon"></span>
                                        </div>
                                    </div>
                                    {/if}
                                    {/if}

                                    {if !empty($hormon->notes)}
                                    <div class="col-md-6">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$hormon->notes}" id="honotes{$i}" data-tableName="hormon" data-colName="notes" data-id="{$hormon->id}" value="{$hormon->notes}">
                                            <label for="form_control_1">Notes</label>
                                            <!--                                                        <span class="input-group-btn">
                                                                                                        <a href="javascript:void(0)" class="btn blue shownotes" type="button" {if !empty($hormon->notes)} data-toggle="popover" {/if} data-trigger="focus" data-placement="top" title="HORMONES" data-content="{$hormon->notes}"><span class="glyphicon glyphicon-info-sign"></span></a>
                                                                                                    </span>-->

                                        </div>
                                    </div>
                                    {/if}
                                    <button type="button" class="axedelete2 btn btn-xs red fright removeMsg" style="margin-top: 25px;" id="delhormon{$i}" data-tableName="hormon" data-id="{$hormon->id}"><i class="fa fa-close"></i></button>



                                </div>

                                {assign var="i" value=$i+1}
                                {/foreach}
                                <div class="clearfix"></div>
                            </div>
                        </div>
                        <!--End Hormones-->

                        <!--Begin Pathology-->

                        <div class="row">


                            <div class="portlet-title tbox">
                                <div class="caption font-green-haze col-md-6">
                                    <span class="caption-subject bold uppercase"> Pathology</span>
                                </div>
                                <div class="actions col-md-6">
                                    <button type="button" class="btn btn-xs blue fright" id="addPathology" data-table="pathology"><i class="fa fa-plus"></i> Add</button>
                                </div>
                            </div>

                            <div class="clearfix"></div>
                            <div id="pathDiv">
                                <input type="hidden" id="pathitr" value="{$pathcount}">
                                {assign var="i" value="1"}
                                {foreach $allpathology as $path}

                                {if $ProgramesettingData->displaydoctorname eq 1}
                                <div class="row">
                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <label for="form_control_1">{$path->docname}</label>
                                        </div>
                                    </div>
                                </div>
                                {/if}

                                <div class="row clinick">

                                    <div class="col-md-1">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control datepicker txtc updateElement" id="psdate{$i}" data-tableName="pathology" data-colName="sdate" data-id="{$path->id}" value="{$path->sdate}">
                                            <!--<label for="form_control_1">Date</label>-->
                                        </div>
                                    </div>
                                    {*if $path->cytology*}
                                    <div class="col-md-5">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$path->cytology}" id="cytology{$i}" data-tableName="pathology" data-colName="cytology" data-id="{$path->id}" value="{$path->cytology}">
                                            <label for="form_control_1">Cytology</label>
                                            <!--                                                        <span class="input-group-btn">
                                    <a href="javascript:void(0)" class="btn blue shownotes" type="button" {if !empty($path->notes)} data-toggle="popover" {/if} data-trigger="focus" data-placement="top" title="PATHOLOGY" data-content="{$path->cytology}"><span class="glyphicon glyphicon-info-sign"></span></a>
                                                                                                    </span>-->

                                        </div>
                                    </div>
                                    {*/if*}

                                    {*if $path->histopathology*}
                                    <div class="col-md-6">
                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                            <input type="text" class="form-control updateElement" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$path->histopathology}" id="histopathology{$i}" data-tableName="pathology" data-colName="histopathology" data-id="{$path->id}" value="{$path->histopathology}">
                                            <label for="form_control_1">Histopathology</label>
                                        </div>
                                    </div>
                                    {*/if*}

                                    <button type="button" class="btn btn-xs red fright removeMsg axedelete3" id="delpath{$i}" data-tableName="pathology" data-id="{$path->id}"><i class="fa fa-close"></i></button>

                                </div>
                                <div class="clearfix"></div>

                                {assign var="i" value=$i+1}
                                {/foreach}
                                <div class="clearfix"></div>
                            </div>
                        </div>
                        <!--End Pathology-->


                        <div class="clearfix"></div>

                        <div class="row">


                            <div class="portlet-title tbox">
                                <div class="caption font-green-haze col-md-6">
                                    <span class="caption-subject bold uppercase"> Other</span>
                                </div>
                                <div class="actions col-md-6">
                                    <button type="button" class="btn btn-xs blue fright" id="addNewInv" ><i class="fa fa-plus"></i> Add Investigations</button>
                                    <button type="button" class="btn btn-xs blue fright" id="addOtherRow" ><i class="fa fa-plus"></i> Add</button>
                                </div>
                            </div>

                            <div class="clearfix"></div>
                            <div id="otherDiv" >
                                <input type="hidden" id="otheritr" value="{$allOthersCount}">
                                {assign var="i" value="1"}
                                {foreach $otherInvests as $invest}

                                <div class="col-md-1">
                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                        <input type="text" class="form-control datepicker txtc updateElement" id="otherdate{$i}" data-tableName="otherinvestigationsrows" data-colName="date" data-id="{$invest->id}" value="{$invest->date}">
                                        <!--<label for="form_control_1">Date</label>-->
                                    </div>
                                </div>
                                {assign var="j" value="1"}
                                {foreach $invest->invs as $other}

                                {*if $other->value*}
                                <div class="{if $j eq count($invest->invs)}col-md-{$invest->last}{else}col-md-{$invest->td}{/if}">
                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                        <input type="text" class="form-control updateElement" id="value{$i}" data-tableName="otherinvestigationsvalues" data-colName="value" data-id="{$other->id}" value="{$other->value}">
                                        <label for="form_control_1">{$other->investName}</label>
                                        <span class="input-group-addon"></span>
                                    </div>
                                </div>
                                {*/if*}
                                {assign var="j" value=$j+1}
                                {/foreach}

                                <div class="col-md-1" style="width: 1%;position: absolute;right: 17px;">
                                    <button type="button" class="axedelete2 btn btn-xs red fright removeMsgOther" style="margin-top: 25px;"  data-tableName="otherinvestigationsrows" data-id="{$invest->id}"><i class="fa fa-close"></i></button>
                                </div>

                                <div class="clearfix"></div>

                                {assign var="i" value=$i+1}
                                {/foreach}
                                <div class="clearfix"></div>
                            </div>
                        </div>


                        <div class="clearfix"></div>

                    </div>



                </div>
            </div>
        </div>
    </div>
</div>
<div id="othersi"></div>
