Bläddra i källkod

Sleep study - patient-ready

Vijayakrishnan 2 år sedan
förälder
incheckning
0bcf8c0de6

+ 1 - 1
resources/views/app/patient/sleep-study.blade.php

@@ -100,7 +100,7 @@
                 </div>
 
                 <div class="border-bottom pb-4" data-key="patient-ready">
-                    <h4 class="p-2 bg-light font-weight-bold d-block py-1 border-bottom text-nowrap">Patient Ready</h4>
+                    @include('app.patient.sleep-study.patient-ready')
                 </div>
 
                 <div class="border-bottom pb-4" data-key="study-data-status">

+ 55 - 0
resources/views/app/patient/sleep-study/patient-ready.blade.php

@@ -0,0 +1,55 @@
+<div class="d-flex px-3 py-2 bg-light align-items-baseline border-bottom">
+    <h4 class="font-weight-bold text-nowrap m-0">Patient Ready</h4>
+    <div moe class="ml-3">
+        <a start show href="#"><i class="fa fa-edit"></i> Edit</a>
+        <form url="/api/client/updateWatchPatPatientReady" hook="refreshSleepStudyStep">
+            <input type="hidden" name="uid" value="{{$patient->uid}}">
+            <div class="font-weight-bold font-size-14 text-secondary border-bottom pb-2 mb-2 text-nowrap">Patient Ready</div>
+
+            <div class="mb-2">
+                <div class="mb-1">Is WatchPat Patient Ready:</div>
+                <select name="isWatchPatPatientReady" class="form-control form-control-sm">
+                    <option value="">-- select --</option>
+                    <option value="1" {{$patient->is_watch_pat_patient_ready == '1' ? 'selected' : ''}}>Yes</option>
+                    <option value="0" {{$patient->is_watch_pat_patient_ready == '0' ? 'selected' : ''}}>No</option>
+                </select>
+            </div>
+
+            <div class="mb-2">
+                <div class="mb-1">Expected Study Date:</div>
+                <input type="date" value="{{$patient->watch_pat_expected_study_date}}" name="watchPatExpectedStudyDate" class="form-control form-control-sm d-inline-block flex-grow-1">
+            </div>
+
+            <div class="mb-2">
+                <div class="mb-1">Memo:</div>
+                <input type="text" value="{{$patient->watch_pat_patient_ready_memo}}" name="watchPatPatientReadyMemo" class="form-control form-control-sm d-inline-block flex-grow-1">
+            </div>
+
+            <div class="mb-2">
+                <div class="mb-1">Effective As Of:</div>
+                <input type="date" value="{{$patient->watch_pat_patient_ready_effective_as_of}}" name="watchPatPatientReadyEffectiveAsOf" class="form-control form-control-sm d-inline-block flex-grow-1">
+            </div>
+
+            <div class="mt-2 border-top pt-2 text-center">
+                <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 class="px-3 pt-2 pb-1">
+    Is WatchPat Patient Ready: <b>{{+$patient->is_watch_pat_patient_ready ? 'Yes' : 'No'}}</b>
+</div>
+
+<div class="px-3 py-1">
+    Expected Study Date: <b>{{$patient->watch_pat_expected_study_date ?: '-'}}</b>
+</div>
+
+<div class="px-3 py-1">
+    Memo: <b>{{$patient->watch_pat_patient_ready_memo ?: '-'}}</b>
+</div>
+
+<div class="px-3 py-1">
+    Effective As Of: <b>{{$patient->watch_pat_patient_ready_effective_as_of ?: '-'}}</b>
+</div>