forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added easy printing of a patient note
- Loading branch information
sunsetsystems
committed
May 6, 2007
1 parent
a1c2bfc
commit 44e594b
Showing
2 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
include_once("../../globals.php"); | ||
include_once("$srcdir/pnotes.inc"); | ||
include_once("$srcdir/patient.inc"); | ||
include_once("$srcdir/acl.inc"); | ||
|
||
// Check authorization. | ||
$thisauth = acl_check('patients', 'notes'); | ||
if (!$thisauth) | ||
die("Not authorized."); | ||
$tmp = getPatientData($pid, "squad"); | ||
if ($tmp['squad'] && ! acl_check('squads', $tmp['squad'])) | ||
die("Not authorized for this squad."); | ||
|
||
$noteid = $_REQUEST['noteid']; | ||
|
||
$title = ''; | ||
$assigned_to = ''; | ||
$body = ''; | ||
$activity = 0; | ||
if ($noteid) { | ||
$prow = getPnoteById($noteid, 'title,assigned_to,activity,body'); | ||
$title = $prow['title']; | ||
$assigned_to = $prow['assigned_to']; | ||
$activity = $prow['activity']; | ||
$body = $prow['body']; | ||
} | ||
?> | ||
<html> | ||
<head> | ||
<link rel='stylesheet' href="<?echo $css_header;?>" type="text/css"> | ||
</head> | ||
|
||
<body <?echo $top_bg_line;?> topmargin='0' rightmargin='0' leftmargin='2' | ||
bottommargin='0' marginwidth='2' marginheight='0'> | ||
|
||
<p><b><?php echo $title; ?></b></p> | ||
|
||
<p>Assigned To: <?php echo $assigned_to; ?></p> | ||
|
||
<p>Active: <?php echo $activity ? 'Yes' : 'No'; ?></p> | ||
|
||
<p><?php echo $body; ?></p> | ||
|
||
<script language='JavaScript'> | ||
window.print(); | ||
</script> | ||
|
||
</body> | ||
</html> |