<?php /* Smarty version Smarty-3.1.11, created on 2025-06-21 18:49:24
         compiled from "../views/obgy/case_summary_obstetric/obstetric.html" */ ?>
<?php /*%%SmartyHeaderCode:20733493136856d484db1ce9-06441284%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '1030cb1fc9ac5c09feb89c8426124d443250a543' => 
    array (
      0 => '../views/obgy/case_summary_obstetric/obstetric.html',
      1 => 1675245540,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '20733493136856d484db1ce9-06441284',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'obstetric_case' => 0,
    'ftnds' => 0,
    'one' => 0,
    'preterm' => 0,
    'still_birth' => 0,
    'difficults' => 0,
    'cs' => 0,
    'previous_pregnancies' => 0,
    'prev' => 0,
    'previous_puerperium' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6856d484e5b0f5_32230745',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6856d484e5b0f5_32230745')) {function content_6856d484e5b0f5_32230745($_smarty_tpl) {?><div class="portlet box purple">
    <div class="portlet-title">
        <div class="caption">Obstetric History </div>
        <div class="actions"></div>
        <div class="tools">
            <a href="#" class="collapse" title="تصغير / تكبير"></a>
        </div>
    </div>
    <div class="portlet-body">
        <div class="row">
            <div id="ultrasoundgynaDiv">
                <div class="row">
                    <div class="portlet-body form" >
                        <form>
                            <div class="form-body">
                                <table>
                                    <thead>
                                        <tr>
                                            <th class="wds2"> G  </th>  
                                            <th class="wds2"> P </th>
                                            <th class="wds2"> AB  </th>  
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td>
                                                <input type="text" class="amrpop form-control updateElement" 
                                                       placeholder=" G " name="g"
                                                       data-colName="g" data-id="<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->id;?>
" 
                                                       data-tableName="obstetric_case" value="<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->g;?>
"/>
                                            </td>
                                            <td>
                                                <input type="text" class="amrpop form-control updateElement" 
                                                       placeholder=" P " name="p"
                                                       data-colName="p" data-id="<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->id;?>
" 
                                                       data-tableName="obstetric_case" value="<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->p;?>
"/>
                                            </td>
                                            <td>
                                                <input type="text" class="amrpop form-control updateElement" 
                                                       placeholder=" AB " name="ab"
                                                       data-colName="ab" data-id="<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->id;?>
" 
                                                       data-tableName="obstetric_case" value="<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->ab;?>
"/>
                                            </td>
                                        </tr>
                                </table>

                                <table>
                                    <caption>           Previous Deliveries        </caption>
                                    <tbody>
                                        <tr>
                                            <th class="wds16"> FTNDs   :   </th>  
                                            <td>
                                                <select id="ftnds<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->id;?>
"  
                                                        class="form-control ftndsSelect updateElement"  data-colName="ftnds"
                                                        data-rowid="<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->id;?>
"  data-id="<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->id;?>
"
                                                        name="ftnds" select-tableName="ftnds"   
                                                        data-tableName="obstetric_case" >
                                                    <option value="">choose</option>
                                                    <?php  $_smarty_tpl->tpl_vars['one'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['one']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['ftnds']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['one']->key => $_smarty_tpl->tpl_vars['one']->value){
$_smarty_tpl->tpl_vars['one']->_loop = true;
?>
                                                    <option value="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"<?php if ($_smarty_tpl->tpl_vars['obstetric_case']->value->ftnds==$_smarty_tpl->tpl_vars['one']->value->id){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['one']->value->name;?>
</option>
                                                    <?php } ?>

                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                </select>
                                            </td>
                                        </tr>

                                        <tr>
                                            <th> Preterm Labors   :   </th>  
                                            <td>
                                                <select id="preterm<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->id;?>
"  
                                                        class="form-control pretermSelect updateElement"  data-colName="preterm"
                                                        data-rowid="<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->id;?>
"  data-id="<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->id;?>
"
                                                        name="preterm" select-tableName="preterm"   
                                                        data-tableName="obstetric_case" >
                                                    <option value="">choose</option>
                                                    <?php  $_smarty_tpl->tpl_vars['one'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['one']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['preterm']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['one']->key => $_smarty_tpl->tpl_vars['one']->value){
$_smarty_tpl->tpl_vars['one']->_loop = true;
?>
                                                    <option value="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"<?php if ($_smarty_tpl->tpl_vars['obstetric_case']->value->preterm==$_smarty_tpl->tpl_vars['one']->value->id){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['one']->value->name;?>
</option>
                                                    <?php } ?>

                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                </select>
                                            </td>
                                        </tr>

                                        <tr>
                                            <th> Still Births   :   </th>  
                                            <td>
                                                <select id="still_birth<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->id;?>
"  
                                                        class="form-control still_birthSelect updateElement"  data-colName="still_birth"
                                                        data-rowid="<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->id;?>
"  data-id="<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->id;?>
"
                                                        name="still_birth" select-tableName="still_birth"   
                                                        data-tableName="obstetric_case" >
                                                    <option value="">choose</option>
                                                    <?php  $_smarty_tpl->tpl_vars['one'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['one']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['still_birth']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['one']->key => $_smarty_tpl->tpl_vars['one']->value){
$_smarty_tpl->tpl_vars['one']->_loop = true;
?>
                                                    <option value="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"<?php if ($_smarty_tpl->tpl_vars['obstetric_case']->value->still_birth==$_smarty_tpl->tpl_vars['one']->value->id){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['one']->value->name;?>
</option>
                                                    <?php } ?>

                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                </select>
                                            </td>
                                        </tr>

                                        <tr>
                                            <th> Difficult Labors   :   </th>  
                                            <td>
                                                <select id="difficults<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->id;?>
"  
                                                        class="form-control difficultsSelect updateElement"  data-colName="difficults"
                                                        data-rowid="<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->id;?>
"  data-id="<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->id;?>
"
                                                        name="difficults" select-tableName="difficults"   
                                                        data-tableName="obstetric_case" >
                                                    <option value="">choose</option>
                                                    <?php  $_smarty_tpl->tpl_vars['one'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['one']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['difficults']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['one']->key => $_smarty_tpl->tpl_vars['one']->value){
$_smarty_tpl->tpl_vars['one']->_loop = true;
?>
                                                    <option value="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"<?php if ($_smarty_tpl->tpl_vars['obstetric_case']->value->difficults==$_smarty_tpl->tpl_vars['one']->value->id){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['one']->value->name;?>
</option>
                                                    <?php } ?>

                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                </select>
                                            </td>
                                        </tr>

                                        <tr>
                                            <th> C.S   :   </th>  
                                            <td>
                                                <select id="cs<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->id;?>
"  
                                                        class="form-control csSelect updateElement"  data-colName="cs"
                                                        data-rowid="<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->id;?>
"  data-id="<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->id;?>
"
                                                        name="cs" select-tableName="cs"   
                                                        data-tableName="obstetric_case" >
                                                    <option value="">choose</option>
                                                    <?php  $_smarty_tpl->tpl_vars['one'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['one']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['cs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['one']->key => $_smarty_tpl->tpl_vars['one']->value){
$_smarty_tpl->tpl_vars['one']->_loop = true;
?>
                                                    <option value="<?php echo $_smarty_tpl->tpl_vars['one']->value->id;?>
"<?php if ($_smarty_tpl->tpl_vars['obstetric_case']->value->cs==$_smarty_tpl->tpl_vars['one']->value->id){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['one']->value->name;?>
</option>
                                                    <?php } ?>

                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                </select>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th> Date Of Last Delivery  : </th>  
                                            <td>
                                                <input type="text" placeholder="Last Delivery" name="last_delivery"  
                                                       class="form-control updateElement datepicker"  data-colName="last_delivery"  
                                                       data-id="<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->id;?>
" data-tableName="obstetric_case" 
                                                       value="<?php echo $_smarty_tpl->tpl_vars['obstetric_case']->value->last_delivery;?>
"/>
                                            </td>
                                        </tr>
                                </table>

                                <table>
                                    <caption>           Previous Pregnancies    
                                        <button type="button" class="btn btn-xs blue addNewRow"  
                                                data-tableName="previous_pregnancies" >  <i class="fa fa-plus"></i> </button>
                                    </caption>
                                    <tbody id="previous_pregnanciesContainer">
                                        <?php  $_smarty_tpl->tpl_vars['prev'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['prev']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['previous_pregnancies']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['prev']->key => $_smarty_tpl->tpl_vars['prev']->value){
$_smarty_tpl->tpl_vars['prev']->_loop = true;
?>
                                        <tr>
                                            <td class="wds35">
                                                <div class="col-md-12">
                                                    <div class="col-md-6">
                                                        <div class="md-radio-list">
                                                            <div class="md-radio">
                                                                <input type="radio" id="prev_preg1_<?php echo $_smarty_tpl->tpl_vars['prev']->value->id;?>
" name="prev_preg<?php echo $_smarty_tpl->tpl_vars['prev']->value->id;?>
"  
                                                                       class="md-radiobtn sradio updateElement" value="1"  data-id="<?php echo $_smarty_tpl->tpl_vars['prev']->value->id;?>
"
                                                                       data-colName="prev_preg" data-tableName="previous_pregnancies"
                                                                       <?php if ($_smarty_tpl->tpl_vars['prev']->value->prev_preg==1){?> checked <?php }?>>
                                                                <label for="prev_preg1_<?php echo $_smarty_tpl->tpl_vars['prev']->value->id;?>
">
                                                                    <span></span>
                                                                    <span class="check"></span>
                                                                    <span class="box"></span>
                                                                    Not complicated</label>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="col-md-6">
                                                        <div class="md-radio-list">
                                                            <div class="md-radio">
                                                                <input type="radio" id="prev_preg2_<?php echo $_smarty_tpl->tpl_vars['prev']->value->id;?>
" name="prev_preg<?php echo $_smarty_tpl->tpl_vars['prev']->value->id;?>
" 
                                                                       class="md-radiobtn sradio updateElement" value="2"  data-id="<?php echo $_smarty_tpl->tpl_vars['prev']->value->id;?>
"
                                                                       data-colName="prev_preg" data-tableName="previous_pregnancies"
                                                                       <?php if ($_smarty_tpl->tpl_vars['prev']->value->prev_preg==2){?> checked <?php }?>>
                                                                <label for="prev_preg2_<?php echo $_smarty_tpl->tpl_vars['prev']->value->id;?>
">
                                                                    <span></span>
                                                                    <span class="check"></span>
                                                                    <span class="box"></span>
                                                                    Complicated  </label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </td>
                                            <th class="wds11"> Notes   :   </th>  
                                            <td>
                                                <input type="text" class="form-control  updateElement txtc" 
                                                       data-tableName="previous_pregnancies" data-colName="prev_preg_note" data-id="<?php echo $_smarty_tpl->tpl_vars['prev']->value->id;?>
" 
                                                       value="<?php echo $_smarty_tpl->tpl_vars['prev']->value->prev_preg_note;?>
"/>
                                            </td>
                                        </tr>
                                        <?php } ?>
                                </table>

                                <table>
                                    <caption>           Previous Puerperium      
                                        <button type="button" class="btn btn-xs blue addNewRow"  
                                                data-tableName="previous_puerperium" >  <i class="fa fa-plus"></i> </button>
                                    </caption>
                                    <tbody id="previous_puerperiumContainer">
                                        <?php  $_smarty_tpl->tpl_vars['prev'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['prev']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['previous_puerperium']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['prev']->key => $_smarty_tpl->tpl_vars['prev']->value){
$_smarty_tpl->tpl_vars['prev']->_loop = true;
?>
                                        <tr>
                                            <td class="wds35">
                                                <div class="col-md-12">
                                                    <div class="col-md-6">
                                                        <div class="md-radio-list">
                                                            <div class="md-radio">
                                                                <input type="radio" id="prev_puer1_<?php echo $_smarty_tpl->tpl_vars['prev']->value->id;?>
" name="prev_puer<?php echo $_smarty_tpl->tpl_vars['prev']->value->id;?>
"  
                                                                       class="md-radiobtn sradio updateElement" value="1"  data-id="<?php echo $_smarty_tpl->tpl_vars['prev']->value->id;?>
"
                                                                       data-colName="prev_puer" data-tableName="previous_puerperium"
                                                                       <?php if ($_smarty_tpl->tpl_vars['prev']->value->prev_puer==1){?> checked <?php }?>>
                                                                <label for="prev_puer1_<?php echo $_smarty_tpl->tpl_vars['prev']->value->id;?>
">
                                                                    <span></span>
                                                                    <span class="check"></span>
                                                                    <span class="box"></span>
                                                                    Not complicated</label>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="col-md-6">
                                                        <div class="md-radio-list">
                                                            <div class="md-radio">
                                                                <input type="radio" id="prev_puer2_<?php echo $_smarty_tpl->tpl_vars['prev']->value->id;?>
" name="prev_puer<?php echo $_smarty_tpl->tpl_vars['prev']->value->id;?>
" 
                                                                       class="md-radiobtn sradio updateElement" value="2"  data-id="<?php echo $_smarty_tpl->tpl_vars['prev']->value->id;?>
"
                                                                       data-colName="prev_puer" data-tableName="previous_puerperium"
                                                                       <?php if ($_smarty_tpl->tpl_vars['prev']->value->prev_puer==2){?> checked <?php }?>>
                                                                <label for="prev_puer2_<?php echo $_smarty_tpl->tpl_vars['prev']->value->id;?>
">
                                                                    <span></span>
                                                                    <span class="check"></span>
                                                                    <span class="box"></span>
                                                                    Complicated  </label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </td>
                                            <th class="wds11"> Notes   :   </th>  
                                            <td>
                                                <input type="text" class="form-control  updateElement txtc" 
                                                       data-tableName="previous_puerperium" data-colName="prev_puer_note" data-id="<?php echo $_smarty_tpl->tpl_vars['prev']->value->id;?>
" 
                                                       value="<?php echo $_smarty_tpl->tpl_vars['prev']->value->prev_puer_note;?>
"/>
                                            </td>
                                        </tr>
                                        <?php } ?>
                                </table>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
</div><?php }} ?>