Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing quiz results

Status
Not open for further replies.

ekinike

IS-IT--Management
Oct 20, 2001
123
US
The following is a sample quiz I've created. How can I add a print button to the end, which will allow for the grade to be printed out? I do not want the right or wrong answers, just the actual grade.

In addition to that, how can I add a field where the person taking the test would have to enter their name and SSN prior to starting the test, which would be included in the results page?


<?xml version=&quot;1.0&quot;?>
<!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;xhtml11.dtd&quot;>
<html xmlns=&quot; xml:lang=&quot;en&quot;>
<head>

<link rel=&quot;schema.DC&quot; href=&quot; />
<meta name=&quot;DC:Title&quot; content=&quot;HIPAA SERIES: Confidentiality and Privacy Under HIPAA for Medical Records Staff&quot; />


<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; />

<title>
HIPAA SERIES: Confidentiality and Privacy Under HIPAA for Medical Records Staff
</title>

<!-- Made with executable version 5.5 Release 0 Build 20 -->

<style type=&quot;text/css&quot;>

body{
font-family: Geneva,Arial;
background-color: #ffffff;
color: #000000;
background-image: url(/test/logo.jpg);
padding-left: 5%;
padding-right: 5%;
font-size: small;
}

p{
text-align: justify;
margin: 0px;
font-size: small;
}

table,tr,td,div,span{
font-size: small;
}

div.Titles{
padding-top: 10px;
text-align: center;
margin-bottom: 4px;
color: #000033;
}

.ExerciseTitle{
font-size: large;
color: #000033;
}

.ExerciseSubtitle{
color: #000033;

}

span.Instructions{

}

.QuestionText{

}

.AnswerText{

}

.QNum{
font-weight: bold;
}

.FeedbackText{

}

div.Feedback {
background-color: #ffffff;
left: 1px;
top: 33%;
z-index: 1;
border-style: solid;
border-width: 1px;
padding: 5px;
text-align: center;
color: #000033;
position: absolute;
display: none;
font-size: small;
}



div.StdDiv{
background-color: #bbbbee;
text-align: center;
color: #000000;
padding: 1em;
border-style: solid;
border-width: 1px;
border-color: #000000;
margin: 1px 0px 0px 0px;
font-size: small;
}


.FunctionButton {
background-color: #bbbbee;
color: #000000;
text-align: center;
border-style: solid;
border-color: #bbbbee;
border-width: 2px;
padding: 3px 6px 3px 6px;
cursor: pointer;
}

div.NavButtonBar{
background-color: #000066;
text-align: center;
margin: 2px 0px 2px 0px;
clear: both;
font-size: small;
}

div.NavButtonBar button {
border-style: solid;
border-color: #000066;
background-color: #000066;
border-width: 2px;
padding: 2px 2px 2px 2px;
color: #ffffff;
cursor: pointer;
}

a{
color: #0000ff;
}

a:visited{
color: #0000cc;
}

a:hover{
color: #0000ff;
}

</style>


<script type=&quot;text/javascript&quot;>

//<![CDATA[

<!--

// BrowserCheck Object


function BrowserCheck() {
var b = navigator.appName;
this.mac = (navigator.appVersion.indexOf('Mac') != -1);
if (b==&quot;Netscape&quot;) this.b = 'ns';
else if (b==&quot;Microsoft Internet Explorer&quot;) this.b = 'ie';
else this.b = b;
this.ns = (this.b == 'ns');
this.ie = (this.b == 'ie');
this.version = navigator.appVersion;
if (this.b == 'ie'){
var x = this.version.indexOf('MSIE ') + 5;
var vnum = '';

while ((this.version.charAt(x) > -1)&&(this.version.charAt(x) < 10)){
vnum += this.version.charAt(x);
x++;
}
this.v = parseInt(vnum);
}
else{
this.v = parseInt(this.version);
}
if (this.ns&&(this.v == 5)){
this.v = 6;
}
this.min = (this.v > 5);
}

is = new BrowserCheck();

if ((is.min == false)||(is.ie5mac)){
alert('Your browser can\'t handle this page. You need NS6+ or IE6+ on Windows, or NS6+ on Mac.');
}

function PageDim(){
//Get the page width and height
this.W = 600;
this.H = 400;
if (is.ns) this.W = window.innerWidth;
if (is.ie) this.W = document.body.clientWidth;
if (is.ns) this.H = window.innerHeight;
if (is.ie) this.H = document.body.clientHeight;

}

var pg = null;

function SuppressBackspace(e){

if (is.ns) {
thisKey = e.keyCode;
}
else {
thisKey = window.event.keyCode;
}

var Suppress = false;

if (thisKey == 8) {
Suppress = true;
}

if (Suppress == true){
if (is.ie){
window.event.returnValue = false;
window.event.cancelBubble = true;
}
else{
e.preventDefault();
}
}
}

var NavLightColor = '#7f7fb2';
var NavShadeColor = '#000033';
var NavBarColor = '#000066';
var FuncLightColor = '#ddddf6';
var FuncShadeColor = '#5d5d77';
var ExBGColor = '#bbbbee';

function NavBtnOver(Btn){
Btn.style.padding = '1px 3px 3px 1px';
Btn.style.borderLeftColor = NavLightColor;
Btn.style.borderTopColor = NavLightColor;
Btn.style.borderRightColor = NavShadeColor;
Btn.style.borderBottomColor = NavShadeColor;
}

function NavBtnOut(Btn){
Btn.style.borderColor = NavBarColor;
Btn.style.padding = '2px 2px 2px 2px';
}

function NavBtnDown(Btn){
Btn.style.borderLeftColor = NavShadeColor;
Btn.style.borderTopColor = NavShadeColor;
Btn.style.borderRightColor = NavLightColor;
Btn.style.borderBottomColor = NavLightColor;
Btn.style.padding = '3px 1px 1px 3px';
}

function FuncBtnOver(Btn){
Btn.style.padding = '2px 7px 4px 5px';
Btn.style.borderLeftColor = FuncLightColor;
Btn.style.borderTopColor = FuncLightColor;
Btn.style.borderRightColor = FuncShadeColor;
Btn.style.borderBottomColor = FuncShadeColor;
}

function FuncBtnOut(Btn){
Btn.style.borderColor = '#bbbbee';
Btn.style.padding = '3px 6px 3px 6px';
}

function FuncBtnDown(Btn){
Btn.style.borderLeftColor = FuncShadeColor;
Btn.style.borderTopColor = FuncShadeColor;
Btn.style.borderRightColor = FuncLightColor;
Btn.style.borderBottomColor = FuncLightColor;
Btn.style.padding = '4px 5px 2px 7px';
}

var topZ = 100;

var CurrQNum = 0;
var ALetters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
var CorrectIndicator = ':)';
var IncorrectIndicator = 'X';
var YourScoreIs = 'Your score is ';
var Tries = 0;
var CorrectChoices = 0;
var ContinuousScoring = false;
var CorrectFirstTime = 'Questions answered correctly: ';
var ShuffleQs = false;
var ShuffleAs = false;
var DefaultRight = '';
var DefaultWrong = '';
var QsToShow = 20;
var ReadingURL = '[ReadingURL]';
var Score = 0;
var TempReading = '';
var StartTime = (new Date()).toLocaleString();
var HPNStartTime = (new Date()).getTime();
var Finished = false;
var SubmissionTimeout = 30000;



var QButtonsOpener = '<button class=&quot;FunctionButton&quot; onfocus=&quot;FuncBtnOver(this)&quot; onblur=&quot;FuncBtnOut(this)&quot; onmouseover=&quot;FuncBtnOver(this)&quot; onmouseout=&quot;FuncBtnOut(this)&quot; onmousedown=&quot;FuncBtnDown(this)&quot; onmouseup=&quot;FuncBtnOver(this)&quot; onclick=&quot;ChangeQ(-1); return false;&quot;>&nbsp;&lt;=&nbsp;</button><span class=&quot;QNum&quot;>';
var QButtonsCloser = '</span><button id=&quot;NextQButton&quot; class=&quot;FunctionButton&quot; onfocus=&quot;FuncBtnOver(this)&quot; onblur=&quot;FuncBtnOut(this)&quot; onmouseover=&quot;FuncBtnOver(this)&quot; onmouseout=&quot;FuncBtnOut(this)&quot; onmousedown=&quot;FuncBtnDown(this)&quot; onmouseup=&quot;FuncBtnOver(this)&quot; onclick=&quot;ChangeQ(1); return false;&quot;>&nbsp;=&gt;&nbsp;</button>';


var TableOpener = '<form name=&quot;QForm&quot;>';
TableOpener += '<table border=&quot;0&quot; style=&quot;margin-left: auto; margin-right: auto; margin-top: 10px;&quot;>';
var QRow = '<tr><td valign=&quot;top&quot; align=&quot;right&quot;><span class=&quot;QNum&quot;>[QNumber].&nbsp;&nbsp;</span></td>';
QRow += '<td valign=&quot;top&quot; align=&quot;left&quot;> <p><span class=&quot;QuestionText&quot;>[Question]</span><br />&nbsp;</p>';
QRow += '</td></tr>';

var ARow = '<tr><td>&nbsp;</td><td><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;2&quot;>';
ARow += '<tr><td></td><td valign=&quot;middle&quot; align=&quot;left&quot;><span id=&quot;FB_[QNum]_[ANum]&quot;>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></td>';
ARow += '<td valign=&quot;middle&quot; align=&quot;left&quot;><button class=&quot;FunctionButton&quot; onfocus=&quot;FuncBtnOver(this)&quot; onmouseover=&quot;FuncBtnOver(this)&quot; onblur=&quot;FuncBtnOut(this)&quot; onmouseout=&quot;FuncBtnOut(this)&quot; onmousedown=&quot;FuncBtnDown(this)&quot; onmouseup=&quot;FuncBtnOver(this)&quot; onclick=&quot;CheckAnswer([QNum],[ANum]); return false;&quot;>&nbsp;[ALetter]&nbsp;</button></td>';

ARow += '<td><span class=&quot;AnswerText&quot;>[Ans]</span></td></tr>';
ARow += '</table></td></tr>';

var MARow = '<tr><td></td><td valign=&quot;top&quot; align=&quot;left&quot;><input type=&quot;checkbox&quot; name=&quot;A_[QNum]_[ANum]&quot; value=&quot;[Correct]&quot;></input>';
MARow += '<span class=&quot;AnswerText&quot;>[Ans]</span></td></tr>';


var CheckButton = '<tr><td align=&quot;center&quot; colspan=&quot;2&quot;><table border=&quot;0&quot;><tr><td>';
CheckButton += '<button class=&quot;FunctionButton&quot; onmouseover=&quot;FuncBtnOver(this)&quot; onfocus=&quot;FuncBtnOver(this)&quot; onmouseout=&quot;FuncBtnOut(this)&quot; onblur=&quot;FuncBtnOut(this)&quot; onmousedown=&quot;FuncBtnDown(this)&quot; onmouseup=&quot;FuncBtnOver(this)&quot; onclick=&quot;CheckMulti([QNum]); return false;&quot;>&nbsp;Check&nbsp;</button>';
CheckButton += '</td></tr></table></td></tr>';

TableCloser = '</table></form>';

function ReduceItems(){
var ItemToDump=0;
var j=0;
while (I.length > QsToShow){
ItemToDump = Math.floor(I.length*Math.random());
for (j=ItemToDump; j<(I.length-1); j++){
I[j] = I[j+1];
}
I.length = I.length-1;
}
}

function Shuffle(InArray){
Temp = new Array();
var Len = InArray.length;

var j = Len;

for (var i=0; i<Len; i++){
Temp = InArray;
}

for (i=0; i<Len; i++){
Num = Math.floor(j * Math.random());
InArray = Temp[Num];

for (var k=Num; k < j; k++) {
Temp[k] = Temp[k+1];
}
j--;
}
return InArray;
}

function WriteFeedback(Feedback){
var Output = Feedback + '<br /><br />';
document.getElementById('FeedbackContent').innerHTML = Output;
var FDiv = document.getElementById('FeedbackDiv');
//Calculate and set its left setting
topZ++;
FDiv.style.zIndex = topZ;

//Position the feedback div
pg = new PageDim();
FDiv.style.left = Math.floor(pg.W/3) + 'px';
FDiv.style.width = Math.floor(pg.W/3) + 'px';
//Set the top again in case the window has been resized
if (is.ns){
FDiv.style.top = Math.floor(pg.H/3) + window.pageYOffset + 'px';
}
else{
FDiv.style.top = Math.floor(pg.H/3) + document.body.scrollTop + 'px';
}
FDiv.style.display = 'block';
document.getElementById('FeedbackOKButton').focus();


}

function HideFeedback(){
document.getElementById('FeedbackOKButton').blur();
document.getElementById('FeedbackContent').innerHTML = '';
document.getElementById('FeedbackDiv').style.display='none';
document.getElementById('NextQButton').focus();
if (Finished == true){
Finish();
}
}

function WriteToInstructions(Feedback) {
Feedback = '<span class=&quot;FeedbackText&quot;>' + Feedback + '</span>';
document.getElementById('InstructionsDiv').innerHTML = Feedback;

}

function WriteScore(Feedback) {
Feedback = '<span class=&quot;FeedbackText&quot;>' + Feedback + '</span>';
document.getElementById('ScoreDiv').innerHTML = Feedback;

}




function StartUp(){

//IE bug avoidance -- remove bottom navbar
if (is.ie){
if (document.getElementById('BottomNavBar') != null){
document.getElementById('TheBody').removeChild(document.getElementById('BottomNavBar'));
}
}

if (is.ie){
document.attachEvent('onkeydown',SuppressBackspace);
window.attachEvent('onkeydown',SuppressBackspace);
}
else if (is.ns){
window.addEventListener('keypress',SuppressBackspace,false);
}





//Reduce array if required
if (QsToShow < I.length){
ReduceItems();
}

//Shuffle stuff if required

if (ShuffleQs == true){
I = Shuffle(I);
}

if (ShuffleAs == true){
for (var i=0; i<I.length; i++){
I[1] = Shuffle(I[1]);
}
}

//Create arrays
CreateStatusArrays();


//Show the first question
ShowQuestion(CurrQNum);



}


I = new Array();

I[0] = new Array();
I[0][0]='True or false? The criminal penalties for improperly disclosing patient health information can include fines of up to $250,000 and prison sentences of up to 10 years';
I[0][1] = new Array();
I[0][1][0] = new Array();
I[0][1][0][0]='True';
I[0][1][0][1]='';
I[0][1][0][2] = 1;
I[0][1][1] = new Array();
I[0][1][1][0]='False';
I[0][1][1][1]='';
I[0][1][1][2] = 0;
I[0][2] = 0;

I[1] = new Array();
I[1][0]='True or false? Privacy laws&#255;do not&#255;allow health care providers to report suspected cases of abuse and certain public health information to authorities, even when other laws require it.';
I[1][1] = new Array();
I[1][1][0] = new Array();
I[1][1][0][0]='True';
I[1][1][0][1]='';
I[1][1][0][2] = 0;
I[1][1][1] = new Array();
I[1][1][1][0]='False';
I[1][1][1][1]='';
I[1][1][1][2] = 1;
I[1][2] = 0;

I[2] = new Array();
I[2][0]='True or false? Confidentiality protections cover not just a patient\'s health related information, such as the reason for treatment, but also information such as name, address, Social Security number and telephone number.';
I[2][1] = new Array();
I[2][1][0] = new Array();
I[2][1][0][0]='True';
I[2][1][0][1]='';
I[2][1][0][2] = 1;
I[2][1][1] = new Array();
I[2][1][1][0]='False';
I[2][1][1][1]='';
I[2][1][1][2] = 0;
I[2][2] = 0;

I[3] = new Array();
I[3][0]='True or False? You should always double check the address line of an email before sending it to anyone.<br />';
I[3][1] = new Array();
I[3][1][0] = new Array();
I[3][1][0][0]='True';
I[3][1][0][1]='';
I[3][1][0][2] = 1;
I[3][1][1] = new Array();
I[3][1][1][0]='False';
I[3][1][1][1]='';
I[3][1][1][2] = 0;
I[3][2] = 0;

I[4] = new Array();
I[4][0]='True or false? All inpatients must be listed in the patient directory.';
I[4][1] = new Array();
I[4][1][0] = new Array();
I[4][1][0][0]='True';
I[4][1][0][1]='';
I[4][1][0][2] = 0;
I[4][1][1] = new Array();
I[4][1][1][0]='False';
I[4][1][1][1]='';
I[4][1][1][2] = 1;
I[4][2] = 0;

I[5] = new Array();
I[5][0]='True or False? Your facility must make any amendments to records that patients request.';
I[5][1] = new Array();
I[5][1][0] = new Array();
I[5][1][0][0]='True';
I[5][1][0][1]='';
I[5][1][0][2] = 0;
I[5][1][1] = new Array();
I[5][1][1][0]='False';
I[5][1][1][1]='';
I[5][1][1][2] = 1;
I[5][2] = 0;

I[6] = new Array();
I[6][0]='True or False? Patients do not have the right to see psychotherapy notes that document or analyze the contents of conversation during a counseling session and are kept separate from the rest of the patient\'s medical record.<br />';
I[6][1] = new Array();
I[6][1][0] = new Array();
I[6][1][0][0]='True';
I[6][1][0][1]='';
I[6][1][0][2] = 1;
I[6][1][1] = new Array();
I[6][1][1][0]='False';
I[6][1][1][1]='';
I[6][1][1][2] = 0;
I[6][2] = 0;

I[7] = new Array();
I[7][0]='True or false? An employee who violates&#255;the organization privacy policy is subject to punishments up to and including firing.<br />';
I[7][1] = new Array();
I[7][1][0] = new Array();
I[7][1][0][0]='True';
I[7][1][0][1]='';
I[7][1][0][2] = 1;
I[7][1][1] = new Array();
I[7][1][1][0]='False';
I[7][1][1][1]='';
I[7][1][1][2] = 0;
I[7][2] = 0;

I[8] = new Array();
I[8][0]='True or False? Facilities must obtain authorization from new mothers before sending their names and addresses to a local cloth diaper service.';
I[8][1] = new Array();
I[8][1][0] = new Array();
I[8][1][0][0]='True';
I[8][1][0][1]='';
I[8][1][0][2] = 1;
I[8][1][1] = new Array();
I[8][1][1][0]='False';
I[8][1][1][1]='';
I[8][1][1][2] = 0;
I[8][2] = 0;

I[9] = new Array();
I[9][0]='True or false? Transcriptionists who work from home can use the family computer to do their work.';
I[9][1] = new Array();
I[9][1][0] = new Array();
I[9][1][0][0]='True';
I[9][1][0][1]='';
I[9][1][0][2] = 0;
I[9][1][1] = new Array();
I[9][1][1][0]='False';
I[9][1][1][1]='';
I[9][1][1][2] = 1;
I[9][2] = 0;

I[10] = new Array();
I[10][0]='A man comes into the facility and tells you he is supposed to work on the computers and wants you to open a door for him or point the way to a workstation. How should you respond to the request?';
I[10][1] = new Array();
I[10][1][0] = new Array();
I[10][1][0][0]='provide him with the information or access he needs';
I[10][1][0][1]='';
I[10][1][0][2] = 0;
I[10][1][1] = new Array();
I[10][1][1][0]='ask him who at the organization hired him and find that person for assistance';
I[10][1][1][1]='';
I[10][1][1][2] = 1;
I[10][1][2] = new Array();
I[10][1][2][0]='call the police';
I[10][1][2][1]='';
I[10][1][2][2] = 0;
I[10][1][3] = new Array();
I[10][1][3][0]='none of the above';
I[10][1][3][1]='';
I[10][1][3][2] = 0;
I[10][2] = 0;

I[11] = new Array();
I[11][0]='Your sister\'s friend just had triple bypass surgery at your facility. She asks you to find out his prognosis. What should you do?';
I[11][1] = new Array();
I[11][1][0] = new Array();
I[11][1][0][0]='Ask a nurse on the floor how the patient is doing and pass the information along to your sister.';
I[11][1][0][1]='';
I[11][1][0][2] = 0;
I[11][1][1] = new Array();
I[11][1][1][0]='Log in to the computerized record system and read the patient\'s record to find information for your sister.';
I[11][1][1][1]='';
I[11][1][1][2] = 0;
I[11][1][2] = new Array();
I[11][1][2][0]='Explain that it\'s a violation of the patient\'s privacy for you to ask around or look at his record, and suggest that she call the information desk or one of her friend\'s family members.';
I[11][1][2][1]='';
I[11][1][2][2] = 1;
I[11][1][3] = new Array();
I[11][1][3][0]='none of the above';
I[11][1][3][1]='';
I[11][1][3][2] = 0;
I[11][2] = 0;

I[12] = new Array();
I[12][0]='Under what circumstances are you free to repeat protected health information that you hear on the job?';
I[12][1] = new Array();
I[12][1][0] = new Array();
I[12][1][0][0]='After you no longer work at the organization';
I[12][1][0][1]='';
I[12][1][0][2] = 0;
I[12][1][1] = new Array();
I[12][1][1][0]='After the patient dies';
I[12][1][1][1]='';
I[12][1][1][2] = 0;
I[12][1][2] = new Array();
I[12][1][2][0]='Only if you believe the patient won\'t mind';
I[12][1][2][1]='';
I[12][1][2][2] = 0;
I[12][1][3] = new Array();
I[12][1][3][0]='when your job reqiures it';
I[12][1][3][1]='';
I[12][1][3][2] = 1;
I[12][2] = 0;

I[13] = new Array();
I[13][0]='Which of the following are common features designed to protect confidentiality of health information contained in patient medical records?';
I[13][1] = new Array();
I[13][1][0] = new Array();
I[13][1][0][0]='locks on medical records rooms';
I[13][1][0][1]='';
I[13][1][0][2] = 0;
I[13][1][1] = new Array();
I[13][1][1][0]='passwords to access computerized records';
I[13][1][1][1]='';
I[13][1][1][2] = 0;
I[13][1][2] = new Array();
I[13][1][2][0]='rules that prohibit employees from looking at records unless they have a need to know';
I[13][1][2][1]='';
I[13][1][2][2] = 0;
I[13][1][3] = new Array();
I[13][1][3][0]='all of the above';
I[13][1][3][1]='';
I[13][1][3][2] = 1;
I[13][2] = 0;

I[14] = new Array();
I[14][0]='If an facility denies a patient\'s request for an amendment to his or her record, what must be included in the denial?<br /><br />';
I[14][1] = new Array();
I[14][1][0] = new Array();
I[14][1][0][0]='the reason for the denial';
I[14][1][0][1]='';
I[14][1][0][2] = 0;
I[14][1][1] = new Array();
I[14][1][1][0]='an explanation of how the patient can file a written statement disagreeing with the denial';
I[14][1][1][1]='';
I[14][1][1][2] = 0;
I[14][1][2] = new Array();
I[14][1][2][0]='a description of how the patient may complain to the facility and the Department of Health and Human Services';
I[14][1][2][1]='';
I[14][1][2][2] = 0;
I[14][1][3] = new Array();
I[14][1][3][0]='all of the above';
I[14][1][3][1]='';
I[14][1][3][2] = 1;
I[14][2] = 0;

I[15] = new Array();
I[15][0]='Which of the following does NOT have to be included in an accounting of disclosures?<br /><br />';
I[15][1] = new Array();
I[15][1][0] = new Array();
I[15][1][0][0]='releases of the record for research purposes';
I[15][1][0][1]='';
I[15][1][0][2] = 0;
I[15][1][1] = new Array();
I[15][1][1][0]='uses of the record by the doctors and nurses treating the patient';
I[15][1][1][1]='';
I[15][1][1][2] = 1;
I[15][1][2] = new Array();
I[15][1][2][0]='releases of patient information to a marketing firm';
I[15][1][2][1]='';
I[15][1][2][2] = 0;
I[15][1][3] = new Array();
I[15][1][3][0]='all of the above';
I[15][1][3][1]='';
I[15][1][3][2] = 0;
I[15][2] = 0;

I[16] = new Array();
I[16][0]='When is the patient\'s authorization to release information required?';
I[16][1] = new Array();
I[16][1][0] = new Array();
I[16][1][0][0]='in most cases in which patient information is going to be shared with anyone for reasons other than treatment, payment, or healthcare operations.';
I[16][1][0][1]='';
I[16][1][0][2] = 1;
I[16][1][1] = new Array();
I[16][1][1][0]='upon admission to a hospital';
I[16][1][1][1]='';
I[16][1][1][2] = 0;
I[16][1][2] = new Array();
I[16][1][2][0]='when patient information is to be shared among two or more clinicians';
I[16][1][2][1]='';
I[16][1][2][2] = 0;
I[16][1][3] = new Array();
I[16][1][3][0]='when patient information is used for billing a private insurer';
I[16][1][3][1]='';
I[16][1][3][2] = 0;
I[16][2] = 0;

I[17] = new Array();
I[17][0]='You are walking back to the HIM department when you hear that a neighbor has just arrived in the ER for treatment after a car crash. What should you do?';
I[17][1] = new Array();
I[17][1][0] = new Array();
I[17][1][0][0]='Contact the neighbor\'s spouse to alert him or her about the accident.';
I[17][1][0][1]='';
I[17][1][0][2] = 0;
I[17][1][1] = new Array();
I[17][1][1][0]='Do nothing and pretend you don\'t know about it.';
I[17][1][1][1]='';
I[17][1][1][2] = 0;
I[17][1][2] = new Array();
I[17][1][2][0]='Tell the charge nurse in the ER that you know how to reach that patient\'s spouse and can offer the information needed.';
I[17][1][2][1]='';
I[17][1][2][2] = 1;
I[17][1][3] = new Array();
I[17][1][3][0]='none of the above';
I[17][1][3][1]='';
I[17][1][3][2] = 0;
I[17][2] = 0;

I[18] = new Array();
I[18][0]='Which of the following is personal health information protected under HIPAA?<br /><br />';
I[18][1] = new Array();
I[18][1][0] = new Array();
I[18][1][0][0]='the patient\'s address';
I[18][1][0][1]='';
I[18][1][0][2] = 1;
I[18][1][1] = new Array();
I[18][1][1][0]='the patient\'s allergies';
I[18][1][1][1]='';
I[18][1][1][2] = 0;
I[18][1][2] = new Array();
I[18][1][2][0]='the patient\'s medical record number ';
I[18][1][2][1]='';
I[18][1][2][2] = 0;
I[18][1][3] = new Array();
I[18][1][3][0]='all of the above';
I[18][1][3][1]='';
I[18][1][3][2] = 0;
I[18][2] = 0;

I[19] = new Array();
I[19][0]='Which of the following types of information does HIPAA\'s privacy rule protect?';
I[19][1] = new Array();
I[19][1][0] = new Array();
I[19][1][0][0]='patient information in electronic form';
I[19][1][0][1]='';
I[19][1][0][2] = 0;
I[19][1][1] = new Array();
I[19][1][1][0]='patient information communicated orally';
I[19][1][1][1]='';
I[19][1][1][2] = 0;
I[19][1][2] = new Array();
I[19][1][2][0]='patient information in paper form';
I[19][1][2][1]='';
I[19][1][2][2] = 0;
I[19][1][3] = new Array();
I[19][1][3][0]='all of the above';
I[19][1][3][1]='';
I[19][1][3][2] = 1;
I[19][2] = 0;


Status = new Array();


function CreateStatusArrays(){
for (var x=0; x<I.length; x++){
Status[x] = new Array();
Status[x][0] = 0; // Question not done yet
Status[x][1] = new Array(); //for tracking whether answers chosen
for (var y=0; y<I[x][1].length; y++){
Status[x][1][y] = '0'; //Answers not chosen yet
}
Status[x][2] = 0; //Wrong tries at this question so far
Status[x][3] = 0; //Score for this question, out of one
}
}

function UpdateQuestionStatus(QNum){
if (Status[QNum][2] >= Status[QNum][1].length-1){
Status[QNum][0] = 1;
for (var i=0; i<Status[QNum][1].length; i++){
if (Status[QNum][1] == '0'){
Status[QNum][1] = 'R';
}
}
}
}

function ReplaceStuff(Token, Replacement, InString){
var i = InString.indexOf(Token);
var FirstBit = '';
var LastBit = '';
while (i>-1){
FirstBit = InString.substring(0, i);
LastBit = InString.substring(i + Token.length, InString.length);
InString = FirstBit + Replacement + LastBit;
i = InString.indexOf(Token);
}
return InString;
}

function ChangeQ(ChangeBy){
var NewNum = CurrQNum + ChangeBy;
if ((NewNum >= 0)&&(NewNum<I.length)){
CurrQNum = NewNum;
ShowQuestion(CurrQNum);
CalculateScore();
if (ContinuousScoring == true){
var CurrScore = YourScoreIs + ' ' + Score + '%.';
WriteScore(CurrScore);
}
}
}

function BuildQuestion(QNum){
if (I[QNum][2] == 0){
var Temp = ReplaceStuff('[Question]', I[QNum][0], QRow);

var AnsRows = '';
for (var i=0; i<I[QNum][1].length; i++){
TempAns = ARow;
TempAns = ReplaceStuff('[ANum]', i, TempAns);
TempAns = ReplaceStuff('[ALetter]', ' ' + ALetters.charAt(i) + ' ', TempAns);
TempAns = ReplaceStuff('[Ans]', I[QNum][1][0], TempAns);
TempAns = ReplaceStuff('[Feedback]', I[QNum][1][1], TempAns);
AnsRows += TempAns;
}
Temp += AnsRows;
Temp = ReplaceStuff('[QNumber]', QNum+1, Temp);
Temp = ReplaceStuff('[QNum]', QNum, Temp);
}
else{
var Temp = ReplaceStuff('[Question]', I[QNum][0], QRow);
var AnsRows = '';
for (var i=0; i<I[QNum][1].length; i++){
TempAns = MARow;
TempAns = ReplaceStuff('[ANum]', i, TempAns);
TempAns = ReplaceStuff('[Correct]', I[QNum][1][2], TempAns);
TempAns = ReplaceStuff('[Ans]', I[QNum][1][0], TempAns);
AnsRows += TempAns;
}
Temp += AnsRows;
Temp += CheckButton;
Temp = ReplaceStuff('[QNumber]', QNum+1, Temp);
Temp = ReplaceStuff('[QNum]', QNum, Temp);
}
return Temp;
}

function DisplayExercise(StuffToDisplay){
document.getElementById('MainDiv').innerHTML = StuffToDisplay;

}

function ShowQuestion(QNum){
//First, create the Q number readout at the top
var Readout = (QNum+1) + '/' + I.length;
while (Readout.length < 7){
Readout = ' ' + Readout + ' ';
}
Readout = QButtonsOpener + Readout + QButtonsCloser;

var Output = BuildQuestion(QNum);

Output = TableOpener + Output + TableCloser;

DisplayExercise(Readout + Output);

//Mark the answers already done
for (i=0; i<Status[QNum][1].length; i++){
if (Status[QNum][1] == 'R'){

MarkAnswer(QNum,i,true,false)
}
if (Status[QNum][1] == 'W'){
MarkAnswer(QNum,i,false,false)
}
if (Status[QNum][1] == 'C'){
CheckCheckbox(QNum,i);
}
}

//Set the focus
document.getElementById('NextQButton').focus();
}

function CheckMulti(QNum){
var TotWrong = 0;
var Output = '';
var TotAns = I[QNum][1].length;
for (var i=TotAns-1; i>=0; i--){
//Find any incorrect choices

var b = eval('document.QForm.A_' + QNum + '_' + i);

if (b != null){
//if it's wrong, count it
if (b.checked == true){
Status[QNum][1] = 'C';
}
else{
Status[QNum][1] = 'U';
}
if (((b.checked == true) && (b.value == &quot;0&quot;))||((b.checked == false)&&(b.value == &quot;1&quot;))){
TotWrong++;
}
}
}

if (TotWrong == 0){
Output = DefaultRight;
}
else{
Output = DefaultWrong + '<br />' + (TotAns-TotWrong) + '/' + TotAns;
}

//If you haven't tried the question before
if (Status[QNum][0] == 0){
if (TotWrong > 0){
Status[QNum][2]++;
}
if (TotWrong == 0){
Status[QNum][0] = 1;
//Calculate the score for this question as a floating-point fraction of 1
Status[QNum][3] = ((Status[QNum][1].length - Status[QNum][2]) - 1) / (Status[QNum][1].length - 1);
//If less than zero, set to zero
if (Status[QNum][3] < 0){Status[QNum][3] = 0;}
}
}

//Check whether the quiz is finished
Finished = true;
for (var i=0; i<Status.length; i++){
if (Status[0] == 0){Finished = false;}
}

//Calculate the score if needed


if (Status[QNum][0] == 1){
if ((Finished==true)||(ContinuousScoring==true)){
CalculateScore();
var CurrScore = YourScoreIs + ' ' + Score + '%.';
Output = Output + '<br />' + CurrScore;
WriteScore(CurrScore);
}

if (Finished == true){
var CFT = 0;
for (i=0; i<I.length; i++){
if (Status[2] == 0){
CFT++;
}


}
Output += '<br />' + CorrectFirstTime + CFT + '/' + I.length;
WriteToInstructions(Output);


setTimeout('Finish()', SubmissionTimeout);
}
}

//Show the feedback
if (Output.length > 0){
WriteFeedback(Output);
}
}

function CheckAnswer(QNum, ANum){
var Output = I[QNum][1][ANum][1];

if (Output==''){
if (I[QNum][1][ANum][2] == 1){
Output = DefaultRight;
}
else{
Output = DefaultWrong;
}
}

//If it's not been previously answered correctly
if (Status[QNum][0] == 0){
//If it's a correct answer
if (I[QNum][1][ANum][2] == 1){
Status[QNum][0] = 1;//Mark the Q as done
Status[QNum][1][ANum] = 'R';
MarkAnswer(QNum, ANum, true);
//Calculate the score for this question as a floating-point fraction of 1
var PossibleWrongs = 0;
for (var i=0; i<I[QNum][1].length; i++){
if (I[QNum][1][2] == 0){
PossibleWrongs++;
}
}

if (PossibleWrongs == 0){PossibleWrongs = 1;}

Status[QNum][3] = 1 - (Status[QNum][2]/PossibleWrongs);

//If less than zero, set to zero
if (Status[QNum][3] < 0){Status[QNum][3] = 0;}
}
else{
if (Status[QNum][1][ANum] != 'W'){
Status[QNum][1][ANum] = 'W';
MarkAnswer(QNum, ANum, false);
Status[QNum][2]++; //increment wrong tries for this Q
}
}
}

UpdateQuestionStatus(QNum);

//Check whether the quiz is finished
Finished = true;
for (var i=0; i<Status.length; i++){
if (Status[0] == 0){Finished = false;}
}

//Calculate the score if needed

if (Status[QNum][0] == 1){
if ((Finished==true)||(ContinuousScoring==true)){
CalculateScore();
var CurrScore = YourScoreIs + ' ' + Score + '%.';
Output = Output + '<br />' + CurrScore;
WriteScore(CurrScore);
}

if (Finished == true){
var CFT = 0;
for (i=0; i<I.length; i++){
if (Status[2] == 0){
CFT++;
}
}
Output += '<br />' + CorrectFirstTime + CFT + '/' + I.length;
WriteToInstructions(Output);
CurrScore = YourScoreIs + ' ' + Score + '%.';
WriteScore(CurrScore);


setTimeout('Finish()', SubmissionTimeout);
}
}

//Show the feedback
if (Output.length > 0){
WriteFeedback(Output);
}
}

function CalculateScore(){
var TriedQs = 0;
var TotalScore = 0;
for (var i=0; i<Status.length; i++){
if ((Status[2] > 0)||(Status[3] == 1)){
TriedQs++;
TotalScore += Status[3];
}
}
if (TriedQs == 0){
Score = 0;
}
else{
Score = (Math.floor(100 * (TotalScore/TriedQs)));
}
}

function MarkAnswer(QNum, ANum, Right, Done){
if (Done == false){
var Mark = CorrectIndicator;
if (Right == false){Mark = IncorrectIndicator;}
document.getElementById('FB_' + QNum + '_' + ANum).innerHTML = Mark;
}
else{
if (Right == false){
document.getElementById('FB_' + QNum + '_' + ANum).innerHTML = IncorrectIndicator;
}
else{
document.getElementById('FB_' + QNum + '_' + ANum).innerHTML = CorrectIndicator;
}
}
}

function CheckCheckbox(QNum, ANum){
if (eval('document.QForm.A_' + QNum + '_' + ANum) != null){
eval('document.QForm.A_' + QNum + '_' + ANum).checked = true;

}
}





function Finish(){
//If there's a form, fill it out and submit it
if (document.store != null){
Frm = document.store;
Frm.starttime.value = HPNStartTime;
Frm.endtime.value = (new Date()).getTime();
Frm.mark.value = Score;
Frm.submit();
}
}

//-->

//]]>

</script>


</head>
<!-- <body>Fool those dumb ad-inserting ISPs</body> -->

<body onload=&quot;StartUp()&quot; id=&quot;TheBody&quot;>

<!-- BeginTopNavButtons -->


<div class=&quot;NavButtonBar&quot;>




<button onfocus=&quot;NavBtnOver(this)&quot; onblur=&quot;NavBtnOut(this)&quot; onmouseover=&quot;NavBtnOver(this)&quot; onmouseout=&quot;NavBtnOut(this)&quot; onmousedown=&quot;NavBtnDown(this)&quot; onmouseup=&quot;NavBtnOver(this)&quot; onclick=&quot;location='/test/HIPAAExam.htm'; return false;&quot;> Index </button>




</div>


<!-- EndTopNavButtons -->

<div class=&quot;Titles&quot;>
<span class=&quot;ExerciseTitle&quot;>HIPAA SERIES: Confidentiality and Privacy Under HIPAA for Medical Records Staff</span><br />
<span class=&quot;ExerciseSubtitle&quot;>Multiple-choice exercise</span><br />
</div>



<div id=&quot;InstructionsDiv&quot; class=&quot;StdDiv&quot;>
<p id=&quot;Instructions&quot;>Choose the correct answer for each question.</p>
</div>


<div id=&quot;ScoreDiv&quot; class=&quot;StdDiv&quot;>
&nbsp;
</div>


<div id=&quot;MainDiv&quot; class=&quot;StdDiv&quot;>
&nbsp;
</div>



<div class=&quot;Feedback&quot; id=&quot;FeedbackDiv&quot;>
<div class=&quot;FeedbackText&quot; id=&quot;FeedbackContent&quot;></div>
<button id=&quot;FeedbackOKButton&quot; class=&quot;FunctionButton&quot; onfocus=&quot;FuncBtnOver(this)&quot; onblur=&quot;FuncBtnOut(this)&quot; onmouseover=&quot;FuncBtnOver(this)&quot; onmouseout=&quot;FuncBtnOut(this)&quot; onmousedown=&quot;FuncBtnDown(this)&quot; onmouseup=&quot;FuncBtnOver(this)&quot; onclick=&quot;HideFeedback(); return false;&quot;>&nbsp;OK&nbsp;</button>
</div>

<!-- BeginBottomNavButtons -->


<div class=&quot;NavButtonBar&quot; id=&quot;BottomNavBar&quot;>




<button onfocus=&quot;NavBtnOver(this)&quot; onblur=&quot;NavBtnOut(this)&quot; onmouseover=&quot;NavBtnOver(this)&quot; onmouseout=&quot;NavBtnOut(this)&quot; onmousedown=&quot;NavBtnDown(this)&quot; onmouseup=&quot;NavBtnOver(this)&quot; onclick=&quot;location='/test/HIPAAExam.htm'; return false;&quot;> Index </button>




</div>


<!-- EndBottomNavButtons -->

<!-- BeginSubmissionForm -->

<!-- EndSubmissionForm -->

</body>

</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top