Explorar o código

Merge branch 'dev' of rav.triplestart.com:jmudaka/stagfe2

= %!s(int64=3) %!d(string=hai) anos
pai
achega
4dbf404460

+ 22 - 3
public/css/style.css

@@ -115,7 +115,7 @@ main {
   gap: 10px;
 }
 .flex-header >div {
-  flex-grow: 1;
+  /* flex-grow: 1; */
 }
 .patient-header-address {
   list-style-type: none;
@@ -3425,6 +3425,18 @@ body.forced-masking #mask {
     top: 0;
     color: var(--primary-color);
 }
+#handoutSelectComponent .handout .handout-detail a.preview {
+    position: absolute;
+    left: -1px;
+    bottom: 0;
+    color: #fff;
+    text-align: center;
+    width: 102%;
+    background-color: rgba(28, 69, 135,0.8);
+    font-weight: bold;
+    padding: 5px 0;
+    text-decoration: none;
+}
 #handoutSelectComponent .handout.selected .handout-detail {
     border-color: var(--primary-color) !important;
 }
@@ -3437,7 +3449,7 @@ body.forced-masking #mask {
 .mcp-theme-1 .point-table [if-read-mode] .inline-html-container {
     cursor: pointer;
 }
-table.v-top td, 
+table.v-top td,
 table.v-top th {
     vertical-align:top;
 }
@@ -3463,4 +3475,11 @@ table.v-top th {
     border-color: #80bdff;
     outline: 0;
     box-shadow: 0 0 0 0.2rem rgb(0 123 255 / 25%);
-}
+}
+.coverage-payer-name {
+    width: 120px;
+    white-space: nowrap;
+    overflow: hidden;
+    text-overflow: ellipsis;
+    display: inline-block;
+}

+ 0 - 59
resources/views/app/patient/care-month/put-rm-reasons.blade.php

@@ -1,59 +0,0 @@
-<div moe relative>
-	<a start show><i class="fas fa-edit"></i></a>
-	<form url="/api/careMonth/putRmReasons" class="mcp-theme-1" right>
-		<input type="hidden" name="uid" value="{{$careMonth->uid}}">
-		<div>
-			<table class="table table-sm table-bordered">
-				<thead class="bg-light">
-					<tr>
-						<th class="border-bottom-0">ICD</th>
-						<th class="border-bottom-0">Description</th>
-					</tr>
-				</thead>
-				<tbody>
-					<tr>
-						<td>
-							<input type="text" class="icd-input" icd-autocomplete-code data-target="input[name=rmReasonIcd1Description]" name="rmReasonIcd1" value="{{ $careMonth->rm_reason_icd1 }}" placeholder="ICD 1" />
-						</td>
-						<td>
-							<input id="" type="text" class="form-control form-control-sm" icd-autocomplete-description name="rmReasonIcd1Description" value="{{ $careMonth->rm_reason_icd1description }}">
-						</td>
-					</tr>
-					<tr>
-						<td>
-							<input type="text" class="icd-input" icd-autocomplete-code name="rmReasonIcd2" data-target="input[name=rmReasonIcd2Description]" value="{{ $careMonth->rm_reason_icd2 }}" placeholder="ICD 2" />
-						</td>
-						<td>
-							<input type="text" class="form-control form-control-sm" icd-autocomplete-description name="rmReasonIcd2Description" value="{{ $careMonth->rm_reason_icd2description }}">
-						</td>
-					</tr>
-					<tr>
-						<td>
-							<input type="text" class="icd-input" icd-autocomplete-code name="rmReasonIcd3" data-target="input[name=rmReasonIcd3Description]" value="{{ $careMonth->rm_reason_icd3 }}" placeholder="ICD 3" />
-						</td>
-						<td>
-							<input type="text" class="form-control form-control-sm" icd-autocomplete-description name="rmReasonIcd3Description" value="{{ $careMonth->rm_reason_icd3description }}" >
-						</td>
-					</tr>
-					<tr>
-						<td>
-							<input type="text" class="icd-input" icd-autocomplete-code name="rmReasonIcd4" data-target="input[name=rmReasonIcd4Description]" value="{{ $careMonth->rm_reason_icd4 }}" placeholder="ICD 4"/>
-						</td>
-						<td>
-							<input type="text" class="form-control form-control-sm" icd-autocomplete-description name="rmReasonIcd4Description" value="{{ $careMonth->rm_reason_icd4description }}">
-						</td>
-					</tr>
-				</tbody>
-			</table>
-		</div>
-
-		<div class="mb-3">
-			<label class="font-weight-bold">RM Reason Memo</label>
-			<input type="text" class="form-control form-control-sm" name="rmReasonMemo" value="{{ $careMonth->rm_reason_memo }}">
-		</div>
-		<div>
-			<button submit class="btn btn-sm btn-primary mr-1">Submit</button>
-			<button cancel class="btn btn-sm btn-default border">Cancel</button>
-		</div>
-	</form>
-</div>

+ 2 - 45
resources/views/app/patient/care-month/rm-reasons.blade.php

@@ -1,50 +1,7 @@
 <div class="d-flex align-items-center mb-1">
     <span class="mr-2">RM Reasons:</span>
-    @include('app.patient.care-month.put-rm-reasons')
+    @include('app.patient.partials.put-rm-reasons', ['recordType' => 'CARE_MONTH', 'record' => $careMonth])
 </div>
 <div class="">
-    <table class="table table-sm table-striped table-bordered">
-        <tbody>
-            <tr>
-                <td class="text-nowrap">ICD 1</td>
-                <td>
-                    <div class="d-flex">
-                        <span class="font-weight-bold text-sm mr-2" style="min-width:60px;">{{ $careMonth->rm_reason_icd1 ? $careMonth->rm_reason_icd1 . ':' : '' }}</span>
-                        <small class="text-muted text-sm">{{ $careMonth->rm_reason_icd1description }}</small>
-                    </div>
-                </td>
-            </tr>
-            <tr>
-                <td class="text-nowrap">ICD 2</td>
-                <td>
-                    <div class="d-flex">
-                        <span class="font-weight-bold text-sm mr-2" style="min-width:60px;">{{ $careMonth->rm_reason_icd2 ? $careMonth->rm_reason_icd2 . ':' :'' }}</span>
-                        <small class="text-muted text-sm">{{ $careMonth->rm_reason_icd2description }}</small>
-                    </div>
-                </td>
-            </tr>
-            <tr>
-                <td class="text-nowrap">ICD 3</td>
-                <td>
-                    <div class="d-flex">
-                        <span class="font-weight-bold text-sm mr-2" style="min-width:60px;">{{ $careMonth->rm_reason_icd3 ? $careMonth->rm_reason_icd3 . ':' : '' }}</span>
-                        <small class="text-muted text-sm">{{ $careMonth->rm_reason_icd3description }}</small>
-                    </div>
-                </td>
-            </tr>
-            <tr>
-                <td class="text-nowrap">ICD 4</td>
-                <td>
-                    <div class="d-flex">
-                        <span class="font-weight-bold text-sm mr-2" style="min-width:60px;">{{ $careMonth->rm_reason_icd4 ? $careMonth->rm_reason_icd4 . ':' : '' }}</span>
-                        <small class="text-muted text-sm">{{ $careMonth->rm_reason_icd4description }}</small>
-                    </div>
-                </td>
-            </tr>
-            <tr>
-                <td class="text-nowrap">Memo</td>
-                <td class="text-muted text-sm">{{ $careMonth->rm_reason_memo }}</td>
-            </tr>
-        </tbody>
-    </table>
+@include('app.patient.partials.rm-reasons-display', ['recordType' => 'CARE_MONTH', 'record' => $careMonth])
 </div>

+ 4 - 4
resources/views/app/patient/coverage-status.blade.php

@@ -112,7 +112,7 @@
         <tr>
           <td class="font-weight-bold">Medicaid<br>(Primary):</td>
           <td>
-            <span><b>{{$coverage->mcdPayer->name ?? '-'}}</b></span> <br>
+            <span class="coverage-payer-name" title="{{$coverage->mcdPayer->name ?? '-'}}"><b>{{$coverage->mcdPayer->name ?? '-'}}</b></span> <br>
             <span><i class="fas fa-hourglass-half text-warning"></i> Pending Validation</span> <br>
           </td>
         </tr>
@@ -132,7 +132,7 @@
           <tr>
             <td class="font-weight-bold">Medicaid<br>(Primary):</td>
             <td>
-              <span><b>{{$coverage->mcd_payer_name ?? '-'}}</b></span> <br>
+              <span class="coverage-payer-name" title="{{$coverage->mcd_payer_name ?? '-'}}"><b>{{$coverage->mcd_payer_name ?? '-'}}</b></span> <br>
               @if($coverage->manual_determination_category == 'COVERED')
               <span><i class="fas fa-check-circle text-success"></i></span>
               @elseif($coverage->manual_determination_category == 'NOT_COVERED')
@@ -160,7 +160,7 @@
         <tr>
           <td class="font-weight-bold">Commercial<br>(Primary):</td>
           <td>
-            <span><b>{{$coverage->payer->name ?? '-'}}</b></span> <br>
+            <span class="coverage-payer-name" title="{{$coverage->payer->name ?? '-'}}"><b>{{$coverage->payer->name ?? '-'}}</b></span> <br>
             <span><i class="fas fa-hourglass-half text-warning"></i> Pending Validation</span> <br>
           </td>
         </tr>
@@ -180,7 +180,7 @@
           <tr>
             <td class="font-weight-bold">Commercial<br>(Primary):</td>
             <td>
-              <span><b>{{$coverage->payer->name ?? '-'}}</b></span> <br>
+              <span class="coverage-payer-name" title="{{$coverage->payer->name ?? '-'}}"><b>{{$coverage->payer->name ?? '-'}}</b></span> <br>
               @if($coverage->manual_determination_category == 'COVERED')
               <span><i class="fas fa-check-circle text-success"></i></span>
               @elseif($coverage->manual_determination_category == 'NOT_COVERED')

+ 14 - 4
resources/views/app/patient/coverage_column_renderer.blade.php

@@ -1,13 +1,17 @@
 <div class="d-flex align-items-center">
     <?php 
         $coverage = $patient->getPrimaryCoverage();
-        $coverageStatus = $patient->getPrimaryCoverageStatus(); 
+        $coverageStatus = $patient->getPrimaryCoverageStatus();
     ?>
     
     @if($coverageStatus === 'YES')
         <i class="fa fa-check-circle text-success"></i>
     @elseif($coverageStatus === 'NO')
-        <i class="fa fa-times text-danger"></i>
+        @if(!$coverage->manual_determination_category)
+            <i class="fas fa-hourglass-half text-warning" title="Pending Validation"></i>
+        @else
+            <i class="fa fa-times text-danger"></i>
+        @endif
     @else
         @if($coverage && $coverage->plan_type == 'MEDICARE' && !$coverage->auto_medicare_is_match_found)
             <i class="fa fa-times text-danger"></i>
@@ -21,8 +25,14 @@
     @endif
     
     @if($coverage)
-        <span class="ml-2">{{$coverage->insuranceDisplayName()}}</span>
+        @if($coverage->plan_type === 'MEDICAID' && $coverage->mcdPayer)
+            <span class="ml-2">{{$coverage->mcdPayer->name}}</span>
+        @elseif($coverage->plan_type === 'COMMERCIAL' && $coverage->payer)
+            <span class="ml-2">{{$coverage->payer->name}}</span>
+        @else
+            <span class="ml-2">{{$coverage->insuranceDisplayName()}}</span>
+        @endif
     @else
-    <small class="ml-2 text-muted">(No insurance)</small>
+        <small class="ml-2 text-muted">(No insurance)</small>
     @endif
 </div>

+ 69 - 57
resources/views/app/patient/handouts-list.blade.php

@@ -3,8 +3,8 @@
 
 <style>
     .select2-container {
-    width: 100% !important;
-}
+        width: 100% !important;
+    }
 </style>
 
 <div class="">
@@ -16,20 +16,26 @@
             <form url="/api/handoutClient/create" style="width: 500px;">
                 <input type="hidden" name="clientUid" value="{{ $patient->uid }}">
                 @if(@$note)
-                    <input type="hidden" name="noteUid" value="{{ $note->uid }}">
+                <input type="hidden" name="noteUid" value="{{ $note->uid }}">
                 @endif
                 <div id="handoutSelectComponent" class="mb-2" v-cloak>
                     <input type="hidden" name="handoutUid" :value="selectedHandoutUid" />
                     <input type="search" class="form-control" placeholder="Search Handout" @keyup="filterHandouts" />
-                    <div class="row mt-3">
-                        <div v-for="handout in handoutsList" class="col-md-4 mb-2 handout" :class="selectedHandoutUid == handout.uid ? 'selected':''" @click="selectedHandoutUid = handout.uid">
-                            <div class="d-flex flex-column h-100 border rounded p-2 handout-detail">
-                            <i v-if="selectedHandoutUid == handout.uid" class="fas fa-check-circle"></i>
-                                <img :src="'/api/handout/download-thumbnail/'+handout.uid" :alt="handout.display_name"  onerror="if (this.src != '/img/pdf.png') this.src = '/img/pdf.png';">
-                                <h6 class="mt-2 mb-0 text-center">@{{ handout.display_name }}</h6>
+                    <div class="mt-3" style="max-height: 430px;overflow-y: auto;overflow-x:hidden;">
+                        <div class="row">
+                            <div v-for="handout in handoutsList" class="col-md-4 mb-2 handout" :class="selectedHandoutUid == handout.uid ? 'selected':''" @click="selectedHandoutUid = handout.uid">
+                                <div class="d-flex flex-column h-100 border rounded p-2 handout-detail">
+                                    <i v-if="selectedHandoutUid == handout.uid" class="fas fa-check-circle"></i>
+                                    <img :src="'/api/handout/download-thumbnail/'+handout.uid" :alt="handout.display_name" onerror="if (this.src != '/img/pdf.png') this.src = '/img/pdf.png';">
+                                    <h6 class="mt-2 mb-0 text-center">@{{ handout.display_name }}</h6>
+
+                                    <a class="c-pointer preview pdf-viewer-trigger" native target="_blank" :href="'/api/handout/download/'+handout.uid" title="View">Preview PDF</a>
+
+                                </div>
                             </div>
                         </div>
                     </div>
+
                 </div>
                 <div class="d-flex align-items-center">
                     <button class="btn btn-sm btn-primary mr-2" submit>Save</button>
@@ -40,28 +46,26 @@
     </div>
     <table class="table table-striped table-sm table-bordered m-0">
         <thead class="bg-light">
-        <tr>
-            <th></th>
-            <th class="border-0 text-secondary">Internal Name</th>
-            <th class="border-0 text-secondary">Display Name</th>
-            <th class="border-0 text-secondary">View</th>
-            <th class="border-0 text-secondary w-50">Shareable Link</th>
-            <th class="border-0 text-secondary"></th>
-        </tr>
+            <tr>
+                <th></th>
+                <th class="border-0 text-secondary">Internal Name</th>
+                <th class="border-0 text-secondary">Display Name</th>
+                <th class="border-0 text-secondary">View</th>
+                <th class="border-0 text-secondary w-50">Shareable Link</th>
+                <th class="border-0 text-secondary"></th>
+            </tr>
         </thead>
         <tbody>
-        @foreach($clientHandouts as $clientHandout)
-            <?php $downloadLink = config('app.url') . "/guest/handout/".$clientHandout->uid; ?>
+            @foreach($clientHandouts as $clientHandout)
+            <?php $downloadLink = config('app.url') . "/guest/handout/" . $clientHandout->uid; ?>
             <tr>
                 <td>
-                    <img width="50" src="/api/handout/download-thumbnail/{{ $clientHandout->handout->uid }}" alt="{{$clientHandout->handout->display_name}}"  onerror="if (this.src != '/img/pdf.png') this.src = '/img/pdf.png';">
+                    <img width="50" src="/api/handout/download-thumbnail/{{ $clientHandout->handout->uid }}" alt="{{$clientHandout->handout->display_name}}" onerror="if (this.src != '/img/pdf.png') this.src = '/img/pdf.png';">
                 </td>
                 <td>{{$clientHandout->handout->internal_name}}</td>
                 <td>{{$clientHandout->handout->display_name}}</td>
                 <td>
-                    <a class="pdf-viewer-trigger" native target="_blank"
-                               href="/api/handout/download/{{ $clientHandout->handout->uid }}"
-                               title="View">View</a>
+                    <a class="pdf-viewer-trigger" native target="_blank" href="/api/handout/download/{{ $clientHandout->handout->uid }}" title="View">View</a>
                 </td>
                 <td><b class="click-to-copy">{{ $downloadLink }}</b></td>
                 <td>
@@ -87,49 +91,57 @@
                     </div>
                 </td>
             </tr>
-        @endforeach
+            @endforeach
         </tbody>
     </table>
 </div>
 <script>
-        var handoutSelectComponent = new Vue({
-            el:'#handoutSelectComponent',
-            data:{
-                handouts:<?= json_encode($handouts) ?>,
-                handoutsList: [],
-                selectedHandoutUid: null,
-                search: null
+    var handoutSelectComponent = new Vue({
+        el: '#handoutSelectComponent',
+        data: {
+            handouts: <?= json_encode($handouts) ?>,
+            handoutsList: [],
+            selectedHandoutUid: null,
+            search: null,
+            preview: null,
+        },
+        methods: {
+            togglePreview: function(handoutUid) {
+                this.preview = handoutUid;
+                if (!handoutUid) {
+                    
+                }                
             },
-            methods:{
-                filterHandouts: function(evt){
-                    var self = this;
-                    self.search = evt.target.value;
+            filterHandouts: function(evt) {
+                var self = this;
+                self.search = evt.target.value;
 
-                    var obj = $.extend({}, {handouts:self.handouts});
-                    var handoutsList = obj.handouts;
-                    
-                    if(!self.search.length){
-                        self.handoutsList = handoutsList;
-                        return;
-                    }
+                var obj = $.extend({}, {
+                    handouts: self.handouts
+                });
+                var handoutsList = obj.handouts;
 
-                    var data = [];
-                    for(var i = 0; i < handoutsList.length; i++){
-                        var handout = handoutsList[i];
-                        if( handout.display_name.toLowerCase().includes(self.search.toLowerCase())){
-                            data.push(handout);
-                        }
-                    }
-                    self.handoutsList = data;
+                if (!self.search.length) {
+                    self.handoutsList = handoutsList;
+                    return;
+                }
 
-                },
-                init: function(){
-                    this.handoutsList = this.handouts;
+                var data = [];
+                for (var i = 0; i < handoutsList.length; i++) {
+                    var handout = handoutsList[i];
+                    if (handout.display_name.toLowerCase().includes(self.search.toLowerCase())) {
+                        data.push(handout);
+                    }
                 }
+                self.handoutsList = data;
+
             },
-            mounted: function(){
-                this.init();
+            init: function() {
+                this.handoutsList = this.handouts;
             }
-        });
-        
+        },
+        mounted: function() {
+            this.init();
+        }
+    });
 </script>

+ 46 - 10
resources/views/app/patient/note/dashboard-bu-b4-pure-soap.blade.php

@@ -1031,20 +1031,56 @@
                     <div class="">
                         <div class="d-flex align-items-center mb-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-2 mr-2">
-                                    {{ $reason->description}} ({{ $reason->code }})
-                                </span>
-                            @endforeach
-                        @else
-                            <div class="alert alert-info position-static">No note reasons</div>
-                        @endif
+                            <?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')

+ 44 - 8
resources/views/app/patient/note/dashboard-univ.blade.php

@@ -864,20 +864,56 @@
                             <div class="">
                                 <div class="d-flex align-items-center mb-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-2 mr-2">
-                                    {{ $reason->description}} ({{ $reason->code }})
-                                </span>
+                                    <?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
-                                    @else
-                                        <div class="alert alert-info">No note reasons</div>
+                                    @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')
                             <div class="p-3 border-bottom screen-only">

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

@@ -567,7 +567,7 @@ use App\Models\Handout;
                                 @if($pro->pro_type === 'ADMIN')
                                     <div class="ml-3">
                                         <div moe>
-                                            <a class="" href="" show start>Undo Sign As Hcp</a>
+                                            <a class="" href="" show start>Undo Sign As HCP</a>
                                             <form url="/api/note/adminUndoSignAsHcp" right>
                                                 <input type="hidden" name="uid" value="{{$note->uid}}">
                                                 <p>Undo HCP signature?</p>
@@ -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')

+ 2 - 3
resources/views/app/patient/note/rm-setup.blade.php

@@ -122,16 +122,15 @@
             </div> 
         @endif
         
-
         <div class="d-flex align-items-baseline mb-3">
             <div class="flex-grow-1">
                 <div>
                     <div class="d-flex align-items-center mb-1">
                         <span class="mr-2">RM Reasons:</span>
-                        @include('app.patient.partials.put-rm-reasons')
+                        @include('app.patient.partials.put-rm-reasons', ['recordType' => 'CLIENT', 'record' => $patient])
                     </div>
                     <div class="">
-                        @include('app.patient.partials.rm-reasons-display')
+                        @include('app.patient.partials.rm-reasons-display', ['recordType' => 'CLIENT', 'record' => $patient])
                     </div>
                 </div>
                 {{--<div>

+ 55 - 45
resources/views/app/patient/note/rpm-agreement.blade.php

@@ -43,53 +43,62 @@
     <?php $patient = $note->client; ?>
 
     <div class="border rounded p-3 mb-3 max-width-500px" id="rpm-agreement-reasons-{{$note->id}}">
-        <p><b>RPM Reasons</b></p>
+        <div class="d-flex align-items-center">
+            <p class="mb-0 mr-2"><b>RPM Reasons</b></p>
+            <div>@include('app.patient.partials.put-rm-reasons', ['recordType' => 'CLIENT', 'record' => $patient])</div>
+        </div>
         <div class="max-width-500px">
-            @if(!$patient->rmReasons || !count($patient->rmReasons))
-                <span class="text-secondary d-block mb-2">None</span>
-            @else
-                <div>
-                    @foreach($patient->rmReasons as $reason)
-                        <div class="border-bottom pb-1 mb-1 d-flex align-items-start">
-                            <b class="min-width-70px">{{$reason->code}}</b>
-                            <span class="max-width-200px mr-3">{{$reason->description}}</span>
-                            <div moe relative class="ml-auto">
-                                <a start show><i class="fa fa-edit"></i></a>
-                                <form url="/api/clientCmRmReason/updateBasic" class="mcp-theme-1" right target="#rpm-agreement-reasons-{{$note->id}}">
-                                    <input type="hidden" name="uid" value="{{$reason->uid}}">
-                                    <div class="mb-2">
-                                        <label class="text-sm mb-1 text-secondary">Code *</label>
-                                        <input type="text" class="form-control form-control-sm"
-                                               icd-autocomplete-code
-                                               name="code" value="{{$reason->code}}" required>
-                                    </div>
-                                    <div class="mb-2">
-                                        <label class="text-sm mb-1 text-secondary">Description</label>
-                                        <input type="text" class="form-control form-control-sm"
-                                               icd-autocomplete-description
-                                               name="description" value="{{$reason->description}}">
-                                    </div>
-                                    <div>
-                                        <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
-                                        <button cancel class="btn btn-sm btn-default border">Cancel</button>
-                                    </div>
-                                </form>
-                            </div>
-                            <div moe relative class="ml-2">
-                                <a start show><i class="fa fa-trash-alt text-danger on-hover-opaque"></i></a>
-                                <form url="/api/clientCmRmReason/remove" class="mcp-theme-1" right target="#rpm-agreement-reasons-{{$note->id}}">
-                                    <input type="hidden" name="uid" value="{{$reason->uid}}">
-                                    <p>Remove this RM reason?</p>
-                                    <div>
-                                        <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
-                                        <button cancel class="btn btn-sm btn-default border">Cancel</button>
-                                    </div>
-                                </form>
+            <div>
+                @include('app.patient.partials.rm-reasons-display', ['recordType' => 'CLIENT', 'record' => $patient])
+            </div>
+            {{--<div>
+                @if(!$patient->rmReasons || !count($patient->rmReasons))
+                    <span class="text-secondary d-block mb-2">None</span>
+                @else
+                    <div>
+                        @foreach($patient->rmReasons as $reason)
+                            <div class="border-bottom pb-1 mb-1 d-flex align-items-start">
+                                <b class="min-width-70px">{{$reason->code}}</b>
+                                <span class="max-width-200px mr-3">{{$reason->description}}</span>
+                                <div moe relative class="ml-auto">
+                                    <a start show><i class="fa fa-edit"></i></a>
+                                    <form url="/api/clientCmRmReason/updateBasic" class="mcp-theme-1" right target="#rpm-agreement-reasons-{{$note->id}}">
+                                        <input type="hidden" name="uid" value="{{$reason->uid}}">
+                                        <div class="mb-2">
+                                            <label class="text-sm mb-1 text-secondary">Code *</label>
+                                            <input type="text" class="form-control form-control-sm"
+                                                icd-autocomplete-code
+                                                name="code" value="{{$reason->code}}" required>
+                                        </div>
+                                        <div class="mb-2">
+                                            <label class="text-sm mb-1 text-secondary">Description</label>
+                                            <input type="text" class="form-control form-control-sm"
+                                                icd-autocomplete-description
+                                                name="description" value="{{$reason->description}}">
+                                        </div>
+                                        <div>
+                                            <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
+                                            <button cancel class="btn btn-sm btn-default border">Cancel</button>
+                                        </div>
+                                    </form>
+                                </div>
+                                <div moe relative class="ml-2">
+                                    <a start show><i class="fa fa-trash-alt text-danger on-hover-opaque"></i></a>
+                                    <form url="/api/clientCmRmReason/remove" class="mcp-theme-1" right target="#rpm-agreement-reasons-{{$note->id}}">
+                                        <input type="hidden" name="uid" value="{{$reason->uid}}">
+                                        <p>Remove this RM reason?</p>
+                                        <div>
+                                            <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
+                                            <button cancel class="btn btn-sm btn-default border">Cancel</button>
+                                        </div>
+                                    </form>
+                                </div>
                             </div>
-                        </div>
-                    @endforeach
-                </div>
-            @endif
+                        @endforeach
+                    </div>
+                @endif
+            </div>--}}
+            {{--
             <div class="d-flex align-items-baseline">
                 <div moe>
                     <a start show>+ Add From Dx</a>
@@ -141,6 +150,7 @@
                     </form>
                 </div>
             </div>
+            --}}
         </div>
     </div>
 

+ 51 - 12
resources/views/app/patient/partials/put-rm-reasons.blade.php

@@ -1,7 +1,46 @@
+<?php
+$rmDisplayData = [
+	'icd_1' => [
+		'title' => 'ICD 1',
+		'reason' => $record->rm_reason_icd1,
+		'description' => $record->rm_reason_icd1description
+	],
+	'icd_2' => [
+		'title' => 'ICD 2',
+		'reason' => $record->rm_reason_icd2,
+		'description' => $record->rm_reason_icd2description
+	],
+	'icd_3' => [
+		'title' => 'ICD 3',
+		'reason' => $record->rm_reason_icd3,
+		'description' => $record->rm_reason_icd3description
+	],
+	'icd_4' => [
+		'title' => 'ICD 4',
+		'reason' => $record->rm_reason_icd4,
+		'description' => $record->rm_reason_icd4description
+	],
+];
+if($recordType === 'NOTE'){
+	$rmDisplayData['icd_1']['reason'] = $record->note_reason_icd1;
+	$rmDisplayData['icd_1']['description'] = $record->note_reason_icd1description;
+	$rmDisplayData['icd_2']['reason'] = $record->note_reason_icd2;
+	$rmDisplayData['icd_2']['description'] = $record->note_reason_icd2description;
+	$rmDisplayData['icd_3']['reason'] = $record->note_reason_icd3;
+	$rmDisplayData['icd_3']['description'] = $record->note_reason_icd3description;
+	$rmDisplayData['icd_4']['reason'] = $record->note_reason_icd4;
+	$rmDisplayData['icd_4']['description'] = $record->note_reason_icd4description;
+}
+
+	$submitUrl = null;
+	if(@$recordType === 'CLIENT') $submitUrl = '/api/client/putRmReasons';
+	if(@$recordType === 'NOTE') $submitUrl = '/api/note/putReasons';
+	if(@$recordType === 'CARE_MONTH') $submitUrl = '/api/careMonth/putRmReasons';
+?>
 <div moe>
 	<a start show><i class="fas fa-edit on-hover-opaque"></i></a>
-	<form url="/api/client/putRmReasons" class="mcp-theme-1">
-		<input type="hidden" name="uid" value="{{$patient->uid}}">
+	<form url="{{ $submitUrl }}" class="mcp-theme-1">
+		<input type="hidden" name="uid" value="{{$record->uid}}">
 		<div>
 			<table class="table table-sm table-bordered">
 				<thead class="bg-light">
@@ -13,42 +52,42 @@
 				<tbody>
 					<tr>
 						<td>
-							<input type="text" class="icd-input" icd-autocomplete-code data-target="input[name=rmReasonIcd1Description]" name="rmReasonIcd1" value="{{ $patient->rm_reason_icd1 }}" placeholder="ICD 1" />
+							<input type="text" class="icd-input" icd-autocomplete-code data-target="input[name=reasonIcd1Description]" name="reasonIcd1" value="{{ $rmDisplayData['icd_1']['reason'] }}" placeholder="ICD 1" />
 						</td>
 						<td>
-							<input id="" type="text" class="form-control form-control-sm" icd-autocomplete-description name="rmReasonIcd1Description" value="{{ $patient->rm_reason_icd1description }}">
+							<input id="" type="text" class="form-control form-control-sm" icd-autocomplete-description name="reasonIcd1Description" value="{{ $rmDisplayData['icd_1']['description'] }}">
 						</td>
 					</tr>
 					<tr>
 						<td>
-							<input type="text" class="icd-input" icd-autocomplete-code name="rmReasonIcd2" data-target="input[name=rmReasonIcd2Description]" value="{{ $patient->rm_reason_icd2 }}" placeholder="ICD 2" />
+							<input type="text" class="icd-input" icd-autocomplete-code name="reasonIcd2" data-target="input[name=reasonIcd2Description]" value="{{ $rmDisplayData['icd_2']['reason'] }}" placeholder="ICD 2" />
 						</td>
 						<td>
-							<input type="text" class="form-control form-control-sm" icd-autocomplete-description name="rmReasonIcd2Description" value="{{ $patient->rm_reason_icd2description }}">
+							<input type="text" class="form-control form-control-sm" icd-autocomplete-description name="reasonIcd2Description" value="{{ $rmDisplayData['icd_2']['description'] }}">
 						</td>
 					</tr>
 					<tr>
 						<td>
-							<input type="text" class="icd-input" icd-autocomplete-code name="rmReasonIcd3" data-target="input[name=rmReasonIcd3Description]" value="{{ $patient->rm_reason_icd3 }}" placeholder="ICD 3" />
+							<input type="text" class="icd-input" icd-autocomplete-code name="reasonIcd3" data-target="input[name=reasonIcd3Description]" value="{{ $rmDisplayData['icd_3']['reason'] }}" placeholder="ICD 3" />
 						</td>
 						<td>
-							<input type="text" class="form-control form-control-sm" icd-autocomplete-description name="rmReasonIcd3Description" value="{{ $patient->rm_reason_icd3description }}">
+							<input type="text" class="form-control form-control-sm" icd-autocomplete-description name="reasonIcd3Description" value="{{ $rmDisplayData['icd_3']['description'] }}">
 						</td>
 					</tr>
 					<tr>
 						<td>
-							<input type="text" class="icd-input" icd-autocomplete-code name="rmReasonIcd4" data-target="input[name=rmReasonIcd4Description]" value="{{ $patient->rm_reason_icd4 }}" placeholder="ICD 4" />
+							<input type="text" class="icd-input" icd-autocomplete-code name="reasonIcd4" data-target="input[name=reasonIcd4Description]" value="{{ $rmDisplayData['icd_4']['reason'] }}" placeholder="ICD 4" />
 						</td>
 						<td>
-							<input type="text" class="form-control form-control-sm" icd-autocomplete-description name="rmReasonIcd4Description" value="{{ $patient->rm_reason_icd4description }}">
+							<input type="text" class="form-control form-control-sm" icd-autocomplete-description name="reasonIcd4Description" value="{{ $rmDisplayData['icd_4']['description'] }}">
 						</td>
 					</tr>
 				</tbody>
 			</table>
 		</div>
 		<div class="mb-2">
-			<label class="font-weight-bold mb-1">RM Reason Memo:</label>
-			<input type="text" class="form-control form-control-sm" name="rmReasonMemo" value="{{ $patient->rm_reason_memo }}">
+			<label class="font-weight-bold mb-1">{{ $recordType !== 'NOTE' ? 'RM' : '' }} Reason Memo:</label>
+			<input type="text" class="form-control form-control-sm" name="reasonMemo" value="{{ $recordType === 'NOTE' ? $record->note_reason_memo : $record->rm_reason_memo }}">
 		</div>
 		<div>
 			<button submit class="btn btn-sm btn-primary mr-1">Submit</button>

+ 30 - 31
resources/views/app/patient/partials/rm-reasons-display.blade.php

@@ -1,44 +1,43 @@
+<?php
+	$displayData = [
+		'icd_1' => [
+			'title' => 'ICD 1',
+			'reason' => $record->rm_reason_icd1,
+			'description' => $record->rm_reason_icd1description
+		],
+		'icd_2' => [
+			'title' => 'ICD 2',
+			'reason' => $record->rm_reason_icd2,
+			'description' => $record->rm_reason_icd2description
+		],
+		'icd_3' => [
+			'title' => 'ICD 3',
+			'reason' => $record->rm_reason_icd3,
+			'description' => $record->rm_reason_icd3description
+		],
+		'icd_4' => [
+			'title' => 'ICD 4',
+			'reason' => $record->rm_reason_icd4,
+			'description' => $record->rm_reason_icd4description
+		],
+	];
+?>
 <table class="table table-sm table-striped table-bordered mb-0">
 	<tbody>
+		@foreach($displayData as $rmKey=>$rmData)
 		<tr>
-			<td class="text-nowrap">ICD 1</td>
+			<td class="text-nowrap">{{ $rmData['title'] }}</td>
 			<td>
 				<div class="d-flex">
-					<span class="font-weight-bold text-sm mr-2" style="min-width: 60px;">{{ $patient->rm_reason_icd1 ? $patient->rm_reason_icd1. ':':'' }}</span>
-					<small class="text-muted text-sm">{{ $patient->rm_reason_icd1description }}</small>
-				</div>
-			</td>
-		</tr>
-		<tr>
-			<td class="text-nowrap">ICD 2</td>
-			<td>
-				<div class="d-flex">
-					<span class="font-weight-bold text-sm mr-2" style="min-width: 60px;">{{ $patient->rm_reason_icd2 ? $patient->rm_reason_icd2 . ':':'' }}</span>
-					<small class="text-muted text-sm">{{ $patient->rm_reason_icd2description }}</small>
-				</div>
-			</td>
-		</tr>
-		<tr>
-			<td class="text-nowrap">ICD 3</td>
-			<td>
-				<div class="d-flex">
-					<span class="font-weight-bold text-sm mr-2" style="min-width: 60px;">{{ $patient->rm_reason_icd3 ? $patient->rm_reason_icd3 . ':':'' }}</span>
-					<small class="text-muted text-sm">{{ $patient->rm_reason_icd3description }}</small>
-				</div>
-			</td>
-		</tr>
-		<tr>
-			<td class="text-nowrap">ICD 4</td>
-			<td>
-				<div class="d-flex">
-					<span class="font-weight-bold text-sm mr-2" style="min-width: 60px;">{{ $patient->rm_reason_icd4 ? $patient->rm_reason_icd4. ':' : '' }}</span>
-					<small class="text-muted text-sm">{{ $patient->rm_reason_icd4description }}</small>
+					<span class="font-weight-bold text-sm mr-2" style="min-width: 60px;">{{ $rmData['reason'] ? $rmData['reason']. ':':'' }}</span>
+					<small class="text-muted text-sm">{{ $rmData['description'] }}</small>
 				</div>
 			</td>
 		</tr>
+		@endforeach
 		<tr>
 			<td class="text-nowrap">Memo</td>
-			<td class="text-muted text-sm">{{ $patient->rm_reason_memo }}</td>
+			<td class="text-muted text-sm">{{ $record->rm_reason_memo }}</td>
 		</tr>
 	</tbody>
 </table>

+ 2 - 2
resources/views/app/patient/partials/rm-setup.blade.php

@@ -106,10 +106,10 @@
         </div>
         <div class="d-flex align-items-center mb-1">
             <span class="mr-2">RM Reasons:</span>
-            @include('app.patient.partials.put-rm-reasons')
+            @include('app.patient.partials.put-rm-reasons', ['recordType' => 'CLIENT', 'record' => $patient])
         </div>
         <div class="pl-3" style="max-width: 570px;">
-            @include('app.patient.partials.rm-reasons-display')
+            @include('app.patient.partials.rm-reasons-display', ['recordType' => 'CLIENT', 'record' => $patient])
         </div>
         {{--<div class="d-flex align-items-baseline mb-3">
             <span class="width-200px">RM Reasons:</span>

+ 14 - 0
resources/views/app/patient/partials/update-best-time-to-call.blade.php

@@ -0,0 +1,14 @@
+<div moe relative>
+	<a start show><i class="fas fa-edit on-hover-opaque"></i></a>
+	<form url="/api/client/updateBestTimeToCall" class="mcp-theme-1" right>
+		<input type="hidden" name="uid" value="{{$patient->uid}}">
+		<div class="mb-2">
+			<label>Best Time To Call</label>
+			<input type="text" class="form-control form-control-sm" name="bestTimeToCall" value="{{ $patient->best_time_to_call }}" />
+		</div>
+		<div>
+			<button submit class="btn btn-sm btn-primary mr-1">Submit</button>
+			<button cancel class="btn btn-sm btn-default border">Cancel</button>
+		</div>
+	</form>
+</div>

+ 22 - 11
resources/views/app/patient/primary-coverage-manual-determination-commercial-modal.blade.php

@@ -1,19 +1,30 @@
 <div id="manual-determination-form-{{$patient->uid}}">
 	@php
-	$cpc = $patient->latestClientPrimaryCoverage;
+	$cpc = $patient->latestClientPrimaryCoverage;	
 	@endphp
+	
 	<div class="p-3">
-		@if($cpc->mcd_number)
-		<div class="mb-2">
-			<span><b>Medicaid Number:</b> {{$cpc->mcd_number}}</span>
-			<span class="ml-3"><b>Medicaid State:</b> {{$cpc->mcd_payer_id ? $cpc->mcdPayer->name : '-'}}</span>
-		</div>
-		@endif
-		@if($cpc->mcr_number)
-		<div class="mb-2">
-			<b>Medicare Number:</b> {{$cpc->mcr_number}}
+		<div class="d-flex flex-wrap">
+			@if($cpc->mcd_number)
+			<div class="mb-2 mr-2">
+				<span><b>Medicaid Number:</b> {{$cpc->mcd_number}}</span>
+				<span class="ml-3"><b>Medicaid State:</b> {{$cpc->mcd_payer_id ? $cpc->mcdPayer->name : '-'}}</span>
+			</div>
+			@endif
+			@if($cpc->commercial_payer_id && $cpc->payer)
+			<div class="mb-2 mr-2">
+				<span><b>Payer:</b> {{$cpc->payer->name}}</span>
+			</div>
+			@endif
+			@if($cpc->mcr_number)
+			<div class="mb-2 mr-2">
+				<b>Medicare Number:</b> {{$cpc->mcr_number}}
+			</div>
+			@endif
+			<div class="mb-2 mr-2">
+				<span><b>Is Covered:</b> {{$cpc->is_covered}}</span>
+			</div>
 		</div>
-		@endif
 		<form @submit.prevent="submitForm" method="post" class="mcp-theme-1">
 			<input type="hidden" name="clientPrimaryCoverageUid" value="{{$cpc->uid}}" class="form-control input-sm" />
 			<div class="row">

+ 1 - 1
resources/views/app/practice-management/rm-launch-and-clean.blade.php

@@ -131,7 +131,7 @@
                     <th>Company Location Id</th>
                     <th>Has Anyone Interacted With Client About Rm Outside Note</th>
                     <th>Rm Num Measurements Not Stamped By Mcp</th>
-                    <th>Rm Num Measurements Not Stamped By Non Hcp</th>
+                    <th>Rm Num Measurements Not Stamped By Non HCP</th>
                     <th>Rm Num Measurements Not Stamped By Rmm</th>
                     <th>Rm Num Measurements Not Stamped By Rme</th>
                     <th>Has Mcp Rm Interacted By Note</th>

+ 9 - 3
resources/views/layouts/patient-header.blade.php

@@ -84,7 +84,7 @@ $addressParts .= implode(", ", $addressPart2);
           (<b>{{round($patient->most_recent_cellular_weight_value, 1)}}</b>@if($patient->most_recent_cellular_weight_measurement_at), {{friendly_date_short($patient->most_recent_cellular_weight_measurement_at)}}@endif)
           @endif
         </div>
-        
+
 
         <?php $currentCareMonth = $patient->currentCareMonth(); ?>
         @if($currentCareMonth && ($pro->pro_type === 'ADMIN' || $pro->id === $currentCareMonth->mcp_pro_id))
@@ -296,7 +296,7 @@ $addressParts .= implode(", ", $addressPart2);
 
 
     @if(!$patient->getPrimaryCoverage() || $patient->getPrimaryCoverageStatus() !== 'YES')
-    <div class="d-flex bg-light p-2 border header-coverage-status">
+    <div class="d-flex bg-light p-2 border header-coverage-status" style="max-width: 305px;">
       @include('app.patient.coverage-status')
     </div>
     @endif
@@ -485,7 +485,7 @@ $addressParts .= implode(", ", $addressPart2);
       @endif
     </div>
 
-    <div class="bg-light p-2 border" style="max-width: 215px;">
+    <div class="bg-light p-2 border ml-auto" style="max-width: 215px;">
       <div>
         <div class="d-flex">
           <label class="">Sticky Note:</label>
@@ -593,6 +593,12 @@ $addressParts .= implode(", ", $addressPart2);
             </a>
           </div>
         </li>
+        <li class="mb-1 d-flex align-items-start">
+          <div class="d-inline-flex screen-only">
+            <span class="mr-2"><b>Best Time to Call: </b> <i class="fas fa-clock"></i> {{ $patient->best_time_to_call ?? '-' }}</span>
+            @include('app.patient.partials.update-best-time-to-call')
+          </div>
+        </li>
       </ul>
 
     </div>