From 75b10fcb33a6be68b873090faaff37b914c5b021 Mon Sep 17 00:00:00 2001 From: mdsupport Date: Wed, 10 Apr 2013 02:01:25 -0700 Subject: [PATCH] Show active patient Issues in notes. --- library/custom_template/custom_template.php | 72 ++++++++++++++++------------- 1 file changed, 39 insertions(+), 33 deletions(-) diff --git a/library/custom_template/custom_template.php b/library/custom_template/custom_template.php index 88131c2e4..1b111ee1b 100644 --- a/library/custom_template/custom_template.php +++ b/library/custom_template/custom_template.php @@ -34,6 +34,15 @@ $fake_register_globals=false; // require_once("../../interface/globals.php"); +require_once("$srcdir/lists.inc"); +// mdsupport : li code +function listitemCode ($strDisp, $strInsert) { + if ($strInsert) { + echo '
  • '. htmlspecialchars(xl($strDisp,ENT_QUOTES)) . '
  • '; + } +} + $contextName = $_REQUEST['contextName']; $type = $_REQUEST['type']; $rowContext = sqlQuery("SELECT * FROM customlists WHERE cl_list_type=2 AND cl_list_item_long=?",array($contextName)); @@ -167,44 +176,41 @@ $(document).ready(function(){
  • - $issTypeDesc) { + $res = sqlStatement('SELECT title, IF(diagnosis="","",CONCAT(" [",diagnosis,"]")) codes FROM lists WHERE pid=? AND type=? AND enddate IS NULL ORDER BY title' + ,array($pid, $issType)); + if (sqlNumRows($res)) { + ?> +
  • + +
  • + -- 2.11.4.GIT