|
@@ -1,122 +1,123 @@
|
|
|
-<?php
|
|
|
-$allergies = \App\Models\Point::getPointsOfCategory($patient, "ALLERGY");
|
|
|
-$medications = \App\Models\Point::getPointsOfCategory($patient, "MEDICATION");
|
|
|
-$supplements = \App\Models\Point::getPointsOfCategory($patient, "SUPPLEMENT");
|
|
|
-$problems = \App\Models\Point::getPointsOfCategory($patient, "PROBLEM");
|
|
|
-$goals = \App\Models\Point::getPointsOfCategory($patient, "GOAL");
|
|
|
-$prescriptions = $patient->prescriptionsCreatedInNote($note);
|
|
|
-?>
|
|
|
-<div id="active-allergies" class="p-2 border-bottom c-pointer on-hover-aliceblue"
|
|
|
- open-in-stag-popup
|
|
|
- mc-initer="allergies-center-{{$note->id}}"
|
|
|
- title="Allergies Center"
|
|
|
- popup-style="wide overflow-visible"
|
|
|
- href="/allergies-center/{{$patient->uid}}/{{$note->uid}}">
|
|
|
- <div class="font-weight-bold mb-2">
|
|
|
- Allergies
|
|
|
- <i class="fa fa-bolt text-primary ml-1"></i>
|
|
|
+<div class="note-rhs-sidebar border-left" id="note-rhs-sidebar">
|
|
|
+ <?php
|
|
|
+ $allergies = \App\Models\Point::getPointsOfCategory($patient, "ALLERGY");
|
|
|
+ $medications = \App\Models\Point::getPointsOfCategory($patient, "MEDICATION");
|
|
|
+ $supplements = \App\Models\Point::getPointsOfCategory($patient, "SUPPLEMENT");
|
|
|
+ $problems = \App\Models\Point::getPointsOfCategory($patient, "PROBLEM");
|
|
|
+ $goals = \App\Models\Point::getPointsOfCategory($patient, "GOAL");
|
|
|
+ $prescriptions = $patient->prescriptionsCreatedInNote($note);
|
|
|
+ ?>
|
|
|
+ <div id="active-allergies" class="p-2 border-bottom c-pointer on-hover-aliceblue"
|
|
|
+ open-in-stag-popup
|
|
|
+ mc-initer="allergies-center-{{$note->id}}"
|
|
|
+ title="Allergies Center"
|
|
|
+ popup-style="wide overflow-visible"
|
|
|
+ href="/allergies-center/{{$patient->uid}}/{{$note->uid}}">
|
|
|
+ <div class="font-weight-bold mb-2">
|
|
|
+ Allergies
|
|
|
+ <i class="fa fa-bolt text-primary ml-1"></i>
|
|
|
+ </div>
|
|
|
+ @if($allergies && count($allergies))
|
|
|
+ @foreach($allergies as $allergy)
|
|
|
+ <?php $rel = $allergy->relevanceToNote($note); ?>
|
|
|
+ <div class="d-inline-flex align-items-baseline px-1 {{$rel ? 'bg-warning-mellow' : ''}}">
|
|
|
+ <span class="mr-1">•</span>
|
|
|
+ <span>{{$allergy->data->name}}</span>
|
|
|
+ </div>
|
|
|
+ @endforeach
|
|
|
+ @else
|
|
|
+ <span class="px-1 text-secondary">None</span>
|
|
|
+ @endif
|
|
|
</div>
|
|
|
- @if($allergies && count($allergies))
|
|
|
- @foreach($allergies as $allergy)
|
|
|
- <?php $rel = $allergy->relevanceToNote($note); ?>
|
|
|
- <div class="d-inline-flex align-items-baseline px-1 {{$rel ? 'bg-warning-mellow' : ''}}">
|
|
|
- <span class="mr-1">•</span>
|
|
|
- <span>{{$allergy->data->name}}</span>
|
|
|
- </div>
|
|
|
- @endforeach
|
|
|
- @else
|
|
|
- <span class="px-1 text-secondary">None</span>
|
|
|
- @endif
|
|
|
-</div>
|
|
|
-<div id="active-medications" class="p-2 border-bottom c-pointer on-hover-aliceblue"
|
|
|
- open-in-stag-popup
|
|
|
- mc-initer="medications-center-{{$note->id}}"
|
|
|
- title="Medications Center"
|
|
|
- popup-style="wide overflow-visible"
|
|
|
- href="/medications-center/{{$patient->uid}}/{{$note->uid}}">
|
|
|
- <div class="font-weight-bold mb-2">
|
|
|
- Medications
|
|
|
- <i class="fa fa-bolt text-primary ml-1"></i>
|
|
|
+ <div id="active-medications" class="p-2 border-bottom c-pointer on-hover-aliceblue"
|
|
|
+ open-in-stag-popup
|
|
|
+ mc-initer="medications-center-{{$note->id}}"
|
|
|
+ title="Medications Center"
|
|
|
+ popup-style="wide overflow-visible"
|
|
|
+ href="/medications-center/{{$patient->uid}}/{{$note->uid}}">
|
|
|
+ <div class="font-weight-bold mb-2">
|
|
|
+ Medications
|
|
|
+ <i class="fa fa-bolt text-primary ml-1"></i>
|
|
|
+ </div>
|
|
|
+ @if($medications && count($medications))
|
|
|
+ @foreach($medications as $medication)
|
|
|
+ <?php $rel = $medication->relevanceToNote($note); ?>
|
|
|
+ <div class="d-inline-flex align-items-baseline px-1 {{$rel ? 'bg-warning-mellow' : ''}}">
|
|
|
+ <span class="mr-1">•</span>
|
|
|
+ <span>{{$medication->data->name}}</span>
|
|
|
+ </div>
|
|
|
+ @endforeach
|
|
|
+ @else
|
|
|
+ <span class="px-1 text-secondary">None</span>
|
|
|
+ @endif
|
|
|
</div>
|
|
|
- @if($medications && count($medications))
|
|
|
- @foreach($medications as $medication)
|
|
|
- <?php $rel = $medication->relevanceToNote($note); ?>
|
|
|
- <div class="d-inline-flex align-items-baseline px-1 {{$rel ? 'bg-warning-mellow' : ''}}">
|
|
|
- <span class="mr-1">•</span>
|
|
|
- <span>{{$medication->data->name}}</span>
|
|
|
- </div>
|
|
|
- @endforeach
|
|
|
- @else
|
|
|
- <span class="px-1 text-secondary">None</span>
|
|
|
- @endif
|
|
|
-</div>
|
|
|
-<div id="active-supplements" class="p-2 border-bottom c-pointer on-hover-aliceblue"
|
|
|
- open-in-stag-popup
|
|
|
- mc-initer="supplements-center-{{$note->id}}"
|
|
|
- title="Supplements Center"
|
|
|
- popup-style="wide overflow-visible"
|
|
|
- href="/supplements-center/{{$patient->uid}}/{{$note->uid}}">
|
|
|
- <div class="font-weight-bold mb-2">
|
|
|
- Supplements
|
|
|
- <i class="fa fa-bolt text-primary ml-1"></i>
|
|
|
+ <div id="active-supplements" class="p-2 border-bottom c-pointer on-hover-aliceblue"
|
|
|
+ open-in-stag-popup
|
|
|
+ mc-initer="supplements-center-{{$note->id}}"
|
|
|
+ title="Supplements Center"
|
|
|
+ popup-style="wide overflow-visible"
|
|
|
+ href="/supplements-center/{{$patient->uid}}/{{$note->uid}}">
|
|
|
+ <div class="font-weight-bold mb-2">
|
|
|
+ Supplements
|
|
|
+ <i class="fa fa-bolt text-primary ml-1"></i>
|
|
|
+ </div>
|
|
|
+ @if($supplements && count($supplements))
|
|
|
+ @foreach($supplements as $supplement)
|
|
|
+ <?php $rel = $supplement->relevanceToNote($note); ?>
|
|
|
+ <div class="d-inline-flex align-items-baseline px-1 {{$rel ? 'bg-warning-mellow' : ''}}">
|
|
|
+ <span class="mr-1">•</span>
|
|
|
+ <span>{{$supplement->data->name}}</span>
|
|
|
+ </div>
|
|
|
+ @endforeach
|
|
|
+ @else
|
|
|
+ <span class="px-1 text-secondary">None</span>
|
|
|
+ @endif
|
|
|
</div>
|
|
|
- @if($supplements && count($supplements))
|
|
|
- @foreach($supplements as $supplement)
|
|
|
- <?php $rel = $supplement->relevanceToNote($note); ?>
|
|
|
- <div class="d-inline-flex align-items-baseline px-1 {{$rel ? 'bg-warning-mellow' : ''}}">
|
|
|
- <span class="mr-1">•</span>
|
|
|
- <span>{{$supplement->data->name}}</span>
|
|
|
- </div>
|
|
|
- @endforeach
|
|
|
- @else
|
|
|
- <span class="px-1 text-secondary">None</span>
|
|
|
- @endif
|
|
|
-</div>
|
|
|
-<div id="active-problems" class="p-2 border-bottom c-pointer on-hover-aliceblue"
|
|
|
- open-in-stag-popup
|
|
|
- mc-initer="problems-center-{{$note->id}}"
|
|
|
- title="Problems Center"
|
|
|
- popup-style="wide overflow-visible"
|
|
|
- href="/problems-center/{{$patient->uid}}/{{$note->uid}}">
|
|
|
- <div class="font-weight-bold mb-2">
|
|
|
- Problems
|
|
|
- <i class="fa fa-bolt text-primary ml-1"></i>
|
|
|
+ <div id="active-problems" class="p-2 border-bottom c-pointer on-hover-aliceblue"
|
|
|
+ open-in-stag-popup
|
|
|
+ mc-initer="problems-center-{{$note->id}}"
|
|
|
+ title="Problems Center"
|
|
|
+ popup-style="wide overflow-visible"
|
|
|
+ href="/problems-center/{{$patient->uid}}/{{$note->uid}}">
|
|
|
+ <div class="font-weight-bold mb-2">
|
|
|
+ Problems
|
|
|
+ <i class="fa fa-bolt text-primary ml-1"></i>
|
|
|
+ </div>
|
|
|
+ @if($problems && count($problems))
|
|
|
+ @foreach($problems as $problem)
|
|
|
+ <?php $rel = $problem->relevanceToNote($note); ?>
|
|
|
+ <div class="d-inline-flex align-items-baseline px-1 {{$rel ? 'bg-warning-mellow' : ''}}">
|
|
|
+ <span class="mr-1">•</span>
|
|
|
+ <span>{{$problem->data->name}}</span>
|
|
|
+ </div>
|
|
|
+ @endforeach
|
|
|
+ @else
|
|
|
+ <span class="px-1 text-secondary">None</span>
|
|
|
+ @endif
|
|
|
</div>
|
|
|
- @if($problems && count($problems))
|
|
|
- @foreach($problems as $problem)
|
|
|
- <?php $rel = $problem->relevanceToNote($note); ?>
|
|
|
- <div class="d-inline-flex align-items-baseline px-1 {{$rel ? 'bg-warning-mellow' : ''}}">
|
|
|
- <span class="mr-1">•</span>
|
|
|
- <span>{{$problem->data->name}}</span>
|
|
|
- </div>
|
|
|
- @endforeach
|
|
|
- @else
|
|
|
- <span class="px-1 text-secondary">None</span>
|
|
|
- @endif
|
|
|
-</div>
|
|
|
-<div id="active-goals" class="p-2 border-bottom c-pointer on-hover-aliceblue"
|
|
|
- open-in-stag-popup
|
|
|
- mc-initer="goals-center-{{$note->id}}"
|
|
|
- title="Goals Center"
|
|
|
- popup-style="wide overflow-visible"
|
|
|
- href="/goals-center/{{$patient->uid}}/{{$note->uid}}">
|
|
|
- <div class="font-weight-bold mb-2">
|
|
|
- Goals
|
|
|
- <i class="fa fa-bolt text-primary ml-1"></i>
|
|
|
+ <div id="active-goals" class="p-2 border-bottom c-pointer on-hover-aliceblue"
|
|
|
+ open-in-stag-popup
|
|
|
+ mc-initer="goals-center-{{$note->id}}"
|
|
|
+ title="Goals Center"
|
|
|
+ popup-style="wide overflow-visible"
|
|
|
+ href="/goals-center/{{$patient->uid}}/{{$note->uid}}">
|
|
|
+ <div class="font-weight-bold mb-2">
|
|
|
+ Goals
|
|
|
+ <i class="fa fa-bolt text-primary ml-1"></i>
|
|
|
+ </div>
|
|
|
+ @if($goals && count($goals))
|
|
|
+ @foreach($goals as $goal)
|
|
|
+ <?php $rel = $goal->relevanceToNote($note); ?>
|
|
|
+ <div class="d-inline-flex align-items-baseline px-1 {{$rel ? 'bg-warning-mellow' : ''}}">
|
|
|
+ <span class="mr-1">•</span>
|
|
|
+ <span>{{$goal->data->goal}}</span>
|
|
|
+ </div>
|
|
|
+ @endforeach
|
|
|
+ @else
|
|
|
+ <span class="px-1 text-secondary">None</span>
|
|
|
+ @endif
|
|
|
</div>
|
|
|
- @if($goals && count($goals))
|
|
|
- @foreach($goals as $goal)
|
|
|
- <?php $rel = $goal->relevanceToNote($note); ?>
|
|
|
- <div class="d-inline-flex align-items-baseline px-1 {{$rel ? 'bg-warning-mellow' : ''}}">
|
|
|
- <span class="mr-1">•</span>
|
|
|
- <span>{{$goal->data->goal}}</span>
|
|
|
- </div>
|
|
|
- @endforeach
|
|
|
- @else
|
|
|
- <span class="px-1 text-secondary">None</span>
|
|
|
- @endif
|
|
|
-</div>
|
|
|
-<div id="note-prescriptions" class="p-2 border-bottom c-pointer on-hover-aliceblue" data-non-segment-target="Prescriptions">
|
|
|
+ <div id="note-prescriptions" class="p-2 border-bottom c-pointer on-hover-aliceblue" data-non-segment-target="Prescriptions">
|
|
|
<div class="font-weight-bold mb-2">
|
|
|
ERx & Orders
|
|
|
</div>
|
|
@@ -155,4 +156,5 @@ $prescriptions = $patient->prescriptionsCreatedInNote($note);
|
|
|
@else
|
|
|
<span class="px-1 text-secondary">None</span>
|
|
|
@endif
|
|
|
-</div>
|
|
|
+</div>
|
|
|
+</div>
|