Created
January 4, 2017 09:41
-
-
Save iaditya/4a6b12c6b1045c2835ca546aee7c0a66 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo $this->Html->script('moment/moment.min'); | |
echo $this->Html->css('AdminLTE./plugins/datepicker/datepicker3'); | |
echo $this->Html->css('AdminLTE./bootstrap/css/bootstrap-datetimepicker.min'); | |
echo $this->Html->script('AdminLTE./bootstrap/js/bootstrap-datetimepicker'); | |
echo $this->Html->script('AdminLTE./plugins/datepicker/bootstrap-datepicker'); | |
?> | |
<script type="text/javascript"> | |
$(function () { | |
$('#datetimepicker4').datetimepicker({ | |
format: 'YYYY-MM-DD HH:mm:00' | |
}); | |
}); | |
</script> | |
<section class="content"> | |
<!--<h2 class="page-header">Social Widgets</h2> --> | |
<div class="row"> | |
<!-- /.col --> | |
<div class="col-md-12"> | |
<!-- Widget: user widget style 1 --> | |
<div class="box box-widget widget-user"> | |
<!-- Add the bg color to the header using any of the bg-* classes --> | |
<div class="widget-user-header bg-aqua-active"> | |
<div class="row"> | |
<div class="col-md-8 col-md-offset-1"> | |
<h3 class="widget-user-username">Aditya Name</h3> | |
<h5 class="widget-user-desc">Age | Gender</h5> | |
<h5 class="widget-user-desc">56 | Male</h5> | |
</div> | |
<div class="col-md-pull-1 col-md-3 "> | |
<h5 class="widget-user-desc">Last Visit BMI: 100</h5> | |
<h5 class="widget-user-desc">Difference: X Increase/Decrease</h5> | |
<h5 class="widget-user-desc">X Kg to loose for Healty BMI</h5> | |
</div> | |
</div> | |
</div> | |
<div class="widget-user-image"> | |
<?php echo $this->Html->image('user1-128x128.jpg', ['alt' => 'User Avatar', 'class' => 'img-circle']); ?> | |
</div> | |
<div class="box-footer"> | |
<div class="row"> | |
<div class="col-sm-2 border-right"> | |
<div class="description-block"> | |
<h5 class="description-header">Last Visit Date</h5> | |
<span class="description-text">12/12/2016</span> | |
</div> | |
<!-- /.description-block --> | |
</div> | |
<div class="col-sm-2 border-right"> | |
<div class="description-block"> | |
<h5 class="description-header">Last Diagnosis Date</h5> | |
<span class="description-text">12/12/2016</span> | |
</div> | |
<!-- /.description-block --> | |
</div> | |
<div class="col-sm-2 border-right"> | |
<div class="description-block"> | |
<h5 class="description-header">Height</h5> | |
<span class="description-text">29</span> | |
</div> | |
<!-- /.description-block --> | |
</div> | |
<div class="col-sm-2 border-right"> | |
<div class="description-block"> | |
<h5 class="description-header">Weight</h5> | |
<span class="description-text">29</span> | |
</div> | |
<!-- /.description-block --> | |
</div> | |
<div class="col-sm-2 border-right"> | |
<div class="description-block"> | |
<h5 class="description-header">BMI</h5> | |
<span class="description-text">29</span> | |
</div> | |
<!-- /.description-block --> | |
</div> | |
<div class="col-sm-2 border-right"> | |
<div class="description-block"> | |
<h5 class="description-header">Prescription</h5> | |
<span class="description-text">Click</span> | |
</div> | |
<!-- /.description-block --> | |
</div> | |
<!-- /.col --> | |
</div> | |
<!-- /.row --> | |
</div> | |
</div> | |
<!-- /.widget-user --> | |
</div> | |
<!-- /.col --> | |
<!-- /.col --> | |
</div> | |
<!-- /.row --> | |
<!-- /.row --> | |
</section> | |
<section class="content"> | |
<div class="box box-widget"> | |
<div class="row"> | |
<!-- /.col --> | |
<div class="col-md-12"> | |
<div> | |
<ul class="nav nav-pills"> | |
<li class="active"><a data-toggle="pill" href="#visit-notes">Add Current Visit Notes</a></li> | |
<li><a data-toggle="pill" href="#medical-history">Medical History</a></li> | |
<li><a data-toggle="pill" href="#summary">Summary</a></li> | |
</ul> | |
</div> | |
<div class="tab-content"> | |
<div id="visit-notes" class="tab-pane fade in active"> | |
<!--<div class="panel panel-default"> --> | |
<div class="row"> | |
<div class="col-md-12"> | |
<!-- Box Comment --> | |
<div class="box box-widget"> | |
<div class="box-body"> | |
<div class="box-body no-padding"> | |
<?= $this->Form->create($encounter, ['type' => 'file']); ?> | |
<fieldset> | |
<div class="col-md-6"> | |
<?php | |
if ($facility_id == null) { | |
echo $this->Form->input('facility_id', ['options' => $facilities]); | |
} else { | |
echo $this->Form->hidden('facility_id', ['value' => $facility_id]); | |
} | |
if ($patient_id == null) { | |
echo $this->Form->input('patient_id', ['options' => $patients, 'empty' => true]); | |
} else { | |
echo $this->Form->hidden('patient_id', ['value' => $patient_id]); | |
} | |
if ($provider_id == null) { | |
echo $this->Form->input('provider_id', ['options' => $providers, 'empty' => true]); | |
} else { | |
echo $this->Form->hidden('provider_id', ['value' => $provider_id]); | |
} | |
if ($event_id == null) { | |
echo $this->Form->input('event_id', ['options' => $events, 'empty' => true]); | |
} else { | |
echo $this->Form->hidden('event_id', ['value' => $event_id]); | |
} | |
?> | |
<label>Visit Date</label> | |
<?php | |
if (isset($event)) { ?> | |
<input name="visitdate" | |
value="<?= $event->start->i18nFormat('yyyy-MM-dd HH:mm:ss') ?>" | |
type='text' | |
class="form-control" id='datetimepicker4'/> | |
<?php } else { ?> | |
<input name="visitdate" type='text' class="form-control" | |
id='datetimepicker4'/> | |
<?php } | |
echo $this->Form->input('reason'); | |
echo $this->Form->input('icd10code_id', ['label' => 'ICD-10 Code', 'class' => 'icd-select']); | |
//echo $this->Form->input('diagnosis'); | |
//echo $this->Taxonomy->input('group', $patient, ['label' => __d('Taxonomy', 'Group'), 'placeholder' => 'Depression, Sleepless, Anxiety Disorder, Insomniac, ...']); | |
//echo $this->Taxonomy->input('group', $p, ['label' => __d('Taxonomy', 'Group')]); | |
// echo $this->Form->input('casenotes'); | |
//echo $this->Html->tag('span', "Case Notes", array('class' => 'welcome')); | |
?> | |
<div class="table-responsive"> | |
<table class="table"> | |
<tr> | |
<td class="col-md-4"><?php echo $this->Form->input('revision_date', ['label' => 'Review Date', 'type' => 'text', 'class' => 'datepicker']); ?></td> | |
<td class="col-md-4"></td> | |
<td class="col-md-4"></td> | |
</tr> | |
</table> | |
</div> | |
</div> | |
<div class="col-md-6"> | |
<div class="control-label"><b>Case Sheet Notes</b></div> | |
<div class="table-responsive"> | |
<table class="table"> | |
<tr> | |
<td><?= $this->Form->input('subjective'); ?></td> | |
<td><?= $this->Form->input('objective'); ?></td> | |
</tr> | |
<tr> | |
<td><?= $this->Form->input('assessment_findings'); ?></td> | |
<td><?= $this->Form->input('plan'); ?></td> | |
</tr> | |
</table> | |
</div> | |
<?php | |
echo $this->Form->input('billing_note'); | |
echo $this->Form->input('attachment', ['type' => 'file', 'required' => false]); | |
?> | |
</div> | |
</fieldset> | |
<input type="hidden" name="revision_label" , value="0" , | |
id="revision-label"> | |
<?= $this->Form->button(__('Submit'), ['class' => 'btn-success', 'id' => "submit-form"]) ?> | |
<?= $this->Form->end() ?> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div id="medical-history" class="tab-pane fade"> | |
<div class="row"> | |
<div class="col-md-12"> | |
<!-- Box Comment --> | |
<div class="box box-widget"> | |
<div class="box-body"> | |
<div class="box-body no-padding"> | |
This is medical history div. | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div id="summary" class="tab-pane fade"> | |
<div class="row"> | |
<div class="col-md-12"> | |
<!-- Box Comment --> | |
<div class="box box-widget"> | |
<div class="container col-md-12"> | |
<h2>Case sheets <span | |
class="badge success"><?= "Total case sheet count" ?></span></h2> | |
<div class="panel-group" id="accordion"> | |
<?php // foreach ($casesheets as $casesheets): ?> | |
<div class="panel panel-primary"> | |
<div class="panel-heading"> | |
<h4 class="panel-title"> | |
<div class="pull-right"><?php //echo $this->Time->timeAgoInWords($casesheet->created); ?> | |
Case Sheet Date: 12/12/2016 | |
</div> | |
<a data-toggle="collapse" data-parent="#accordion" | |
href="#<?php //echo $casesheet->id; ?>1"><?php //echo $casesheet->get('title'); ?> | |
Case sheet title</a> | |
</h4> | |
</div> | |
<div id="<?php //echo $casesheet->id; ?>1" | |
class="panel-collapse collapse"> | |
<div class="panel-body"><?php //echo $casesheet->get('body'); ?>case | |
sheet details. <br> aksjdkajdakld <br> aksjdlakd | |
</div> | |
</div> | |
</div> | |
<div class="panel panel-primary"> | |
<div class="panel-heading"> | |
<h4 class="panel-title"> | |
<div class="pull-right"><?php //echo $this->Time->timeAgoInWords($casesheet->created); ?> | |
Case Sheet Date: 12/12/2016 | |
</div> | |
<a data-toggle="collapse" data-parent="#accordion" | |
href="#<?php //echo $casesheet->id; ?>2"><?php //echo $casesheet->get('title'); ?> | |
Case sheet title 2</a> | |
</h4> | |
</div> | |
<div id="<?php //echo $casesheet->id; ?>2" | |
class="panel-collapse collapse"> | |
<div class="panel-body"><?php //echo $casesheet->get('body'); ?>case | |
sheet details. <br> aksjdkajdakld <br> aksjdlakd | |
</div> | |
</div> | |
</div> | |
<?php // endforeach; ?> | |
</div> | |
</div> | |
<div class="box-body"> | |
<div class="box-body no-padding"> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</section> | |
<script> | |
$(".icd-select").select2({ | |
placeholder: 'Click and type', | |
allowClear: true, | |
ajax: { | |
url: function (params) { | |
return '/icd10codes/pindex.json?q=' + params.term; | |
}, | |
dataType: 'json', | |
delay: 500, | |
processResults: function (data, params) { | |
//console.log(JSON.stringify(data.icd10codes)); | |
return { | |
results: data.icd10codes, | |
}; | |
}, | |
cache: false | |
}, | |
}); | |
</script> | |
<script> | |
$(document).ready(function () { | |
$('.datepicker').datepicker({ | |
autoclose: true | |
}); | |
}); | |
</script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment