|
@@ -1,6 +1,22 @@
|
|
@extends ('layouts.patient')
|
|
@extends ('layouts.patient')
|
|
|
|
|
|
@section('inner-content')
|
|
@section('inner-content')
|
|
|
|
+ <?php
|
|
|
|
+ $shortCutsObject = [];
|
|
|
|
+ foreach ($pro->shortcuts as $shortcut) {
|
|
|
|
+
|
|
|
|
+ // %replaceables%
|
|
|
|
+ $shortcut->text = str_replace("%AGE%", $patient->age_in_years, $shortcut->text);
|
|
|
|
+ $shortcut->text = str_replace("%GENDER%", $patient->sex, $shortcut->text);
|
|
|
|
+ $shortcut->text = str_replace("%NAME%", $patient->displayName(), $shortcut->text);
|
|
|
|
+
|
|
|
|
+ $shortCutsObject[] = [
|
|
|
|
+ "name" => $shortcut->shortcut,
|
|
|
|
+ "value" => $shortcut->text
|
|
|
|
+ ];
|
|
|
|
+ }
|
|
|
|
+ ?>
|
|
|
|
+ <script>window.userShortcuts = <?= json_encode($shortCutsObject); ?>;</script>
|
|
<div>
|
|
<div>
|
|
|
|
|
|
{{-- CARE PLAN START --}}
|
|
{{-- CARE PLAN START --}}
|