|
@@ -1,6 +1,25 @@
|
|
@extends ('layouts.patient')
|
|
@extends ('layouts.patient')
|
|
|
|
|
|
@section('inner-content')
|
|
@section('inner-content')
|
|
|
|
+ <style>
|
|
|
|
+ #patient-canvas-migrate .rhs .min-height-500px {
|
|
|
|
+ min-height: unset !important;
|
|
|
|
+ }
|
|
|
|
+ #patient-canvas-migrate .rhs .point-content #frm-add-allergy>.row>.col-4.border-left,
|
|
|
|
+ #patient-canvas-migrate .rhs .point-content #frm-add-problem>.row>.col-4.border-left,
|
|
|
|
+ #patient-canvas-migrate .rhs .point-content #frm-add-medication>.row>.col-4.border-left,
|
|
|
|
+ #patient-canvas-migrate .rhs .point-content #frm-add-care-team-member>.row>.col-4.border-left {
|
|
|
|
+ display: none;
|
|
|
|
+ }
|
|
|
|
+ #patient-canvas-migrate .rhs .point-content #allergies-center-{{$patient->coreNote->id}},
|
|
|
|
+ #patient-canvas-migrate .rhs .point-content #problems-center-{{$patient->coreNote->id}},
|
|
|
|
+ #patient-canvas-migrate .rhs .point-content #medications-center-{{$patient->coreNote->id}},
|
|
|
|
+ #patient-canvas-migrate .rhs .point-content #careteam-center-{{$patient->coreNote->id}} {
|
|
|
|
+ border: 0 !important;
|
|
|
|
+ padding: 0 !important;
|
|
|
|
+ margin: 0 !important;
|
|
|
|
+ }
|
|
|
|
+ </style>
|
|
<?php
|
|
<?php
|
|
$shortCutsObject = [];
|
|
$shortCutsObject = [];
|
|
foreach ($pro->allShortcuts() as $shortcut) {
|
|
foreach ($pro->allShortcuts() as $shortcut) {
|
|
@@ -44,7 +63,7 @@
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
- <div class="col-6">
|
|
|
|
|
|
+ <div class="col-6 rhs">
|
|
<!-- allergies - point -->
|
|
<!-- allergies - point -->
|
|
@include('app.patient.point-based-partials.allergies')
|
|
@include('app.patient.point-based-partials.allergies')
|
|
</div>
|
|
</div>
|
|
@@ -65,7 +84,7 @@
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
- <div class="col-6">
|
|
|
|
|
|
+ <div class="col-6 rhs">
|
|
<!-- probs - point -->
|
|
<!-- probs - point -->
|
|
@include('app.patient.point-based-partials.dx')
|
|
@include('app.patient.point-based-partials.dx')
|
|
</div>
|
|
</div>
|
|
@@ -86,7 +105,7 @@
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
- <div class="col-6">
|
|
|
|
|
|
+ <div class="col-6 rhs">
|
|
<!-- meds - point -->
|
|
<!-- meds - point -->
|
|
@include('app.patient.point-based-partials.rx')
|
|
@include('app.patient.point-based-partials.rx')
|
|
</div>
|
|
</div>
|
|
@@ -107,7 +126,7 @@
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
- <div class="col-6">
|
|
|
|
|
|
+ <div class="col-6 rhs">
|
|
<!-- careteam - point -->
|
|
<!-- careteam - point -->
|
|
@include('app.patient.point-based-partials.care-team')
|
|
@include('app.patient.point-based-partials.care-team')
|
|
</div>
|
|
</div>
|
|
@@ -128,7 +147,7 @@
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
- <div class="col-6">
|
|
|
|
|
|
+ <div class="col-6 rhs">
|
|
<!-- pmhx - point -->
|
|
<!-- pmhx - point -->
|
|
@include('app.patient.point-based-partials.pmhx')
|
|
@include('app.patient.point-based-partials.pmhx')
|
|
</div>
|
|
</div>
|
|
@@ -149,7 +168,7 @@
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
- <div class="col-6">
|
|
|
|
|
|
+ <div class="col-6 rhs">
|
|
<!-- pshx - point -->
|
|
<!-- pshx - point -->
|
|
@include('app.patient.point-based-partials.shx')
|
|
@include('app.patient.point-based-partials.shx')
|
|
</div>
|
|
</div>
|
|
@@ -170,7 +189,7 @@
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
- <div class="col-6">
|
|
|
|
|
|
+ <div class="col-6 rhs">
|
|
<!-- fhx - point -->
|
|
<!-- fhx - point -->
|
|
@include('app.patient.point-based-partials.fhx')
|
|
@include('app.patient.point-based-partials.fhx')
|
|
</div>
|
|
</div>
|
|
@@ -191,55 +210,12 @@
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
- <div class="col-6">
|
|
|
|
|
|
+ <div class="col-6 rhs">
|
|
<!-- sochx - point -->
|
|
<!-- sochx - point -->
|
|
@include('app.patient.point-based-partials.sochx')
|
|
@include('app.patient.point-based-partials.sochx')
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="row border-bottom mb-4 pb-4">
|
|
|
|
- <div class="col-6">
|
|
|
|
- {{-- canvas based vitals --}}
|
|
|
|
- @if($isOldClient)
|
|
|
|
- <div class="pt-2 mt-2">
|
|
|
|
- <div class="d-flex align-items-center pb-2">
|
|
|
|
- <h6 class="my-0 font-weight-bold text-secondary">Vitals</h6>
|
|
|
|
- <div class="px-2 font-weight-bold alert alert-warning text-sm my-0 ml-2 py-1">Deprecated</div>
|
|
|
|
- </div>
|
|
|
|
- <div class="bg-light border p-2 mb-3">
|
|
|
|
- @include('app.patient.canvas-sections.vitals.summary')
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- @endif
|
|
|
|
- </div>
|
|
|
|
- <div class="col-6">
|
|
|
|
- <!-- vitals - point -->
|
|
|
|
- <?php $latestVitals = \App\Models\Point::where('client_id', $patient->id)->where('category', 'VITALS')->orderBy('id', 'DESC')->first(); ?>
|
|
|
|
- <div class="pt-2 mt-2">
|
|
|
|
- <div class="d-flex align-items-center pb-2">
|
|
|
|
- <h6 class="my-0 font-weight-bold text-secondary">Vitals
|
|
|
|
- @if(!!$latestVitals && $latestVitals->note && $latestVitals->note->effective_dateest)
|
|
|
|
- <span class="text-secondary font-weight-normal pl-1">(as on
|
|
|
|
- <a href="{{route('patients.view.notes.view.dashboard', ['patient' => $patient, 'note' => $latestVitals->note])}}">{{friendlier_date($latestVitals->note->effective_dateest)}}</a>)
|
|
|
|
- </span>
|
|
|
|
- @endif
|
|
|
|
- </h6>
|
|
|
|
- @if($isOldClient)
|
|
|
|
- <div class="px-2 font-weight-bold alert alert-info text-sm my-0 ml-2 py-1">New</div>
|
|
|
|
- @endif
|
|
|
|
- </div>
|
|
|
|
- <div class="bg-light border p-2 mb-3">
|
|
|
|
- @if(!!$latestVitals)
|
|
|
|
- @include('app.patient.partials.latest-vitals', ['patient' => $patient, 'point' => $latestVitals])
|
|
|
|
- @else
|
|
|
|
- <div class="text-secondary">Nothing here yet</div>
|
|
|
|
- @endif
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
-
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@@ -247,9 +223,25 @@
|
|
<script>
|
|
<script>
|
|
(function() {
|
|
(function() {
|
|
function init() {
|
|
function init() {
|
|
- alert(1);
|
|
|
|
|
|
+ $('#patient-canvas-migrate .rhs').each(function() {
|
|
|
|
+ let trigger = $(this).find('[open-in-stag-popup]').first();
|
|
|
|
+ $.get(trigger.attr('href'), _data => {
|
|
|
|
+ trigger.closest('.rhs').find('.point-content').first().html(_data);
|
|
|
|
+ runMCInitializer(trigger.attr('mc-initer'));
|
|
|
|
+
|
|
|
|
+ $('#patient-canvas-migrate .rhs .point-content #frm-add-allergy>.row>.col-8').removeClass('col-8').addClass('col-12');
|
|
|
|
+ $('#patient-canvas-migrate .rhs .point-content #frm-add-problem>.row>.col-8').removeClass('col-8').addClass('col-12');
|
|
|
|
+ $('#patient-canvas-migrate .rhs .point-content #frm-add-medication>.row>.col-8').removeClass('col-8').addClass('col-12');
|
|
|
|
+ $('#patient-canvas-migrate .rhs .point-content #frm-add-care-team-member>.row>.col-8').removeClass('col-8').addClass('col-12');
|
|
|
|
+
|
|
|
|
+ $('#patient-canvas-migrate .rhs .point-content>.p-3.border-top.mt-3.mcp-theme-1')
|
|
|
|
+ .removeClass()
|
|
|
|
+ .parent().addClass('overflow-hidden');
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+ })
|
|
}
|
|
}
|
|
- addMCInitializer('patient-canvas-migrate', init, '#patient-dashboard-devices');
|
|
|
|
|
|
+ addMCInitializer('patient-canvas-migrate', init, '#patient-canvas-migrate');
|
|
|
|
|
|
}).call(window);
|
|
}).call(window);
|
|
</script>
|
|
</script>
|