* @author Shachar Zilbershlag * @author Brady Miller * @copyright Copyright (c) 2016 Shachar Zilbershlag * @copyright Copyright (c) 2016 Amiel Elboim * @copyright Copyright (c) 2019 Brady Miller * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 */ require_once(dirname(__file__) . "/../../globals.php"); require_once("$srcdir/group.inc"); use OpenEMR\Common\Acl\AclMain; function newGroupEncounter_report($group_id, $encounter, $cols, $id) { $res = sqlStatement("select * from form_groups_encounter where group_id=? and id=?", array($group_id,$id)); print "
\n"; while ($result = sqlFetchArray($res)) { print "" . xlt('Facility') . ": " . text($result["facility"]) . "
\n"; if (AclMain::aclCheckCore('sensitivities', $result['sensitivity'])) { print "" . xlt('Reason') . ": " . nl2br(text($result["reason"])) . "
\n"; $counselors = ''; foreach (explode(',', $result["counselors"]) as $userId) { $counselors .= getUserNameById($userId) . ', '; } $counselors = rtrim($counselors, ", "); print "" . xlt('Counselors') . ": " . nl2br(text($counselors)) . "
\n"; } } print "
\n"; }