소스 검색

Disclaimers segment

Vijayakrishnan 3 년 전
부모
커밋
cdd44b3d93

+ 3 - 0
public/css/style.css

@@ -349,6 +349,9 @@ body>nav.navbar {
 .mcp-theme-1 .width-70px {
     width: 70px !important;
 }
+.mcp-theme-1 .min-width-30px {
+    min-width: 30px !important;
+}
 .mcp-theme-1 .min-width-50 {
     min-width: 50% !important;
 }

+ 95 - 0
resources/views/app/patient/segment-templates/disclaimers/edit.blade.php

@@ -0,0 +1,95 @@
+<?php
+
+use App\Models\Point;
+
+$category = 'DISCLAIMERS';
+$endPoint = 'upsertNoteSingleton';
+
+$point = Point::where('added_in_segment_id', $segment->id)->where('category', $category)->orderBy('id', 'DESC')->first();
+$contentData = [
+    "consent_for_telehealth_visit" => false,
+    "eduction_provided_for_covid" => false,
+    "communicated_dietary_ls_exercise_risks" => false,
+    "importance_of_calling_911" => false,
+    "assessment_is_virtual" => false,
+    "assessment_based_on_patient_inputs" => false,
+];
+if (!!@$point->data) {
+    $contentData = json_decode($point->data, true);
+}
+?>
+<div visit-moe close-on-save close-on-cancel class="d-block">
+    <form show url="/api/visitPoint/<?= $endPoint ?>" class="mcp-theme-1 mt-2">
+        <input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">
+        <input type="hidden" name="category" value="<?= $category ?>">
+        <input type="hidden" name="data" value="{{json_encode($contentData)}}">
+
+        <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="consent_for_telehealth_visit" {{@($contentData["consent_for_telehealth_visit"] ? 'checked' : '')}}>
+            </div>
+            <span>Patient consent for telehealth visit obtained.</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="eduction_provided_for_covid" {{@($contentData["eduction_provided_for_covid"] ? 'checked' : '')}}>
+            </div>
+            <span>Education provided for COVID risks, steps for prevention, and eliminating exposure.</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="communicated_dietary_ls_exercise_risks" {{@($contentData["communicated_dietary_ls_exercise_risks"] ? 'checked' : '')}}>
+            </div>
+            <span>Communicated possible risks involved with dietary and lifestyle changes, and in particular with exercise prescription.</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="importance_of_calling_911" {{@($contentData["importance_of_calling_911"] ? 'checked' : '')}}>
+            </div>
+            <span>Patient verbalizes the importance of calling 911 if experiencing chest pain, dizziness or lightheadedness while exercising.</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="assessment_is_virtual" {{@($contentData["assessment_is_virtual"] ? 'checked' : '')}}>
+            </div>
+            <span>Patient understands that this assessment is done virtually and therefore a complete physical assessment was not completed, and is not a replacement for a visit with their primary care physician.</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="assessment_based_on_patient_inputs" {{@($contentData["assessment_based_on_patient_inputs"] ? 'checked' : '')}}>
+            </div>
+            <span>Patient understands this assessment was completed using the information they provided only. All questions addressed.</span>
+        </label>
+
+        @if($note->hcp_pro_id == $patient->mcp_pro_id && $patient->is_enrolled_in_cm)
+            <p class="mb-2">Patient elects to participate in Chronic Care Management.</p>
+        @endif
+
+        @if($note->hcp_pro_id == $patient->mcp_pro_id && $patient->is_enrolled_in_rm)
+            <p class="mb-2">Patient elects to participate in Remote Patient Monitoring.</p>
+        @endif
+
+        @if($note->method == 'AUDIO' || $note->method == 'VIDEO')
+            <p class="mb-2">The visit was conducted with the use of an interactive <b>{{$note->method}}</b> telecommunications system that permits real time communication
+                between the patient and the provider. Patient consent for telehealth visit was obtained.</p>
+            <p class="mb-2">Originating Site: <b>{{$note->hcpCompanyPro && $note->hcpCompanyPro->company ? $note->hcpCompanyPro->company->name : '-'}}</b></p>
+            <p class="mb-2">Distant Site: <b>Patient Home</b></p>
+        @endif
+
+        <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">
+                <span class="autosave-indicator saving text-sm text-secondary">Saving changes &hellip;</span>
+                <span class="autosave-indicator saved text-sm text-secondary">
+                    <i class="fa fa-check"></i>
+                    Saved
+                </span>
+            </div>
+        </div>
+    </form>
+</div>

+ 102 - 0
resources/views/app/patient/segment-templates/disclaimers/summary.blade.php

@@ -0,0 +1,102 @@
+<?php
+
+use App\Models\Point;
+
+$category = 'DISCLAIMERS';
+$endPoint = 'upsertNoteSingleton';
+
+$point = Point::where('added_in_segment_id', $segment->id)->where('category', $category)->orderBy('id', 'DESC')->first();
+$contentData = [
+    "consent_for_telehealth_visit" => false,
+    "eduction_provided_for_covid" => false,
+    "communicated_dietary_ls_exercise_risks" => false,
+    "importance_of_calling_911" => false,
+    "assessment_is_virtual" => false,
+    "assessment_baseD_on_patient_inputs" => false,
+];
+if (!!@$point->data) {
+    $contentData = json_decode($point->data, true);
+}
+?>
+
+<div class="d-flex align-items-baseline mb-2">
+    <div class="mr-2 align-self-stretch min-width-30px text-center">
+        @if(@($contentData["consent_for_telehealth_visit"]))
+            <i class="fa fa-check"></i>
+        @else
+            -
+        @endif
+    </div>
+    <span class="flex-grow-1">Patient consent for telehealth visit obtained.</span>
+</div>
+
+<div class="d-flex align-items-baseline mb-2">
+    <div class="mr-2 align-self-stretch min-width-30px text-center">
+        @if(@($contentData["eduction_provided_for_covid"]))
+            <i class="fa fa-check"></i>
+        @else
+            -
+        @endif
+    </div>
+    <span class="flex-grow-1">Education provided for COVID risks, steps for prevention, and eliminating exposure.</span>
+</div>
+
+<div class="d-flex align-items-baseline mb-2">
+    <div class="mr-2 align-self-stretch min-width-30px text-center">
+        @if(@($contentData["communicated_dietary_ls_exercise_risks"]))
+            <i class="fa fa-check"></i>
+        @else
+            -
+        @endif
+    </div>
+    <span class="flex-grow-1">Communicated possible risks involved with dietary and lifestyle changes, and in particular with exercise prescription.</span>
+</div>
+
+<div class="d-flex align-items-baseline mb-2">
+    <div class="mr-2 align-self-stretch min-width-30px text-center">
+        @if(@($contentData["importance_of_calling_911"]))
+            <i class="fa fa-check"></i>
+        @else
+            -
+        @endif
+    </div>
+    <span class="flex-grow-1">Patient verbalizes the importance of calling 911 if experiencing chest pain, dizziness or lightheadedness while exercising.</span>
+</div>
+
+<div class="d-flex align-items-baseline mb-2">
+    <div class="mr-2 align-self-stretch min-width-30px text-center">
+        @if(@($contentData["assessment_is_virtual"]))
+            <i class="fa fa-check"></i>
+        @else
+            -
+        @endif
+    </div>
+    <span class="flex-grow-1">Patient understands that this assessment is done virtually and therefore a complete physical assessment was not completed, and is not a replacement for a visit with their primary care physician.</span>
+</div>
+
+<div class="d-flex align-items-baseline mb-2">
+    <div class="mr-2 align-self-stretch min-width-30px text-center">
+        @if(@($contentData["assessment_based_on_patient_inputs"]))
+            <i class="fa fa-check"></i>
+        @else
+            -
+        @endif
+    </div>
+    <span class="flex-grow-1">Patient understands this assessment was completed using the information they provided only. All questions addressed.</span>
+</div>
+
+@if($note->hcp_pro_id == $patient->mcp_pro_id && $patient->is_enrolled_in_cm)
+    <p class="mb-2">Patient elects to participate in Chronic Care Management.</p>
+@endif
+
+@if($note->hcp_pro_id == $patient->mcp_pro_id && $patient->is_enrolled_in_rm)
+    <p class="mb-2">Patient elects to participate in Remote Patient Monitoring.</p>
+@endif
+
+@if($note->method == 'AUDIO' || $note->method == 'VIDEO')
+    <p class="mb-2">The visit was conducted with the use of an interactive <b>{{$note->method}}</b> telecommunications system that permits real time communication
+        between the patient and the provider. Patient consent for telehealth visit was obtained.</p>
+    <p class="mb-2">Originating Site: <b>{{$note->hcpCompanyPro && $note->hcpCompanyPro->company ? $note->hcpCompanyPro->company->name : '-'}}</b></p>
+    <p class="mb-2">Distant Site: <b>Patient Home</b></p>
+@endif
+