<?php /* Smarty version Smarty-3.1.11, created on 2025-01-06 23:47:40
         compiled from "../views/obgy/_phmain/obstetric.html" */ ?>
<?php /*%%SmartyHeaderCode:1702026380677c4f7c9d7789-93876845%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f9c2f3cc2a3095c1de70b62a88ab1ed86e1a79fb' => 
    array (
      0 => '../views/obgy/_phmain/obstetric.html',
      1 => 1477475472,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1702026380677c4f7c9d7789-93876845',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'allobsteric' => 0,
    'data' => 0,
    'i' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_677c4f7cacf2a4_70372455',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_677c4f7cacf2a4_70372455')) {function content_677c4f7cacf2a4_70372455($_smarty_tpl) {?><table class="table table-striped table-hover table-bordered">
    <thead>
        <tr>
            <th> # </th>
            <th> Duration</th>
            <th> Termination</th>
            <th> Place </th>
            <th> Date</th>
            <th> Type</th>
            <th> OutCome </th>
            <th> Gender</th>
            <th> Baby Weight</th>
            <th> Baby Name </th>
            <th> Notes </th>
        </tr>
    </thead>
    <tbody>
        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
        <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allobsteric']->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;
?>
        <?php if ($_smarty_tpl->tpl_vars['data']->value->obstermination==1||$_smarty_tpl->tpl_vars['data']->value->obstermination==2){?>
                    <tr>
                        <td  <?php if ($_smarty_tpl->tpl_vars['data']->value->outcomeid==2){?>rowspan="2" <?php }elseif($_smarty_tpl->tpl_vars['data']->value->outcomeid==3){?> rowspan="3" <?php }?> > <?php echo $_smarty_tpl->tpl_vars['i']->value;?>
 </td>

                        <td  <?php if ($_smarty_tpl->tpl_vars['data']->value->outcomeid==2){?>rowspan="2" <?php }elseif($_smarty_tpl->tpl_vars['data']->value->outcomeid==3){?> rowspan="3" <?php }?> ><?php echo $_smarty_tpl->tpl_vars['data']->value->obstrduration;?>
</td>

                        <td  <?php if ($_smarty_tpl->tpl_vars['data']->value->outcomeid==2){?>rowspan="2" <?php }elseif($_smarty_tpl->tpl_vars['data']->value->outcomeid==3){?> rowspan="3" <?php }?> ><?php if (!empty($_smarty_tpl->tpl_vars['data']->value->terminatename)){?><?php echo $_smarty_tpl->tpl_vars['data']->value->terminatename;?>
<?php }?></td>

                        <td  <?php if ($_smarty_tpl->tpl_vars['data']->value->outcomeid==2){?>rowspan="2" <?php }elseif($_smarty_tpl->tpl_vars['data']->value->outcomeid==3){?> rowspan="3" <?php }?> ><?php if (!empty($_smarty_tpl->tpl_vars['data']->value->placename)){?><?php echo $_smarty_tpl->tpl_vars['data']->value->placename;?>
<?php }?></td>

                        <td  <?php if ($_smarty_tpl->tpl_vars['data']->value->outcomeid==2){?>rowspan="2" <?php }elseif($_smarty_tpl->tpl_vars['data']->value->outcomeid==3){?> rowspan="3" <?php }?> ><?php echo $_smarty_tpl->tpl_vars['data']->value->obsdate;?>
</td>


                        <td  <?php if ($_smarty_tpl->tpl_vars['data']->value->outcomeid==2){?>rowspan="2" <?php }elseif($_smarty_tpl->tpl_vars['data']->value->outcomeid==3){?> rowspan="3" <?php }?> >
                            <?php if ($_smarty_tpl->tpl_vars['data']->value->outcomeid==0){?>Male <?php }?>
                            <?php if ($_smarty_tpl->tpl_vars['data']->value->outcomeid==1){?>Female <?php }?>
                            <?php if ($_smarty_tpl->tpl_vars['data']->value->outcomeid==2){?>Twins <?php }?>
                            <?php if ($_smarty_tpl->tpl_vars['data']->value->outcomeid==3){?>Triplets <?php }?>
                        </td>
                        <td>
                            <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->babytype;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1==0){?>Living <?php }?>
                            <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->babytype;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp2==1){?>Dead <?php }?>
                        </td>
                        <td>
                            <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->babygendernew;?>
<?php $_tmp3=ob_get_clean();?><?php if ($_tmp3==0){?>M <?php }?>
                            <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->babygendernew;?>
<?php $_tmp4=ob_get_clean();?><?php if ($_tmp4==1){?>F <?php }?>
                        </td>
                        <td><?php echo $_smarty_tpl->tpl_vars['data']->value->babyweight;?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['data']->value->babyname;?>
</td>
                        <td <?php if ($_smarty_tpl->tpl_vars['data']->value->outcomeid==2){?>rowspan="2"<?php }elseif($_smarty_tpl->tpl_vars['data']->value->outcomeid==3){?>rowspan="3"<?php }?>><?php echo $_smarty_tpl->tpl_vars['data']->value->obsnote;?>
</td>

                    </tr>
                    <?php if ($_smarty_tpl->tpl_vars['data']->value->outcomeid==2||$_smarty_tpl->tpl_vars['data']->value->outcomeid==3){?>
                    <tr>
                        <td>
                            <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->babytype1;?>
<?php $_tmp5=ob_get_clean();?><?php if ($_tmp5==0){?>Living <?php }?>
                            <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->babytype1;?>
<?php $_tmp6=ob_get_clean();?><?php if ($_tmp6==1){?>Dead <?php }?>
                        </td>
                        <td>
                            <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->babygendernew1;?>
<?php $_tmp7=ob_get_clean();?><?php if ($_tmp7==0){?>M <?php }?>
                            <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->babygendernew1;?>
<?php $_tmp8=ob_get_clean();?><?php if ($_tmp8==1){?>F <?php }?>
                        </td>
                        <td><?php echo $_smarty_tpl->tpl_vars['data']->value->babyweight1;?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['data']->value->babyname1;?>
</td>
                    </tr>
                    <?php }?>
                    <?php if ($_smarty_tpl->tpl_vars['data']->value->outcomeid==3){?>
                    <tr>
                        <td>
                            <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->babytype2;?>
<?php $_tmp9=ob_get_clean();?><?php if ($_tmp9==0){?>Living <?php }?>
                            <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->babytype2;?>
<?php $_tmp10=ob_get_clean();?><?php if ($_tmp10==1){?>Dead <?php }?>
                        </td>
                        <td>
                            <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->babygendernew2;?>
<?php $_tmp11=ob_get_clean();?><?php if ($_tmp11==0){?>M <?php }?>
                            <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->babygendernew2;?>
<?php $_tmp12=ob_get_clean();?><?php if ($_tmp12==1){?>F <?php }?>
                        </td>
                        <td><?php echo $_smarty_tpl->tpl_vars['data']->value->babyweight2;?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['data']->value->babyname2;?>
</td>
                    </tr>
                    <?php }?>
        <?php }else{ ?>
        <tr>
                        <td> <?php echo $_smarty_tpl->tpl_vars['i']->value;?>
 </td>

                        <td><?php if (!empty($_smarty_tpl->tpl_vars['data']->value->obstrduration)){?><?php echo $_smarty_tpl->tpl_vars['data']->value->obstrduration;?>
<?php }?></td>

                        <td><?php if (!empty($_smarty_tpl->tpl_vars['data']->value->terminatename)){?><?php echo $_smarty_tpl->tpl_vars['data']->value->terminatename;?>
<?php }?></td>

                        <td><?php if (!empty($_smarty_tpl->tpl_vars['data']->value->placename)){?><?php echo $_smarty_tpl->tpl_vars['data']->value->placename;?>
<?php }?></td>

                        <td><?php if (!empty($_smarty_tpl->tpl_vars['data']->value->obsdate)){?><?php echo $_smarty_tpl->tpl_vars['data']->value->obsdate;?>
<?php }?></td>


                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td><?php echo $_smarty_tpl->tpl_vars['data']->value->obsnote;?>
</td>

                    </tr>
        <?php }?>
        <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
        <?php } ?>
</table>
<?php }} ?>