|
@@ -5,7 +5,145 @@ use App\Models\Point;
|
|
/** @var \App\Models\Client $patient */
|
|
/** @var \App\Models\Client $patient */
|
|
/** @var \App\Models\Note $note */
|
|
/** @var \App\Models\Note $note */
|
|
|
|
|
|
-$points = Point::getIntakePointsWithChildReview($patient, $note);
|
|
|
|
|
|
+$wizardLinks = [
|
|
|
|
+ [
|
|
|
|
+ "name" => 'Allergies',
|
|
|
|
+ "href" => "/allergies-center/{$note->client->uid}/{$note->uid}",
|
|
|
|
+ "initer" => "allergies-center-{$note->id}"
|
|
|
|
+ ],
|
|
|
|
+ [
|
|
|
|
+ "name" => 'Medications',
|
|
|
|
+ "href" => "/medications-center/{$note->client->uid}/{$note->uid}",
|
|
|
|
+ "initer" => "medications-center-{$note->id}"
|
|
|
|
+ ],
|
|
|
|
+ [
|
|
|
|
+ "name" => 'Problems',
|
|
|
|
+ "href" => "/problems-center/{$note->client->uid}/{$note->uid}",
|
|
|
|
+ "initer" => "problems-center-{$note->id}"
|
|
|
|
+ ],
|
|
|
|
+ [
|
|
|
|
+ "name" => 'Goals',
|
|
|
|
+ "href" => "/goals-center/{$note->client->uid}/{$note->uid}",
|
|
|
|
+ "initer" => "goals-center-{$note->id}"
|
|
|
|
+ ],
|
|
|
|
+ [
|
|
|
|
+ "name" => 'Care Team',
|
|
|
|
+ "href" => "/careteam-center/{$note->client->uid}/{$note->uid}",
|
|
|
|
+ "initer" => "careteam-center-{$note->id}"
|
|
|
|
+ ],
|
|
|
|
+ [
|
|
|
|
+ "name" => 'PMHx',
|
|
|
|
+ "title" => 'Past Medical History',
|
|
|
|
+ "href" => "/note-segment-view-by-name/{$note->uid}/past_medical_history/edit",
|
|
|
|
+ "initer" => "edit-univ_history_past_medical-container-{$note->id}"
|
|
|
|
+ ],
|
|
|
|
+ [
|
|
|
|
+ "name" => 'FHx',
|
|
|
|
+ "title" => 'Family History',
|
|
|
|
+ "href" => "/note-segment-view-by-name/{$note->uid}/history_family/edit",
|
|
|
|
+ "initer" => "edit-univ_history_family-container-{$note->id}"
|
|
|
|
+ ],
|
|
|
|
+ [
|
|
|
|
+ "name" => 'Soc Hx',
|
|
|
|
+ "title" => 'Social History',
|
|
|
|
+ "href" => "/note-segment-view-by-name/{$note->uid}/history_social/edit",
|
|
|
|
+ "initer" => "edit-univ_history_social-container-{$note->id}"
|
|
|
|
+ ],
|
|
|
|
+ [
|
|
|
|
+ "name" => 'Surg Hx',
|
|
|
|
+ "title" => 'Surgical History',
|
|
|
|
+ "href" => "/note-segment-view-by-name/{$note->uid}/history_surgical/edit",
|
|
|
|
+ "initer" => "edit-univ_history_surgical-container-{$note->id}"
|
|
|
|
+ ],
|
|
|
|
+ [
|
|
|
|
+ "name" => 'ROS',
|
|
|
|
+ "title" => 'Review Of Systems',
|
|
|
|
+ "href" => "/note-segment-view-by-name/{$note->uid}/omega_ros/edit",
|
|
|
|
+ "initer" => "init-ros-{$note->id}"
|
|
|
|
+ ],
|
|
|
|
+];
|
|
|
|
+
|
|
|
|
+?>
|
|
|
|
+
|
|
|
|
+<div class="mb-2">
|
|
|
|
+ @foreach($wizardLinks as $link)
|
|
|
|
+ @if(@$link['name'])
|
|
|
|
+ <a href="{{$link['href']}}"
|
|
|
|
+ open-in-stag-popup
|
|
|
|
+ popup-style="overflow-visible {{@$link['style']}}"
|
|
|
|
+ title="{!! @$link['title'] ?: $link['name'] !!}"
|
|
|
|
+ mc-initer="{{ @$link['initer'] }}"
|
|
|
|
+ class="mr-2 d-inline-block text-nowrap font-underline">{!! $link['name'] !!}</a>
|
|
|
|
+ @endif
|
|
|
|
+ @endforeach
|
|
|
|
+</div>
|
|
|
|
+
|
|
|
|
+<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
|
|
|
|
+$topLevelPointToRendererMap = [
|
|
|
|
+ 'ALLERGY' => 'allergy',
|
|
|
|
+ 'MEDICATION' => 'medication',
|
|
|
|
+ 'PROBLEM' => 'problem',
|
|
|
|
+ 'GOAL' => 'goal',
|
|
|
|
+ 'CARE_TEAM_MEMBER' => 'care_team_member'
|
|
|
|
+];
|
|
|
|
+
|
|
|
|
+$pointMap = [];
|
|
|
|
+
|
|
|
|
+foreach($inPoints as $point){
|
|
|
|
+ if(!isset($topLevelPointToRendererMap[$point->category])) continue;
|
|
|
|
+ $renderer = $topLevelPointToRendererMap[$point->category];
|
|
|
|
+ if(!isset($pointMap[$renderer])) $pointMap[$renderer] = [];
|
|
|
|
+ $pointMap[$renderer][] = $point;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+foreach ($pointMap as $renderer => $points) {
|
|
|
|
+?>
|
|
|
|
+@include('app.patient.module-specific-summary-renderers.' . $renderer . '.subjective', compact('points'))
|
|
|
|
+<?php
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// history, ros
|
|
|
|
+$topLevelPointToRendererMap = [
|
|
|
|
+ 'PAST_MEDICAL_HISTORY' => 'past_medical_history',
|
|
|
|
+ 'FAMILY_HISTORY' => 'history_family',
|
|
|
|
+ 'SOCIAL_HISTORY' => 'history_social',
|
|
|
|
+ 'SURGICAL_HISTORY' => 'history_surgical',
|
|
|
|
+ 'ROS' => 'ros',
|
|
|
|
+];
|
|
|
|
+
|
|
|
|
+$pointMap = [];
|
|
|
|
+
|
|
|
|
+foreach($inPoints as $point){
|
|
|
|
+ if(!isset($topLevelPointToRendererMap[$point->category])) continue;
|
|
|
|
+ $renderer = $topLevelPointToRendererMap[$point->category];
|
|
|
|
+ if(!isset($pointMap[$renderer])) $pointMap[$renderer] = [];
|
|
|
|
+ $pointMap[$renderer][] = $point;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+foreach ($pointMap as $renderer => $points) {
|
|
|
|
+?>
|
|
|
|
+@include('app.patient.module-specific-summary-renderers.' . $renderer . '.subjective', compact('points'))
|
|
|
|
+<?php
|
|
|
|
+}
|
|
|
|
|
|
$topLevelPointToRendererMap = [
|
|
$topLevelPointToRendererMap = [
|
|
'HIGH_SUGAR_BEVERAGES' => 'nutrition',
|
|
'HIGH_SUGAR_BEVERAGES' => 'nutrition',
|
|
@@ -36,7 +174,7 @@ $topLevelPointToRendererMap = [
|
|
|
|
|
|
$pointMap = [];
|
|
$pointMap = [];
|
|
|
|
|
|
-foreach($points as $point){
|
|
|
|
|
|
+foreach($inPoints as $point){
|
|
if(!isset($topLevelPointToRendererMap[$point->category])) continue;
|
|
if(!isset($topLevelPointToRendererMap[$point->category])) continue;
|
|
$renderer = $topLevelPointToRendererMap[$point->category];
|
|
$renderer = $topLevelPointToRendererMap[$point->category];
|
|
if(!isset($pointMap[$renderer])) $pointMap[$renderer] = [];
|
|
if(!isset($pointMap[$renderer])) $pointMap[$renderer] = [];
|
|
@@ -48,4 +186,6 @@ foreach ($pointMap as $renderer => $points) {
|
|
@include('app.patient.module-specific-summary-renderers.' . $renderer . '.subjective', compact('points'))
|
|
@include('app.patient.module-specific-summary-renderers.' . $renderer . '.subjective', compact('points'))
|
|
<?php
|
|
<?php
|
|
}
|
|
}
|
|
|
|
+?>
|
|
|
|
+</div>
|
|
|
|
|