feat: Recent patient list (#6641)
commitcc4eb0e1ae673b97986d8132e5520c6e2f133b6a
authorRobert Down RN <robertdown@live.com>
Sat, 8 Jul 2023 13:08:12 +0000 (8 09:08 -0400)
committerGitHub <noreply@github.com>
Sat, 8 Jul 2023 13:08:12 +0000 (8 09:08 -0400)
tree1be3904d9044d6779a70a887151f341f7fde157f
parent40a0ab1b27e697bfc30eb437d004410093cb8383
feat: Recent patient list (#6641)

Introduce a Recent Patient list which is updated when the demographics page loads and sets a PID. The number of patients on the list can be set in Admin > Config > Appearance and the columns to render can be customized with the Recent Patient Columns List. The default UI is a tab on the Patient Finder window.

Developers can programmatically get the list by using the new `getRecentPatientList()` function in PatientService and can update the list by calling `touchRecentPatientList()` and passing in an array of patient data.

Several Twig changes are incorporated as side effects. First, the introduction of a new Twig global variable called `session` which is a reference to `$_SESSION` Second, an update to `csrfToken` function which allows the template to pass a field name to as a parameter, the default remains `_token`. Lastly, a new function called `aclCore` was added which is a wrapper to `AclMain::aclCheckCore()` with the same parameter and return signature.
interface/main/finder/dynamic_finder.php
interface/patient_file/summary/demographics.php
library/globals.inc.php
sql/7_0_1-to-7_0_2_upgrade.sql
sql/database.sql
src/Common/Twig/TwigExtension.php
src/Services/PatientService.php
templates/patient_finder/finder.html.twig [new file with mode: 0644]