Przeglądaj źródła

Move ICDs to after note content

Vijayakrishnan 3 lat temu
rodzic
commit
53ebf17d34
1 zmienionych plików z 96 dodań i 96 usunięć
  1. 96 96
      resources/views/app/patient/note/dashboard.blade.php

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

@@ -926,6 +926,102 @@ use App\Models\Handout;
 
                 <span class="d-none latest-section-ts">{{ $latestSectionTS }}</span>
 
+                <div class="p-3 border-bottom" data-non-segment-section="ICDs">
+                    <div class="d-flex alignt-items-start">
+                        <div class="d-flex mr-2">
+                            <p class="font-weight-bold text-secondary m-0 mr-2">ICDs</p>
+                            @include('app.patient.partials.put-rm-reasons', ['recordType' => 'NOTE', 'record' => $note])
+                        </div>
+                        <?php
+                        $noteICDData = [
+                            'icd_1' => [
+                                'title' => 'ICD 1',
+                                'reason' => $note->note_reason_icd1,
+                                'description' => $note->note_reason_icd1description
+                            ],
+                            'icd_2' => [
+                                'title' => 'ICD 2',
+                                'reason' => $note->note_reason_icd2,
+                                'description' => $note->note_reason_icd2description
+                            ],
+                            'icd_3' => [
+                                'title' => 'ICD 3',
+                                'reason' => $note->note_reason_icd3,
+                                'description' => $note->note_reason_icd3description
+                            ],
+                            'icd_4' => [
+                                'title' => 'ICD 4',
+                                'reason' => $note->note_reason_icd4,
+                                'description' => $note->note_reason_icd4description
+                            ],
+                        ];
+                        ?>
+                        <div class="d-inline-flex align-items-start flex-wrap mr-auto">
+                            <?php $emptyNoteICDs = true; ?>
+                            @foreach ($noteICDData as $noteICDKey => $noteICD)
+                                <?php
+                                $emptyICD = true;
+                                if(!empty($noteICD['reason']) || !empty($noteICD['description'])){
+                                    $emptyNoteICDs = false;
+                                    $emptyICD = false;
+                                }
+                                ?>
+                                @if(!$emptyICD)
+                                    <span class="badge badge-info px-2 mb-1 mr-2">{{$noteICD['reason']}} @if(!empty($noteICD['description']))({{ $noteICD['description'] }})@endif</span>
+                                @endif
+                            @endforeach
+                            @if($emptyNoteICDs)
+                                <small class="text-dark">-</small>
+                            @endif
+                        </div>
+                        <div class="on-hover-show d-block on-hover-opaque position-relative mx-1">
+                            <i class="fa fa-info-circle"></i>
+                            <div class="on-hover-content p-0 border-0 max-width-unset bg-white">
+                                <table class="table table-sm m-0 table-bordered border-0">
+                                    <thead>
+                                    <tr class="bg-light">
+                                        <th class="border-bottom-0">Created</th>
+                                        <th class="min-width-140px border-bottom-0">Reason 1</th>
+                                        <th class="min-width-140px border-bottom-0">Reason 2</th>
+                                        <th class="min-width-140px border-bottom-0">Reason 3</th>
+                                        <th class="min-width-140px border-bottom-0">Reason 4</th>
+                                    </tr>
+                                    </thead>
+                                    <tbody>
+                                    @foreach($note->reasonsLog as $log)
+                                        <tr>
+                                            <td class="text-nowrap">{{friendly_date_time($log->created_at)}}</td>
+                                            <td>
+                                                {{$log->note_reason_icd1}}
+                                                <div class="text-sm text-secondary">{{$log->note_reason_icd1description}}</div>
+                                            </td>
+                                            <td>
+                                                {{$log->note_reason_icd2}}
+                                                <div class="text-sm text-secondary">{{$log->note_reason_icd2description}}</div>
+                                            </td>
+                                            <td>
+                                                {{$log->note_reason_icd3}}
+                                                <div class="text-sm text-secondary">{{$log->note_reason_icd3description}}</div>
+                                            </td>
+                                            <td>
+                                                {{$log->note_reason_icd4}}
+                                                <div class="text-sm text-secondary">{{$log->note_reason_icd4description}}</div>
+                                            </td>
+                                        </tr>
+                                    @endforeach
+                                    </tbody>
+                                </table>
+                            </div>
+                        </div>
+                        <div></div>
+                    </div>
+                    @if(!empty($note->note_reason_memo))
+                        <div style="padding-left: 60px;">
+                            <small><b>Reason:</b> {{ $note->note_reason_memo }}</small>
+                        </div>
+                    @endif
+                </div>
+
                 <!-- handouts -->
                 <div class="p-3 border-bottom screen-only" data-non-segment-section="Handouts">
                     <?php
@@ -1210,102 +1306,6 @@ use App\Models\Handout;
                     </script>
                 </div>
 
-                <div class="px-2 pt-2 pb-1 border-bottom" data-non-segment-section="ICDs">
-                    <div class="d-flex alignt-items-start">
-                        <div class="d-flex mr-2">
-                            <p class="font-weight-bold text-secondary m-0 mr-2">ICDs</p>
-                            @include('app.patient.partials.put-rm-reasons', ['recordType' => 'NOTE', 'record' => $note])
-                        </div>
-                        <?php
-                            $noteICDData = [
-                                'icd_1' => [
-                                    'title' => 'ICD 1',
-                                    'reason' => $note->note_reason_icd1,
-                                    'description' => $note->note_reason_icd1description
-                                ],
-                                'icd_2' => [
-                                    'title' => 'ICD 2',
-                                    'reason' => $note->note_reason_icd2,
-                                    'description' => $note->note_reason_icd2description
-                                ],
-                                'icd_3' => [
-                                    'title' => 'ICD 3',
-                                    'reason' => $note->note_reason_icd3,
-                                    'description' => $note->note_reason_icd3description
-                                ],
-                                'icd_4' => [
-                                    'title' => 'ICD 4',
-                                    'reason' => $note->note_reason_icd4,
-                                    'description' => $note->note_reason_icd4description
-                                ],
-                            ];
-                        ?>
-                        <div class="d-inline-flex align-items-start flex-wrap mr-auto">
-                            <?php $emptyNoteICDs = true; ?>
-                                @foreach ($noteICDData as $noteICDKey => $noteICD)
-                                    <?php
-                                        $emptyICD = true;
-                                        if(!empty($noteICD['reason']) || !empty($noteICD['description'])){
-                                            $emptyNoteICDs = false;
-                                            $emptyICD = false;
-                                        }
-                                    ?>
-                                    @if(!$emptyICD)
-                                        <span class="badge badge-info px-2 mb-1 mr-2">{{$noteICD['reason']}} @if(!empty($noteICD['description']))({{ $noteICD['description'] }})@endif</span>
-                                    @endif
-                                @endforeach
-                            @if($emptyNoteICDs)
-                                <small class="text-dark">-</small>
-                            @endif
-                        </div>
-                        <div class="on-hover-show d-block on-hover-opaque position-relative mx-1">
-                            <i class="fa fa-info-circle"></i>
-                            <div class="on-hover-content p-0 border-0 max-width-unset bg-white">
-                                <table class="table table-sm m-0 table-bordered border-0">
-                                    <thead>
-                                    <tr class="bg-light">
-                                        <th class="border-bottom-0">Created</th>
-                                        <th class="min-width-140px border-bottom-0">Reason 1</th>
-                                        <th class="min-width-140px border-bottom-0">Reason 2</th>
-                                        <th class="min-width-140px border-bottom-0">Reason 3</th>
-                                        <th class="min-width-140px border-bottom-0">Reason 4</th>
-                                    </tr>
-                                    </thead>
-                                    <tbody>
-                                    @foreach($note->reasonsLog as $log)
-                                        <tr>
-                                            <td class="text-nowrap">{{friendly_date_time($log->created_at)}}</td>
-                                            <td>
-                                                {{$log->note_reason_icd1}}
-                                                <div class="text-sm text-secondary">{{$log->note_reason_icd1description}}</div>
-                                            </td>
-                                            <td>
-                                                {{$log->note_reason_icd2}}
-                                                <div class="text-sm text-secondary">{{$log->note_reason_icd2description}}</div>
-                                            </td>
-                                            <td>
-                                                {{$log->note_reason_icd3}}
-                                                <div class="text-sm text-secondary">{{$log->note_reason_icd3description}}</div>
-                                            </td>
-                                            <td>
-                                                {{$log->note_reason_icd4}}
-                                                <div class="text-sm text-secondary">{{$log->note_reason_icd4description}}</div>
-                                            </td>
-                                        </tr>
-                                    @endforeach
-                                    </tbody>
-                                </table>
-                            </div>
-                        </div>
-                        <div></div>
-                    </div>
-                    @if(!empty($note->note_reason_memo))
-                        <div style="padding-left: 60px;">
-                            <small><b>Reason:</b> {{ $note->note_reason_memo }}</small>
-                        </div>
-                    @endif
-                </div>
-
                 @if(!$note->is_non_medical || true)
                     @if($pro->pro_type === 'ADMIN')
                     <div class="p-3 border-bottom screen-only" data-non-segment-section="Bills & Claims Summary">