From fe141df7387b3b00c3bf4de0caa167cabe90d305 Mon Sep 17 00:00:00 2001 From: Rod Roark Date: Sat, 12 Jul 2014 22:25:43 -0700 Subject: [PATCH] Skip manual selection of patient when CMS portal login ID is present for the demographics form. --- interface/cmsportal/patient_select.php | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/interface/cmsportal/patient_select.php b/interface/cmsportal/patient_select.php index 972c4c1d4..834c57e8b 100644 --- a/interface/cmsportal/patient_select.php +++ b/interface/cmsportal/patient_select.php @@ -102,9 +102,17 @@ function openPatient(ptid) { = 100) { + ++$login_matches; + $login_pid = $row['pid']; + } + else { + // We have a match on login name but this is not one, so ignore it. + if ($login_matches) continue; + } $phone = $row['phone_biz']; if (empty($phone)) $phone = $row['phone_home']; if (empty($phone)) $phone = $row['phone_cell']; @@ -209,6 +224,14 @@ if ($postid) { \n"; + echo "openPatient('" . addslashes($login_pid) . "');\n"; + echo "\n"; +} ?>

-- 2.11.4.GIT