|
@@ -25,7 +25,7 @@
|
|
|
<?php $infoLines = json_decode($patient->info_lines);?>
|
|
|
<?php $infoLines = !$infoLines ? [] : $infoLines; ?>
|
|
|
<?php $vitalLabels = ['Ht. (in.)','Wt. (lbs.)','Temp. (F)','Pulse','Resp.','Pulse Ox.','SBP','DBP','Smoking Status', 'BMI']; ?>
|
|
|
- <?php $isOldClient = (date_diff(date_create(config('app.point_impl_date')), date_create($patient->created_at))->invert === 1); ?>
|
|
|
+ <?php $isOldClient = 0 && (date_diff(date_create(config('app.point_impl_date')), date_create($patient->created_at))->invert === 1); ?>
|
|
|
|
|
|
<div class="row client-single-dashboard">
|
|
|
<div class="col-6">
|
|
@@ -420,6 +420,15 @@
|
|
|
@if($isOldClient)
|
|
|
<div class="px-2 font-weight-bold alert alert-info text-sm my-0 ml-2 py-1">New</div>
|
|
|
@endif
|
|
|
+ <a native="" target="_blank"
|
|
|
+ class="c-pointer d-inline-flex align-items-center ml-3 text-decoration-none pmhx-trigger"
|
|
|
+ open-in-stag-popup="" update-parent=""
|
|
|
+ mc-initer="past_medical_history_{{$patient->id}}"
|
|
|
+ title="Past Medical History" popup-style="wide overflow-visible"
|
|
|
+ href="/chart-segment-view/{{$patient->uid}}/past_medical_history/edit">
|
|
|
+ <i class="fa fa-bolt mr-1"></i>
|
|
|
+ <span>Manage</span>
|
|
|
+ </a>
|
|
|
</div>
|
|
|
<div class="bg-light border p-2 mb-3">
|
|
|
@include('app.patient.segment-templates.past_medical_history.summary', compact('patient'))
|
|
@@ -446,6 +455,15 @@
|
|
|
@if($isOldClient)
|
|
|
<div class="px-2 font-weight-bold alert alert-info text-sm my-0 ml-2 py-1">New</div>
|
|
|
@endif
|
|
|
+ <a native="" target="_blank"
|
|
|
+ class="c-pointer d-inline-flex align-items-center ml-3 text-decoration-none shx-trigger"
|
|
|
+ open-in-stag-popup="" update-parent=""
|
|
|
+ mc-initer="history_surgical_{{$patient->id}}"
|
|
|
+ title="Surgical History" popup-style="wide overflow-visible"
|
|
|
+ href="/chart-segment-view/{{$patient->uid}}/history_surgical/edit">
|
|
|
+ <i class="fa fa-bolt mr-1"></i>
|
|
|
+ <span>Manage</span>
|
|
|
+ </a>
|
|
|
</div>
|
|
|
<div class="bg-light border p-2 mb-3">
|
|
|
@include('app.patient.segment-templates.history_surgical.summary', compact('patient'))
|
|
@@ -472,6 +490,15 @@
|
|
|
@if($isOldClient)
|
|
|
<div class="px-2 font-weight-bold alert alert-info text-sm my-0 ml-2 py-1">New</div>
|
|
|
@endif
|
|
|
+ <a native="" target="_blank"
|
|
|
+ class="c-pointer d-inline-flex align-items-center ml-3 text-decoration-none fhx-trigger"
|
|
|
+ open-in-stag-popup="" update-parent=""
|
|
|
+ mc-initer="history_family_{{$patient->id}}"
|
|
|
+ title="Family History" popup-style="wide overflow-visible"
|
|
|
+ href="/chart-segment-view/{{$patient->uid}}/history_family/edit">
|
|
|
+ <i class="fa fa-bolt mr-1"></i>
|
|
|
+ <span>Manage</span>
|
|
|
+ </a>
|
|
|
</div>
|
|
|
<div class="bg-light border p-2 mb-3">
|
|
|
@include('app.patient.segment-templates.history_family.summary', compact('patient'))
|
|
@@ -498,6 +525,15 @@
|
|
|
@if($isOldClient)
|
|
|
<div class="px-2 font-weight-bold alert alert-info text-sm my-0 ml-2 py-1">New</div>
|
|
|
@endif
|
|
|
+ <a native="" target="_blank"
|
|
|
+ class="c-pointer d-inline-flex align-items-center ml-3 text-decoration-none sochx-trigger"
|
|
|
+ open-in-stag-popup="" update-parent=""
|
|
|
+ mc-initer="history_social_{{$patient->id}}"
|
|
|
+ title="Social History" popup-style="wide overflow-visible"
|
|
|
+ href="/chart-segment-view/{{$patient->uid}}/history_social/edit">
|
|
|
+ <i class="fa fa-bolt mr-1"></i>
|
|
|
+ <span>Manage</span>
|
|
|
+ </a>
|
|
|
</div>
|
|
|
<div class="bg-light border p-2 mb-3">
|
|
|
@include('app.patient.segment-templates.history_social.summary', compact('patient'))
|
|
@@ -859,6 +895,23 @@
|
|
|
|
|
|
}
|
|
|
addMCInitializer('patient-dashboard-devices', init, '#patient-dashboard-devices');
|
|
|
+
|
|
|
+ window.segmentInitializers = {};
|
|
|
+ addMCInitializer('past_medical_history_{{$patient->id}}', function() {
|
|
|
+ window.segmentInitializers['past_medical_history'].call(window);
|
|
|
+ }, '.pmhx-trigger');
|
|
|
+ addMCInitializer('history_family_{{$patient->id}}', function() {
|
|
|
+ window.segmentInitializers['history_family'].call(window);
|
|
|
+ }, '.fhx-trigger');
|
|
|
+ addMCInitializer('history_social_{{$patient->id}}', function() {
|
|
|
+ window.segmentInitializers['history_social'].call(window);
|
|
|
+ }, '.sochx-trigger');
|
|
|
+ addMCInitializer('history_surgical_{{$patient->id}}', function() {
|
|
|
+ window.segmentInitializers['history_surgical'].call(window);
|
|
|
+ }, '.shx-trigger');
|
|
|
+ addMCInitializer('history_screenings_{{$patient->id}}', function() {
|
|
|
+ window.segmentInitializers['history_screenings'].call(window);
|
|
|
+ }, '.screenhx-trigger');
|
|
|
}).call(window);
|
|
|
</script>
|
|
|
@endsection
|