
<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <div class="col-md-12 clinick invz" id="prinModel">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-user"></i>Ultrasound Obstetric
                        </div>
                    </div>
                    <div class="portlet-body all">
                        <input type="hidden" id="ultrasoundobstPage" value="1"/>
                        <input type="hidden" id="patientId" value="{$patientData->id}"/>
                        <input type="hidden" id="controllName" value="ultrasoundobst"/>
                        <!---======================================================== tab1============================================================================================ ----->

                        <div class="row">
                            <div id="ultrasoundobstDiv">

                                <div class="row">

                                    <div class="portlet-body form">
                                        <form>
                                            <div class="form-body">
                                                <div class="col-md-6">

                                                    <div class="form-group form-md-line-input">
                                                        <label class="col-md-6 control-label" for="form_control_1">Patient Name</label>
                                                        <div class="col-md-6">
                                                            <div class="form-control form-control-static">
                                                                {$patientData->wifename}
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="col-md-6">

                                                    <div class="form-group form-md-line-input">
                                                        <label class="col-md-6 control-label" for="form_control_1">Patient ID</label>
                                                        <div class="col-md-6">
                                                            <div class="form-control form-control-static">
                                                                {$patientData->id}
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>





                                                <div class="col-md-6">
                                                    <div class="form-group form-md-line-input">
                                                        <label class="col-md-6 control-label" for="form_control_1">Date of Birth</label>
                                                        <div class="col-md-6">
                                                            <div class="form-control form-control-static">
                                                                {$patientData->dateofbirth}
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>


                                                <div class="col-md-6">
                                                    <div class="form-group form-md-line-input">
                                                        <label class="col-md-6 control-label" for="form_control_1">Referring Physican</label>
                                                        <div class="col-md-6">
                                                            <input type="text" class="form-control input-sm updateElement" id="form_control_1" placeholder="Referring Physican" data-id="{$ultrasoundobstData->id}" data-colName="physician" data-tableName="ultrasoundobst" value="{$ultrasoundobstData->physician}">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="clearfix"></div>
                                                <div class="col-md-6">
                                                    <div class="form-group form-md-line-input">
                                                        <label class="col-md-6 control-label" for="form_control_1">Date of Exam</label>
                                                        <div class="col-md-6">
                                                            <input type="text" class="form-control input-sm datepicker updateElement txtc" placeholder="Date of Exam" data-id="{$ultrasoundobstData->id}" data-colName="edate" data-tableName="ultrasoundobst" value="{$ultrasoundobstData->edate}">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="col-md-6">
                                                    <div class="form-group">
                                                        <label class="col-md-6 control-label" for="form_control_1">Sonographer</label>
                                                        <div class="col-md-6">
                                                            <select class="form-control select2me updateElement" data-placeholder="Select..." data-id="{$ultrasoundobstData->id}" data-colName="sid" data-tableName="ultrasoundobst">
                                                                <option></option>
                                                                {foreach $allSname as $sname}
                                                                <option value="{$sname.user_id}" {if $ultrasoundobstData->sid eq $sname.user_id}selected{/if}>{$sname.user_name}</option>
                                                                {/foreach}
                                                            </select>                                                            
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

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


                                                <div class="col-md-6">
                                                    <label class="col-md-9 control-label" for="form_control_1">
                                                        Indication for scan and relevant clinical information
                                                    </label>
                                                    <div class="col-md-3">
                                                        <input type="text" class="form-control input-sm updateElement" id="form_control_1" placeholder="" data-id="{$ultrasoundobstData->id}" data-colName="indication" data-tableName="ultrasoundobst" value="{$ultrasoundobstData->indication}">
                                                        <div class="form-control-focus">
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="clearfix"></div>
                                                <div class="col-md-6">
                                                    <label class="col-md-2 control-label" for="form_control_1">
                                                        LMP
                                                    </label>
                                                </div>
                                                <div class="clearfix"></div>
                                                <div class="col-md-6">
                                                    <label class="col-md-4 control-label" for="form_control_1">
                                                        Technical conditions
                                                    </label>
                                                    <div class="col-md-8">


                                                        <div class="col-md-3">
                                                            <div class="md-radio-list">
                                                                <div class="md-radio">
                                                                    <input type="radio" id="goodt" name="tcondition" class="md-radiobtn sradio" data-val="0" data-id="{$ultrasoundobstData->id}" data-colName="tcondition" data-tableName="ultrasoundobst" {if $ultrasoundobstData->tcondition eq 0}checked{/if}>
                                                                    <label for="goodt">
                                                                        <span></span>
                                                                        <span class="check"></span>
                                                                        <span class="box"></span>
                                                                        Good </label>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="col-md-4">
                                                            <div class="md-radio-list">
                                                                <div class="md-radio">
                                                                    <input type="radio" id="limitedt" name="tcondition" class="md-radiobtn sradio" data-val="1" data-id="{$ultrasoundobstData->id}" data-colName="tcondition" data-tableName="ultrasoundobst" {if $ultrasoundobstData->tcondition eq 1}checked{/if}>
                                                                    <label for="limitedt">
                                                                        <span></span>
                                                                        <span class="check"></span>
                                                                        <span class="box"></span>
                                                                        Limited by </label>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="col-md-5" id="limitcond" {if $ultrasoundobstData->tcondition neq 1}style="display:none"{/if}>
                                                            <input type="text" class="form-control input-sm updateElement" id="form_control_1" placeholder="" data-id="{$ultrasoundobstData->id}" data-colName="limit" data-tableName="ultrasoundobst" value="{$ultrasoundobstData->limit}">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </div>

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

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

                                                <div class="col-md-12">
                                                    <div class="col-md-8">


                                                        <div class="col-md-2">
                                                            <div class="md-radio-list">
                                                                <div class="md-radio">
                                                                    <input type="radio" id="single" name="babyno" class="md-radiobtn sradio" data-val="1" data-id="{$ultrasoundobstData->id}" data-colName="babyno" data-tableName="ultrasoundobst" {if $ultrasoundobstData->babyno eq 1}checked{/if}>
                                                                    <label for="single">
                                                                        <span></span>
                                                                        <span class="check"></span>
                                                                        <span class="box"></span>
                                                                        Singleton </label>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="col-md-2">
                                                            <div class="md-radio-list">
                                                                <div class="md-radio">
                                                                    <input type="radio" id="twinz" name="babyno" class="md-radiobtn sradio" data-val="2" data-id="{$ultrasoundobstData->id}" data-colName="babyno" data-tableName="ultrasoundobst" {if $ultrasoundobstData->babyno eq 2}checked{/if}>
                                                                    <label for="twinz">
                                                                        <span></span>
                                                                        <span class="check"></span>
                                                                        <span class="box"></span>
                                                                        Twinz </label>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="col-md-2">
                                                            <div class="md-radio-list">
                                                                <div class="md-radio">
                                                                    <input type="radio" id="many" name="babyno" class="md-radiobtn sradio" data-val="3" data-id="{$ultrasoundobstData->id}" data-colName="babyno" data-tableName="ultrasoundobst" {if $ultrasoundobstData->babyno neq 1 && $ultrasoundobstData->babyno neq 2}checked{/if}>
                                                                    <label for="many">
                                                                        <span></span>
                                                                        <span class="check"></span>
                                                                        <span class="box"></span>
                                                                        Chorionicity </label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-3" id="babyNo" {if $ultrasoundobstData->babyno eq 1 || $ultrasoundobstData->babyno eq 2}style="display:none"{/if}>
                                                            <input type="text" class="form-control input-sm updateElement wds75 fright" id="babyNotxt" placeholder="" data-id="{$ultrasoundobstData->id}" data-colName="babyno" data-tableName="ultrasoundobst" value="{$ultrasoundobstData->babyno}">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </div>

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

                                                    </div>
                                                </div>
                                                <input type="hidden" id="model_count" value="{$detailCount}"/>
                                                <div class="row hidPrint" id="mainForm">
                                                    {assign var = i value=1}
                                                    {foreach $ultrasoundobstDetail as $detail}
                                                    <a class="btn btn-default btn-sm showMod" {if $i > 2}style="margin-left: 30px;"{/if} data-id="{$detail->id}">
                                                        <i class="fa fa-plus"></i> Baby{$i}</a>
                                                    {if $i >1}
                                                    <button type="button" class="btn btn-xs red fright removeMsg" style="position: absolute; margin-left: -5px;height:29px;" data-tableName="ultrasoundobstdetail" data-id="{$detail->id}"><i class="fa fa-close"></i></button>
                                                    {/if}



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

                                            </div>

                                            <div class="row">
                                                <div class="col-md-offset-2 col-md-10 hidPrint">
                                                    <a href="{$hosturl}/controllers/ultrasoundobst.php?ac=index&patientid={$patientData->id}" class="btn default">Cancel</a>
                                                    <button type="button" id="doneBtn" class="btn blue" data-id="{$ultrasoundobstData->id}">Save</button>
                                                </div>
                                                <br>
                                            </div>
                                        </form>
                                    </div>

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

                            </div>
                        </div>

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




                    </div>



                </div>
                <div id="yy"></div>
            </div>
        </div>
    </div>
</div>
<div class="clearfix"></div>
<div id="vvv"></div>