Jelajahi Sumber

Subj summary - always show active allergies and meds

Vijayakrishnan 3 tahun lalu
induk
melakukan
b025d56402

+ 15 - 1
resources/views/app/patient/segment-templates/omega_subjective_system/summary.blade.php

@@ -73,7 +73,7 @@ $wizardLinks = [
                popup-style="overflow-visible {{@$link['style']}}"
                title="{!! @$link['title'] ?: $link['name'] !!}"
                mc-initer="{{ @$link['initer']  }}"
-               class="mr-2 d-inline-block text-nowrap">{!! $link['name'] !!}</a>
+               class="mr-2 d-inline-block text-nowrap font-underline">{!! $link['name'] !!}</a>
         @endif
     @endforeach
 </div>
@@ -81,6 +81,20 @@ $wizardLinks = [
 <div class="system_segment">
 <?php
 
+$inPoints = Point::getPointsOfCategory($patient, 'ALLERGY');
+if(count($inPoints)) {
+?>
+    @include('app.patient.module-specific-summary-renderers.allergy.subjective', ['points' => $inPoints])
+<?php
+}
+
+$inPoints = Point::getPointsOfCategory($patient, 'MEDICATION');
+if(count($inPoints)) {
+?>
+    @include('app.patient.module-specific-summary-renderers.medication.subjective', ['points' => $inPoints])
+<?php
+}
+
 $inPoints = Point::getIntakePointsWithChildReview($patient, $note);
 
 // allergies/meds/problems/goals/careteam