|
@@ -1 +1,115 @@
|
|
-<h1>Edit for intake_interventions</h1>
|
|
|
|
|
|
+<?php
|
|
|
|
+
|
|
|
|
+use App\Models\Point;
|
|
|
|
+use \App\Models\Client;
|
|
|
|
+use \App\Models\Note;
|
|
|
|
+use \App\Models\Segment;
|
|
|
|
+
|
|
|
|
+/** @var Client $patient */
|
|
|
|
+/** @var Note $note */
|
|
|
|
+/** @var Segment $segment */
|
|
|
|
+
|
|
|
|
+$interventions = Point::getIntakePointsOfCategory($patient, 'INTERVENTION', $note);
|
|
|
|
+
|
|
|
|
+?>
|
|
|
|
+<div>
|
|
|
|
+
|
|
|
|
+ <div class="d-flex mb-2">
|
|
|
|
+ <table class="table table-sm table-bordered table-striped mb-0 bg-white">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr class="">
|
|
|
|
+ <th class="border-bottom-0">Category</th>
|
|
|
|
+ <th class="border-bottom-0">Intervention</th>
|
|
|
|
+ <th class="border-bottom-0">Last Review</th>
|
|
|
|
+ <th class="border-bottom-0">Review Today</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <?php $previousCategory = null; ?>
|
|
|
|
+ <?php foreach($interventions as $intervention): ?>
|
|
|
|
+ <tr>
|
|
|
|
+ <td>
|
|
|
|
+ <?php if($previousCategory === $intervention->data->category): ?>
|
|
|
|
+ <span class="text-secondary"><?= $intervention->data->category ?></span>
|
|
|
|
+ <?php else: ?>
|
|
|
|
+ <span class="font-weight-bold"><?= $intervention->data->category ?></span>
|
|
|
|
+ <?php endif; ?>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <div class="d-flex align-items-baseline">
|
|
|
|
+ <div class="<?= $intervention->is_removed ? 'strike-through' : '' ?>">
|
|
|
|
+ <?= !!@($intervention->data->intervention) ? @($intervention->data->intervention) : '' ?>
|
|
|
|
+ <br>
|
|
|
|
+ <span class="text-secondary"><?= !!@($intervention->data->description) ? @($intervention->data->description) : '' ?></span>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <!-- common actions -->
|
|
|
|
+ <div class="ml-auto d-inline-flex align-items-baseline pr-2">
|
|
|
|
+ <?php
|
|
|
|
+ $point = $intervention;
|
|
|
|
+ $label = 'Intervention';
|
|
|
|
+ include resource_path('views/app/patient/segment-templates/_common_actions/remove-undo.php');
|
|
|
|
+ ?>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <?php
|
|
|
|
+ $point = $intervention;
|
|
|
|
+ include resource_path('views/app/patient/segment-templates/_child_review/last-review.php');
|
|
|
|
+ ?>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <?php
|
|
|
|
+ $point = $intervention;
|
|
|
|
+ include resource_path('views/app/patient/segment-templates/_child_review/edit-review.php');
|
|
|
|
+ ?>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ <?php $previousCategory = $intervention->data->category; ?>
|
|
|
|
+ <?php endforeach; ?>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div visit-moe class="mt-1">
|
|
|
|
+ <a href="#" start show class="btn btn-sm btn btn-outline-primary">+ Add intervention </a>
|
|
|
|
+ <form url="/api/visitPoint/addTopLevelOnIntake" class="mcp-theme-1">
|
|
|
|
+ <input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">
|
|
|
|
+ <input type="hidden" name="category" value="INTERVENTION">
|
|
|
|
+ <input type="hidden" name="data">
|
|
|
|
+
|
|
|
|
+ <p class="mb-2"><b>Add Intervention (on intake)</b></p>
|
|
|
|
+
|
|
|
|
+ <div class="mb-2">
|
|
|
|
+ <label class="text-sm text-secondary mb-1">Name</label>
|
|
|
|
+ <select type="text" data-name="category" class="form-control form-control-sm">
|
|
|
|
+ <option value="">-- select --</option>
|
|
|
|
+ <option value="Self-Monitoring">Self-Monitoring</option>
|
|
|
|
+ <option value="Labs">Labs</option>
|
|
|
|
+ <option value="Radiology / Imaging">Radiology / Imaging</option>
|
|
|
|
+ <option value="Screenings">Screenings</option>
|
|
|
|
+ <option value="Medication Rx">Medication Rx</option>
|
|
|
|
+ <option value="Physical Therapy Rx">Physical Therapy Rx</option>
|
|
|
|
+ <option value="Occupational Therapy Rx">Occupational Therapy Rx</option>
|
|
|
|
+ <option value="Referral to Specialist / HCP">Referral to Specialist / HCP</option>
|
|
|
|
+ <option value="Clinical Instructions / Other">Clinical Instructions / Other</option>
|
|
|
|
+ <option value="SMS Reminders">SMS Reminders</option>
|
|
|
|
+ <option value="Handouts / Education Provided">Handouts / Education Provided</option>
|
|
|
|
+ </select>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mb-2">
|
|
|
|
+ <label class="text-sm text-secondary mb-1">Intervention</label>
|
|
|
|
+ <input type="text" data-name="intervention" class="form-control form-control-sm">
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mb-2">
|
|
|
|
+ <label class="text-sm text-secondary mb-1">Description</label>
|
|
|
|
+ <textarea type="text" data-name="description" class="form-control form-control-sm"></textarea>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div>
|
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-2">Submit</button>
|
|
|
|
+ <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+
|