瀏覽代碼

Patient single dashboard updates

Vijayakrishnan 5 年之前
父節點
當前提交
e0383ed474
共有 4 個文件被更改,包括 691 次插入13 次删除
  1. 8 0
      public/css/style.css
  2. 6 0
      public/css/yemi.css
  3. 3 0
      public/js/yemi.js
  4. 674 13
      resources/views/app/patient/dashboard.blade.php

+ 8 - 0
public/css/style.css

@@ -78,3 +78,11 @@ body.stag_rhs_collapsed .v-split,
 body.stag_rhs_collapsed .app-right-panel {
     display: none !important;
 }
+
+.delete-column {
+    width: 60px;
+}
+hr.m-negator {
+    margin-left: -1.25rem;
+    margin-right: -1.25rem;
+}

+ 6 - 0
public/css/yemi.css

@@ -4,6 +4,9 @@
 [moe] {
     display: inline-block;
 }
+[moe][relative] {
+    position: relative;
+}
 [moe] form:not([show]) {
     z-index: 99999;
     position: absolute;
@@ -11,6 +14,9 @@
     padding: 10px;
     border: 1px solid gray;
 }
+[moe] form[right] {
+    right: 0;
+}
 #moe-form-mask {
     cursor: pointer;
 }

+ 3 - 0
public/js/yemi.js

@@ -289,6 +289,9 @@ jQuery(document).ready(function () {
                             hideMoeFormMask();
                         }else{
                             showMoeFormMask();
+                            setTimeout(function() {
+                                $(realForm).find('input:not([type="hidden"]), textarea, select').first().select().focus();
+                            }, 0);
                         }
                     }
                 }

+ 674 - 13
resources/views/app/patient/dashboard.blade.php

@@ -43,47 +43,708 @@
                 </tr>
                 </thead>
                 <tbody>
-                @foreach ($measurements as $label => $data)
+                {{--@foreach ($measurements as $label => $data)
                     <tr>
                         <td>{{$label}}</td>
                         <td>{{$data->value}}</td>
                         <td>{{$data->effectiveDate}}</td>
                         <td>{{$data->memo}}</td>
                     </tr>
-                @endforeach
+                @endforeach--}}
 
                 </tbody>
             </table>
         </div>
 
-        <div>
-            <h1>Client Info Lines</h1>
-            <?php $infoLines = json_decode($patient->info_lines);?>
-            <table class="table table-striped table-sm">
+
+        {{-- CARE PLAN START --}}
+        <?php $infoLines = json_decode($patient->info_lines);?>
+        <?php $infoLines = !$infoLines ? [] : $infoLines; ?>
+
+        <hr class="my-4 m-negator">
+
+        {{-- rx --}}
+        <div class="mt-4">
+            <div class="d-flex align-items-center pb-2">
+                <h6 class="mr-3 my-0 font-weight-bold">Current Medications</h6>
+                <div moe>
+                    <a start show class="btn btn-sm btn-primary py-0">+ Add</a>
+                    <form url="/api/clientInfoLine/create">
+                        <input type="hidden" name="clientUid" value="{{ $patient->uid }}">
+                        <input type="hidden" name="category" value="rx">
+                        <div class="mb-2"><input type="text" name="contentText" value="" placeholder="Medication"></div>
+                        {{--<div class="mb-2"><input type="text" name="customField" value="" placeholder="Custom Field"></div>--}}
+                        <div class="d-flex align-items-center">
+                            <button class="btn btn-sm btn-primary mr-2" submit>Save</button>
+                            <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                        </div>
+                    </form>
+                </div>
+            </div>
+            <table class="table table-striped table-sm table-bordered">
                 <thead>
                 <tr>
-                    <th>Category</th>
-                    <th>Content Text</th>
-                    <th>Content Detail</th>
+                    {{--<th class="px-2 text-secondary">Category</th>--}}
+                    <th class="px-2 text-secondary">Medication</th>
+                    {{--<th class="px-2 text-secondary">Content Detail</th>--}}
+                    <th class="px-2 text-secondary delete-column">&nbsp;</th>
                 </tr>
                 </thead>
                 <tbody>
                 @foreach($infoLines as $category => $lines)
+                    @if($category === "rx")
                     @foreach ($lines as $line)
                         <tr>
-                            <td>{{$category}}</td>
-                            <td>{{$line->contentText}}</td>
-                            <td>{{$line->contentDetail}}</td>
+                            {{--<td class="px-2">{{$category}}</td>--}}
+                            <td class="px-2">{{$line->contentText}}</td>
+                            {{--<td class="px-2"><pre><?php print_r($line->contentDetail) ?></pre></td>--}}
+                            <td class="px-2 text-center delete-column">
+                                <div moe relative>
+                                    <a start show><i class="fa fa-trash text-danger"></i></a>
+                                    <form url="/api/clientInfoLine/remove" right>
+                                        <input type="hidden" name="uid" value="{{ $line->uid }}">
+                                        <p class="small">Are you sure you want to delete this entry?</p>
+                                        <div class="d-flex align-items-center">
+                                            <button class="btn btn-sm btn-danger mr-2" submit>Delete</button>
+                                            <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                                        </div>
+                                    </form>
+                                </div>
+                            </td>
                         </tr>
                     @endforeach
+                    @endif
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+
+        {{-- dx --}}
+        <div class="mt-4">
+            <div class="d-flex align-items-center pb-2">
+                <h6 class="mr-3 my-0 font-weight-bold">Dx &amp; Focus Areas</h6>
+                <div moe>
+                    <a start show class="btn btn-sm btn-primary py-0">+ Add</a>
+                    <form url="/api/clientInfoLine/create">
+                        <input type="hidden" name="clientUid" value="{{ $patient->uid }}">
+                        <input type="hidden" name="category" value="dx">
+                        <div class="mb-2"><input type="text" class="form-control form-control-sm" name="contentText" value="" placeholder="Title"></div>
+                        <div class="mb-2"><input type="text" class="form-control form-control-sm" name="ICD" value="" placeholder="ICD"></div>
+                        <div class="mb-2">
+                            <select name="Chronic or Acute" class="form-control form-control-sm pl-1">
+                                <option>Chronic or Acute (select one)</option>
+                                <option value="Chronic">Chronic</option>
+                                <option value="Acute">Acute</option>
+                            </select>
+                        </div>
+                        <div class="mb-2"><input type="text" class="form-control form-control-sm" name="Prognosis" value="" placeholder="Prognosis"></div>
+                        <div class="mb-2"><textarea type="text" class="form-control form-control-sm" name="Treatment Goal" value="" placeholder="Treatment Goal"></textarea></div>
+                        <div class="mb-2"><textarea type="text" class="form-control form-control-sm" name="Treatment Plan" value="" placeholder="Treatment Plan"></textarea></div>
+                        <div class="d-flex align-items-center">
+                            <button class="btn btn-sm btn-primary mr-2" submit>Save</button>
+                            <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                        </div>
+                    </form>
+                </div>
+            </div>
+            <table class="table table-striped table-sm table-bordered">
+                <thead>
+                <tr>
+                    {{--<th class="px-2 text-secondary">Category</th>--}}
+                    <th class="px-2 text-secondary">Title</th>
+                    <th class="px-2 text-secondary">ICD</th>
+                    <th class="px-2 text-secondary">Chronic or Acute</th>
+                    <th class="px-2 text-secondary">Prognosis</th>
+                    <th class="px-2 text-secondary">Treatment Goal</th>
+                    <th class="px-2 text-secondary">Treatment Plan</th>
+                    <th class="px-2 text-secondary delete-column">&nbsp;</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($infoLines as $category => $lines)
+                    @if($category === "dx")
+                        @foreach ($lines as $line)
+                            <tr>
+                                {{--<td class="px-2">{{$category}}</td>--}}
+                                <td class="px-2">{{$line->contentText}}</td>
+                                <td class="px-2">{{ $line->contentDetail->{"ICD"} }}</td>
+                                <td class="px-2">{{ $line->contentDetail->{"Chronic or Acute"} }}</td>
+                                <td class="px-2">{{ $line->contentDetail->{"Prognosis"} }}</td>
+                                <td class="px-2">{{ $line->contentDetail->{"Treatment Goal"} }}</td>
+                                <td class="px-2">{{ $line->contentDetail->{"Treatment Plan"} }}</td>
+                                <td class="px-2 text-center delete-column">
+                                    <div moe relative>
+                                        <a start show><i class="fa fa-trash text-danger"></i></a>
+                                        <form url="/api/clientInfoLine/remove" right>
+                                            <input type="hidden" name="uid" value="{{ $line->uid }}">
+                                            <p class="small">Are you sure you want to delete this entry?</p>
+                                            <div class="d-flex align-items-center">
+                                                <button class="btn btn-sm btn-danger mr-2" submit>Delete</button>
+                                                <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                                            </div>
+                                        </form>
+                                    </div>
+                                </td>
+                            </tr>
+                        @endforeach
+                    @endif
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+
+        {{-- care_team --}}
+        <div class="mt-4">
+            <div class="d-flex align-items-center pb-2">
+                <h6 class="mr-3 my-0 font-weight-bold">Care Team</h6>
+                <div moe>
+                    <a start show class="btn btn-sm btn-primary py-0">+ Add</a>
+                    <form url="/api/clientInfoLine/create">
+                        <input type="hidden" name="clientUid" value="{{ $patient->uid }}">
+                        <input type="hidden" name="category" value="care_team">
+                        <div class="mb-2"><input type="text" class="form-control form-control-sm" name="contentText" value="" placeholder="Name"></div>
+                        <div class="mb-2"><input type="text" class="form-control form-control-sm" name="Specialty" value="" placeholder="Specialty"></div>
+                        <div class="mb-2"><input type="text" class="form-control form-control-sm" name="Organization" value="" placeholder="Organization"></div>
+                        <div class="mb-2"><input type="text" class="form-control form-control-sm" name="Phone" value="" placeholder="Phone"></div>
+                        <div class="mb-2"><input type="text" class="form-control form-control-sm" name="Fax" value="" placeholder="Fax"></div>
+                        <div class="mb-2"><input type="date" class="form-control form-control-sm" name="Next Appointment" value="" placeholder="Next Appointment"></div>
+                        <div class="mb-2"><input type="text" class="form-control form-control-sm" name="Memo" value="" placeholder="Memo"></div>
+                        <div class="d-flex align-items-center">
+                            <button class="btn btn-sm btn-primary mr-2" submit>Save</button>
+                            <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                        </div>
+                    </form>
+                </div>
+            </div>
+            <table class="table table-striped table-sm table-bordered">
+                <thead>
+                <tr>
+                    {{--<th class="px-2 text-secondary">Category</th>--}}
+                    <th class="px-2 text-secondary">Name</th>
+                    <th class="px-2 text-secondary">Specialty</th>
+                    <th class="px-2 text-secondary">Organization</th>
+                    <th class="px-2 text-secondary">Phone</th>
+                    <th class="px-2 text-secondary">Fax</th>
+                    <th class="px-2 text-secondary">Next Appointment</th>
+                    <th class="px-2 text-secondary">Memo</th>
+                    <th class="px-2 text-secondary delete-column">&nbsp;</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($infoLines as $category => $lines)
+                    @if($category === "care_team")
+                        @foreach ($lines as $line)
+                            <tr>
+                                {{--<td class="px-2">{{$category}}</td>--}}
+                                <td class="px-2">{{$line->contentText}}</td>
+                                <td class="px-2">{{ $line->contentDetail->{"Specialty"} }}</td>
+                                <td class="px-2">{{ $line->contentDetail->{"Organization"} }}</td>
+                                <td class="px-2">{{ $line->contentDetail->{"Phone"} }}</td>
+                                <td class="px-2">{{ $line->contentDetail->{"Fax"} }}</td>
+                                <td class="px-2">{{ $line->contentDetail->{"Next Appointment"} }}</td>
+                                <td class="px-2">{{ $line->contentDetail->{"Memo"} }}</td>
+                                <td class="px-2 text-center delete-column">
+                                    <div moe relative>
+                                        <a start show><i class="fa fa-trash text-danger"></i></a>
+                                        <form url="/api/clientInfoLine/remove" right>
+                                            <input type="hidden" name="uid" value="{{ $line->uid }}">
+                                            <p class="small">Are you sure you want to delete this entry?</p>
+                                            <div class="d-flex align-items-center">
+                                                <button class="btn btn-sm btn-danger mr-2" submit>Delete</button>
+                                                <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                                            </div>
+                                        </form>
+                                    </div>
+                                </td>
+                            </tr>
+                        @endforeach
+                    @endif
+                @endforeach
+                </tbody>
+            </table>
+        </div>
 
+        <hr class="my-4 m-negator">
+
+        {{-- history_medical --}}
+        <div class="mt-4">
+            <div class="d-flex align-items-center pb-2">
+                <h6 class="mr-3 my-0 font-weight-bold">Medical History</h6>
+                <div moe>
+                    <a start show class="btn btn-sm btn-primary py-0">+ Add</a>
+                    <form url="/api/clientInfoLine/create">
+                        <input type="hidden" name="clientUid" value="{{ $patient->uid }}">
+                        <input type="hidden" name="category" value="history_medical">
+                        <div class="mb-2"><input type="text" class="form-control form-control-sm" name="contentText" value="" placeholder="History"></div>
+                        <div class="d-flex align-items-center">
+                            <button class="btn btn-sm btn-primary mr-2" submit>Save</button>
+                            <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                        </div>
+                    </form>
+                </div>
+            </div>
+            <table class="table table-striped table-sm table-bordered">
+                <thead>
+                <tr>
+                    {{--<th class="px-2 text-secondary">Category</th>--}}
+                    <th class="px-2 text-secondary">History</th>
+                    <th class="px-2 text-secondary delete-column">&nbsp;</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($infoLines as $category => $lines)
+                    @if($category === "history_medical")
+                        @foreach ($lines as $line)
+                            <tr>
+                                {{--<td class="px-2">{{$category}}</td>--}}
+                                <td class="px-2">{{$line->contentText}}</td>
+                                <td class="px-2 text-center delete-column">
+                                    <div moe relative>
+                                        <a start show><i class="fa fa-trash text-danger"></i></a>
+                                        <form url="/api/clientInfoLine/remove" right>
+                                            <input type="hidden" name="uid" value="{{ $line->uid }}">
+                                            <p class="small">Are you sure you want to delete this entry?</p>
+                                            <div class="d-flex align-items-center">
+                                                <button class="btn btn-sm btn-danger mr-2" submit>Delete</button>
+                                                <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                                            </div>
+                                        </form>
+                                    </div>
+                                </td>
+                            </tr>
+                        @endforeach
+                    @endif
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+
+        {{-- history_surgical --}}
+        <div class="mt-4">
+            <div class="d-flex align-items-center pb-2">
+                <h6 class="mr-3 my-0 font-weight-bold">Surgical History</h6>
+                <div moe>
+                    <a start show class="btn btn-sm btn-primary py-0">+ Add</a>
+                    <form url="/api/clientInfoLine/create">
+                        <input type="hidden" name="clientUid" value="{{ $patient->uid }}">
+                        <input type="hidden" name="category" value="history_surgical">
+                        <div class="mb-2"><input type="text" class="form-control form-control-sm" name="contentText" value="" placeholder="History"></div>
+                        <div class="d-flex align-items-center">
+                            <button class="btn btn-sm btn-primary mr-2" submit>Save</button>
+                            <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                        </div>
+                    </form>
+                </div>
+            </div>
+            <table class="table table-striped table-sm table-bordered">
+                <thead>
+                <tr>
+                    {{--<th class="px-2 text-secondary">Category</th>--}}
+                    <th class="px-2 text-secondary">History</th>
+                    <th class="px-2 text-secondary delete-column">&nbsp;</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($infoLines as $category => $lines)
+                    @if($category === "history_surgical")
+                        @foreach ($lines as $line)
+                            <tr>
+                                {{--<td class="px-2">{{$category}}</td>--}}
+                                <td class="px-2">{{$line->contentText}}</td>
+                                <td class="px-2 text-center delete-column">
+                                    <div moe relative>
+                                        <a start show><i class="fa fa-trash text-danger"></i></a>
+                                        <form url="/api/clientInfoLine/remove" right>
+                                            <input type="hidden" name="uid" value="{{ $line->uid }}">
+                                            <p class="small">Are you sure you want to delete this entry?</p>
+                                            <div class="d-flex align-items-center">
+                                                <button class="btn btn-sm btn-danger mr-2" submit>Delete</button>
+                                                <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                                            </div>
+                                        </form>
+                                    </div>
+                                </td>
+                            </tr>
+                        @endforeach
+                    @endif
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+
+        {{-- history_family --}}
+        <div class="mt-4">
+            <div class="d-flex align-items-center pb-2">
+                <h6 class="mr-3 my-0 font-weight-bold">Family History</h6>
+                <div moe>
+                    <a start show class="btn btn-sm btn-primary py-0">+ Add</a>
+                    <form url="/api/clientInfoLine/create">
+                        <input type="hidden" name="clientUid" value="{{ $patient->uid }}">
+                        <input type="hidden" name="category" value="history_family">
+                        <div class="mb-2"><input type="text" class="form-control form-control-sm" name="contentText" value="" placeholder="History"></div>
+                        <div class="d-flex align-items-center">
+                            <button class="btn btn-sm btn-primary mr-2" submit>Save</button>
+                            <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                        </div>
+                    </form>
+                </div>
+            </div>
+            <table class="table table-striped table-sm table-bordered">
+                <thead>
+                <tr>
+                    {{--<th class="px-2 text-secondary">Category</th>--}}
+                    <th class="px-2 text-secondary">History</th>
+                    <th class="px-2 text-secondary delete-column">&nbsp;</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($infoLines as $category => $lines)
+                    @if($category === "history_family")
+                        @foreach ($lines as $line)
+                            <tr>
+                                {{--<td class="px-2">{{$category}}</td>--}}
+                                <td class="px-2">{{$line->contentText}}</td>
+                                <td class="px-2 text-center delete-column">
+                                    <div moe relative>
+                                        <a start show><i class="fa fa-trash text-danger"></i></a>
+                                        <form url="/api/clientInfoLine/remove" right>
+                                            <input type="hidden" name="uid" value="{{ $line->uid }}">
+                                            <p class="small">Are you sure you want to delete this entry?</p>
+                                            <div class="d-flex align-items-center">
+                                                <button class="btn btn-sm btn-danger mr-2" submit>Delete</button>
+                                                <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                                            </div>
+                                        </form>
+                                    </div>
+                                </td>
+                            </tr>
+                        @endforeach
+                    @endif
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+
+        {{-- history_social --}}
+        <div class="mt-4">
+            <div class="d-flex align-items-center pb-2">
+                <h6 class="mr-3 my-0 font-weight-bold">Social History</h6>
+                <div moe>
+                    <a start show class="btn btn-sm btn-primary py-0">+ Add</a>
+                    <form url="/api/clientInfoLine/create">
+                        <input type="hidden" name="clientUid" value="{{ $patient->uid }}">
+                        <input type="hidden" name="category" value="history_social">
+                        <div class="mb-2"><input type="text" class="form-control form-control-sm" name="contentText" value="" placeholder="History"></div>
+                        <div class="d-flex align-items-center">
+                            <button class="btn btn-sm btn-primary mr-2" submit>Save</button>
+                            <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                        </div>
+                    </form>
+                </div>
+            </div>
+            <table class="table table-striped table-sm table-bordered">
+                <thead>
+                <tr>
+                    {{--<th class="px-2 text-secondary">Category</th>--}}
+                    <th class="px-2 text-secondary">History</th>
+                    <th class="px-2 text-secondary delete-column">&nbsp;</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($infoLines as $category => $lines)
+                    @if($category === "history_social")
+                        @foreach ($lines as $line)
+                            <tr>
+                                {{--<td class="px-2">{{$category}}</td>--}}
+                                <td class="px-2">{{$line->contentText}}</td>
+                                <td class="px-2 text-center delete-column">
+                                    <div moe relative>
+                                        <a start show><i class="fa fa-trash text-danger"></i></a>
+                                        <form url="/api/clientInfoLine/remove" right>
+                                            <input type="hidden" name="uid" value="{{ $line->uid }}">
+                                            <p class="small">Are you sure you want to delete this entry?</p>
+                                            <div class="d-flex align-items-center">
+                                                <button class="btn btn-sm btn-danger mr-2" submit>Delete</button>
+                                                <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                                            </div>
+                                        </form>
+                                    </div>
+                                </td>
+                            </tr>
+                        @endforeach
+                    @endif
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+
+        {{-- history_ob_and_preg --}}
+        <div class="mt-4">
+            <div class="d-flex align-items-center pb-2">
+                <h6 class="mr-3 my-0 font-weight-bold">OB & Pregnancy History</h6>
+                <div moe>
+                    <a start show class="btn btn-sm btn-primary py-0">+ Add</a>
+                    <form url="/api/clientInfoLine/create">
+                        <input type="hidden" name="clientUid" value="{{ $patient->uid }}">
+                        <input type="hidden" name="category" value="history_ob_and_preg">
+                        <div class="mb-2"><input type="text" class="form-control form-control-sm" name="contentText" value="" placeholder="History"></div>
+                        <div class="d-flex align-items-center">
+                            <button class="btn btn-sm btn-primary mr-2" submit>Save</button>
+                            <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                        </div>
+                    </form>
+                </div>
+            </div>
+            <table class="table table-striped table-sm table-bordered">
+                <thead>
+                <tr>
+                    {{--<th class="px-2 text-secondary">Category</th>--}}
+                    <th class="px-2 text-secondary">History</th>
+                    <th class="px-2 text-secondary delete-column">&nbsp;</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($infoLines as $category => $lines)
+                    @if($category === "history_ob_and_preg")
+                        @foreach ($lines as $line)
+                            <tr>
+                                {{--<td class="px-2">{{$category}}</td>--}}
+                                <td class="px-2">{{$line->contentText}}</td>
+                                <td class="px-2 text-center delete-column">
+                                    <div moe relative>
+                                        <a start show><i class="fa fa-trash text-danger"></i></a>
+                                        <form url="/api/clientInfoLine/remove" right>
+                                            <input type="hidden" name="uid" value="{{ $line->uid }}">
+                                            <p class="small">Are you sure you want to delete this entry?</p>
+                                            <div class="d-flex align-items-center">
+                                                <button class="btn btn-sm btn-danger mr-2" submit>Delete</button>
+                                                <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                                            </div>
+                                        </form>
+                                    </div>
+                                </td>
+                            </tr>
+                        @endforeach
+                    @endif
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+
+        {{-- history_hospitalizations_procedures --}}
+        <div class="mt-4">
+            <div class="d-flex align-items-center pb-2">
+                <h6 class="mr-3 my-0 font-weight-bold">Hospitalizations / Procedures History</h6>
+                <div moe>
+                    <a start show class="btn btn-sm btn-primary py-0">+ Add</a>
+                    <form url="/api/clientInfoLine/create">
+                        <input type="hidden" name="clientUid" value="{{ $patient->uid }}">
+                        <input type="hidden" name="category" value="history_hospitalizations_procedures">
+                        <div class="mb-2"><input type="text" class="form-control form-control-sm" name="contentText" value="" placeholder="History"></div>
+                        <div class="d-flex align-items-center">
+                            <button class="btn btn-sm btn-primary mr-2" submit>Save</button>
+                            <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                        </div>
+                    </form>
+                </div>
+            </div>
+            <table class="table table-striped table-sm table-bordered">
+                <thead>
+                <tr>
+                    {{--<th class="px-2 text-secondary">Category</th>--}}
+                    <th class="px-2 text-secondary">History</th>
+                    <th class="px-2 text-secondary delete-column">&nbsp;</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($infoLines as $category => $lines)
+                    @if($category === "history_hospitalizations_procedures")
+                        @foreach ($lines as $line)
+                            <tr>
+                                {{--<td class="px-2">{{$category}}</td>--}}
+                                <td class="px-2">{{$line->contentText}}</td>
+                                <td class="px-2 text-center delete-column">
+                                    <div moe relative>
+                                        <a start show><i class="fa fa-trash text-danger"></i></a>
+                                        <form url="/api/clientInfoLine/remove" right>
+                                            <input type="hidden" name="uid" value="{{ $line->uid }}">
+                                            <p class="small">Are you sure you want to delete this entry?</p>
+                                            <div class="d-flex align-items-center">
+                                                <button class="btn btn-sm btn-danger mr-2" submit>Delete</button>
+                                                <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                                            </div>
+                                        </form>
+                                    </div>
+                                </td>
+                            </tr>
+                        @endforeach
+                    @endif
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+
+        {{-- history_screenings --}}
+        <div class="mt-4">
+            <div class="d-flex align-items-center pb-2">
+                <h6 class="mr-3 my-0 font-weight-bold">Screenings History</h6>
+                <div moe>
+                    <a start show class="btn btn-sm btn-primary py-0">+ Add</a>
+                    <form url="/api/clientInfoLine/create">
+                        <input type="hidden" name="clientUid" value="{{ $patient->uid }}">
+                        <input type="hidden" name="category" value="history_screenings">
+                        <div class="mb-2"><input type="text" class="form-control form-control-sm" name="contentText" value="" placeholder="History"></div>
+                        <div class="d-flex align-items-center">
+                            <button class="btn btn-sm btn-primary mr-2" submit>Save</button>
+                            <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                        </div>
+                    </form>
+                </div>
+            </div>
+            <table class="table table-striped table-sm table-bordered">
+                <thead>
+                <tr>
+                    {{--<th class="px-2 text-secondary">Category</th>--}}
+                    <th class="px-2 text-secondary">History</th>
+                    <th class="px-2 text-secondary delete-column">&nbsp;</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($infoLines as $category => $lines)
+                    @if($category === "history_screenings")
+                        @foreach ($lines as $line)
+                            <tr>
+                                {{--<td class="px-2">{{$category}}</td>--}}
+                                <td class="px-2">{{$line->contentText}}</td>
+                                <td class="px-2 text-center delete-column">
+                                    <div moe relative>
+                                        <a start show><i class="fa fa-trash text-danger"></i></a>
+                                        <form url="/api/clientInfoLine/remove" right>
+                                            <input type="hidden" name="uid" value="{{ $line->uid }}">
+                                            <p class="small">Are you sure you want to delete this entry?</p>
+                                            <div class="d-flex align-items-center">
+                                                <button class="btn btn-sm btn-danger mr-2" submit>Delete</button>
+                                                <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                                            </div>
+                                        </form>
+                                    </div>
+                                </td>
+                            </tr>
+                        @endforeach
+                    @endif
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+
+        {{-- history_colonoscopy --}}
+        <div class="mt-4">
+            <div class="d-flex align-items-center pb-2">
+                <h6 class="mr-3 my-0 font-weight-bold">Colonoscopy History</h6>
+                <div moe>
+                    <a start show class="btn btn-sm btn-primary py-0">+ Add</a>
+                    <form url="/api/clientInfoLine/create">
+                        <input type="hidden" name="clientUid" value="{{ $patient->uid }}">
+                        <input type="hidden" name="category" value="history_colonoscopy">
+                        <div class="mb-2"><input type="text" class="form-control form-control-sm" name="contentText" value="" placeholder="History"></div>
+                        <div class="d-flex align-items-center">
+                            <button class="btn btn-sm btn-primary mr-2" submit>Save</button>
+                            <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                        </div>
+                    </form>
+                </div>
+            </div>
+            <table class="table table-striped table-sm table-bordered">
+                <thead>
+                <tr>
+                    {{--<th class="px-2 text-secondary">Category</th>--}}
+                    <th class="px-2 text-secondary">History</th>
+                    <th class="px-2 text-secondary delete-column">&nbsp;</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($infoLines as $category => $lines)
+                    @if($category === "history_colonoscopy")
+                        @foreach ($lines as $line)
+                            <tr>
+                                {{--<td class="px-2">{{$category}}</td>--}}
+                                <td class="px-2">{{$line->contentText}}</td>
+                                <td class="px-2 text-center delete-column">
+                                    <div moe relative>
+                                        <a start show><i class="fa fa-trash text-danger"></i></a>
+                                        <form url="/api/clientInfoLine/remove" right>
+                                            <input type="hidden" name="uid" value="{{ $line->uid }}">
+                                            <p class="small">Are you sure you want to delete this entry?</p>
+                                            <div class="d-flex align-items-center">
+                                                <button class="btn btn-sm btn-danger mr-2" submit>Delete</button>
+                                                <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                                            </div>
+                                        </form>
+                                    </div>
+                                </td>
+                            </tr>
+                        @endforeach
+                    @endif
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+
+        {{-- history_mammogram --}}
+        <div class="mt-4">
+            <div class="d-flex align-items-center pb-2">
+                <h6 class="mr-3 my-0 font-weight-bold">Mammogram History</h6>
+                <div moe>
+                    <a start show class="btn btn-sm btn-primary py-0">+ Add</a>
+                    <form url="/api/clientInfoLine/create">
+                        <input type="hidden" name="clientUid" value="{{ $patient->uid }}">
+                        <input type="hidden" name="category" value="history_mammogram">
+                        <div class="mb-2"><input type="text" class="form-control form-control-sm" name="contentText" value="" placeholder="History"></div>
+                        <div class="d-flex align-items-center">
+                            <button class="btn btn-sm btn-primary mr-2" submit>Save</button>
+                            <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                        </div>
+                    </form>
+                </div>
+            </div>
+            <table class="table table-striped table-sm table-bordered">
+                <thead>
+                <tr>
+                    {{--<th class="px-2 text-secondary">Category</th>--}}
+                    <th class="px-2 text-secondary">History</th>
+                    <th class="px-2 text-secondary delete-column">&nbsp;</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($infoLines as $category => $lines)
+                    @if($category === "history_mammogram")
+                        @foreach ($lines as $line)
+                            <tr>
+                                {{--<td class="px-2">{{$category}}</td>--}}
+                                <td class="px-2">{{$line->contentText}}</td>
+                                <td class="px-2 text-center delete-column">
+                                    <div moe relative>
+                                        <a start show><i class="fa fa-trash text-danger"></i></a>
+                                        <form url="/api/clientInfoLine/remove" right>
+                                            <input type="hidden" name="uid" value="{{ $line->uid }}">
+                                            <p class="small">Are you sure you want to delete this entry?</p>
+                                            <div class="d-flex align-items-center">
+                                                <button class="btn btn-sm btn-danger mr-2" submit>Delete</button>
+                                                <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
+                                            </div>
+                                        </form>
+                                    </div>
+                                </td>
+                            </tr>
+                        @endforeach
+                    @endif
                 @endforeach
                 </tbody>
             </table>
         </div>
 
     </div>
-    <pre>
+    <pre class="mt-5 pt-5">
         CARE PLAN: [edit]
 
             Current Medications: