|
@@ -3,7 +3,7 @@
|
|
// info from patient chart
|
|
// info from patient chart
|
|
$drugs = \App\Models\Point::getPointsOfCategory($patient, "MEDICATION");
|
|
$drugs = \App\Models\Point::getPointsOfCategory($patient, "MEDICATION");
|
|
$allergies = \App\Models\Point::getPointsOfCategory($patient, "ALLERGY");
|
|
$allergies = \App\Models\Point::getPointsOfCategory($patient, "ALLERGY");
|
|
-$problems = \App\Models\Point::getPointsOfCategory($patient, "PROBLEMS");
|
|
|
|
|
|
+$problems = \App\Models\Point::getPointsOfCategory($patient, "PROBLEM");
|
|
|
|
|
|
// filter out drugs without fdb info on them
|
|
// filter out drugs without fdb info on them
|
|
$drugs = $drugs->filter(function ($_drug) {
|
|
$drugs = $drugs->filter(function ($_drug) {
|
|
@@ -119,7 +119,7 @@ $dam = drug_allergy_info([$pivotRx], $allergies);
|
|
<p class="font-weight-bold mb-2">{{$drug}}</p>
|
|
<p class="font-weight-bold mb-2">{{$drug}}</p>
|
|
<div class="flex-grow-1 d-inline-flex flex-wrap">
|
|
<div class="flex-grow-1 d-inline-flex flex-wrap">
|
|
@foreach($contraindication as $ci)
|
|
@foreach($contraindication as $ci)
|
|
- <span class="mr-2 px-2 py-0 border bg-light mb-1">{{$ci['dxid_desc56']}}</span>
|
|
|
|
|
|
+ <span class="mr-2 px-2 py-0 border bg-light mb-1 {{@$ci['flag'] ? 'text-danger border-danger' : ''}}">{{$ci['dxid_desc56']}}</span>
|
|
@endforeach
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|