Browse Source

Bring back relevance (but hidden with d-none)

Vijayakrishnan 3 years ago
parent
commit
e7746bb8af

+ 6 - 0
resources/views/app/patient/allergies-center.blade.php

@@ -56,6 +56,9 @@ if(!@$summaryView) {
         <table class="table table-sm table-bordered bg-white mb-2 point-table read">
             <thead>
             <tr class="">
+                @if($patient->core_note_id !== $note->id)
+                    <th class="border-bottom-0 text-secondary text-center width-30px d-none">Rel.</th>
+                @endif
                 <th class="border-bottom-0 text-secondary">Name</th>
                 @if(!@$summaryView) <th class="border-bottom-0 text-secondary width-50px">Edit</th> @endif
                 <th class="border-bottom-0 text-secondary w-30">Subjective</th>
@@ -79,6 +82,9 @@ if(!@$summaryView) {
                 data-name-base64="{{!!@($allergy->data->name) ? base64_encode($allergy->data->name) : ''}}"
                 data-is-removed="{{$allergy->is_removed ? 1 : 0}}"
                 data-is-removed-due-to-entry-error="{{$allergy->is_removed_due_to_entry_error ? 1 : 0}}">
+                @if($patient->core_note_id !== $note->id)
+                    @include('app.patient.wizard-partials.relevance-column', ['point' => $point])
+                @endif
                 <td>
                     <div class="d-flex align-items-baseline">
                         @include('app.patient.wizard-partials.state-icon', ['point' => $allergy])

+ 6 - 0
resources/views/app/patient/careteam-center.blade.php

@@ -18,6 +18,9 @@ list($careTeamMembers, $counts) = Point::getPointsOfCategoryExtended($patient, '
         <table class="table table-sm table-bordered bg-white mb-2 point-table read">
             <thead>
             <tr class="">
+                @if($patient->core_note_id !== $note->id)
+                    <th class="border-bottom-0 text-secondary text-center width-30px d-none">Rel.</th>
+                @endif
                 <th class="border-bottom-0 text-secondary">Name/Details</th>
                 @if(!@$summaryView) <th class="border-bottom-0 text-secondary width-50px">Edit</th> @endif
                 <th class="border-bottom-0 text-secondary w-30">Subjective</th>
@@ -39,6 +42,9 @@ list($careTeamMembers, $counts) = Point::getPointsOfCategoryExtended($patient, '
                 data-name-base64="{{!!@($careTeamMember->data->name) ? base64_encode($careTeamMember->data->name) : ''}}"
                 data-is-removed="{{$careTeamMember->is_removed ? 1 : 0}}"
                 data-is-removed-due-to-entry-error="{{$careTeamMember->is_removed_due_to_entry_error ? 1 : 0}}">
+                @if($patient->core_note_id !== $note->id)
+                    @include('app.patient.wizard-partials.relevance-column', ['point' => $point])
+                @endif
                 <td>
                     <div class="d-flex align-items-baseline">
                         @include('app.patient.wizard-partials.state-icon', ['point' => $careTeamMember])

+ 6 - 0
resources/views/app/patient/goals-center.blade.php

@@ -18,6 +18,9 @@ list($goals, $counts) = Point::getPointsOfCategoryExtended($patient, 'GOAL', $no
         <table class="table table-sm table-bordered bg-white mb-2 point-table read">
             <thead>
             <tr class="">
+                @if($patient->core_note_id !== $note->id)
+                    <th class="border-bottom-0 text-secondary text-center width-30px d-none">Rel.</th>
+                @endif
                 <th class="border-bottom-0 text-secondary">Goal</th>
                 @if(!@$summaryView) <th class="border-bottom-0 text-secondary width-50px">Edit</th> @endif
                 <th class="border-bottom-0 text-secondary w-30">Subjective</th>
@@ -38,6 +41,9 @@ list($goals, $counts) = Point::getPointsOfCategoryExtended($patient, 'GOAL', $no
                 data-name-base64="{{!!@($goal->data->goal) ? base64_encode($goal->data->goal) : ''}}"
                 data-is-removed="{{$goal->is_removed ? 1 : 0}}"
                 data-is-removed-due-to-entry-error="{{$goal->is_removed_due_to_entry_error ? 1 : 0}}">
+                @if($patient->core_note_id !== $note->id)
+                    @include('app.patient.wizard-partials.relevance-column', ['point' => $point])
+                @endif
                 <td>
                     <div class="d-flex align-items-baseline">
                         @include('app.patient.wizard-partials.state-icon', ['point' => $goal])

+ 6 - 0
resources/views/app/patient/medications-center.blade.php

@@ -47,6 +47,9 @@ if(!@$summaryView) {
         <table class="table table-sm table-bordered bg-white mb-2 point-table read">
             <thead>
             <tr class="">
+                @if($patient->core_note_id !== $note->id)
+                    <th class="border-bottom-0 text-secondary text-center width-30px d-none">Rel.</th>
+                @endif
                 <th class="border-bottom-0 text-secondary">Name</th>
                 @if(!@$summaryView) <th class="border-bottom-0 text-secondary width-50px">Edit</th> @endif
                 <th class="border-bottom-0 text-secondary w-30">Subjective</th>
@@ -70,6 +73,9 @@ if(!@$summaryView) {
                     data-name-base64="{{!!@($medication->data->name) ? base64_encode($medication->data->name) : ''}}"
                     data-is-removed="{{$medication->is_removed ? 1 : 0}}"
                     data-is-removed-due-to-entry-error="{{$medication->is_removed_due_to_entry_error ? 1 : 0}}">
+                    @if($patient->core_note_id !== $note->id)
+                        @include('app.patient.wizard-partials.relevance-column', ['point' => $point])
+                    @endif
                     <td>
                         <div class="d-flex align-items-baseline">
                             @include('app.patient.wizard-partials.state-icon', ['point' => $medication])

+ 6 - 0
resources/views/app/patient/problems-center.blade.php

@@ -64,6 +64,9 @@ if(!@$summaryView) {
         <table class="table table-sm table-bordered bg-white mb-2 point-table read">
             <thead>
             <tr class="">
+                @if($patient->core_note_id !== $note->id)
+                    <th class="border-bottom-0 text-secondary text-center width-30px d-none">Rel.</th>
+                @endif
                 <th class="border-bottom-0 text-secondary">Name</th>
                 @if(!@$summaryView) <th class="border-bottom-0 text-secondary width-50px">Edit</th> @endif
                 <th class="border-bottom-0 text-secondary w-30">Subjective/HPI</th>
@@ -87,6 +90,9 @@ if(!@$summaryView) {
                 data-name-base64="{{!!@($problem->data->name) ? base64_encode($problem->data->name) : ''}}"
                 data-is-removed="{{$problem->is_removed ? 1 : 0}}"
                 data-is-removed-due-to-entry-error="{{$problem->is_removed_due_to_entry_error ? 1 : 0}}">
+                @if($patient->core_note_id !== $note->id)
+                    @include('app.patient.wizard-partials.relevance-column', ['point' => $point])
+                @endif
                 <td>
                     <div class="d-flex align-items-baseline">
                         @include('app.patient.wizard-partials.state-icon', ['point' => $problem])

+ 1 - 1
resources/views/app/patient/wizard-partials/relevance-column.blade.php

@@ -1,4 +1,4 @@
-<td class="text-center">
+<td class="text-center d-none">
     <a href="#" class="toggle-relevance"
        data-relevant="{{$rel ? '1' : '0'}}"
        data-rel-uid="{{$rel ? $rel->uid : ''}}"