<?php /* Smarty version Smarty-3.1.11, created on 2025-06-21 18:49:26
         compiled from "../views/obgy/case_summary/final.html" */ ?>
<?php /*%%SmartyHeaderCode:5788509246856d4867f5a92-85669036%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c4424bd10e9a7033cf7debaaf6439cb78ab97031' => 
    array (
      0 => '../views/obgy/case_summary/final.html',
      1 => 1674625826,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '5788509246856d4867f5a92-85669036',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'summaryObstetric' => 0,
    'alldiagnosis' => 0,
    'data' => 0,
    'allrecommends' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6856d4868101d9_13023790',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6856d4868101d9_13023790')) {function content_6856d4868101d9_13023790($_smarty_tpl) {?><table>
    <thead>
        <tr>
            <th> Final Diagnosis</th>  
        </tr>

        <tr> 
            <td>
                <select multiple="" size="1" class="form-control select2me diagnosis updateDiagnosis" id="diagnosis" 
                        data-id="<?php echo $_smarty_tpl->tpl_vars['summaryObstetric']->value->id;?>
" data-colName="diagnosis" data-tableName="summary_obstetric">
                    <option value="">choose</option>
                    <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['alldiagnosis']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
                    <option value="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" <?php if (in_array($_smarty_tpl->tpl_vars['data']->value->id,$_smarty_tpl->tpl_vars['summaryObstetric']->value->diagnosis)){?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['data']->value->name;?>
</option>
                    <?php } ?>
                    <option value="-1" class="addDiagnosis">Add</option>
                    <option value="-2" class="deleteoptincompo">Delete</option>
                </select>
            </td> 
        </tr>

        <tr>
            <th> Recommended Plan of treatment</th>  
        </tr>

        <tr> 
            <td>
                <select multiple="" size="1" class="form-control select2me recommend updateDiagnosis" id="recommend" 
                        data-id="<?php echo $_smarty_tpl->tpl_vars['summaryObstetric']->value->id;?>
" data-colName="recommend" data-tableName="summary_obstetric">
                    <option value="">choose</option>
                    <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allrecommends']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
                    <option value="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" <?php if (in_array($_smarty_tpl->tpl_vars['data']->value->id,$_smarty_tpl->tpl_vars['summaryObstetric']->value->recommend)){?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['data']->value->name;?>
</option>
                    <?php } ?>
                    <option value="-1" class="addDiagnosis">Add</option>
                    <option value="-2" class="deleteoptincompo">Delete</option>
                </select>
            </td> 
        </tr>
    </thead>
</table>




<div class="bootbox modal fade bootbox-alert in" tabindex="-1" role="dialog" aria-hidden="false"  id="add_model">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title"> Add New </h4>
            </div>
            <div class="modal-body">
                <div class="portlet-body form">
                    <form action="" id="" method="post" class="form-horizontal  emptyform" >
                        <div class="form-body">
                            <!------===========================================------->
                            <div class="form-group">
                                <div class="col-md-1"></div>
                                <label class="col-md-3 control-label txtl"> Name </label>
                                <div class="col-md-8">
                                    <input type="text" class="addDiagnosisName wds95" id="diagnosisName" data-select="" data-tablename="" data-id="" value="">
                                </div>
                            </div>

                            <!------===========================================------->
                            <div class="modal-footer">
                                <button type="button" id="amountcloseinput"   class="btn default" data-dismiss="modal">Close</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
    </div>
</div>

<div class="bootbox modal fade bootbox-alert in" tabindex="-1" role="dialog" aria-hidden="false"  id="edit_model">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title"> Edit </h4>
            </div>
            <div class="modal-body">
                <div class="portlet-body form">
                    <form action="" id="" method="post" class="form-horizontal  emptyform" >
                        <div class="form-body all" >
                            <!------===========================================------->
                            <div class="form-group">
                                <label class="col-md-1 control-label"> </label>
                                <div class="col-md-10">
                                    <div id="alldatadiv" class="" > </div>
                                </div>
                                <label class="col-md-1 control-label"> </label>
                            </div>

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

                            <!------===========================================------->
                            <div class="modal-footer">

                                <button type="submit" id="amountcloseinput"   class="btn default" data-dismiss="modal">Close</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
    </div>
</div>
<?php }} ?>