|
@@ -200,6 +200,12 @@
|
|
<?php
|
|
<?php
|
|
$shortCutsObject = [];
|
|
$shortCutsObject = [];
|
|
foreach ($pro->shortcuts as $shortcut) {
|
|
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[] = [
|
|
$shortCutsObject[] = [
|
|
"name" => $shortcut->shortcut,
|
|
"name" => $shortcut->shortcut,
|
|
"value" => $shortcut->text
|
|
"value" => $shortcut->text
|