|
@@ -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 & 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 & 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>
|