Samson Mutunga 3 jaren geleden
bovenliggende
commit
a64976eff8

+ 8 - 0
app/Http/Controllers/AdminController.php

@@ -135,6 +135,14 @@ class AdminController extends Controller
         return view('app.mcp.notes', compact('notes'));
     }
 
+    public function notes_pending_summary_suggestion(Request $request){
+        $pro = $this->performer->pro;
+        $data = [
+            'records' => $pro->get_notes_pending_summary_suggestion_as_admin()
+        ];
+        return view('app.admin.notes_pending_summary_suggestion', $data);
+    }
+
     public function appointments(Request $request)
     {
         $appointments = Appointment::paginate(5);

+ 9 - 0
app/Http/Controllers/McpController.php

@@ -286,6 +286,15 @@ class McpController extends Controller
         ];
         return view('app.mcp.notes_pending_signature', $data);
     }
+
+    public function notes_pending_summary_suggestion(Request $request){
+        $pro = $this->performer->pro;
+        $data = [
+            'records' => $pro->get_notes_pending_summary_suggestion_as_mcp()
+        ];
+        return view('app.mcp.notes_pending_summary_suggestion', $data);
+    }
+
     public function notes_pending_billing(Request $request){
         $data = [
             'records' => Note::where('hcp_pro_id', $this->performer->pro->id)

+ 3 - 28
app/Http/Controllers/NoteController.php

@@ -107,33 +107,8 @@ class NoteController extends Controller
             $pro = $performer->pro;
 
             $segment = Segment::where('uid', $segmentUid)->first();
-            $segmentTemplate = $segment->segmentTemplate;
 
-            $note = $segment->note;
-            $patient = $note->client;
-
-            $data = compact('performer', 'pro', 'segment', 'segmentTemplate', 'note', 'patient');
-
-
-            $summaryHtml = view('app.patient.segment-templates.' . $segmentTemplate->internal_name . '/summary', $data)->render();
-
-            $wizardPowered = [
-                'intake_medications',
-                'plan_medications',
-                'intake_problems',
-                'plan_problems',
-                'intake_goals',
-                'plan_goals',
-                'intake_allergies',
-                'plan_allergies',
-                'intake_care_team',
-                'plan_care_team',
-                'intake_supplements',
-                'plan_supplements'
-            ];
-            if(!in_array($segmentTemplate->internal_name, $wizardPowered)) {
-                $editHtml = view('app.patient.segment-templates.' . $segmentTemplate->internal_name . '/edit', $data)->render();
-            }
+            $recalculatedHtml = $segment->getRecalculatedHtml($performer);
 
         } catch (\Throwable $e) {
             return response()->json([
@@ -144,8 +119,8 @@ class NoteController extends Controller
 
         return response()->json([
             'success'=>true,
-            'summaryHtml' => $summaryHtml,
-            'editHtml' => $editHtml
+            'summaryHtml' => $recalculatedHtml['summaryHtml'],
+            'editHtml' => $recalculatedHtml['editHtml'],
         ]);
     }
 

+ 1 - 1
app/Http/Controllers/PracticeManagementController.php

@@ -2462,7 +2462,7 @@ ORDER BY c.name_last, c.name_first
         $today = new DateTime(get_current_date());
         $diff = $lastDateOfMonth->diff($today);
         $daysBetweenNowAndEndmonth = $diff->days;
-        $minRequiredMeasurements = 16 - $daysBetweenNowAndEndmonth;
+        $minRequiredMeasurements = 16 - $daysBetweenNowAndEndmonth -1;
 
         $numOfMeasurements = $request->get('num_of_measurements'); //16_or_more, 12_or_more
         $hasRecentVisit = $request->get('has_recent_visit'); //yes no

+ 41 - 0
app/Models/Pro.php

@@ -369,6 +369,47 @@ class Pro extends Model
             ->count();
     }
 
+    function get_notes_pending_summary_suggestion_as_mcp_query(){
+        $segmentsWithProposedSummarySuggestion = Segment::whereNotNull('proposed_segment_summary_suggestion_id')->get();
+        $noteIDs = [];
+        foreach($segmentsWithProposedSummarySuggestion as $seg){
+            $noteIDs[] = $seg->note_id;
+        }
+        return Note::where('hcp_pro_id', $this->id)
+            ->where('is_cancelled', '<>', true)
+            ->where('is_core_note', '<>', true)
+            ->where('is_signed_by_hcp', true)
+            ->whereIn('id', $noteIDs);
+    }
+
+    function get_notes_pending_summary_suggestion_count_as_mcp(){
+        return $this->get_notes_pending_summary_suggestion_as_mcp_query()->count();
+    }
+
+    function get_notes_pending_summary_suggestion_as_mcp(){
+        return $this->get_notes_pending_summary_suggestion_as_mcp_query()->get();
+    }
+
+    function get_notes_pending_summary_suggestion_as_admin_query(){
+        $segmentsWithProposedSummarySuggestion = Segment::whereNotNull('proposed_segment_summary_suggestion_id')->get();
+        $noteIDs = [];
+        foreach($segmentsWithProposedSummarySuggestion as $seg){
+            $noteIDs[] = $seg->note_id;
+        }
+        return Note::where('is_cancelled', '<>', true)
+            ->where('is_core_note', '<>', true)
+            ->where('is_signed_by_hcp', true)
+            ->whereIn('id', $noteIDs);
+    }
+
+    function get_notes_pending_summary_suggestion_count_as_admin(){
+        return $this->get_notes_pending_summary_suggestion_as_admin_query()->count();
+    }
+
+    function get_notes_pending_summary_suggestion_as_admin(){
+        return $this->get_notes_pending_summary_suggestion_as_admin_query()->get();
+    }
+
     function get_notes_pending_billing_count_as_mcp() {
         return Note::where('hcp_pro_id', $this->id)
             ->where('is_cancelled', '<>', true)

+ 51 - 0
app/Models/Segment.php

@@ -23,4 +23,55 @@ class Segment extends Model
     public function shortName(){
         return trim(array_reverse(explode('>', $this->display_title))[0]);
     }
+
+    public function summarySuggestions()
+    {
+        return $this->hasMany(SegmentSummarySuggestion::class, 'segment_id', 'id')->orderBy('created_at', 'DESC');
+    }
+
+    public function proposedSegmentSummarySuggestion() {
+        return $this->hasOne(SegmentSummarySuggestion::class, 'id', 'proposed_segment_summary_suggestion_id');
+    }
+
+    public function acceptedSegmentSummarySuggestion() {
+        return $this->hasOne(SegmentSummarySuggestion::class, 'id', 'accepted_segment_summary_suggestion_id');
+    }
+
+    public function getRecalculatedHtml($performer){
+        $pro = $performer->pro;
+        $segment = $this; 
+        $segmentTemplate = $this->segmentTemplate;
+
+        $note = $this->note;
+        $patient = $note->client;
+
+        $data = compact('performer', 'pro', 'segment', 'segmentTemplate', 'note', 'patient');
+
+
+        $summaryHtml = view('app.patient.segment-templates.' . $segmentTemplate->internal_name . '/summary', $data)->render();
+
+        $wizardPowered = [
+            'intake_medications',
+            'plan_medications',
+            'intake_problems',
+            'plan_problems',
+            'intake_goals',
+            'plan_goals',
+            'intake_allergies',
+            'plan_allergies',
+            'intake_care_team',
+            'plan_care_team',
+            'intake_supplements',
+            'plan_supplements'
+        ];
+        if(!in_array($segmentTemplate->internal_name, $wizardPowered)) {
+            $editHtml = view('app.patient.segment-templates.' . $segmentTemplate->internal_name . '/edit', $data)->render();
+        }
+
+        return [
+            'summaryHtml'=> $summaryHtml ,
+            'editHtml' => $editHtml
+        ];
+    }
+
 }

+ 13 - 0
app/Models/SegmentSummaryChange.php

@@ -0,0 +1,13 @@
+<?php
+
+namespace App\Models;
+
+# use Illuminate\Database\Eloquent\Model;
+
+class SegmentSummaryChange extends Model
+{
+    protected $table = 'segment_summary_change';
+
+   
+
+}

+ 13 - 0
app/Models/SegmentSummarySuggestion.php

@@ -0,0 +1,13 @@
+<?php
+
+namespace App\Models;
+
+# use Illuminate\Database\Eloquent\Model;
+
+class SegmentSummarySuggestion extends Model
+{
+    protected $table = 'segment_summary_suggestion';
+
+   
+
+}

+ 47 - 0
resources/views/app/admin/notes_pending_summary_suggestion.blade.php

@@ -0,0 +1,47 @@
+<div class="p-3 mcp-theme-1">
+    <div class="card border-top-0">
+
+        <div class="card-header px-2 py-1 hide-inside-popup border-bottom-0">
+            <strong class="mr-4">
+                <i class="fas fa-sticky-note"></i>
+                Notes With Pending Summary Suggestion
+            </strong>
+        </div>
+
+        <div class="card-body p-0 border-top-0 pb-0">
+            <table class="table table-sm border-top table-striped mb-0">
+                <thead class="bg-light">
+                <tr>
+                    <th class="border-0">Date</th>
+                    <th class="border-0">Patient</th>
+                    <th class="border-0">ICD</th>
+                    <th class="border-0">Status</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($records as $row)
+                    <tr>
+                        <td>
+                            <a native target="_blank" href="/patients/view/{{ $row->client->uid }}/notes/view/{{ $row->uid }}?suggestion_mode=on">
+                                {{ friendlier_date($row->effective_dateest) }}
+                            </a>
+                        </td>
+                        <td>{{$row->client->displayName()}}</td>
+                        <td>
+                            @foreach($row->reasons as $reason)
+                                <span class="pr-2">{{$reason->code}}</span>
+                            @endforeach
+                            @if(!$row->reasons || !count($row->reasons))
+                                -
+                            @endif
+                        </td>
+                        <td>
+                            {{$row->overallStatus()}}
+                        </td>
+                    </tr>
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+    </div>
+</div>

+ 12 - 0
resources/views/app/dashboard-admin.blade.php

@@ -36,6 +36,18 @@
                                     <th class="px-2 text-center">{{$pro->get_notes_pending_signature_count_as_mcp()}}</th>
                                     <th class="pl-2">Notes Pending Signature</th>
                                 </tr>
+                                <tr>
+                                    <th class="px-2 text-center">{{$pro->get_notes_pending_summary_suggestion_count_as_admin()}}</th>
+                                    <th class="pl-2">
+                                        <a href="{{ route('admin.notes_pending_summary_suggestion') }}"
+                                           native target="_blank"
+                                           open-in-stag-popup
+                                           popup-style="tall"
+                                           title="Notes With Pending Summary Suggestion">
+                                            Notes With Pending Summary Suggestion
+                                        </a>
+                                    </th>
+                                </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_notes_pending_billing_count_as_mcp()}}</th>
                                     <th class="pl-2">Notes Pending Billing</th>

+ 12 - 0
resources/views/app/dashboard-mcp.blade.php

@@ -63,6 +63,18 @@
                                         </a>
                                     </th>
                                 </tr>
+                                <tr>
+                                    <th class="px-2 text-center">{{$pro->get_notes_pending_summary_suggestion_count_as_mcp()}}</th>
+                                    <th class="pl-2">
+                                        <a href="{{ route('mcp.notes_pending_summary_suggestion') }}"
+                                           native target="_blank"
+                                           open-in-stag-popup
+                                           popup-style="tall"
+                                           title="Notes With Pending Summary Suggestion">
+                                            Notes With Pending Summary Suggestion
+                                        </a>
+                                    </th>
+                                </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_notes_pending_billing_count_as_mcp()}}</th>
                                     <th class="pl-2">

+ 47 - 0
resources/views/app/mcp/notes_pending_summary_suggestion.blade.php

@@ -0,0 +1,47 @@
+<div class="p-3 mcp-theme-1">
+    <div class="card border-top-0">
+
+        <div class="card-header px-2 py-1 hide-inside-popup border-bottom-0">
+            <strong class="mr-4">
+                <i class="fas fa-sticky-note"></i>
+                Notes With Pending Summary Suggestion
+            </strong>
+        </div>
+
+        <div class="card-body p-0 border-top-0 pb-0">
+            <table class="table table-sm border-top table-striped mb-0">
+                <thead class="bg-light">
+                <tr>
+                    <th class="border-0">Date</th>
+                    <th class="border-0">Patient</th>
+                    <th class="border-0">ICD</th>
+                    <th class="border-0">Status</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($records as $row)
+                    <tr>
+                        <td>
+                            <a native target="_blank" href="/patients/view/{{ $row->client->uid }}/notes/view/{{ $row->uid }}?suggestion_mode=on">
+                                {{ friendlier_date($row->effective_dateest) }}
+                            </a>
+                        </td>
+                        <td>{{$row->client->displayName()}}</td>
+                        <td>
+                            @foreach($row->reasons as $reason)
+                                <span class="pr-2">{{$reason->code}}</span>
+                            @endforeach
+                            @if(!$row->reasons || !count($row->reasons))
+                                -
+                            @endif
+                        </td>
+                        <td>
+                            {{$row->overallStatus()}}
+                        </td>
+                    </tr>
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+    </div>
+</div>

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

@@ -355,6 +355,26 @@
             </div>
             @endif
 
+
+            @if($note->is_signed_by_hcp)
+                @php 
+                    $suggestionMode = request()->get('suggestion_mode');
+                @endphp 
+                @if($suggestionMode == 'on')
+                    <a class="ml-3 native font-weight-normal refresh-segment c-pointer screen-only"
+                        href="/patients/view/{{$note->client->uid}}/notes/view/{{$note->uid}}?suggestion_mode=off"
+                        title="Update with latest patient data">
+                        Toggle Suggestion Mode Off
+                    </a>
+                @else 
+                    <a class="ml-3 native font-weight-normal refresh-segment c-pointer screen-only"
+                        href="/patients/view/{{$note->client->uid}}/notes/view/{{$note->uid}}?suggestion_mode=on"
+                        title="Update with latest patient data">
+                        Turn Suggestion Mode On
+                    </a>
+                @endif
+            @endif
+
             <div class="ml-auto d-flex align-items-start">
                 <div class="">
                     <div>

+ 10 - 1
resources/views/app/patient/note/note-segment-list-rhs.blade.php

@@ -3,6 +3,9 @@
     $previousHeading = null;
     $previousSubHeading = null;
 	$rhsSegments = config('app.note_rhs_segments');
+
+    $suggestionModeOn = request()->get('suggestion_mode') == 'on' && $note->is_signed_by_hcp 
+
     ?>
     @foreach($rhsSegments as $segmentIName)
 		<?php $segment = $note->getSegmentByInternalName($segmentIName); ?>
@@ -25,7 +28,13 @@
 			$previousHeading = $segment->heading;
 		}
 		?>
-        <div>@include('app.patient.note.segment')</div>
+        <div>
+			@if($suggestionModeOn)
+				@include('app.patient.note.segment.suggestions_and_updates')
+			@else 
+				@include('app.patient.note.segment')
+			@endif
+		</div>
         @endif
     @endforeach
     <?php

+ 13 - 2
resources/views/app/patient/note/note-segment-list.blade.php

@@ -1,3 +1,6 @@
+<?php  
+    $suggestionModeOn = request()->get('suggestion_mode') == 'on' && $note->is_signed_by_hcp 
+?> 
 <div class="segments-list" id="note-segments-list">
     <?php
     $previousHeading = null;
@@ -25,12 +28,20 @@
         ?>
 		@if($note->visitTemplate->internal_name !== 'soap_visit')
 			<div class="{{$segment->segmentTemplate->internal_name === 'medrisk_vigilence' ? 'd-none' : ''}}">
-				@include('app.patient.note.segment')
+                @if($suggestionModeOn)
+                    @include('app.patient.note.segment.suggestions_and_updates')
+                @else 
+                    @include('app.patient.note.segment')
+                @endif
 			</div>
 		@else
 			@if(in_array($segment->segmentTemplate->internal_name, config('app.note_lhs_segments')))
 				<div>
-					@include('app.patient.note.segment')
+                    @if($suggestionModeOn)
+                        @include('app.patient.note.segment.suggestions_and_updates')
+                    @else 
+                        @include('app.patient.note.segment')
+                    @endif
 				</div>
 			@endif
 		@endif

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

@@ -62,6 +62,7 @@
                 <i class="fa fa-sync"></i>
             </a>
 
+           
             <!-- if intake - link to plan segment-->
             <?php
             $isIntake = strpos($iName, 'intake_') === 0;
@@ -101,9 +102,14 @@
     <?php if(!$isLSSegment): ?>
 
     <div class="d-none if-not-edit inset-comment summary-container {{$iName === 'medrisk_vigilence' ? 'px-0' : 'p-2 pl-4'}}">
-        {!! $segment->summary_html !!}
+        @if($note->is_signed_by_hcp && $segment->accepted_suggestion_summary_html)
+            {!! $segment->accepted_suggestion_summary_html !!}
+        @else 
+            {!! $segment->summary_html !!}
+        @endif 
     </div>
 
+
     <?php
     $wizardPowered = [
         'intake_medications',

+ 107 - 0
resources/views/app/patient/note/segment/suggestions_and_updates.blade.php

@@ -0,0 +1,107 @@
+
+<?php $iName = $segment->segmentTemplate->internal_name; ?>
+<?php $isLSSegment = strpos($iName, 'lifestyle_') === 0; ?>
+<div class="ml-2">
+    @if($iName === 'medrisk_vigilence')
+        <div class="font-weight-bold text-center flex-grow-1">
+            <div class="on-hover-hide font-weight-normal text-info font-weight-bold text-center pt-2 font-size-11">MRV</div>
+            <span class="on-hover-only text-left">MedRisk Vigilence</span>
+        </div>
+    @else
+        <span class="font-weight-bold d-flex align-items-center {{$isLSSegment || $iName === 'medrisk_vigilence' ? '' : 'xxxmb-2'}}" style="">
+            <span style="color: black; text-decoration: underline; font-size: 13px;">
+    @if($isLSSegment && $iName === 'lifestyle_general')
+                Lifestyle
+            @else
+                {{$segment->display_title}}
+            @endif
+    </span>
+            @if($segment->heading && $iName !== 'medrisk_vigilence')
+                <span class="text-secondary ml-2 text-sm font-weight-normal">({{$segment->heading}})</span>
+            @endif
+        </span>
+    @endif
+
+    @if($isLSSegment)
+        @if($iName === 'lifestyle_general')
+            <a href="#" class="ls-segment-trigger ml-2" data-target="lifestyle_general">General</a>
+            <span class="mx-2 text-secondary text-sm">|</span>
+            <a href="#" class="ls-segment-trigger" data-target="lifestyle_nutrition">Nutrition</a>
+            <span class="mx-2 text-secondary text-sm">|</span>
+            <a href="#" class="ls-segment-trigger" data-target="lifestyle_physical_activity">Physical Act.</a>
+            <span class="mx-2 text-secondary text-sm">|</span>
+            <a href="#" class="ls-segment-trigger" data-target="lifestyle_sleep">Sleep</a>
+            <span class="mx-2 text-secondary text-sm">|</span>
+            <a href="#" class="ls-segment-trigger" data-target="lifestyle_social">Social Relns.</a>
+            <span class="mx-2 text-secondary text-sm">|</span>
+            <a href="#" class="ls-segment-trigger" data-target="lifestyle_substances">Subst. Use</a>
+            <span class="mx-2 text-secondary text-sm">|</span>
+            <a href="#" class="ls-segment-trigger" data-target="lifestyle_stress">Stress</a>
+        @else
+            <span class="text-info ml-auto font-weight-normal">(click to view)</span>
+        @endif
+    @endif
+</div>
+@if($segment->proposedSegmentSummarySuggestion)
+    <div class=" m-2 p-2">
+        {!! $segment->proposedSegmentSummarySuggestion->summary_html !!}
+        <div class="d-flex">
+            @if($note->hcp_pro_id == $performer->pro_id)
+            <div class="d-block mt-1 mr-2" moe>
+                <form url="/api/segment/acceptProposedSegmentSummarySuggestion" show>
+                    <input type="hidden" name="uid" value="{{$segment->uid}}">
+                    <div class="mb-0">
+                        <button class="btn btn-primary btn-sm" submit>Accept</button>
+                    </div>
+                </form>
+            </div>
+            <div class="d-block mt-1  mr-2" moe>
+                <form url="/api/segment/rejectProposedSegmentSummarySuggestion" show>
+                    <input type="hidden" name="uid" value="{{$segment->uid}}">
+                    <div class="mb-0">
+                        <button class="btn btn-primary btn-sm" submit>Reject</button>
+                    </div>
+                </form>
+            </div>
+            @endif
+
+            <div class="d-block mt-1" moe>
+                <a class="btn btn-outline-primary btn-sm " start>Override proposed suggestion</a>
+                <form url="/api/segment/overrideProposedSegmentSummarySuggestion">
+                    <input type="hidden" name="uid" value="{{$segment->uid}}">
+                    <textarea name="proposedSuggestedSummaryHtml" class="form-control" rte>{!! $segment->proposedSegmentSummarySuggestion->summary_html !!}</textarea>
+                    <div class="mb-0">
+                        <button class="btn btn-primary btn-sm" submit>Submit</button>
+                        <button class="btn btn-default border btn-sm" cancel>Cancel</button>
+                    </div>
+                </form>
+            </div>
+        </div>
+    </div>
+@else
+    <div class=" ml-2 border m-2 p-2">
+        @if($segment->accepted_suggestion_summary_html)
+            {!! $segment->accepted_suggestion_summary_html !!}
+        @else 
+            {!! $segment->summary_html !!}
+        @endif 
+        <hr>
+        <div class="d-block mt-1" moe>
+            <a href="" start>Propose suggestion</a>
+            <form url="/api/segment/proposeSegmentSummarySuggestion">
+                <input type="hidden" name="uid" value="{{$segment->uid}}">
+                <textarea name="proposedSuggestedSummaryHtml" rte>
+                    @if($segment->accepted_suggestion_summary_html)
+                        {!! $segment->accepted_suggestion_summary_html !!}
+                    @else 
+                        {!! $segment->getRecalculatedHtml($performer)['summaryHtml'] !!}
+                    @endif 
+                </textarea>
+                <div class="mb-0 mt-2">
+                    <button class="btn btn-primary btn-sm" submit>Submit</button>
+                    <button class="btn btn-default border btn-sm" cancel>Cancel</button>
+                </div>
+            </form>
+        </div>
+    </div>
+@endif

+ 245 - 30
resources/views/app/patient/segment-templates/covid_follow-up/edit.blade.php

@@ -7,10 +7,35 @@ $endPoint = 'upsertGlobalSingleton';
 
 $point = Point::getGlobalSingletonOfCategory($patient, 'COVID_FOLLOW_UP', true);
 $contentData = [
-        "ans_has_received_printed_cdc_matrials" => null, // yes/no
+        "ans_has_received_printed_cdc_covid_matrials" => null, // yes/no
         "ans_has_signed_up_for_gvt_covid_kit" => null, // yes/no/not_sure
         "ans_apply_gvt_covid_kit_for_patient" => null, // yes/no/not_sure
-        "ans_has_reviewed_printed_cdc_matrials" => null, // yes/no
+        "ans_has_reviewed_printed_cdc_covid_matrials" => null, // yes/no,
+        "cdc_self_protection_emphasis_vaccination" => null,
+        "cdc_self_protection_emphasis_mask_wearing" => null,
+        "cdc_self_protection_emphasis_mask_wearing" => null,
+        "cdc_self_protection_emphasis_social_distancing" => null,
+        "cdc_self_protection_emphasis_avoid_crowds" => null,
+        "cdc_self_protection_emphasis_test_appropriately" => null,
+        "cdc_self_protection_emphasis_wash_hands_often" => null,
+        "cdc_self_protection_emphasis_cover_coughs" => null,
+        "cdc_self_protection_emphasis_disinfect" => null,
+        "cdc_self_protection_emphasis_monitor_health_daily" => null,
+        "cdc_self_protection_emphasis_quarantine" => null,
+        "cdc_self_protection_emphasis_isolation" => null,
+        "cdc_self_protection_emphasis_travel_precaution" => null,
+        "ans_has_answered_all_covid_19_questions" => null,
+        "ans_has_received_printed_cdc_mental_health_matrials" => null, // yes/no
+        "ans_educated_patient_on_mental_health_screening" => null, // yes/no
+        "ans_how_patient_is_doing_regarding_stress" => null,
+        "phq_score" => null,
+        "phq_action_taken" => null,
+        "cdc_stress_emphasis_covid_19_effects" => null,
+        "cdc_stress_emphasis_stressful_challenges" => null,
+        "cdc_stress_emphasis_public_health_actions" => null,
+        "cdc_stress_emphasis_physical_reactions" => null,
+        "cdc_stress_emphasis_coping_with_stress" => null,
+        "ans_hypertension_rpm_education" => null,
 
 ];
 
@@ -30,11 +55,11 @@ if (!!@$point->data) {
                         <label class="mb-1">Have you received printed materials from CDC, “<b>How to Protect Yourself & Others</b>”?</label>
                         <div class="d-inline-flex ml-2 align-items-baseline pt-1">
                                 <label class="my-0 mr-3 d-flex align-items-center">
-                                        <input type="radio" data-name="ans_has_received_printed_cdc_matrials" name="ans_has_received_printed_cdc_matrials" {{@$contentData['ans_has_received_printed_cdc_matrials'] && @$contentData['ans_has_received_printed_cdc_matrials'] === 'yes' ? 'checked' : ''}} value="yes">
+                                        <input type="radio" data-name="ans_has_received_printed_cdc_covid_matrials" name="ans_has_received_printed_cdc_covid_matrials" {{@$contentData['ans_has_received_printed_cdc_covid_matrials'] && @$contentData['ans_has_received_printed_cdc_covid_matrials'] === 'yes' ? 'checked' : ''}} value="yes">
                                         <span class="ml-1">Yes</span>
                                 </label>
                                 <label class="my-0 mr-3 d-flex align-items-center">
-                                        <input type="radio" data-name="ans_has_received_printed_cdc_matrials" name="ans_has_received_printed_cdc_matrials" {{@$contentData['ans_has_received_printed_cdc_matrials'] && @$contentData['ans_has_received_printed_cdc_matrials'] === 'no' ? 'checked' : ''}} value="no">
+                                        <input type="radio" data-name="ans_has_received_printed_cdc_covid_matrials" name="ans_has_received_printed_cdc_covid_matrials" {{@$contentData['ans_has_received_printed_cdc_covid_matrials'] && @$contentData['ans_has_received_printed_cdc_covid_matrials'] === 'no' ? 'checked' : ''}} value="no">
                                         <span class="ml-1">No</span>
                                 </label>
                         </div>
@@ -89,11 +114,11 @@ if (!!@$point->data) {
                         </div>
                         <div class="d-inline-flex ml-2 align-items-baseline pt-1">
                                 <label class="my-0 mr-3 d-flex align-items-center">
-                                        <input type="radio" data-name="ans_has_reviewed_printed_cdc_matrials" name="ans_has_reviewed_printed_cdc_matrials" {{@$contentData['ans_has_reviewed_printed_cdc_matrials'] && @$contentData['ans_has_reviewed_printed_cdc_matrials'] === 'yes' ? 'checked' : ''}} value="yes">
+                                        <input type="radio" data-name="ans_has_reviewed_printed_cdc_covid_matrials" name="ans_has_reviewed_printed_cdc_covid_matrials" {{@$contentData['ans_has_reviewed_printed_cdc_covid_matrials'] && @$contentData['ans_has_reviewed_printed_cdc_covid_matrials'] === 'yes' ? 'checked' : ''}} value="yes">
                                         <span class="ml-1">Yes</span>
                                 </label>
                                 <label class="my-0 mr-3 d-flex align-items-center">
-                                        <input type="radio" data-name="ans_has_reviewed_printed_cdc_matrials" name="ans_has_reviewed_printed_cdc_matrials" {{@$contentData['ans_has_reviewed_printed_cdc_matrials'] && @$contentData['ans_has_reviewed_printed_cdc_matrials'] === 'no' ? 'checked' : ''}} value="no">
+                                        <input type="radio" data-name="ans_has_reviewed_printed_cdc_covid_matrials" name="ans_has_reviewed_printed_cdc_covid_matrials" {{@$contentData['ans_has_reviewed_printed_cdc_covid_matrials'] && @$contentData['ans_has_reviewed_printed_cdc_covid_matrials'] === 'no' ? 'checked' : ''}} value="no">
                                         <span class="ml-1">No</span>
                                 </label>
                         </div>
@@ -113,19 +138,230 @@ if (!!@$point->data) {
 
                         <label class="d-flex align-items-baseline mb-2">
                                 <div class="mr-2 align-self-stretch" style="padding-top: 2px;">
-                                        <input type="checkbox" data-name="cdc_emphasis_vaccination" {{@($contentData["cdc_emphasis_vaccination"] ? 'checked' : '')}} cdc-covid-emphasis>
+                                        <input type="checkbox" data-name="cdc_self_protection_emphasis_vaccination" {{@($contentData["cdc_self_protection_emphasis_vaccination"] ? 'checked' : '')}} cdc-covid-emphasis>
                                 </div>
                                 <span>Vaccination.</span>
                         </label>
                         <label class="d-flex align-items-baseline mb-2">
                                 <div class="mr-2 align-self-stretch" style="padding-top: 2px;">
-                                        <input type="checkbox" data-name="cdc_emphasis_mask_wearing" {{@($contentData["cdc_emphasis_mask_wearing"] ? 'checked' : '')}} cdc-covid-emphasis>
+                                        <input type="checkbox" data-name="cdc_self_protection_emphasis_mask_wearing" {{@($contentData["cdc_self_protection_emphasis_mask_wearing"] ? 'checked' : '')}} cdc-covid-emphasis>
                                 </div>
                                 <span>Mask wearing.</span>
                         </label>
+                        <label class="d-flex align-items-baseline mb-2">
+                                <div class="mr-2 align-self-stretch" style="padding-top: 2px;">
+                                        <input type="checkbox" data-name="cdc_self_protection_emphasis_social_distancing" {{@($contentData["cdc_self_protection_emphasis_social_distancing"] ? 'checked' : '')}} cdc-covid-emphasis>
+                                </div>
+                                <span>Social distancing.</span>
+                        </label>
+                        <label class="d-flex align-items-baseline mb-2">
+                                <div class="mr-2 align-self-stretch" style="padding-top: 2px;">
+                                        <input type="checkbox" data-name="cdc_self_protection_emphasis_avoid_crowds" {{@($contentData["cdc_self_protection_emphasis_avoid_crowds"] ? 'checked' : '')}} cdc-covid-emphasis>
+                                </div>
+                                <span>Avoid poorly ventilated spaces and crowds.</span>
+                        </label>
+                        <label class="d-flex align-items-baseline mb-2">
+                                <div class="mr-2 align-self-stretch" style="padding-top: 2px;">
+                                        <input type="checkbox" data-name="cdc_self_protection_emphasis_test_appropriately" {{@($contentData["cdc_self_protection_emphasis_test_appropriately"] ? 'checked' : '')}} cdc-covid-emphasis>
+                                </div>
+                                <span>Test appropriately</span>
+                        </label>
+                        <label class="d-flex align-items-baseline mb-2">
+                                <div class="mr-2 align-self-stretch" style="padding-top: 2px;">
+                                        <input type="checkbox" data-name="cdc_self_protection_emphasis_wash_hands_often" {{@($contentData["cdc_self_protection_emphasis_wash_hands_often"] ? 'checked' : '')}} cdc-covid-emphasis>
+                                </div>
+                                <span>Wash your hands often</span>
+                        </label>
+                        <label class="d-flex align-items-baseline mb-2">
+                                <div class="mr-2 align-self-stretch" style="padding-top: 2px;">
+                                        <input type="checkbox" data-name="cdc_self_protection_emphasis_cover_coughs" {{@($contentData["cdc_self_protection_emphasis_cover_coughs"] ? 'checked' : '')}} cdc-covid-emphasis>
+                                </div>
+                                <span>Cover coughs</span>
+                        </label>
+                        <label class="d-flex align-items-baseline mb-2">
+                                <div class="mr-2 align-self-stretch" style="padding-top: 2px;">
+                                        <input type="checkbox" data-name="cdc_self_protection_emphasis_disinfect" {{@($contentData["cdc_self_protection_emphasis_disinfect"] ? 'checked' : '')}} cdc-covid-emphasis>
+                                </div>
+                                <span>Clean and disinfect surfaces</span>
+                        </label>
+                        <label class="d-flex align-items-baseline mb-2">
+                                <div class="mr-2 align-self-stretch" style="padding-top: 2px;">
+                                        <input type="checkbox" data-name="cdc_self_protection_emphasis_monitor_health_daily" {{@($contentData["cdc_self_protection_emphasis_monitor_health_daily"] ? 'checked' : '')}} cdc-covid-emphasis>
+                                </div>
+                                <span>Monitor your health daily; Monitoring symptoms is especially important if you are running errands, going into the office or workplace, and in settings where it may be difficult to keep a physical distance of 6 feet.</span>
+                        </label>
+                        <label class="d-flex align-items-baseline mb-2">
+                                <div class="mr-2 align-self-stretch" style="padding-top: 2px;">
+                                        <input type="checkbox" data-name="cdc_self_protection_emphasis_quarantine" {{@($contentData["cdc_self_protection_emphasis_quarantine"] ? 'checked' : '')}} cdc-covid-emphasis>
+                                </div>
+                                <span>Follow recommendations for quarantine; If you come into close contact with someone with COVID-19: follow CDC’s recommendations for quarantine.</span>
+                        </label>
+                        <label class="d-flex align-items-baseline mb-2">
+                                <div class="mr-2 align-self-stretch" style="padding-top: 2px;">
+                                        <input type="checkbox" data-name="cdc_self_protection_emphasis_isolation" {{@($contentData["cdc_self_protection_emphasis_isolation"] ? 'checked' : '')}} cdc-covid-emphasis>
+                                </div>
+                                <span>Follow recommendations for isolation; If you test positive for COVID-19 or have symptoms: follow CDC’s recommendations for isolation.</span>
+                        </label>
+                        <label class="d-flex align-items-baseline mb-2">
+                                <div class="mr-2 align-self-stretch" style="padding-top: 2px;">
+                                        <input type="checkbox" data-name="cdc_self_protection_emphasis_travel_precaution" {{@($contentData["cdc_self_protection_emphasis_travel_precaution"] ? 'checked' : '')}} cdc-covid-emphasis>
+                                </div>
+                                <span>Take precautions when you travel; Follow CDC’s recommendations for domestic and international travel.</span>
+                        </label>
                 </div>
 
+                <hr class="my-3">
+                <div class="mb-2">
+                        <label class="mb-1">Answered all questions relating to COVID-19</label>
+                        <div class="d-inline-flex ml-2 align-items-baseline pt-1">
+                                <label class="my-0 mr-3 d-flex align-items-center">
+                                        <input type="radio" data-name="ans_has_answered_all_covid_19_questions" name="ans_has_answered_all_covid_19_questions" {{@$contentData['ans_has_answered_all_covid_19_questions'] && @$contentData['ans_has_answered_all_covid_19_questions'] === 'yes' ? 'checked' : ''}} value="yes">
+                                        <span class="ml-1">Yes</span>
+                                </label>
+                                <label class="my-0 mr-3 d-flex align-items-center">
+                                        <input type="radio" data-name="ans_has_answered_all_covid_19_questions" name="ans_has_answered_all_covid_19_questions" {{@$contentData['ans_has_answered_all_covid_19_questions'] && @$contentData['ans_has_answered_all_covid_19_questions'] === 'no' ? 'checked' : ''}} value="no">
+                                        <span class="ml-1">No</span>
+                                </label>
+                        </div>
+                </div>
+
+                <hr class="my-3">
+                <div class="mb-2">
+                        <h6><b>CDC: Coping with Stress - Mental Health Screening</b></h6>
+                        <div class="mb-2">
+                                <label class="mb-1">Have you received printed materials from the CDC “<b>Coping with Stress</b>”.</label>
+                                <div>
+                                        <a href="https://www.cdc.gov/mentalhealth/stress-coping/cope-with-stress/index.html" target="_blank">https://www.cdc.gov/mentalhealth/stress-coping/cope-with-stress/index.html</a>
+                                </div>
+                                <div class="d-inline-flex ml-2 align-items-baseline pt-1">
+                                        <label class="my-0 mr-3 d-flex align-items-center">
+                                                <input type="radio" data-name="ans_has_received_printed_cdc_mental_health_matrials" name="ans_has_received_printed_cdc_mental_health_matrials" {{@$contentData['ans_has_received_printed_cdc_mental_health_matrials'] && @$contentData['ans_has_received_printed_cdc_mental_health_matrials'] === 'yes' ? 'checked' : ''}} value="yes">
+                                                <span class="ml-1">Yes</span>
+                                        </label>
+                                        <label class="my-0 mr-3 d-flex align-items-center">
+                                                <input type="radio" data-name="ans_has_received_printed_cdc_mental_health_matrials" name="ans_has_received_printed_cdc_mental_health_matrials" {{@$contentData['ans_has_received_printed_cdc_mental_health_matrials'] && @$contentData['ans_has_received_printed_cdc_mental_health_matrials'] === 'no' ? 'checked' : ''}} value="no">
+                                                <span class="ml-1">No</span>
+                                        </label>
+                                </div>
+                        </div>
+                        <div class="mb-2">
+                                <label class="mb-1">Educated patient that stress and mental health screening is important because 7 in 10 adults are reporting feelings of anxiety, sadness, and depression due to COVID-19</label>
+                                <div class="d-inline-flex ml-2 align-items-baseline pt-1">
+                                        <label class="my-0 mr-3 d-flex align-items-center">
+                                                <input type="radio" data-name="ans_educated_patient_on_mental_health_screening" name="ans_educated_patient_on_mental_health_screening" {{@$contentData['ans_educated_patient_on_mental_health_screening'] && @$contentData['ans_educated_patient_on_mental_health_screening'] === 'yes' ? 'checked' : ''}} value="yes">
+                                                <span class="ml-1">Yes</span>
+                                        </label>
+                                        <label class="my-0 mr-3 d-flex align-items-center">
+                                                <input type="radio" data-name="ans_educated_patient_on_mental_health_screening" name="ans_educated_patient_on_mental_health_screening" {{@$contentData['ans_educated_patient_on_mental_health_screening'] && @$contentData['ans_educated_patient_on_mental_health_screening'] === 'no' ? 'checked' : ''}} value="no">
+                                                <span class="ml-1">No</span>
+                                        </label>
+                                </div>
+                        </div>
+                        <div class="mb-2">
+                                <label class="mb-1">How are you doing regarding stress?</label>
+                                <input type="text" data-name="ans_how_patient_is_doing_regarding_stress" value="{{@$contentData['ans_how_patient_is_doing_regarding_stress']}}" class="form-control form-control-sm d-inline-block w-auto ml-2">
+                        </div>
+                        <div class="mb-2">
+                                <label class="mb-1">PHQ-2 score?</label>
+                                <input type="text" data-name="phq_score" value="{{@$contentData['phq_score']}}" class="form-control form-control-sm d-inline-block w-auto ml-2">
+                        </div>
 
+                        <div class="mb-2">
+                                <label class="mb-1">If(PHQ-2 > 3?) then optionally:</label>
+                                <div class="d-flex flex-column ml-2 align-items-baseline pt-1">
+                                        <label class="my-0 mr-3 d-flex align-items-center">
+                                                <input type="radio" data-name="phq_action_taken" name="phq_action_taken" {{@$contentData['phq_action_taken'] && @$contentData['phq_action_taken'] === 'phq_administer_phq_9_now' ? 'checked' : ''}} value="phq_administer_phq_9_now">
+                                                <span class="ml-1">Administer PHQ-9 now.</span>
+                                        </label>
+                                        <label class="my-0 mr-3 d-flex align-items-center">
+                                                <input type="radio" data-name="phq_action_taken" name="phq_action_taken" {{@$contentData['phq_action_taken'] && @$contentData['phq_action_taken'] === 'phq_schedule_phq_9_now' ? 'checked' : ''}} value="phq_schedule_phq_9_now">
+                                                <span class="ml-1">Schedule PHQ-9 now.</span>
+                                        </label>
+                                        <label class="my-0 mr-3 d-flex align-items-center">
+                                                <input type="radio" data-name="phq_action_taken" name="phq_action_taken" {{@$contentData['phq_action_taken'] && @$contentData['phq_action_taken'] === 'phq_schedule_phq_9_later' ? 'checked' : ''}} value="phq_schedule_phq_9_later">
+                                                <span class="ml-1">Schedule PHQ-9 later.</span>
+                                        </label>
+                                        <label class="my-0 mr-3 d-flex align-items-center">
+                                                <input type="radio" data-name="phq_action_taken" name="phq_action_taken" {{@$contentData['phq_action_taken'] && @$contentData['phq_action_taken'] === 'phq_refer_to_psych_np' ? 'checked' : ''}} value="phq_refer_to_psych_np">
+                                                <span class="ml-1">Referral to Psych NP - “Stress Specialist”.</span>
+                                        </label>
+                                </div>
+                        </div>
+                        <div class="mb-2">
+                                <label class="mb-1">Reviewed “<b>CDC: Coping with Stress</b>” with patient. Went over the following points.</label>
+                                <label class="d-flex align-items-baseline mb-2">
+                                        <div class="mr-2 align-self-stretch" style="padding-top: 2px;">
+                                                <input type="checkbox" data-target="cdc-stress-emphasis" check-all />
+                                        </div>
+                                        <span class="font-weight-bold">Check ALL</span>
+                                </label>
+
+                                <label class="d-flex align-items-baseline mb-2">
+                                        <div class="mr-2 align-self-stretch" style="padding-top: 2px;">
+                                                <input type="checkbox" data-name="cdc_stress_emphasis_covid_19_effects" {{@($contentData["cdc_stress_emphasis_covid_19_effects"] ? 'checked' : '')}} cdc-stress-emphasis>
+                                        </div>
+                                        <span>The COVID-19 pandemic has had a major effect on our lives.</span>
+                                </label>
+                                <label class="d-flex align-items-baseline mb-2">
+                                        <div class="mr-2 align-self-stretch" style="padding-top: 2px;">
+                                                <input type="checkbox" data-name="cdc_stress_emphasis_stressful_challenges" {{@($contentData["cdc_stress_emphasis_stressful_challenges"] ? 'checked' : '')}} cdc-stress-emphasis>
+                                        </div>
+                                        <span>Many of us are facing challenges that can be stressful.</span>
+                                </label>
+                                <label class="d-flex align-items-baseline mb-2">
+                                        <div class="mr-2 align-self-stretch" style="padding-top: 2px;">
+                                                <input type="checkbox" data-name="cdc_stress_emphasis_public_health_actions" {{@($contentData["cdc_stress_emphasis_public_health_actions"] ? 'checked' : '')}} cdc-stress-emphasis>
+                                        </div>
+                                        <span>Public health actions like social distancing can increase stress and anxiety / isolation.</span>
+                                </label>
+                                <label class="d-flex align-items-baseline mb-2">
+                                        <div class="mr-2 align-self-stretch" style="padding-top: 2px;">
+                                                <input type="checkbox" data-name="cdc_stress_emphasis_physical_reactions" {{@($contentData["cdc_stress_emphasis_physical_reactions"] ? 'checked' : '')}} cdc-stress-emphasis>
+                                        </div>
+                                        <span>Stress can cause adverse feelings and physical reactions, especially relating to HTN and DM.</span>
+                                </label>
+                                <label class="d-flex align-items-baseline mb-2">
+                                        <div class="mr-2 align-self-stretch" style="padding-top: 2px;">
+                                                <input type="checkbox" data-name="cdc_stress_emphasis_coping_with_stress" {{@($contentData["cdc_stress_emphasis_coping_with_stress"] ? 'checked' : '')}} cdc-stress-emphasis>
+                                        </div>
+                                        <span>Educated patient on healthy ways to cope with stress (as per CDC: Coping with Stress):</span>
+                                </label>
+                                <div class="pl-3">
+                                        <ul>
+                                                <li>Take breaks from news and social media.</li>
+                                                <li>Take care of your body</li>
+                                                <li>Take deep breaths, stretch, or <a href="https://www.nccih.nih.gov/health/meditation-in-depth" target="_blank">meditate</a></li>
+                                                <li><a href="https://www.cdc.gov/nccdphp/dnpao/features/healthy-eating-tips/index.html" target="_blank">Try to eat healthy, well-balanced meals</a></li>
+                                                <li><a href="https://www.cdc.gov/physicalactivity/basics/index.htm" target="_blank">Exercise regularly</a></li>
+                                                <li><a href="https://www.cdc.gov/sleep/about_sleep/sleep_hygiene.html" target="_blank">Get plenty of sleep</a></li>
+                                                <li>Avoid <a href="https://www.cdc.gov/coronavirus/2019-ncov/daily-life-coping/stress-coping/alcohol-use.html" target="_blank">excessive alcohol, tobacco, and substance use</a></li>
+                                                <li>Continue with routine preventive measures (such as vaccinations, cancer screenings, etc.) as recommended by your healthcare provider</li>
+                                                <li>Get vaccinated with a COVID-19 vaccine</li>
+                                                <li>Make time to unwind — Try to do some other activities you enjoy</li>
+                                                <li>Connect with others — <a href="https://www.cdc.gov/howrightnow/talk" target="_blank">Talk with people</a> you trust about your concerns and how you are feeling</li>
+                                                <li>Connect with your community- or faith-based organizations — While social distancing measures are in place, try connecting online, through social media, or by phone or mail
+                                                </li>
+                                        </ul>
+                                </div>
+
+                        </div>
+                </div>
+
+                <hr class="my-3">
+                <div class="mb-2">
+                        <label class="mb-1">Educated patient about hypertension RPM and election to enroll into it.</label>
+                        <div class="d-inline-flex ml-2 align-items-baseline pt-1">
+                                <label class="my-0 mr-3 d-flex align-items-center">
+                                        <input type="radio" data-name="ans_hypertension_rpm_education" name="ans_hypertension_rpm_education" {{@$contentData['ans_hypertension_rpm_education'] && @$contentData['ans_hypertension_rpm_education'] === 'yes' ? 'checked' : ''}} value="yes">
+                                        <span class="ml-1">Yes</span>
+                                </label>
+                                <label class="my-0 mr-3 d-flex align-items-center">
+                                        <input type="radio" data-name="ans_hypertension_rpm_education" name="ans_hypertension_rpm_education" {{@$contentData['ans_hypertension_rpm_education'] && @$contentData['ans_hypertension_rpm_education'] === 'no' ? 'checked' : ''}} value="no">
+                                        <span class="ml-1">No</span>
+                                </label>
+                        </div>
+                </div>
+                <hr class="my-3">
                 <div class="pt-2">
                         <button submit class="btn btn-sm btn-primary mr-2"><i class="fa fa-save"></i></button>
                         <div class="d-inline-flex align-self-stretch align-items-center">
@@ -137,25 +373,4 @@ if (!!@$point->data) {
                         </div>
                 </div>
         </form>
-</div>
-<script>
-        (function() {
-                window.segmentInitializers.<?= !!@$segment ? $segment->segmentTemplate->internal_name : $segmentInternalName ?> = function() {
-                        var covidFollowUp = {
-                                parentSegment: null,
-                                initAutoCheckAll: function(){
-                                        var self = this;
-                                        var checkSegments = $('[check-all]');
-                                        $.each(checkSegments, function(i, segment){
-                                                console.log({segment});
-                                        });
-
-                                },
-                                init: function(){
-                                        this.initAutoCheckAll();
-                                }
-                        };
-                        covidFollowUp.init();
-                };
-        }).call(window);
-</script>
+</div>

+ 1 - 1
resources/views/app/patient/segment-templates/covid_follow-up/summary.blade.php

@@ -30,4 +30,4 @@ if (!!@$point->data) {
          presenting via telehealth for consultation regarding COVID-19 prevention and early detection.</label>
     </div>
     
-</div>
+</div>

+ 17 - 1
resources/views/app/patient/segment-templates/covid_intake/edit.blade.php

@@ -7,6 +7,10 @@ $endPoint = 'upsertGlobalSingleton';
 
 $point = Point::getGlobalSingletonOfCategory($patient, 'COVID_INTAKE', true);
 $contentData = [
+
+	"ans_cdc_guidelines_aarp_mental_health" => '',
+	"ans_follow_up_scheduled" => '',
+
     "ans_how_are_you" => '',
     "ans_is_address_correct" => null, // yes/no
     "ans_corrected_address" => '',
@@ -794,10 +798,22 @@ if (!!@$point->data) {
             </label>
         </div>
 
+	<p><b>Printed material to be sent:</b></p>
+        <div class="ml-3 mb-3">
+	    <label class="mb-2 d-flex align-items-center">
+                <input type="checkbox" data-name="ans_cdc_guidelines_aarp_mental_health" {{@$contentData['ans_cdc_guidelines_aarp_mental_health'] ? 'checked' : ''}} class="mr-2">
+                <span class="ml-2">CDC "How to Protect Yourself & Others" & AARP mental health / COVID alert</span>
+            </label>
+	    <label class="mb-2 d-flex align-items-center">
+                <input type="checkbox" data-name="ans_follow_up_scheduled" {{@$contentData['ans_follow_up_scheduled'] ? 'checked' : ''}} class="mr-2">
+                <span class="ml-2">Follow-up scheduled</span>
+            </label>
+	</div>
+
         <div class="mb-3">
             <label class="mb-1"><b>Total minutes  spent on this visit counseling or educating a patient or caregiver, documentation, and care coordination.</b></label>
             <input type="text" data-name="ans_total_mins_spent" value="{{@$contentData['ans_total_mins_spent']}}" class="form-control form-control-sm">
-            <small>Over 50% of this time was directed towards counseling and education.</small>
+            <small class="d-none">Over 50% of this time was directed towards counseling and education.</small>
         </div>
 
         <div class="pt-2">

+ 1 - 1
resources/views/app/patient/segment-templates/covid_intake/summary.blade.php

@@ -438,4 +438,4 @@ if (!!@$point->data) {
         <label>A total of <?= segment_template_summary_value_display(@$contentData['ans_total_mins_spent'], '', 'ml-0') ?> minutes was spent on this visit counseling or educating a patient or caregiver, documentation, and care coordination. Over 50% of this time was directed towards counseling and education.</label>
         
     </div>
-</div>
+</div>

+ 2 - 0
routes/web.php

@@ -91,6 +91,7 @@ Route::middleware('pro.auth')->group(function () {
 
         Route::get('new-patients-awaiting-visit', 'McpController@new_patients_awaiting_visit')->name('new_patients_awaiting_visit');
         Route::get('notes-pending-signature', 'McpController@notes_pending_signature')->name('notes_pending_signature');
+        Route::get('notes-pending-summary-suggestion', 'McpController@notes_pending_summary_suggestion')->name('notes_pending_summary_suggestion');
         Route::get('notes-pending-billing', 'McpController@notes_pending_billing')->name('notes_pending_billing');
         Route::get('bills-pending-signature', 'McpController@bills_pending_signature')->name('bills_pending_signature');
         Route::get('reports-pending-signature', 'McpController@reports_pending_signature')->name('reports_pending_signature');
@@ -194,6 +195,7 @@ Route::middleware('pro.auth')->group(function () {
 
         Route::get('patients', 'AdminController@patients')->name('patients');
         Route::get('notes', 'AdminController@notes')->name('notes');
+        Route::get('notes-pending-summary-suggestion', 'AdminController@notes_pending_summary_suggestion')->name('notes_pending_summary_suggestion');
         Route::get('appointments', 'AdminController@appointments')->name('appointments');
         Route::get('bills', 'AdminController@bills')->name('bills');
         Route::get('erx-and-orders', 'AdminController@erx_and_orders')->name('erx_and_orders');