<?php /* Smarty version Smarty-3.1.11, created on 2024-08-28 02:02:49
         compiled from "../views/obgy/antenalvisit/pregdetail.html" */ ?>
<?php /*%%SmartyHeaderCode:34523717466cee7b935be19-60784504%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6649e3d4d0895b880c725dde910d50e1d074d06d' => 
    array (
      0 => '../views/obgy/antenalvisit/pregdetail.html',
      1 => 1628309570,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '34523717466cee7b935be19-60784504',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'mainObj' => 0,
    'hosturl' => 0,
    'patientid' => 0,
    'ProgramesettingData' => 0,
    'allantenalvisitCount' => 0,
    'allantenalvisit' => 0,
    'myObject' => 0,
    'allcomplaint' => 0,
    'comp' => 0,
    'alldiagnosis' => 0,
    'mydiagnosis' => 0,
    'iDsArray' => 0,
    'allAntUS' => 0,
    'i' => 0,
    'aUs' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66cee7b93e9975_87065448',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66cee7b93e9975_87065448')) {function content_66cee7b93e9975_87065448($_smarty_tpl) {?><div class="page-content-wrapper">
    <div class="page-content all">
        <div class="row">
            <div class="col-md-12" style="padding-right: 0px; padding-left: 0px;">
                <div class="portlet box blue">
                    <div class="portlet-title" style="height: 5px">
                        <div class="caption">
                            <i class="fa fa-edit"></i> Antenatal visits NO.<?php echo $_smarty_tpl->tpl_vars['mainObj']->value->g;?>

                        </div>
                        <div class="actions">
                            <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/antenalvisit.php?ac=archive&patientid=<?php echo $_smarty_tpl->tpl_vars['patientid']->value;?>
" class="btn btn-default btn-sm">
                                Archive pregnancy
                            </a>
                        </div>




                    </div>
                    <div class="portlet-body">


                        <table class="table table-striped table-hover table-bordered">
                            <thead>
                                <tr>
                                    <th class="col-md-2 wds5">
                                        LMP
                                    </th>
                                    <th class="col-md-2 wds5">
                                        EDD
                                    </th>
                                    <!--                                    <th class="col-md-2">
                                                                            IVF
                                                                        </th>-->
                                    <th class="col-md-4">
                                        Notes
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>
                                        <input type="text" class="form-control" value="<?php echo $_smarty_tpl->tpl_vars['mainObj']->value->lmp;?>
" readonly/>
                                    </td>
                                    <td>
                                        <input type="text" class="form-control" value="<?php echo $_smarty_tpl->tpl_vars['mainObj']->value->eed;?>
" readonly/>
                                    </td>
                                    <!--                                    <td>
                                                                            <input type="text" class="form-control" value="<?php echo $_smarty_tpl->tpl_vars['mainObj']->value->ivf;?>
" readonly/>
                                                                        </td>-->
                                    <td>
                                        <?php echo $_smarty_tpl->tpl_vars['mainObj']->value->notes;?>

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




                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12" style="padding-right: 0px; padding-left: 0px;">
                <div class="portlet box blue">
                    <div class="portlet-title" style="height: 5px">
                        <div class="caption">
                            <i class="fa fa-edit"></i> All visits
                        </div>

                        <div class="actions">
                            <a href="javascript:;" class="btn btn-default btn-sm" id="showDrugs" data-mainId="<?php echo $_smarty_tpl->tpl_vars['mainObj']->value->id;?>
" data-archive="1" data-controller="antenalvisit"> TTT</a>
                        </div>

                        <div class="actions">
                            <a href="javascript:;" class="btn btn-default btn-sm" id="showInv" data-mainId="<?php echo $_smarty_tpl->tpl_vars['mainObj']->value->id;?>
" data-archive="1"  data-controller="antenalvisit"> Lab</a>
                        </div>

                        <div class="actions">
                            <a href="javascript:;" class="btn btn-default btn-sm" id="addUS" data-mainId="<?php echo $_smarty_tpl->tpl_vars['mainObj']->value->id;?>
" data-archive="1">  US </a>
                        </div>


                    </div>
                    <div class="portlet-body" id="justfordrugs" >

                        <table class="table table-striped table-hover table-bordered" id="antenalvisit">
                            <thead>
                                <tr>
                                    <th class="col-md-2 wds9">
                                        Date
                                    </th>
                                    <th class="wds1">
                                        W
                                    </th>
                                    <th class="wds30">
                                        Complaint
                                    </th>
                                    <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->diagnosshow==0){?>
                                    <th>
                                        Diagnosis
                                    </th>
                                    <?php }?>
                                    <th class="wds4">
                                        Wt
                                    </th>
                                    <th class="wds6">
                                        Bp
                                    </th>

                                    <th>
                                        Notes
                                    </th>

                                </tr>
                            </thead>
                            <tbody>
                                <?php if ($_smarty_tpl->tpl_vars['allantenalvisitCount']->value>0){?>
                                <?php  $_smarty_tpl->tpl_vars['myObject'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myObject']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allantenalvisit']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myObject']->key => $_smarty_tpl->tpl_vars['myObject']->value){
$_smarty_tpl->tpl_vars['myObject']->_loop = true;
?>
                                <tr>
                                    <td>
                                        <input type="text" class="form-control" value="<?php echo $_smarty_tpl->tpl_vars['myObject']->value->antenaldate;?>
" readonly/>
                                    </td>

                                    <td>
                                        <label <?php if ($_smarty_tpl->tpl_vars['myObject']->value->dateFlag==1){?>style="color: red;"<?php }?>><?php echo $_smarty_tpl->tpl_vars['myObject']->value->w;?>
</label>
                                    </td>
                                    <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->diagnosshow==0){?>
                                    <td>
                                        <input type="text" class="form-control" value="<?php  $_smarty_tpl->tpl_vars['comp'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['comp']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allcomplaint']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['comp']->key => $_smarty_tpl->tpl_vars['comp']->value){
$_smarty_tpl->tpl_vars['comp']->_loop = true;
?><?php if (in_array($_smarty_tpl->tpl_vars['comp']->value->id,$_smarty_tpl->tpl_vars['myObject']->value->compselect)){?><?php echo $_smarty_tpl->tpl_vars['comp']->value->name;?>
   <?php }?><?php } ?>" readonly/>

                                    </td>
                                    <td>
                                        <input type="text" class="form-control" value="<?php  $_smarty_tpl->tpl_vars['mydiagnosis'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['mydiagnosis']->_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['mydiagnosis']->key => $_smarty_tpl->tpl_vars['mydiagnosis']->value){
$_smarty_tpl->tpl_vars['mydiagnosis']->_loop = true;
?><?php if (in_array($_smarty_tpl->tpl_vars['mydiagnosis']->value->id,$_smarty_tpl->tpl_vars['myObject']->value->select)){?><?php echo $_smarty_tpl->tpl_vars['mydiagnosis']->value->name;?>
  <?php }?><?php } ?>" readonly/>

                                    </td>
                                    <?php }else{ ?>
                                    <td>
                                        <input type="text" class="form-control" value="<?php echo $_smarty_tpl->tpl_vars['myObject']->value->complaint;?>
" readonly/>
                                    </td>
                                    <?php }?>
                                    <td>
                                        <input type="text" class="form-control" value="<?php echo $_smarty_tpl->tpl_vars['myObject']->value->wt;?>
" readonly/>
                                    </td>
                                    <td>
                                        <input type="text" class="form-control bp_mask" value="<?php echo $_smarty_tpl->tpl_vars['myObject']->value->bp;?>
" readonly/>
                                    </td>


                                    <td>
                                        <?php echo $_smarty_tpl->tpl_vars['myObject']->value->notes;?>

                                    </td>

                                </tr>

                                <?php } ?>
                                <?php }else{ ?>
                                <tr>
                                    <td style="padding: 3px;" colspan="6">
                                        <div align="center">
                                            NO DATA
                                        </div>

                                    </td>
                                </tr>
                                <?php }?>
                            </tbody>
                        </table>


                    </div>
                </div>
            </div>
        </div>
    </div>

</div>

<input type="hidden" id="patientId" value="<?php echo $_smarty_tpl->tpl_vars['patientid']->value;?>
"/>
<input type="hidden" id="mainAntenatalId" value="<?php echo $_smarty_tpl->tpl_vars['mainObj']->value->id;?>
"/>
<input type="hidden" id="controllName" value="antenalvisit"/>
<input type="hidden" id="iDsArray" value="<?php echo $_smarty_tpl->tpl_vars['iDsArray']->value;?>
"/>



<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" data-keyboard="false"   id="antPatientUS" style="min-width:1000px;">
    <div class="modal-dialog  modal-lg wds90">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title">  </h4>
            </div>
            <div class="modal-body">
                <div class="portlet-body form">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="portlet blue-hoki box">
                                <div class="portlet-title" >
                                    <div class="caption"> Ultrasound </div>
                                </div>
                                <div class="portlet-body">

                                    <table class="table table-striped table-hover table-bordered" dir="ltr">
                                        <thead>
                                            <tr>
                                                <th>
                                                    #
                                                </th>
                                                <th>
                                                    Date
                                                </th>
                                                <th>
                                                    N(GA)
                                                </th>
                                                <th>
                                                    GS
                                                </th>
                                                <th>
                                                    CRL
                                                </th>
                                                <th>
                                                    FHR
                                                </th>
                                                <th>
                                                    BPD
                                                </th>

                                                <th>
                                                    FL
                                                </th>
                                                <th>
                                                    Placenta
                                                </th>

                                                <th>
                                                    FWT
                                                </th>
                                                <th>
                                                    Notes
                                                </th>

                                                <th>
                                                    <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>Doctor<?php }?>
                                                </th>
                                            </tr>
                                        </thead>
                                        <tbody id="usantenatal">
                                            <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                                            <?php  $_smarty_tpl->tpl_vars['aUs'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['aUs']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allAntUS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['aUs']->key => $_smarty_tpl->tpl_vars['aUs']->value){
$_smarty_tpl->tpl_vars['aUs']->_loop = true;
?>
                                            <tr>
                                                <td><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>

                                                <td>
                                                    <input type="text" class="form-control " readonly="" placeholder="Date"  value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->date;?>
"/>
                                                </td>
                                                <td>
                                                    <input type="text" class="form-control " disabled="" placeholder="N(GA)"  value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->nga;?>
">
                                                </td>
                                                <td>
                                                    <input type="text" class="form-control " disabled="" placeholder="GS" value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->gs;?>
">
                                                </td>
                                                <td>
                                                    <input type="text" class="form-control " disabled="" placeholder="CRL"  value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->crl;?>
">
                                                </td>
                                                <td>
                                                    <input type="text" class="form-control " disabled="" placeholder="FHR" value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->fhr;?>
">
                                                </td>
                                                <td>
                                                    <input type="text" class="form-control " disabled="" placeholder="BPD"  value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->bpd;?>
">
                                                </td>
                                                <td>
                                                    <input type="text" class="form-control " disabled="" placeholder="FL"  value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->fl;?>
">
                                                </td>
                                                <td>
                                                    <input type="text" class="form-control " disabled="" placeholder="Placenta"  value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->placenta;?>
">
                                                </td>
                                                <td>
                                                    <input type="text" class="form-control " disabled="" placeholder="FWT"  value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->fwt;?>
">
                                                </td>
                                                <td>
                                                    <input type="text" class="form-control " disabled="" placeholder="Notes"  value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->notes;?>
">
                                                </td>

                                                <td class="bold">
                                                    <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?><?php echo $_smarty_tpl->tpl_vars['aUs']->value->doctorname;?>
<?php }?>
                                                </td>
                                            </tr>
                                            <?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 } ?>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn default" id="closemodel" data-dismiss="modal"> Close</button>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--------------------------------------------------------------------------- show Investigation Model-------------------------------------------------------------------------------------->
<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" data-keyboard="false"   id="showPatientInvestigation" style="min-width:1000px;">
    <div class="modal-dialog  modal-lg wds90">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title">  </h4>
            </div>
            <div class="modal-body">
                <div class="portlet-body form">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="portlet blue-hoki box">
                                <div class="portlet-title">
                                    <div class="caption"> Investigations  </div>
                                </div>
                                <div class="portlet-body">
                                    <div  id="showInvs">
                                        <table class="table table-striped table-hover table-bordered">
                                            <thead>
                                                <tr>
                                                    <th> <div align="center">Date </div></th>
                                                    <th colspan="3"> <div align="center">Investigations </div></th>
                                                </tr>
                                            </thead>

                                        </table>
                                    </div>
                                    <div  id="inv_divShow">

                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn default" id="closemodel" data-dismiss="modal"> Close</button>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>



<!---------------------------------------------------------------------------show Drugs Model-------------------------------------------------------------------------------------->
<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" data-keyboard="false"   id="showPatientDrugs" style="min-width:1000px;z-index: 10049;">
    <div class="modal-dialog  modal-lg wds90">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title">  </h4>
            </div>
            <div class="modal-body">
                <div class="portlet-body form">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="portlet blue-hoki box">
                                <div class="portlet-title" >
                                    <div class="caption"> Prescriptions </div>
                                </div>
                                <div class="portlet-body" id="showPrescriptions">

                                    <table class="table table-striped table-hover table-bordered">
                                        <thead>
                                            <tr>
                                                <th>
                                                    Date
                                                </th>
                                                <th>
                                                    Drug Name
                                                </th>
                                                <th>
                                                    Print
                                                </th>
                                                <th>
                                                    <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>Doctor<?php }?>
                                                </th>
                                            </tr>
                                        </thead>

                                    </table>

                                </div>
                                <div id="drugPrintShow">

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

                            <button type="button" class="btn default" id="closemodel" data-dismiss="modal"> Close</button>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php }} ?>