本文整理汇总了PHP中getPatientName函数的典型用法代码示例。如果您正苦于以下问题:PHP getPatientName函数的具体用法?PHP getPatientName怎么用?PHP getPatientName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getPatientName函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: lab_results_messages
function lab_results_messages($set_pid, $rid, $provider_id = "")
{
if ($provider_id != "") {
$where = "AND id = '" . $provider_id . "'";
}
// Get all active users.
$rez = sqlStatement("select id, username from users where username != '' AND active = '1' {$where}");
for ($iter = 0; $row = sqlFetchArray($rez); $iter++) {
$result[$iter] = $row;
}
if (!empty($result)) {
foreach ($result as $user_detail) {
unset($thisauth);
// Make sure it is empty.
// Check user authorization. Only send the panding review message to authorised user.
// $thisauth = acl_check('patients', 'sign', $user_detail['username']);
// Route message to administrators if there is no provider match.
if ($provider_id == "") {
$thisauth = acl_check('admin', 'super', $user_detail['username']);
} else {
$thisauth = true;
}
if ($thisauth) {
// Send lab result message to the ordering provider when there is a new lab report.
$userauthorized = formData("userauthorized");
$pname = getPatientName($set_pid);
$link = "<a href='../../orders/orders_results.php?review=1&set_pid={$set_pid}'" . " onclick='return top.restoreSession()'>here</a>";
$note = "Patient {$pname}'s lab results have arrived. Please click {$link} to review them.<br/>";
$note_type = "Lab Results";
$message_status = "New";
// Add pnote.
$noteid = addPnote($set_pid, $note, $userauthorized, '1', $note_type, $user_detail['username']);
sqlQ("update pnotes set message_status='" . $message_status . "' where id = '{$noteid}'");
}
}
}
}
开发者ID:robonology,项目名称:openemr,代码行数:37,代码来源:lab_results_messages.php
示例2: htmlspecialchars
<?php
if (acl_check('patients', 'med', '', array('write', 'addonly'))) {
?>
<div>
<span class="title"><?php
echo htmlspecialchars(xl('Patient History / Lifestyle'), ENT_NOQUOTES);
?>
</span>
</div>
<div id='namecontainer_history' class='namecontainer_history' style='float:left;margin-right:10px'>
<?php
echo htmlspecialchars(xl('for'), ENT_NOQUOTES);
?>
<span class="title"><a href="../summary/demographics.php" onclick="top.restoreSession()"><?php
echo htmlspecialchars(getPatientName($pid), ENT_NOQUOTES);
?>
</a></span>
</div>
<div>
<a href="history_full.php"
class="css_button"
onclick="top.restoreSession()">
<span><?php
echo htmlspecialchars(xl("Edit"), ENT_NOQUOTES);
?>
</span>
</a>
<a href="../summary/demographics.php" class="css_button" onclick="top.restoreSession()">
<span><?php
echo htmlspecialchars(xl('Back To Patient'), ENT_NOQUOTES);
开发者ID:juggernautsei,项目名称:openemr,代码行数:30,代码来源:history.php
示例3: xlt
<script type="text/javascript" src="../../../library/js/common.js"></script>
<script type="text/javascript" src="../../../library/js/fancybox/jquery.fancybox-1.2.6.js"></script>
</head>
<body class="body_top">
<div>
<span class="title"><?php
echo xlt('Disclosures');
?>
</span>
</div>
<div style='float: left; margin-right: 10px'><?php
echo xlt('for');
?>
<span class="title"><a href="../summary/demographics.php" onclick="top.restoreSession()"><?php
$pname = getPatientName($pid);
echo text($pname);
?>
</a></span>
</div>
<div>
<a href="record_disclosure.php" class="css_button iframe" onclick="top.restoreSession()"><span><?php
echo xlt('Record');
?>
</span></a>
</div>
<div>
<a href="demographics.php" <?php
if (!$GLOBALS['concurrent_layout']) {
echo "target='Main'";
}
开发者ID:katopenzz,项目名称:openemr,代码行数:31,代码来源:disclosure_full.php
示例4: acl_check
<a href='../reminder/active_reminder_popup.php' id='reminder_popup_link' style='visibility: false;' class='iframe' onclick='top.restoreSession()'></a>
<?php
$thisauth = acl_check('patients', 'demo');
if ($thisauth) {
if ($result['squad'] && !acl_check('squads', $result['squad'])) {
$thisauth = 0;
}
}
if (!$thisauth) {
echo "<p>(" . htmlspecialchars(xl('Demographics not authorized'), ENT_NOQUOTES) . ")</p>\n";
echo "</body>\n</html>\n";
exit;
}
if ($thisauth) {
echo "<table><tr><td><span class='title'>" . htmlspecialchars(getPatientName($pid), ENT_NOQUOTES) . "</span></td>";
if (acl_check('admin', 'super')) {
echo "<td style='padding-left:1em;'><a class='css_button iframe' href='../deleter.php?patient=" . htmlspecialchars($pid, ENT_QUOTES) . "' onclick='top.restoreSession()'>" . "<span>" . htmlspecialchars(xl('Delete'), ENT_NOQUOTES) . "</span></a></td>";
}
if ($GLOBALS['erx_enable']) {
echo '<td style="padding-left:1em;"><a class="css_button" href="../../eRx.php?page=medentry" onclick="top.restoreSession()">';
echo "<span>" . htmlspecialchars(xl('NewCrop MedEntry'), ENT_NOQUOTES) . "</span></a></td>";
echo '<td style="padding-left:1em;"><a class="css_button iframe1" href="../../soap_functions/soap_accountStatusDetails.php" onclick="top.restoreSession()">';
echo "<span>" . htmlspecialchars(xl('NewCrop Account Status'), ENT_NOQUOTES) . "</span></a></td><td id='accountstatus'></td>";
}
//Patient Portal
$portalUserSetting = true;
//flag to see if patient has authorized access to portal
if ($GLOBALS['portal_onsite_enable'] && $GLOBALS['portal_onsite_address']) {
$portalStatus = sqlQuery("SELECT allow_patient_portal FROM patient_data WHERE pid=?", array($pid));
if ($portalStatus['allow_patient_portal'] == 'YES') {
开发者ID:mindfeederllc,项目名称:openemr,代码行数:31,代码来源:demographics.php
示例5: list
function &postcalendar_userapi_pcGetEventDetails($eid)
{
if (!isset($eid)) {
return false;
}
list($dbconn) = pnDBGetConn();
$pntable = pnDBGetTables();
// link to the events tables
$table = $pntable['postcalendar_events'];
$cattable = $pntable['postcalendar_categories'];
$sql = "SELECT DISTINCT e.pc_eid,\n e.pc_informant,\n e.pc_catid,\n e.pc_title,\n e.pc_time,\n e.pc_hometext,\n e.pc_eventDate,\n e.pc_duration,\n e.pc_endDate,\n e.pc_startTime,\n e.pc_recurrtype,\n e.pc_recurrfreq,\n e.pc_recurrspec,\n e.pc_topic,\n e.pc_alldayevent,\n e.pc_location,\n e.pc_conttel,\n e.pc_contname,\n e.pc_contemail,\n e.pc_website,\n e.pc_fee,\n e.pc_sharing,\n c.pc_catcolor,\n c.pc_catname,\n c.pc_catdesc,\n e.pc_pid,\n e.pc_aid,\n pd.pubpid\n FROM ({$table} e, {$cattable} c)\n LEFT JOIN patient_data as pd ON (pd.pid = e.pc_pid)\n WHERE (e.pc_eid = '{$eid}' AND c.pc_catid = e.pc_catid)";
$result = $dbconn->Execute($sql);
if ($dbconn->ErrorNo() != 0) {
die($dbconn->ErrorMsg());
}
$event = array();
if (!isset($result)) {
return $event;
}
list($event['eid'], $event['uname'], $event['catid'], $event['title'], $event['time'], $event['hometext'], $event['eventDate'], $event['duration'], $event['endDate'], $event['startTime'], $event['recurrtype'], $event['recurrfreq'], $event['recurrspec'], $event['topic'], $event['alldayevent'], $event['location'], $event['conttel'], $event['contname'], $event['contemail'], $event['website'], $event['fee'], $event['sharing'], $event['catcolor'], $event['catname'], $event['catdesc'], $event['pid'], $event['aid'], $event['pubpid']) = $result->fields;
// there has to be a more intelligent way to do this
@(list($event['duration_hours'], $dmin) = @explode('.', $event['duration'] / 60 / 60));
$event['duration_minutes'] = substr(sprintf('%.2f', '.' . 60 * ($dmin / 100)), 2, 2);
//''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
$result->Close();
//pennfirm fix to reflect openemr user/informant
$userid = pnUserGetVar('uid');
// get the user id of event's author
$users = pnUserGetAll();
foreach ($users as $user) {
if ($user['uname'] == $event['uname']) {
$cuserid = $user['uid'];
break;
}
}
unset($users);
// is this a public event to be shown as busy?
if ($event['sharing'] == SHARING_PRIVATE && $cuserid != $userid) {
// they are not supposed to see this
return false;
} elseif ($event['sharing'] == SHARING_BUSY && $cuserid != $userid) {
// make it not display any information
$event['title'] = _USER_BUSY_TITLE;
$event['hometext'] = _USER_BUSY_MESSAGE;
$event['location'] = '';
$event['conttel'] = '';
$event['contname'] = '';
$event['contemail'] = '';
$event['website'] = '';
$event['fee'] = '';
} else {
$event['title'] = $event['title'];
$event['hometext'] = $event['hometext'];
$event['location'] = $event['location'];
$event['conttel'] = $event['conttel'];
$event['contname'] = $event['contname'];
$event['contemail'] = $event['contemail'];
$event['website'] = $event['website'];
$event['fee'] = $event['fee'];
}
$event['desc'] = $event['hometext'];
$event['website'] = $event['website'];
if (!empty($event['pid'])) {
$event['patient_name'] = getPatientName($event['pid']);
}
if (empty($event['aid'])) {
$event['aid'] = -1;
}
return $event;
}
开发者ID:stephen-smith,项目名称:openemr,代码行数:70,代码来源:common.api.php
示例6: xl
<?php
if ($thisauth == 'write' || $thisauth == 'addonly') {
?>
<div>
<span class="title"><?php
xl('Patient History / Lifestyle', 'e');
?>
</span>
</div>
<div style='float:left;margin-right:10px'>
<?php
echo xl('for', 'e');
?>
<span class="title"><a href="../summary/demographics.php" onclick="top.restoreSession()"><?php
echo htmlspecialchars(getPatientName($pid));
?>
</a></span>
</div>
<div>
<a href="history_full.php" <?php
if (!$GLOBALS['concurrent_layout']) {
echo "target='Main'";
}
?>
class="css_button"
onclick="top.restoreSession()">
<span><?php
echo xl("Edit");
?>
</span>
开发者ID:robonology,项目名称:openemr,代码行数:30,代码来源:history.php
示例7: htmlspecialchars
}
}
if (!$thisauth) {
echo "<p>(" . htmlspecialchars(xl('Demographics not authorized'), ENT_NOQUOTES) . ")</p>\n";
echo "</body>\n</html>\n";
exit;
}
if ($thisauth == 'write') {
foreach (pic_array() as $var) {
print $var;
}
echo "<td><a href='demographics_full.php'";
if (!$GLOBALS['concurrent_layout']) {
echo " target='Main'";
}
echo " onclick='top.restoreSession()'><span class='title'>" . htmlspecialchars(getPatientName($pid), ENT_NOQUOTES) . "</span></a> </td>";
echo "<td><a class='css_button' href='demographics_full.php'";
if (!$GLOBALS['concurrent_layout']) {
echo " target='Main'";
}
echo " onclick='top.restoreSession()'><span>" . htmlspecialchars(xl("Edit"), ENT_NOQUOTES) . "</span></a></td>";
if (acl_check('admin', 'super')) {
echo "<td><a class='css_button iframe' href='../deleter.php?patient=" . htmlspecialchars($pid, ENT_QUOTES) . "'>" . "<span>" . htmlspecialchars(xl('Delete'), ENT_NOQUOTES) . "</span></a></td>";
}
if ($GLOBALS['oer_config']['ws_accounting']['enabled']) {
// Show current balance and billing note, if any.
echo "<td> <span class='bold'><font color='#ee6600'>" . htmlspecialchars(xl('Balance Due'), ENT_NOQUOTES) . ": " . htmlspecialchars(oeFormatMoney(get_patient_balance($pid)), ENT_NOQUOTES) . "</font><br />";
if ($result['genericname2'] == 'Billing') {
htmlspecialchars(xl('Billing Note'), ENT_NOQUOTES) . ":";
echo "<span class='bold'><font color='red'>" . htmlspecialchars($result['genericval2'], ENT_NOQUOTES) . "</font></span>";
}
开发者ID:robonology,项目名称:openemr,代码行数:31,代码来源:demographics.php
注:本文中的getPatientName函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论