Browse Source

RHs sidebar careteam center link

Vijayakrishnan 3 years ago
parent
commit
f2bf72a8ab

+ 1 - 1
resources/views/app/patient/note/dashboard.blade.php

@@ -2488,7 +2488,7 @@
                                  class="c-pointer d-inline-flex align-items-center careteam-center-trigger px-2 py-1"
                                  class="c-pointer d-inline-flex align-items-center careteam-center-trigger px-2 py-1"
                                  open-in-stag-popup
                                  open-in-stag-popup
                                  mc-initer="careteam-center-{{$note->id}}"
                                  mc-initer="careteam-center-{{$note->id}}"
-                                 title="Careteam Center"
+                                 title="Care Team Center"
                                  popup-style="medium-large overflow-visible"
                                  popup-style="medium-large overflow-visible"
                                  href="/careteam-center/{{$patient->uid}}/{{$note->uid}}">
                                  href="/careteam-center/{{$patient->uid}}/{{$note->uid}}">
                                 <i class="fa fa-bolt mr-1"></i>
                                 <i class="fa fa-bolt mr-1"></i>

+ 47 - 35
resources/views/app/patient/note/rhs-sidebar.blade.php

@@ -109,44 +109,56 @@
             <span class="px-1 text-secondary">-</span>
             <span class="px-1 text-secondary">-</span>
         @endif
         @endif
     </div>
     </div>
-    <div id="note-prescriptions" class="p-2 border-bottom c-pointer on-hover-aliceblue" data-non-segment-target="Prescriptions">
-    <div class="font-weight-bold mb-2">
-        ERx &amp; Orders
+    <div id="active-careteam" class="p-2 border-bottom c-pointer on-hover-aliceblue"
+         open-in-stag-popup
+         mc-initer="careteam-center-{{$note->id}}"
+         title="Care Team Center"
+         popup-style="medium-large overflow-visible"
+         href="/careteam-center/{{$patient->uid}}/{{$note->uid}}">
+        <div class="font-weight-bold">
+            Care Team
+            <i class="fa fa-external-link-alt text-primary ml-1"></i>
+        </div>
     </div>
     </div>
-    @if($prescriptions && count($prescriptions))
-        @foreach($prescriptions as $prescription)
-            <div class="d-flex align-items-baseline px-1">
-                <span class="mr-2 text-secondary text-sm font-weight-bold">{{$prescription->erx_category}}</span>
-                <?php $parsed = json_decode($prescription->clinical_detail_json) ?>
-                <span class="flex-grow-1">
-                    <?php
-                    switch($prescription->erx_category) {
-                        case 'DRUG':
-                            if(@$parsed && @$parsed->items) {
-                                foreach ($parsed->items as $item) {
-                                    echo '<div>' . $item->medication . '</div>';
+    <div id="note-prescriptions" class="p-2 border-bottom c-pointer on-hover-aliceblue" data-non-segment-target="Prescriptions">
+        <div class="font-weight-bold mb-2">
+            ERx &amp; Orders
+        </div>
+        @if($prescriptions && count($prescriptions))
+            @foreach($prescriptions as $prescription)
+                <div class="d-flex align-items-baseline px-1">
+                    <span class="mr-2 text-secondary text-sm font-weight-bold">{{$prescription->erx_category}}</span>
+                    <?php $parsed = json_decode($prescription->clinical_detail_json) ?>
+                    <span class="flex-grow-1">
+                        <?php
+                        switch($prescription->erx_category) {
+                            case 'DRUG':
+                                if(@$parsed && @$parsed->items) {
+                                    foreach ($parsed->items as $item) {
+                                        echo '<div>' . $item->medication . '</div>';
+                                    }
                                 }
                                 }
-                            }
-                            break;
-                        case 'LAB':
-                        case 'IMAGING':
-                            if(@$parsed && @$parsed->items) {
-                                foreach ($parsed->items as $item) {
-                                    if(@$item->tests) {
-                                        foreach ($item->tests as $test) {
-                                            echo '<div>' . $test->desc . '</div>';
+                                break;
+                            case 'LAB':
+                            case 'IMAGING':
+                                if(@$parsed && @$parsed->items) {
+                                    foreach ($parsed->items as $item) {
+                                        if(@$item->tests) {
+                                            foreach ($item->tests as $test) {
+                                                echo '<div>' . $test->desc . '</div>';
+                                            }
                                         }
                                         }
                                     }
                                     }
                                 }
                                 }
-                            }
-                            break;
-                    }
-                    ?>
-                </span>
-            </div>
-        @endforeach
-    @else
-        <span class="px-1 text-secondary">-</span>
-    @endif
-</div>
+                                break;
+                        }
+                        ?>
+                    </span>
+                </div>
+            @endforeach
+        @else
+            <span class="px-1 text-secondary">-</span>
+        @endif
+    </div>
+
 </div>
 </div>