|
@@ -1078,24 +1078,60 @@ use App\Models\Handout;
|
|
|
</script>
|
|
|
</div>
|
|
|
|
|
|
- <div class="p-2 border-bottom" data-non-segment-section="ICDs">
|
|
|
+ <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 {{ count($note->reasons) > 2 ? '':'align-items-center' }} mr-2">
|
|
|
+ <div class="d-flex mr-2">
|
|
|
<p class="font-weight-bold text-secondary m-0 mr-2">ICDs</p>
|
|
|
- @include('app/patient/note/_create-note-reason')
|
|
|
+ @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-flex align-items-start flex-wrap">
|
|
|
- @if(count($note->reasons))
|
|
|
- @foreach ($note->reasons as $reason)
|
|
|
- <span class="badge badge-info p-2 mb-1 mr-2">
|
|
|
- {{ $reason->description}} ({{ $reason->code }})
|
|
|
- </span>
|
|
|
- @endforeach
|
|
|
- @else
|
|
|
- <div class="alert alert-info position-static">No note reasons</div>
|
|
|
- @endif
|
|
|
- </div>
|
|
|
+ <?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['description']}} ({{ $noteICD['reason'] }})</span>
|
|
|
+ @endif
|
|
|
+ @endforeach
|
|
|
+ @if($emptyNoteICDs)
|
|
|
+ <small class="text-warning">No note reasons</small>
|
|
|
+ @endif
|
|
|
+ </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($pro->pro_type === 'ADMIN')
|