|
@@ -1,4 +1,40 @@
|
|
<?php
|
|
<?php
|
|
|
|
+use App\Models\Point;
|
|
|
|
+
|
|
$category = 'PLAN_FREE_TEXT';
|
|
$category = 'PLAN_FREE_TEXT';
|
|
$endPoint = 'upsertNoteSingleton';
|
|
$endPoint = 'upsertNoteSingleton';
|
|
-include resource_path('views/app/patient/segment-templates/_simple_text_segment/edit.php');
|
|
|
|
|
|
+
|
|
|
|
+$point = Point::where('added_in_note_id', $note->id)->where('category', $category)->orderBy('id', 'DESC')->first();
|
|
|
|
+$parsed = null;
|
|
|
|
+if (!!@$point->data) {
|
|
|
|
+ $parsed = json_decode($point->data);
|
|
|
|
+}
|
|
|
|
+?>
|
|
|
|
+<div visit-moe close-on-save close-on-cancel class="d-block">
|
|
|
|
+ <form show url="/api/visitPoint/<?= $endPoint ?>" class="mcp-theme-1">
|
|
|
|
+ <input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">
|
|
|
|
+ <input type="hidden" name="category" value="<?= $category ?>">
|
|
|
|
+ <input type="hidden" name="data">
|
|
|
|
+ <div note-rte
|
|
|
|
+ class="form-group mb-2 border-left border-right rte-holder"
|
|
|
|
+ data-field-name="free_text"
|
|
|
|
+ ><?= $parsed && @$parsed->free_text ? $parsed->free_text : '' ?></div>
|
|
|
|
+ <div class="px-2">
|
|
|
|
+ @include('app.patient.segment-templates.plan_free_text_v2.allergies')
|
|
|
|
+ @include('app.patient.segment-templates.plan_free_text_v2.medications')
|
|
|
|
+ @include('app.patient.segment-templates.plan_free_text_v2.problems')
|
|
|
|
+ @include('app.patient.segment-templates.plan_free_text_v2.goals')
|
|
|
|
+ @include('app.patient.segment-templates.plan_free_text_v2.care_team')
|
|
|
|
+ </div>
|
|
|
|
+ <div class="m-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 …</span>
|
|
|
|
+ <span class="autosave-indicator saved text-sm text-secondary">
|
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
|
+ Saved
|
|
|
|
+ </span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+</div>
|