Răsfoiți Sursa

Link to wizards from segments

Vijayakrishnan 3 ani în urmă
părinte
comite
86c3c72ad4

+ 35 - 0
resources/views/app/patient/note/segment.blade.php

@@ -102,6 +102,41 @@
             @endif
 
             @include('app/patient/note/_templates-v2-index', ['sectionInternalName' => $segment->segmentTemplate->internal_name])
+
+            @if($iName === 'intake_medications' || $iName === 'plan_medications')
+                <a native target="_blank"
+                     class="c-pointer d-inline-flex align-items-center ml-3"
+                     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}}">
+                    <i class="fa fa-bolt mr-1"></i>
+                    <span>Rx Center</span>
+                </a>
+            @elseif($iName === 'intake_problems' || $iName === 'plan_problems')
+                <a native target="_blank"
+                     class="c-pointer d-inline-flex align-items-center ml-3"
+                     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}}">
+                    <i class="fa fa-bolt mr-1"></i>
+                    <span>Dx Center</span>
+                </a>
+            @elseif($iName === 'intake_goals' || $iName === 'plan_goals')
+                <a native target="_blank"
+                     class="c-pointer d-inline-flex align-items-center ml-3"
+                     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}}">
+                    <i class="fa fa-bolt mr-1"></i>
+                    <span>Goals Center</span>
+                </a>
+            @endif
         @endif
 
     </div>

+ 1 - 1
resources/views/app/patient/problems-center.blade.php

@@ -84,7 +84,7 @@ $problems = $points;
                                     @endif
                                 </div>
                             @endif
-                            @if($medication->is_removed && $medication->removed_in_note_id === $note->id)
+                            @if($problem->is_removed && $problem->removed_in_note_id === $note->id)
                                 <div class="mt-1 text-sm text-secondary">Removed during this visit</div>
                             @endif
                         </div>