|
@@ -0,0 +1,147 @@
|
|
|
+<?php $infoLines = json_decode($patient->info_lines);?>
|
|
|
+<?php $infoLines = !$infoLines ? [] : $infoLines; ?>
|
|
|
+<div class="<?= !@$selectable ? 'mt-2' : 'border-bottom' ?> pb-1">
|
|
|
+ <div class="d-flex align-items-center mb-2 py-2 <?= @$selectable ? 'px-2' : 'border-top' ?> border-bottom">
|
|
|
+
|
|
|
+ @if(!@$selectable)
|
|
|
+ <h6 class="my-0 font-weight-bold text-secondary">Current Problems / Focus Areas</h6>
|
|
|
+ <span class="mx-2 text-secondary">|</span>
|
|
|
+ @endif
|
|
|
+
|
|
|
+ <div moe>
|
|
|
+ <a start show class="py-0 font-weight-normal">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="ICD" value="" placeholder="ICD"></div>
|
|
|
+ <div class="mb-2"><input type="text" class="form-control form-control-sm" name="contentText" value="" placeholder="Title"></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" type="button" submit>Save</button>
|
|
|
+ <button class="btn btn-sm btn-default mr-2 border" type="button" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <span class="mx-2 text-secondary">|</span>
|
|
|
+ <div moe>
|
|
|
+ <a start show class="">Multi</a>
|
|
|
+ <form url="/api/clientInfoLine/createMultiple">
|
|
|
+ <input type="hidden" name="clientUid" value="{{ $patient->uid }}">
|
|
|
+ <input type="hidden" name="category" value="dx">
|
|
|
+ <div class="mb-2"><textarea class="form-control form-control-sm" rows="8" name="contentTexts" value="" placeholder="Dx & Focus Areas"></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>
|
|
|
+
|
|
|
+ @if(!@$selectable)
|
|
|
+ <span class="mx-2 text-secondary">|</span>
|
|
|
+ <a start show class="py-0 font-weight-normal"
|
|
|
+ href="/patients/view/{{ $patient->uid }}/dx-and-focus-areas">
|
|
|
+ View All
|
|
|
+ </a>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ <table class="table table-sm border-0 my-0 mx-2">
|
|
|
+ <tbody>
|
|
|
+ <?php $itemCount = 0; ?>
|
|
|
+ @foreach($infoLines as $category => $lines)
|
|
|
+ @if($category === "dx")
|
|
|
+ @foreach ($lines as $line)
|
|
|
+ <?php $itemCount++; ?>
|
|
|
+ <tr>
|
|
|
+ <td class="text-black p-0 border-0">
|
|
|
+ <div class="d-flex dx-item">
|
|
|
+ @if(@$selectable)
|
|
|
+ <span class="mr-2 d-inline-flex align-items-center">
|
|
|
+ <input type="checkbox" class="my-0 dx-item-checkbox">
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+ <span moe relative class="mr-2">
|
|
|
+ <a class="on-hover-opaque" start show title="Delete">
|
|
|
+ <i class="font-size-11 fa fa-trash-alt text-danger"></i>
|
|
|
+ </a>
|
|
|
+ <form url="/api/clientInfoLine/remove">
|
|
|
+ <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>
|
|
|
+ </span>
|
|
|
+ <div moe relative class="mr-2">
|
|
|
+ <a class="on-hover-opaque" start show title="Edit">
|
|
|
+ <i class="font-size-11 fa fa-edit"></i>
|
|
|
+ </a>
|
|
|
+ <form url="/api/clientInfoLine/updateContent">
|
|
|
+ <input type="hidden" name="uid" value="{{ $line->uid }}">
|
|
|
+ <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="ICD" value="{{ getVal($line->contentDetail, "ICD") }}" placeholder="ICD">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="contentText" value="{{$line->contentText}}" placeholder="Title">
|
|
|
+ </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 {{ getVal($line->contentDetail, ("Chronic or Acute")) === 'Chronic' ? 'selected' : '' }} value="Chronic">Chronic</option>
|
|
|
+ <option {{ getVal($line->contentDetail, ("Chronic or Acute")) === 'Acute' ? 'selected' : '' }} value="Acute">Acute</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="Prognosis" value="{{ getVal($line->contentDetail, "Prognosis") }}" placeholder="Prognosis">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <textarea type="text" class="form-control form-control-sm" name="Treatment Goal" placeholder="Treatment Goal">{{ getVal($line->contentDetail, "Treatment Goal") }}</textarea>
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <textarea type="text" class="form-control form-control-sm" name="Treatment Plan" placeholder="Treatment Plan">{{ getVal($line->contentDetail, "Treatment Plan") }}</textarea>
|
|
|
+ </div>
|
|
|
+ <div class="d-flex align-items-center">
|
|
|
+ <button class="btn btn-sm btn-primary mr-2" type="button" submit>Save</button>
|
|
|
+ <button class="btn btn-sm btn-default mr-2 border" type="button" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <div class="content-html">
|
|
|
+ <b>{{$line->contentText}}</b>
|
|
|
+ @if(!empty(getVal($line->contentDetail, "Chronic or Acute")))
|
|
|
+ <span class="text-secondary mx-1">/</span>
|
|
|
+ <span class="text-secondary">{{ getVal($line->contentDetail, "Chronic or Acute") }}</span>
|
|
|
+ @endif
|
|
|
+ @if(!empty(getVal($line->contentDetail, "ICD")))
|
|
|
+ <span class="text-secondary mx-1">/</span>
|
|
|
+ <span class="text-secondary">ICD: {{ getVal($line->contentDetail, "ICD") ? getVal($line->contentDetail, "ICD") : '-' }}</span>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+ @endif
|
|
|
+ @endforeach
|
|
|
+ @if($itemCount === 0)
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary p-0 border-0">
|
|
|
+ No items to show
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endif
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+</div>
|