|
@@ -1,16 +1,62 @@
|
|
-<div id="active-allergies" class="px-2">
|
|
|
|
- Active Allergies
|
|
|
|
|
|
+<?php
|
|
|
|
+$allergies = \App\Models\Point::getPointsOfCategory($patient, "ALLERGY");
|
|
|
|
+$medications = \App\Models\Point::getPointsOfCategory($patient, "MEDICATION");
|
|
|
|
+$problems = \App\Models\Point::getPointsOfCategory($patient, "PROBLEM");
|
|
|
|
+$goals = \App\Models\Point::getPointsOfCategory($patient, "GOAL");
|
|
|
|
+?>
|
|
|
|
+<div id="active-allergies" class="px-2 pb-2 border-bottom mb-2">
|
|
|
|
+ <div class="font-weight-bold mb-2">Allergies</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>
|
|
-<div id="active-medications" class="px-2">
|
|
|
|
- Active Medications
|
|
|
|
|
|
+<div id="active-medications" class="px-2 pb-2 border-bottom mb-2">
|
|
|
|
+ <div class="font-weight-bold mb-2">Medications</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>
|
|
-<div id="active-problems" class="px-2">
|
|
|
|
- Active Problems
|
|
|
|
|
|
+<div id="active-problems" class="px-2 pb-2 border-bottom mb-2">
|
|
|
|
+ <div class="font-weight-bold mb-2">Problems</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>
|
|
-<div id="active-goals" class="px-2">
|
|
|
|
- Active Goals
|
|
|
|
|
|
+<div id="active-goals" class="px-2 pb-2 border-bottom mb-2">
|
|
|
|
+ <div class="font-weight-bold mb-2">Goals</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>
|
|
-<div id="relevant-erx-orders" class="px-2">
|
|
|
|
- ERx / Orders
|
|
|
|
-</div>
|
|
|
|
-{{date('h:i:s')}}
|
|
|