<cfset disform.Assessment_ID=#Session.CS.AssessmentID# />
<cfquery name="WoundCunt" datasource="#Application.DataSrc#">
	select count(1) as Wcount from #Request.prefix_db_agency#.PatientVisitDetails where PatientVisitDetails.Patient_ID='#session.cs.patientid#'
	and PatientVisitDetails.Wnd_Location<>'' and PatientVisitDetails.Wnd_Type<>'' and trim(Type)='Wound' and PatientVisitDetails.Assessment_ID='#Session.CS.AssessmentID#'
</cfquery>
<cfoutput query="WoundCunt">
	<cfset cookie.Woundcount=WoundCunt.Wcount />
</cfoutput>
<cfquery name="GetP" datasource="#Application.DataSrc#">
	SELECT Patient_ID, Last_Name_M0040 AS Last_Name, First_Name_M0040 AS First_Name, Middle_Initial_M0040 AS Middle
	,Payer_ID
	FROM  #Request.prefix_db_agency#.patient
	WHERE Patient_Id = '#session.cs.patientid#'
	AND   Agency_Id = '#session.AgencyId#'
</cfquery>
<cfquery name="disform" datasource="#Application.DataSrc#">
	SELECT  *
	FROM #Request.prefix_db_agency#.Assessment_New
	WHERE Assessment_New.Assessment_ID='#session.cs.AssessmentId#'
</cfquery>
<cfquery name="Createdby" datasource="#Application.DataSrc#">
	select Last_Name,First_Name from #Request.prefix_db_lookup#.Employee where Employee_ID = '#disform.Record_Created_By#'
</cfquery>
<cfoutput>
	<cfcookie name="M1302Pressure" value="" />
	<cfcookie name="M1306Unhealed" value="#disform.M1306_Unhealed_Pressure#" />
	<cfcookie name="PressureUlcerStatus" value="#disform.Pressure_Ulcer_Status_M0464#" />

	<cfcookie name="M1310Length" value="#disform.M1310_Length#" />
	<cfcookie name="M13101" value="#disform.M1310_1#" />
	<cfcookie name="M1312Width" value="#disform.M1312_Width#" />
	<cfcookie name="M13121" value="#disform.M1312_1#" />
	<cfcookie name="M1314Depth" value="#disform.M1314_Depth#" />
	<cfcookie name="M13141" value="#disform.M1314_1#" />

	<cfcookie name="PressureUlcerbM0450" value="#disform.Pressure_Ulcer_b_M0450#" />
	<cfcookie name="PressureUlcercM0450" value="#disform.Pressure_Ulcer_c_M0450#" />
	<cfcookie name="PressureUlcerdM0450" value="#disform.Pressure_Ulcer_d_M0450#" />
	<cfcookie name="PressureUlcereM0450" value="#disform.Pressure_Ulcer_e_M0450#" />
	<cfcookie name="M1308d2Pressure" value="#disform.M1308_d_2_Pressure#" />
	<cfcookie name="M1308d3Pressure" value="#disform.M1308_d_3_Pressure#" />

	<cfcookie name="PressureUlceraM0450" value="#disform.Pressure_Ulcer_a_M0450#" />
	<cfcookie name="PressureUlcerStageM0460" value="#disform.Pressure_Ulcer_Stage_M0460#" />
	<cfcookie name="SurgicalWoundStatusM0488" value="#disform.Surgical_Wound_Status_M0488#" />


	<cfcookie name="StasisUlcerM0468" value="#disform.Stasis_Ulcer_M0468#" />
	<cfcookie name="StasisUlcerNumM0470" value="#disform.Stasis_Ulcer_Num_M0470#" />
	<cfcookie name="StasisUlcerStatusM0476" value="#disform.Stasis_Ulcer_Status_M0476#" />
	<cfcookie name="SurgicalWoundM0482" value="#disform.Surgical_Wound_M0482#" />
</cfoutput>

 <cfscript>
		pat = CreateObject("Component", "patientadmin_new.patient.assessment");
		get_pain_que = pat.get_pain_ques('9 - Discharge from agency','pain'); 
		get_braden_que = pat.get_pain_ques('9 - Discharge from agency','braden'); 
		get_fallrisk = pat.get_pain_ques('9 - Discharge from agency','fall_risk'); 
		//get_score = pat.get_live_score();
   </cfscript>
   
<div class="portlet box blue">
	<div class="portlet-title">
		<div class="caption">
			<i class="fa fa-gear"></i>
			<cfoutput>#GetP.First_Name# #GetP.Last_Name#, Discharge From Agency</cfoutput>
		</div>
		<div class="tools">
			<a href="javascript:;" class="collapse"></a>
		</div>
	</div>
	<div class="portlet-body form">
		<!---<form name="Start" id="Start" style="background-color:white" action="" method="post">--->
			<cfoutput>
				<cfset Assesscomp = #Dateformat(disform.Assessment_Completed_M0090,"yyyy-mm-dd")# />
				<input type="hidden" name="assessmentcompleted"  id="assessmentcompleted" value="#Assesscomp#"/>
			</cfoutput>
			<cfinclude template="dischargefromagencywizard_includes/wizard.cfm" />
				<!---<cfinclude template="dischargefromagencywizard_includes/wizard1.cfm" />
		     <cfinclude template="dischargefromagencywizard_includes/wizard2.cfm" />
			<cfinclude template="dischargefromagencywizard_includes/wizard3.cfm" />
			<cfinclude template="dischargefromagencywizard_includes/wizard4.cfm" />
			<cfinclude template="dischargefromagencywizard_includes/wizard5.cfm" />
			<cfinclude template="dischargefromagencywizard_includes/wizard6.cfm" />
			<cfinclude template="dischargefromagencywizard_includes/wizard7.cfm" />
			<cfinclude template="dischargefromagencywizard_includes/wizard8.cfm" />
			<cfinclude template="dischargefromagencywizard_includes/wizard9.cfm" />
			<cfinclude template="dischargefromagencywizard_includes/wizard10.cfm" />
			<cfinclude template="dischargefromagencywizard_includes/wizard11.cfm" />
			<cfinclude template="dischargefromagencywizard_includes/wizard12.cfm" />
			<cfinclude template="dischargefromagencywizard_includes/wizard13.cfm" />
			<cfinclude template="dischargefromagencywizard_includes/wizard14.cfm" />
			<cfinclude template="dischargefromagencywizard_includes/wizard15.cfm" />--->

		<!---	<script type="text/javascript">
				$('.progress_div').css("max-width", $('.nav_pagination').width());
			</script>--->

		<!---</form>--->
	</div>
</div>



<!---<div id="pains" class="modal fade" tabindex="-1" aria-hidden="true">
								<div class="modal-dialog modal-lg">
									<div class="modal-content">
										<div class="modal-header">
											<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
											<h4 class="modal-title">Add Pain Details</h4>
										</div>
										<form name="formpain" id="formpain">
	                                     <cfoutput>
										     <div class="modal-body">
											 <div class="row">
										      					 <cfloop query="get_pain_que">
																	   <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
																				  <label class="bold">#get_pain_que.questions#</label>
																					<cfscript>
																					   get_pain_anw = pat.get_pain_anw(#get_pain_que.id#); 
																					</cfscript>
																					<div class="form-group">
																					 <cfset  cheked_value = "disform."&get_pain_anw.answer_label />
																					<cfloop query="get_pain_anw">
																						<cfif answer_type EQ 'radio'>
																											   <div class="radio-list">
																													   <label> <input type="#answer_type#" name="#answer_label#" id="#answer_label#" value="#answer#" <cfif #Evaluate(Variables.cheked_value)#  EQ  #answer#>checked </cfif>><span>#answer#</span></label>
																												</div>
																								<cfelseif answer_type EQ 'checkbox'>
																												   <div class="checkbox-list">
																													  <label><input type="#answer_type#"  name="#answer_label#" id="#answer_label#" value="#answer#" <cfif #Evaluate(Variables.cheked_value)#  Contains  #answer#>checked</cfif>>#answer#
																													 </label>
																												</div>
																								</cfif>
																						</cfloop>
																					</div>
																			</div>
																		</cfloop>
																		</div>
																	  <table style="text-align:center;">
																			<tr>
																				<td width="10%">
																					<img src="../../images/smily0.gif" />
																				</td>
																				<td width="10%">
																					<img src="../../images/smily2.gif"/>
																				</td>
																				<td width="10%">
																					<img src="../../images/smily4.gif" />
																				</td>
																				<td width="10%">
																					<img src="../../images/smily6.gif"/>
																				</td>
																				<td width="10%">
																					<img src="../../images/smily8.gif" />
																				</td>
																				<td width="10%">
																					<img src="../../images/smily10.gif"/>
																				</td>
																			</tr>
																			<tr>
																				<td  width="10%">0</td>
																				<td width="10%">2</td>
																				<td width="10%">4</td>
																				<td width="10%">6</td>
																				<td width="10%">8</td>
																				<td width="10%">10</td>
																			</tr>
																		</table>
																		<p style="color:red">
																			<cfif disform.M0420_Assess NEQ "" AND disform.Pain1 NEQ "" AND disform.Pain2 NEQ "" AND disform.Pain3 NEQ "" AND disform.Pain4 NEQ "" AND disform.Pain5 NEQ "">
																				pain assessment indicates #disform.M0420_Assess# #disform.Pain2# requiring medication every as  needed pain relief resolves pain
																			<cfelse>
																				Pain assessment incomplete
																			</cfif>
																		</p>

										</div>
										<div class="modal-footer">
											<button type="button" class="btn default" data-dismiss="modal">Close</button>
											<button type="button" class="btn blue"  name="pain"  onclick="return other_assessment_validation('pain');">Update Pain Level</button>
										</div>
										</cfoutput>
										</form>
									</div>

									<!-- /.modal-content -->
								</div>
								<!-- /.modal-dialog -->
							</div>--->
							
<cfwindow
    name="AddvitalsignForm"
    title=""
    height="500"
    width="800"
    resizable="false"
    center="true"
    closable="false"
    draggable="true"
    modal="true"
    bodystyle="background-color:white;" initshow="false">
	<cfform name="formVital" id="formVital">
		<div style="margin:0 15px;">
			<h4>Add vital</h4>
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<div class="label-stable">
							<label>Type</label>
							<div class="radio-list">
								<label>
								<input type="radio" name="radtype" value="Temperature"/> Temperature </label>
								<label>
								<input type="radio" name="radtype" value="Heart Rate"/> Heart Rate </label>
								<label>
								<input type="radio" name="radtype" value="Respiratory Rate"/> Respiratory Rate </label>
								<label>
								<input type="radio" name="radtype" value="Blood Pressure Systolic"/> Blood Pressure Systolic </label>
								<label>
								<input type="radio" name="radtype" value="Blood Pressure Diastolic"/> Blood Pressure Diastolic </label>
								<label>
								<input type="radio" name="radtype" value="Weight"/> Weight </label>
								<label>
								<input type="radio" name="radtype" value="Height"/> Height </label>
								<label>
								<input type="radio" name="radtype" value="Pain (scale 1-10)"/> Pain (scale 1-10) </label>
								<label>
								<input type="radio" name="radtype" value="Abdominal Girth"/> Abdominal Girth </label>
								<label>
								<input type="radio" name="radtype" value="Head Circumference"/> Head Circumference </label>
								<label>
								<input type="radio" name="radtype" value="O2 Saturation"/> O2 Saturation </label>
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="form-group">
						<div class="label-stable">
							<label>Severity</label>
							<div class="radio-list">
								<label>
								<input type="radio" name="radsever" value="0"/> 0 asymptomatic </label>
								<label>
								<input type="radio" name="radsever" value="1"/> 1 well-controlled </label>
								<label>
								<input type="radio" name="radsever" value="2"/> 2 controlled with difficulty </label>
								<label>
								<input type="radio" name="radsever" value="3"/> 3 poorly controlled </label>
								<label>
								<input type="radio" name="radsever" value="4"/> 4 hx hospitalizations </label>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label>Reading</label>
				<input class="form-control" type="Text" name="reading" id="reading"/>
			</div>
			<div class="form-group">
				<label>Notes</label>
				<textarea class="form-control" name='txtNotes' id="txtNotes"></textarea>
			</div>
			<div class="form-group">
				<input class="btn blue" type="button" name="Submit" value="Add Vital Sign" onClick="ValuesChk('addvital');"/>
				<input class="btn btn-default" type="button" name="Cancel" value="Cancel" id="btncancelvital" onClick="vitalcancel();"/>
			</div>
		</div>
	</cfform>
</cfwindow>

<cfwindow
    name="Vitaldiv"
    title=""
    height="500"
    width="800"
    resizable="true"
    center="true"
    closable="false"
    draggable="true"
    modal="true"
    initshow="false"
    bodystyle="background-color:white;">
	<cfform name="formvital" id="formvital">
		<div style="margin:0 15px;">
			<img title="Close" name="imgbtnSkinCloseVital" style="border:none;cursor:pointer;float:right;" id="imgbtnSkinCloseVital" onClick="ColdFusion.Window.hide('Vitaldiv');" src="../../images/icon_back.gif" width="33" height="35" />
			<h4>Vital</h4>
			<div id="wounlist" style="display:block">
				<div class="form-group">
					<label>Add Vital <img name="ImgVitalAdd" id="ImgVitalAdd" onClick="ColdFusion.Window.show('AddvitalsignForm');ColdFusion.Window.hide('Vitaldiv'); " src="../../images/icon_add.png" style="border:none;cursor:pointer"/></label>
				</div>
				<cfdiv bind="url:#Application.siteURL#/patientadmin_new/vitaldetails.cfm" style="height:150" id="theVitalDiv"></cfdiv>
			</div>
		</div>
	</cfform>
</cfwindow>

<cfwindow
    name="Pain"
    title=""
    height="500"
    width="800"
    resizable="true"
    center="true"
    closable="false"
    draggable="true"
    modal="true"
    initshow="false"
    minheight="200"
    minwidth="200"
	bodystyle="background-color:white;">
	<form name="Start2">
		<div id="DivPainAssessment" style="margin:0 15px;">
			<img title="Close" id="imgbtnClose" name="imgbtnClose" style="border:none;cursor:pointer;float:right;"  onClick="ColdFusion.Window.hide('Pain')" src="../../images/icon_back.gif" width="33" height="35" />
			<h4>Pain Assessment</h4>
			<div id="painleveld">
				<div class="form-group">
					<label>Pain Level</label><br>
					<div class="row">
						<div class="col-md-4">
							<div class="label-stable">
								<div class="radio-list">
									<label>
									<input type="radio" name="painlevel" value="pain level 0 (low)" <cfif disform.M0420_Assess EQ "pain level 0 (low)">checked </cfif>/> pain level 0 (low)</label>
									<label>
									<input type="radio" name="painlevel" value="pain level 1 (low)" <cfif disform.M0420_Assess EQ "pain level 1 (low)">checked </cfif>/> pain level 1 (low)</label>
									<label>
									<input type="radio" name="radnightonly" value="pain level 2 (low)" <cfif disform.M0420_Assess EQ "pain level 2 (low)">checked </cfif>/> pain level 2 (low)</label>
									<label>
									<input type="radio" name="painlevel" value="pain level 3 (med)" <cfif disform.M0420_Assess EQ "pain level 3 (med)">checked </cfif>/> pain level 3 (med)</label>
									<label>
									<input type="radio" name="painlevel" value="pain level 4 (med)" <cfif disform.M0420_Assess EQ "pain level 4 (med)">checked </cfif>/> pain level 4 (med)</label>
									<label>
									<input type="radio" name="painlevel" value="pain level 5 (med)" <cfif disform.M0420_Assess EQ "pain level 5 (med)">checked </cfif>/> pain level 5 (med)</label>
								</div>
							</div>
						</div>
						<div class="col-md-4">
							<div class="label-stable">
								<div class="radio-list">
									<label>
									<input type="radio" name="painlevel" value="pain level 6 (med)" <cfif disform.M0420_Assess EQ "pain level 6 (med)">checked </cfif>/> pain level 6 (med)</label>
									<label>
									<input type="radio" name="painlevel" value="pain level 7 (high)" <cfif disform.M0420_Assess EQ "pain level 7 (high)">checked </cfif>/> pain level 7 (high)</label>
									<label>
									<input type="radio" name="painlevel" value="pain level 8 (high)" <cfif disform.M0420_Assess EQ "pain level 8 (high)">checked </cfif>/> pain level 8 (high)</label>
									<label>
									<input type="radio" name="painlevel" value="pain level 9 (high)" <cfif disform.M0420_Assess EQ "pain level 9 (high)">checked </cfif>/> pain level 9 (high)</label>
									<label>
									<input type="radio" name="painlevel" value="pain level 10 (high)" <cfif disform.M0420_Assess EQ "pain level 10 (high)">checked </cfif>/> pain level 10 (high)</label>
								</div>
							</div>
						</div>
					</div>
				</div>
				<table border="0" cellpadding="0" cellspacing="0" width="100%" class="text-center">
					<tr>
						<td><img src="../../images/smily0.gif" /></td>
						<td><img src="../../images/smily2.gif"/></td>
						<td><img src="../../images/smily4.gif" /></td>
						<td><img src="../../images/smily6.gif"/></td>
						<td><img src="../../images/smily8.gif" /></td>
						<td><img src="../../images/smily10.gif"/></td>
					</tr>
					<tr>
						<td>0</td>
						<td>2</td>
						<td>4</td>
						<td>6</td>
						<td>8</td>
						<td>10</td>
					</tr>
				</table>
				<cfif disform.M0420_Assess NEQ "" AND disform.Pain1 NEQ "" AND disform.Pain2 NEQ "" AND disform.Pain3 NEQ "" AND disform.Pain4 NEQ "" AND disform.Pain5 NEQ "">
					<p style="color:red;font-size:14px;">pain assessment indicates <cfoutput>#disform.M0420_Assess#</cfoutput> <cfoutput>#disform.Pain2#</cfoutput> requiring medication every as needed pain relief resolves pain</p>
				<cfelse>
					<p style="color:red;font-size:14px;">Pain assessment incomplete</p>
				</cfif>
			</div>
			<div class="form-group">
				<label>Pain Characteristics</label><br>
				<div class="row">
					<div class="col-md-4">
						<div id="chkthrobbingcolor" class="label-stable">
							<div class="checkbox-list">
								<label>
								<input type="checkbox"  name="chkthrobbing" value="Throbbing" <cfif disform.Pain1 Contains "Throbbing">checked </cfif>/> Throbbing</label>
								<label>
								<input type="checkbox"  name="chkthrobbing" value="Stabbing" <cfif disform.Pain1 Contains "Stabbing">checked </cfif>/> Stabbing</label>
								<label>
								<input type="checkbox"   name="chkthrobbing" value="Sharp" <cfif disform.Pain1 Contains "Sharp">checked </cfif>/> Sharp</label>
								<label>
								<input type="checkbox"  name="chkthrobbing" value="Aching" <cfif disform.Pain1 Contains "Aching">checked </cfif>/> Aching</label>
								<label>
								<input type="checkbox"   name="chkthrobbing" value="Burning" <cfif disform.Pain1 Contains "Burning">checked </cfif>/> Burning</label>
							</div>
						</div>
					</div>
					<div class="col-md-4">
						<div id="chkthrobbingcolor" class="label-stable">
							<div class="checkbox-list">
								<label>
								<input type="checkbox"   name="chkthrobbing" value="Numb" <cfif disform.Pain1 Contains "Numb">checked </cfif>/> Numb</label>
								<label>
								<input type="checkbox"   name="chkthrobbing" value="Shooting" <cfif disform.Pain1 Contains "Shooting">checked </cfif>/> Shooting</label>
								<label>
								<input type="checkbox"   name="chkthrobbing" value="Not Applicable" <cfif disform.Pain1 Contains "Not Applicable">checked</cfif>/> Not Applicable</label>
								<label>
								<input type="checkbox"   name="chkthrobbing" value="Other" <cfif disform.Pain1 NEQ "" >checked</cfif>/> Other</label>
							</div>
						</div>
					</div>
				</div>					
			</div>
			<div class="row">
				<div class="col-md-4">
					<div class="form-group">
						<div id="radthresholdd" class="label-stable">
							<label>Pain threshold</label>
							<div class="radio-list">
								<label>
								<input type="radio" name="radthreshold" value="at rest" <cfif disform.Pain2 EQ "at rest">checked</cfif>/> at rest</label>
								<label>
								<input type="radio" name="radthreshold" value="with minimal activity" <cfif disform.Pain2 EQ "with minimal activity">checked</cfif>/> with minimal activity</label>
								<label>
								<input type="radio" name="radthreshold" value="with moderate activity" <cfif disform.Pain2 EQ "with moderate activity">checked</cfif>/> with moderate activity</label>
								<label>
								<input type="radio" name="radthreshold" value="with strenuous activity" <cfif disform.Pain2 EQ "with strenuous activity">checked</cfif>/> with strenuous activity</label>
								<label>
								<input type="radio" name="radthreshold" value="Not Applicable" <cfif disform.Pain2 EQ "Not Applicable">checked</cfif>/> Not Applicable</label>
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-8">
					<div class="form-group">
						<div id="chkphysicalcolor" class="label-stable">
							<label>Whats is patient's opinion of the cause of her/his pain?</label>
							<div class="checkbox-list">
								<label>
								<input type="checkbox"  name="chkphysical" value="physical activity" <cfif disform.Pain5 Contains "physical activity">checked</cfif>/> physical activity</label>
								<label>
								<input type="checkbox"  name="chkphysical" value="disease process" <cfif disform.Pain5 Contains "disease process">checked</cfif>/> disease process</label>
								<label>
								<input type="checkbox"  name="chkphysical" value="Not Applicable" <cfif disform.Pain5 Contains "Not Applicable">checked</cfif>/> Not Applicable</label>
								<label>
								<input type="checkbox"  name="chkphysical" value="Other" <cfif disform.Pain5 NEQ "">checked</cfif>/> Other...</label>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label>Rate Current pain treatment effectiveness on a scale* of 1 to 10(1=low effectiveness)</label>
				<div class="row">
					<div class="col-md-4">
						<div id="radscaled" class="label-stable">
							<div class="radio-list">
								<label>
								<input type="radio" name="radscale" value="1" <cfif disform.Pain3 EQ "1">checked</cfif>/> 1</label>
								<label>
								<input type="radio" name="radscale" value="2" <cfif disform.Pain3 EQ "2">checked</cfif>/> 2</label>
								<label>
								<input type="radio" name="radscale" value="3" <cfif disform.Pain3 EQ "3">checked</cfif>/> 3</label>
								<label>
								<input type="radio" name="radscale" value="4" <cfif disform.Pain3 EQ "4">checked</cfif>/> 4</label>
								<label>
								<input type="radio" name="radscale" value="5" <cfif disform.Pain3 EQ "5">checked</cfif>/> 5</label>
							</div>
						</div>
					</div>
					<div class="col-md-4">
						<div id="radscaled" class="label-stable">
							<div class="radio-list">
								<label>
								<input type="radio" name="radscale" value="6" <cfif disform.Pain3 EQ "6">checked</cfif>/> 6</label>
								<label>
								<input type="radio" name="radscale" value="7" <cfif disform.Pain3 EQ "7">checked</cfif>/> 7</label>
								<label>
								<input type="radio" name="radscale" value="8" <cfif disform.Pain3 EQ "8">checked</cfif>/> 8</label>
								<label>
								<input type="radio" name="radscale" value="9" <cfif disform.Pain3 EQ "9">checked</cfif>/> 9</label>
								<label>
								<input type="radio" name="radscale" value="10" <cfif disform.Pain3 EQ "10">checked</cfif>/> 10</label>
							</div>
						</div>
					</div>
				</div>						
			</div>
			<div class="form-group">
				<label>How long does each treatment work before needing another dose</label>
				<div class="row">
					<div class="col-md-4">
						<div id="raddosed" class="label-stable">
							<div class="radio-list">
								<label>
								<input  type="radio" name="raddose" value="30 minutes" <cfif disform.Pain4 EQ "30 minutes">checked</cfif>/> 30 minutes</label>
								<label>
								<input type="radio" name="raddose" value="1 hour" <cfif disform.Pain4 EQ "1 hour">checked</cfif>/> 1 hour</label>
								<label>
								<input type="radio" name="raddose" value="2 hours" <cfif disform.Pain4 EQ "2 hours">checked</cfif>/> 2 hours</label>
								<label>
								<input type="radio" name="raddose" value="3 hours" <cfif disform.Pain4 EQ "3 hours">checked</cfif>/> 3 hours</label>
								<label>
								<input type="radio" name="raddose" value="4 hours" <cfif disform.Pain4 EQ "4 hours">checked</cfif>/> 4 hours</label>
								<label>
								<input type="radio" name="raddose" value="6 hours" <cfif disform.Pain4 EQ "6 hours">checked</cfif>/> 6 hours</label>
							</div>
						</div>
					</div>
					<div class="col-md-4">
						<div id="raddosed" class="label-stable">
							<div class="radio-list">
								<label>
								<input type="radio" name="raddose" value="12 hours" <cfif disform.Pain4 EQ "12 hours">checked</cfif>/> 12 hours</label>
								<label>
								<input type="radio" name="raddose" value="24 hours" <cfif disform.Pain4 EQ "24 hours">checked</cfif>/> 24 hours</label>
								<label>
								<input type="radio" name="raddose" value="more than 24 hours" <cfif disform.Pain4 EQ "more than 24 hours">checked</cfif>/> more than 24 hours</label>
								<label>
								<input type="radio" name="raddose" value="Not Applicable" <cfif disform.Pain4 EQ "Not Applicable">checked</cfif>/> Not Applicable</label>
								<label>
								<input type="radio" name="raddose" value="Other" <cfif  disform.Pain4 EQ "Other">checked</cfif>/> Other</label>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="form-group">
				<input class="btn blue" type="button" onClick="setPain();" value="Add pain" />
				<input class="btn btn-default" type="button" value="Cancel" onClick="ColdFusion.Window.hide('Pain')" />
			</div>
		</div>
	</form>
</cfwindow>



<cfwindow name="Riskdiv"
    title=""
    height="500"
    width="800"
    resizable="true"
    center="true"
    closable="false"
    draggable="true"
    modal="true"
    initshow="false"
    minheight="200"
	bodystyle="background-color:white;"
    minwidth="200">
	<form name="Start3" style="background-color:white">
		<div id="DivskinLOWRISK" style="margin:0 15px;">
			<img title="Close" id="imgbtnSkinClose" name="imgbtnSkinClose" style="border:none;cursor:pointer;float:right;" onClick="ColdFusion.Window.hide('Riskdiv')" src="../../images/icon_back.gif" width="33" height="35" />
			<h4>Braden Scale For Predicting Pressure Sore Risk</h4>
			<div class="form-group">
				<div id="drlPresureUlcersSensoryd" class="label-stable">
					<label>SENSORY PERCEPTION ability to respond meaningfully to pressure-related discomfort</label>
					<div class="radio-list">
						<label>
						<input type="radio" <cfif disform.Braden_1_Sensory EQ "1. Unresponsive (does not moan, flinch, or grasp) to painful stimuli, due to diminished level of con-sciousness or sedation OR limited ability to feel pain over most of body">checked</cfif> onClick="PressureUlcersRisk();" name="drlPresureUlcersSensory" value="1. Unresponsive (does not moan, flinch, or grasp) to painful stimuli, due to diminished level of con-sciousness or sedation OR limited ability to feel pain over most of body"> 1. Unresponsive (does not moan, flinch, or grasp) to painful stimuli, due to diminished level of con-sciousness or sedation OR limited ability to feel pain over most of body</label>
						<label>
						<input type="radio" <cfif disform.Braden_1_Sensory EQ "2. Responds only to painful stimuli. Cannot communicate discomfort except by moaning or restlessness OR has a sensory impairment which limits the ability to feel pain or discomfort over 2 of body.">checked</cfif> onClick="PressureUlcersRisk();" name="drlPresureUlcersSensory" value="2. Responds only to painful stimuli. Cannot communicate discomfort except by moaning or restlessness OR has a sensory impairment which limits the ability to feel pain or discomfort over 2 of body."> 2. Responds only to painful stimuli. Cannot communicate discomfort except by moaning or restlessness OR has a sensory impairment which limits the ability to feel pain or discomfort over 2 of body.</label>
						<label>
						<input type="radio" onClick="PressureUlcersRisk();" <cfif disform.Braden_1_Sensory EQ "3. Responds to verbal commands, but cannot always communicate discomfort or the need to be turned OR has some sensory impairment which limits ability to feel pain or discomfort in 1 or 2 extremities.">checked</cfif> name="drlPresureUlcersSensory" value="3. Responds to verbal commands, but cannot always communicate discomfort or the need to be turned OR has some sensory impairment which limits ability to feel pain or discomfort in 1 or 2 extremities. "> 3. Responds to verbal commands, but cannot always communicate discomfort or the need to be turned OR has some sensory impairment which limits ability to feel pain or discomfort in 1 or 2 extremities.</label>
						<label>
						<input type="radio" <cfif disform.Braden_1_Sensory EQ "4. Responds to verbal commands. Has no sensory deficit which would limit ability to feel or voice pain or discomfort.">checked</cfif> onClick="PressureUlcersRisk();" name="drlPresureUlcersSensory" value="4. Responds to verbal commands. Has no sensory deficit which would limit ability to feel or voice pain or discomfort."> 4. Responds to verbal commands. Has no sensory deficit which would limit ability to feel or voice pain or discomfort.</label>
					</div>
				</div>
			</div>
			<div class="form-group">
				<div id="drlPresureUlcersMoistured" class="label-stable">
					<label>MOISTURE degree to which skin is exposed to moisture</label>
					<div class="radio-list">
						<label>
						<input type="radio" onClick="PressureUlcersRisk();" <cfif disform.Braden_2_Moisture EQ "1. Skin is kept moist almost constantly by perspiration, urine, etc. Dampness is detected every time patient is moved or turned.">checked</cfif> name="drlPresureUlcersMoisture" value="1. Skin is kept moist almost constantly by perspiration, urine, etc. Dampness is detected every time patient is moved or turned."> 1. Skin is kept moist almost constantly by perspiration, urine, etc. Dampness is detected every time patient is moved or turned.</label>
						<label>
						<input type="radio" onClick="PressureUlcersRisk();" <cfif disform.Braden_2_Moisture EQ "2. Skin is often, but not always moist. Linen must be changed at least once a shift.">checked</cfif> name="drlPresureUlcersMoisture" value="2. Skin is often, but not always moist. Linen must be changed at least once a shift."> 2. Skin is often, but not always moist. Linen must be changed at least once a shift.</label>
						<label>
						<input type="radio" <cfif disform.Braden_2_Moisture EQ "3. Skin is occasionally moist, requiring an extra linen change approximately once a day.">checked</cfif> onClick="PressureUlcersRisk();" name="drlPresureUlcersMoisture" value="3. Skin is occasionally moist, requiring an extra linen change approximately once a day."> 3. Skin is occasionally moist, requiring an extra linen change approximately once a day.</label>
						<label>
						<input type="radio" <cfif disform.Braden_2_Moisture EQ "4. Skin is usually dry, linen only requires changing at routine intervals.">checked</cfif> onClick="PressureUlcersRisk();" name="drlPresureUlcersMoisture" value="4. Skin is usually dry, linen only requires changing at routine intervals."> 4. Skin is usually dry, linen only requires changing at routine intervals.</label>
					</div>
				</div>
			</div>
			<div class="form-group">
				<div id="drlPresureUlcersActivityd" class="label-stable">
					<label>ACTIVITY degree of physical activity</label>
					<div class="radio-list">
						<label>
						<input type="radio" onClick="PressureUlcersRisk();" <cfif disform.Braden_3_Activity EQ"1. Confined to bed.">checked</cfif> name="drlPresureUlcersActivity" value="1. Confined to bed."> 1. Confined to bed.</label>
						<label>
						<input type="radio" onClick="PressureUlcersRisk();" <cfif disform.Braden_3_Activity EQ "2. Ability to walk severely limited or non-existent. Cannot bear own weight and/or must be assisted into chair or wheelchair. ">checked</cfif> name="drlPresureUlcersActivity" value="2. Ability to walk severely limited or non-existent. Cannot bear own weight and/or must be assisted into chair or wheelchair. "> 2. Ability to walk severely limited or non-existent. Cannot bear own weight and/or must be assisted into chair or wheelchair.</label>
						<label>
						<input type="radio" onClick="PressureUlcersRisk();" <cfif disform.Braden_3_Activity EQ "3.  Walks occasionally during day, but for very short distances, with or without assistance. Spends majority of each shift in bed or chair ">checked</cfif> name="drlPresureUlcersActivity" value="3.  Walks occasionally during day, but for very short distances, with or without assistance. Spends majority of each shift in bed or chair "> 3.  Walks occasionally during day, but for very short distances, with or without assistance. Spends majority of each shift in bed or chair</label>
						<label>
						<input type="radio" <cfif disform.Braden_3_Activity EQ "4. Walks outside room at least twice a day and inside room at least once every two hours during waking hours ">checked</cfif> onClick="PressureUlcersRisk();" name="drlPresureUlcersActivity" value="4. Walks outside room at least twice a day and inside room at least once every two hours during waking hours "> 4. Walks outside room at least twice a day and inside room at least once every two hours during waking hours</label>
					</div>
				</div>
			</div>
			<div class="form-group">
				<div id="drlPresureUlcersMobilityd" class="label-stable">
					<label>MOBILITY ability to change and control body position</label>
					<div class="radio-list">
						<label>
						<input type="radio" <cfif disform.Braden_4_Mobility EQ "1. Does not make even slight changes in body or extremity position without assistance ">checked</cfif> onClick="PressureUlcersRisk();" name="drlPresureUlcersMobility" value="1. Does not make even slight changes in body or extremity position without assistance "> 1. Does not make even slight changes in body or extremity position without assistance </label>
						<label>
						<input type="radio" onClick="PressureUlcersRisk();" name="drlPresureUlcersMobility" <cfif disform.Braden_4_Mobility EQ "2. Makes occasional slight changes in body or extremity position but unable to make frequent or significant changes independently. ">checked</cfif> value="2. Makes occasional slight changes in body or extremity position but unable to make frequent or significant changes independently. "> 2. Makes occasional slight changes in body or extremity position but unable to make frequent or significant changes independently.</label>
						<label>
						<input type="radio" <cfif disform.Braden_4_Mobility EQ "3. Makes frequent though slight changes in body or extremity position independently. ">checked</cfif> onClick="PressureUlcersRisk();" name="drlPresureUlcersMobility" value="3. Makes frequent though slight changes in body or extremity position independently. "> 3. Makes frequent though slight changes in body or extremity position independently.</label>
						<label>
						<input type="radio" <cfif disform.Braden_4_Mobility EQ "4. Makes major and frequent changes in position without assistance.">checked</cfif> onClick="PressureUlcersRisk();" name="drlPresureUlcersMobility" value="4. Makes major and frequent changes in position without assistance."> 4. Makes major and frequent changes in position without assistance.</label>
					</div>
				</div>
			</div>
			<div class="form-group">
				<div id="drlPresureUlcersNutritiond" class="label-stable">
					<label>NUTRITION usual food intake pattern</label>
					<div class="radio-list">
						<label>
						<input type="radio" <cfif disform.Braden_5_Nutrition EQ "1. Never eats a complete meal. Rarely eats more than a of any food offered. Eats 2 servings or less of protein (meat or dairy products) per day. Takes fluids poorly. Does not take a liquid dietary supplement OR is NPO.">checked</cfif> onClick="PressureUlcersRisk();" name="drlPresureUlcersNutrition" value="1. Never eats a complete meal. Rarely eats more than a of any food offered. Eats 2 servings or less of protein (meat or dairy products) per day. Takes fluids poorly. Does not take a liquid dietary supplement OR is NPO."> 1. Never eats a complete meal. Rarely eats more than a of any food offered. Eats 2 servings or less of protein (meat or dairy products) per day. Takes fluids poorly. Does not take a liquid dietary supplement OR is NPO.</label>
						<label>
						<input type="radio" onClick="PressureUlcersRisk();" name="drlPresureUlcersNutrition" <cfif disform.Braden_5_Nutrition EQ "2. Rarely eats a complete meal and generally eats only about 2 of any food offered. Protein intake includes only 3 servings of meat or dairy products per day. Occasionally will take a dietary supplement.">checked</cfif> value="2. Rarely eats a complete meal and generally eats only about 2 of any food offered. Protein intake includes only 3 servings of meat or dairy products per day. Occasionally will take a dietary supplement."> 2. Rarely eats a complete meal and generally eats only about 2 of any food offered. Protein intake includes only 3 servings of meat or dairy products per day. Occasionally will take a dietary supplement.</label>
						<label>
						<input type="radio" onClick="PressureUlcersRisk();" <cfif disform.Braden_5_Nutrition EQ "3. Eats over half of most meals. Eats a total of 4 servings of protein (meat, dairy products per day. Occasionally will refuse a meal, but will usually take a supplement when offered OR is on a tube feeding or TPN.">checked</cfif> name="drlPresureUlcersNutrition" value="3. Eats over half of most meals. Eats a total of 4 servings of protein (meat, dairy products per day. Occasionally will refuse a meal, but will usually take a supplement when offered OR is on a tube feeding or TPN."> 3. Eats over half of most meals. Eats a total of 4 servings of protein (meat, dairy products) per day. Occasionally will refuse a meal, but will usually take a supplement when offered OR is on a tube feeding or TPN.</label>
						<label>
						<input type="radio" onClick="PressureUlcersRisk();" <cfif disform.Braden_5_Nutrition EQ "4. Eats most of every meal. Never refuses a meal. Usually eats a total of 4 or more servings of meat and dairy products. Occasionally eats between meals.">checked</cfif>name="drlPresureUlcersNutrition" value="4. Eats most of every meal. Never refuses a meal. Usually eats a total of 4 or more servings of meat and dairy products. Occasionally eats between meals."> 4. Eats most of every meal. Never refuses a meal. Usually eats a total of 4 or more servings of meat and dairy products. Occasionally eats between meals.</label>
					</div>
				</div>
			</div>
			<div class="form-group">
				<div id="drlPresureUlcersFrictiond" class="label-stable">
					<label>FRICTION & SHEAR</label>
					<div class="radio-list">
						<label>
						<input type="radio" onClick="PressureUlcersRisk();" name="drlPresureUlcersFriction" <cfif disform.Braden_6_Friction EQ "1. Requires moderate to maximum assistance in moving. Complete lifting without sliding against sheets is impossible. Frequently slides down in bed or chair, requiring frequent repositioning with maximum assistance. ">checked</cfif> value="1. Requires moderate to maximum assistance in moving. Complete lifting without sliding against sheets is impossible. Frequently slides down in bed or chair, requiring frequent repositioning with maximum assistance."> 1. Requires moderate to maximum assistance in moving. Complete lifting without sliding against sheets is impossible. Frequently slides down in bed or chair, requiring frequent repositioning with maximum assistance.</label>
						<label>
						<input type="radio" onClick="PressureUlcersRisk();" name="drlPresureUlcersFriction" <cfif disform.Braden_6_Friction EQ "2. Problem Moves feebly or requires minimum assistance. During a move skin probably slides to some extent against sheets, chair, restraints or other devices. Maintains relatively good position in chair or bed most of the time.">checked</cfif> value="2. Problem Moves feebly or requires minimum assistance. During a move skin probably slides to some extent against sheets, chair, restraints or other devices. Maintains relatively good position in chair or bed most of the time."> 2. Problem Moves feebly or requires minimum assistance. During a move skin probably slides to some extent against sheets, chair, restraints or other devices. Maintains relatively good position in chair or bed most of the time.</label>
						<label>
						<input type="radio" onClick="PressureUlcersRisk();" name="drlPresureUlcersFriction" value="3. Moves in bed and in chair independently and has sufficient muscle strength to lift up completely during move. Maintains good position in bed or chair." <cfif disform.Braden_6_Friction EQ "3. Moves in bed and in chair independently and has sufficient muscle strength to lift up completely during move. Maintains good position in bed or chair.">checked</cfif>> 3. Moves in bed and in chair independently and has sufficient muscle strength to lift up completely during move. Maintains good position in bed or chair.</label>
					</div>
				</div>
			</div>
			<div class="margin-bottom-20">
				<p id="spnTotalScore" style="color: Red;font-size:14px;">
					<span id="spnPressureUlcerstotal"></span> <span id="spnPressureUlcers"></span>
				</p>
				<p id="SpnCopyright" style="font-size:14px;">Copyright Barbara Braden and Nancy Bergstrom, 1988 All rights reserved </p>
				<p id="spnHigh" style="font-size:14px;">1 - 12 =HIGH RISK</p>
				<p id="spnModerate" style="font-size:14px;">13 - 14 =MODERATE RISK</p>
				<p id="spnLow" style="font-size:14px;">15 - 23 =LOW RISK</p>
			</div>
			<div class="form-group">
				<input class="btn blue" type="button" onClick="setrisk();" value="Add Risk" />
				<input class="btn btn-default" type="button" value="Cancel" onClick="ColdFusion.Window.hide('Riskdiv')" />
			</div>
		</div>
	</form>
</cfwindow>
<cfinclude template="dischargefromagencywizard_scripts.cfm">

<!---<div id="braden_scale" class="modal fade" tabindex="-1" aria-hidden="true">
						<div class="modal-dialog modal-lg">
							<div class="modal-content">
								<div class="modal-header">
									<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
									<h4 class="modal-title"><b>Braden Scale For Predicting Pressure Sore Risk</b></h4>
								</div>
								<form name="formrisk" id="formrisk">
								   <div class="modal-body">
										<cfoutput>
										 <cfloop query="get_braden_que">
															   <div class="form-group">
																	   <label class="bold">#get_braden_que.questions#</label><br />
																			<cfscript>
																			   get_braden_anw = pat.get_pain_anw(#get_braden_que.id#); 
																			</cfscript>
																			 <cfset  cheked_value = "disform."&get_braden_anw.answer_label />
																				<cfloop query="get_braden_anw">
																					<div class="label-stable">
																					  <div id="#answer_type#_d" class="radio-list">
																						
																									<cfif answer_type EQ 'radio'>
																													   <div class="radio-list">
																															   <label> <input type="#answer_type#" name="#answer_label#" id="#answer_label#" value="#answer#" <cfif #Evaluate(Variables.cheked_value)#  EQ  #answer#>checked </cfif>><span>#answer#</span></label>
																														</div>
																										<cfelseif answer_type EQ 'checkbox'>
																														   <div class="checkbox-list">
																															  <label><input type="#answer_type#"  name="#answer_label#" id="#answer_label#" value="#answer#" <cfif #Evaluate(Variables.cheked_value)#  Contains  #answer#>checked</cfif>>#answer#
																															 </label>
																														</div>
																										</cfif>
																							
																						</div>
																				   </div>
																			</cfloop>
															 </div>
													 </cfloop>
											</cfoutput>
											<p id="spnTotalScore" style="color:red;font-size:14px;">
											<span id="spnPressureUlcerstotal">Total Score = <cfoutput>#PressureRate#</cfoutput></span>
											<span id="spnPressureUlcers">
												<cfif PressureRate gt 15 OR PressureRate eq 15>
													LOW RISK  for Pressure Ulcers
												<cfelseif PressureRate gt 13 OR PressureRate eq 13 OR PressureRate eq 14>
													MODERATE RISK  for Pressure Ulcers
												<cfelseif PressureRate lt 12 OR PressureRate eq 12>
													HIGH RISK  for Pressure Ulcers
												</cfif>
											</span>
										</p>
										<p id="SpnCopyright" style="font-size:14px;">Copyright Barbara Braden and Nancy Bergstrom, 1988 All rights reserved </p>
										<p id="spnHigh" style="font-size:14px;">1 - 12 =HIGH RISK</p>
										<p id="spnModerate" style="font-size:14px;">13 - 14 =MODERATE RISK</p>
										<p id="spnLow" style="font-size:14px;">15 - 23 =LOW RISK</p>
									</div>
					               <div class="modal-footer">
										<button type="button" class="btn default" data-dismiss="modal">Close</button>
										<button type="button" class="btn blue"  name="braden"  onclick="return other_assessment_validation('braden');">Update</button>
									</div>
								</form>
							</div>
				    </div>
				</div>--->


<cfwindow
    name="Wounddiv"
    title=""
    height="500"
    width="800"
    resizable="true"
    center="true"
    closable="false"
    draggable="true"
    modal="true"
    initshow="false"
    minheight="200"
    minwidth="200"
	bodystyle="background-color:white;">
	<cfset cookie.Wnd_Type='' />
	<cfset cookie.Wnd_Location='' />
	<cfset cookie.Wnd_Stage='' />
	<cfset cookie.Wnd_Status='' />
	<cfset cookie.Wnd_Len_1='' />
	<cfset cookie.Wnd_Len_2='' />
	<cfset cookie.Wnd_Wid_1='' />
	<cfset cookie.Wnd_Wid_2='' />
	<cfset cookie.Wnd_Dep_1='' />
	<cfset cookie.Wnd_Dep_2='' />
	<cfset cookie.Wnd_Surr_Tiss='' />
	<cfset cookie.Wnd_Chara='' />
	<cfset cookie.Notes='' />
	<cfset cookie.woundid='0' />
	<cfform name="Start1" style="background-color:white">
		<div style="margin:0 15px;">
			<img title="Close" name="imgbtnSkinClose" style="cursor:pointer;float:right;" id="imgbtnSkinClose" onClick="ColdFusion.Window.hide('Wounddiv')" src="../../images/icon_back.gif" width="33" height="35" />
			<h4><span id="wountext">Wound</span><span id="wounaddtext" style="display:none">Add New Wound</span></h4>
			<div id="wounlist" style="display:block">
				<div class="form-group">
					<label>Add <img name="ImgWoundAdd" id="ImgWoundAdd" src="../../images/icon_add.png" style="border:none;cursor:pointer"/></label>
				</div>
				<cfdiv bind="url:#Application.siteURL#/patientadmin_new/WoundGrid.cfm" ID="theDiv" style="height:150"></cfdiv>
			</div>
			<div id="Divwound" style="display:none">
				<div class="form-group">
					<label>Wound Type</label>
					<div class="row">
						<div class="col-md-4">
							<div id="Wnd_Typed" class="label-stable">
								<div class="radio-list">
									<label>
									<input type="radio" name="Wnd_Type" id="Wnd_Type" value="Abrasion"> Abrasion</label>
									<label>
									<input type="radio" name="Wnd_Type" id="Wnd_Type" value="Bite"> Bite</label>
									<label>
									<input type="radio" name="Wnd_Type" id="Wnd_Type" value="Burn"> Burn</label>
									<label>
									<input type="radio" name="Wnd_Type" id="Wnd_Type" value="Contusion"> Contusion</label>
									<label>
									<input type="radio" name="Wnd_Type" id="Wnd_Type" value="Diabetic Ulcer"> Diabetic Ulcer</label>
									<label>
									<input type="radio" name="Wnd_Type" id="Wnd_Type" value="Graft"> Graft</label>
									<label>
									<input type="radio" name="Wnd_Type" id="Wnd_Type" value="Gunshot"> Gunshot</label>
									<label>
									<input type="radio" name="Wnd_Type" id="Wnd_Type" value="Laceration"> Laceration</label>
									<label>
									<input type="radio" name="Wnd_Type" id="Wnd_Type" value="Nodule"> Nodule</label>
								</div>
							</div>
						</div>
						<div class="col-md-4">
							<div id="Wnd_Typed" class="label-stable">
								<div class="radio-list">
									<label>
									<input type="radio" name="Wnd_Type" id="Wnd_Type" value="Pressure Ulcer"> Pressure Ulcer</label>
									<label>
									<input type="radio" name="Wnd_Type" id="Wnd_Type" value="Puncture"> Puncture</label>
									<label>
									<input type="radio" name="Wnd_Type" id="Wnd_Type" value="Skin Tear"> Skin Tear</label>
									<label>
									<input type="radio" name="Wnd_Type" id="Wnd_Type" value="Stab"> Stab</label>
									<label>
									<input type="radio" name="Wnd_Type" id="Wnd_Type" value="Stasis Ulcer"> Stasis Ulcer</label>
									<label>
									<input type="radio" name="Wnd_Type" id="Wnd_Type" value="Surgical Wound"> Surgical Woundv</label>
									<label>
									<input type="radio" name="Wnd_Type" id="Wnd_Type" value="Welt"> Welt</label>
									<label>
									<input type="radio" name="Wnd_Type" id="Wnd_Type" value="Other"> Other </label>
								</div>
							</div>
						</div>
					</div>
							
				</div>
				<div class="form-group text-center">
					<img src='../images/human_frond.gif' border="0"  usemap="#shapes" />
					<map name="shapes" id="shapes">
						<area shape="circle" coords="104,74,19"  style="cursor:pointer" onClick="javascript:bindmap('Anterior Left Shoulder');" />
						<area shape="circle" coords="25,74,19" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Anterior Right Shoulder');" />
						<area shape="circle" coords="50,90,12" style="cursor:pointer"  href="javascript:void(0);"  onClick="javascript:bindmap('Anterior Right Upper Chest');" />
						<area shape="rect" coords="33,235,58,256" style="cursor:pointer"  href="javascript:void(0);"  onClick="javascript:bindmap('Anterior Right Above Knee');" />
						<area shape="rect" coords="32,334,52,351" style="cursor:pointer"  href="javascript:void(0);"  onClick="javascript:bindmap('Anterior Right Ankle');"  />
						<area shape="circle" coords="80,90,12" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Anterior Left Upper Chest');"/>
						<area shape="rect" coords="50,8,64,47" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Anterior Right Face');" />
						<area shape="rect" coords="65,8,85,47" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Anterior Left Face');" />
						<area shape="rect" coords="3,94,31,126" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Anterior Right Upper Arm');" />
						<area shape="rect" coords="100,94,127,126" style="cursor:pointer"  href="javascript:void(0);"  onClick="javascript:bindmap('Anterior Left Upper Arm');" />
						<area shape="rect" coords="67,69,72,191" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Anterior Right Above Knee');" />
						<area shape="rect" coords="41,137,65,175" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Anterior Right Abdomen');"  />
						<area shape="circle" coords="43,270,11"  style="cursor:pointer"  href="javascript:void(0);"  onclick="javascript:bindmap('Anterior Right Knee');"/>
						<area shape="rect" coords="75,137,98,173" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Anterior Left Abdomen');"/>
						<area shape="rect" coords="1,132,22,185" style="cursor:pointer"  href="javascript:void(0);"  onClick="javascript:bindmap('Anterior Right Elbow/Forearm');" />
						<area shape="rect" coords="112,132,139,185" style="cursor:pointer"  href="javascript:void(0);"  onClick="javascript:bindmap('Anterior Left Elbow/Forearm');" />
						<area shape="rect" coords="3,188,29,211" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Anterior Right Wrist/Hand');"/>
						<area shape="rect" coords="115,190,134,211" style="cursor:pointer"  href="javascript:void(0);"  onClick="javascript:bindmap('Anterior Left Wrist/Hand');"/>
						<area shape="rect" coords="36,188,66,232" style="cursor:pointer"  href="javascript:void(0);"  onClick="javascript:bindmap('Anterior Right Thigh');" />
						<area shape="rect" coords="79,186,106,231" style="cursor:pointer"  href="javascript:void(0);"  onclick="javascript:bindmap('Anterior Left Thigh');" />
						<area shape="rect" coords="31,189,36,232" style="cursor:pointer"   href="javascript:void(0);" onClick="javascript:bindmap('Anterior Right Hip');"/>
						<area shape="rect" coords="107,178,112,232" style="cursor:pointer"  href="javascript:void(0);"  onClick="javascript:bindmap('Anterior Left Hip');"/>
						<area shape="circle" coords="88,181,8"  style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Anterior Left Groin');" />
						<area shape="rect" coords="79,232,107,253" style="cursor:pointer"  href="javascript:void(0);"  onclick="javascript:bindmap('Anterior Left Above Knee');" />
						<area shape="rect" coords="85,332,106,350" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Anterior Left Ankle');" />
						<area shape="circle" coords="94,265,11" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Anterior Left Knee');"  />
						<area shape="rect" coords="24,287,57,330" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Anterior Right Below Knee');" />
						<area shape="rect" coords="82,282,111,329" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Anterior Left Below Knee');" />
						<area shape="rect" coords="24,352,48,380" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Anterior Right Foot');" />
						<area shape="rect" coords="83,352,110,381" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Anterior Left Foot');" />
					</map>
					<img src='../images/human_back.gif' border="0"  usemap="#backshapes" />
					<map name="backshapes" id="backshapes" >
						<area shape="rect" coords="47,4,64,36" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Posterior Left Head');" />
						<area shape="rect" coords="66,4,82,36" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Posterior Right Head');"/>
						<area shape="circle" coords="56,48,10" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Posterior Left Neck');"/>
						<area shape="circle" coords="78,48,10" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Posterior Right Neck');" />
						<area shape="rect" coords="63,60,69,155" style="cursor:pointer"  href="javascript:void(0);"  onClick="javascript:bindmap('Posterior Midline');" />
						<area shape="rect" coords="28,62,59,94" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Posterior Left Shoulder/Upper Back');" />
						<area shape="rect" coords="78,62,105,94" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Posterior Right Shoulder/Upper Back');" />
						<area shape="circle" coords="88,113,18" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Posterior Right Middle/Lower Back');"/>
						<area shape="circle" coords="47,112,17" style="cursor:pointer"  href="javascript:void(0);"  onClick="javascript:bindmap('Posterior Left Middle Back');" />
						<area shape="rect" coords="11,68,30,134" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Posterior Left Upper Arm');" />
						<area shape="rect" coords="105,69,124,133" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Posterior Right Shoulder/Upper Arm');" />
						<area shape="rect" coords="1,142,20,191" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Posterior Left Elbow/Forearm');" />
						<area shape="rect" style="cursor:pointer" coords="111,144,133,184"  href="javascript:void(0);"  onClick="javascript:bindmap('Posterior Right Elbow/Forearm');" />
						<area shape="circle" coords="119,193,7" style="cursor:pointer"  href="javascript:void(0);"  onClick="javascript:bindmap('Posterior Right Wrist');"/>
						<area shape="rect" coords="107,200,131,210" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Posterior Right Hand');" />
						<area shape="circle" coords="14,206,9" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Posterior Left Hand');" />
						<area shape="circle" coords="44,228,18" style="cursor:pointer"  href="javascript:void(0);"  onClick="javascript:bindmap('Posterior Left Thigh');" />
						<area shape="circle" coords="92,231,17" style="cursor:pointer"  href="javascript:void(0);"  onClick="javascript:bindmap('Posterior Right Thigh');" />
						<area shape="rect" coords="25,282,55,337" style="cursor:pointer"  href="javascript:void(0);"  onClick="javascript:bindmap('Posterior Left Calf');" />
						<area shape="circle" coords="82,189,17" style="cursor:pointer"  href="javascript:void(0);"  onClick="javascript:bindmap('Posterior Right Buttock');"/>
						<area shape="rect" coords="84,287,109,340" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Posterior Right Calf');" />
						<area shape="circle" coords="46,184,17" style="cursor:pointer"  href="javascript:void(0);"  onClick="javascript:bindmap('Posterior Left Buttock');" />
						<area shape="circle" coords="44,263,13" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Posterior Left Knee');"/>
						<area shape="circle" coords="96,268,14" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Posterior Right Knee');" />
						<area shape="circle" coords="46,352,11" style="cursor:pointer"  href="javascript:void(0);"  onClick="javascript:bindmap('Posterior Left Ankle/Foot');" />
						<area shape="circle" coords="99,351,8" style="cursor:pointer"   href="javascript:void(0);" onClick="javascript:bindmap('Posterior Right Ankle/Foot');" />
						<area shape="rect" coords="33,364,55,372" style="cursor:pointer"  href="javascript:void(0);"  onClick="javascript:bindmap('Posterior Left Heel');"/>
						<area shape="rect" coords="88,362,109,372" style="cursor:pointer"  href="javascript:void(0);" onClick="javascript:bindmap('Posterior Right Heel');" />
					</map>
				</div>
				<div class="row">
					<div class="col-md-6">
						<div class="form-group">
							<label>If pressure ulcer stage</label>
							<select class="form-control" id="selectstage" name="selectstage">
								<option value="1 - Intact skin with non-blanchable redness of a localized area usually over a bony prominence.">1 - Intact skin with non-blanchable redness of a localized area usually over a bony prominence.</option>
								<option value="2 - Partial thickness loss of dermis presenting as a shallow open ulcer with red pink wound bed.">2 - Partial thickness loss of dermis presenting as a shallow open ulcer with red pink wound bed.</option>
								<option value="3 - Full thickness tissue loss. Subcutaneous fat may be visible but bone, tendon, or muscles not exposed.">3 - Full thickness tissue loss. Subcutaneous fat may be visible but bone, tendon, or muscles not exposed.</option>
								<option value="4 - Full thickness tissue loss with visible bone, tendon, or muscle. Slough or eschar may be present.">4 - Full thickness tissue loss with visible bone, tendon, or muscle. Slough or eschar may be present.</option>
								<option value="5 - Unstageable due to non-removable dressing, slough or eschar.">5 - Unstageable due to non-removable dressing, slough or eschar.</option>
								<option value="6 - Unstageable due to coverage of wound bed by slough and/or eschar.">6 - Unstageable due to coverage of wound bed by slough and/or eschar.</option>
								<option value="7 - Unstageable due to suspected deep tissue injury in evolution.">7 - Unstageable due to suspected deep tissue injury in evolution. </option>
							</select>
						</div>
					</div>
					<div class="col-md-6">
						<div class="form-group">
							<label>Status</label>
							<select class="form-control" id="selectstatus" name="selectstatus">
								<option value="0 - Re-epithelialized or healed">0 - Re-epithelialized or healed</option>
								<option value="1 - Fully granulating">1 - Fully granulating</option>
								<option value="2 - Early/partial granulation">2 - Early/partial granulation</option>
								<option value="3 - Not healing">3 - Not healing</option>
								<option value="NA - Not applicable or no observable wound/ulcer">NA - Not applicable or no observable wound/ulcer</option>
							</select>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-6">
						<div class="form-group">
							<label>Length</label><br>
							<div class="spinner1 margin-right-10" style="display:inline-block;vertical-align:middle;">
								<div class="input-group input-small">
									<input type="text" onChange="bindtext('lengthmin');" class="spinner-input form-control" name="lengthmin" id="lengthmin" value="0" maxlength="3">
		
									<div class="spinner-buttons input-group-btn btn-group-vertical">
										<button type="button" class="btn spinner-up btn-xs blue"> <i class="fa fa-angle-up"></i></button>
										<button type="button" class="btn spinner-down btn-xs blue"> <i class="fa fa-angle-down"></i></button>
									</div>
								</div>
							</div>
							<div class=" margin-right-10" style="display:inline-block;">.</div>
							<div class="spinner1 margin-right-10" style="display:inline-block;vertical-align:middle;">
								<div class="input-group input-small">
									<input type="text" onChange="bindtext('lenghtmax');" class="spinner-input form-control" name="lenghtmax" id="lenghtmax" value="0" maxlength="3">
		
									<div class="spinner-buttons input-group-btn btn-group-vertical">
										<button type="button" class="btn spinner-up btn-xs blue"> <i class="fa fa-angle-up"></i></button>
										<button type="button" class="btn spinner-down btn-xs blue"> <i class="fa fa-angle-down"></i></button>
									</div>
								</div>
							</div>
							<div style="display:inline-block;">cm</div>
						</div>
						<div class="form-group">
							<label>Width</label><br>
							<div class="spinner1 margin-right-10" style="display:inline-block;vertical-align:middle;">
								<div class="input-group input-small">
									<input type="text" onChange="bindtext('widthmin');" class="spinner-input form-control" name="widthmin" id="widthmin" value="0" maxlength="3">
		
									<div class="spinner-buttons input-group-btn btn-group-vertical">
										<button type="button" class="btn spinner-up btn-xs blue"> <i class="fa fa-angle-up"></i></button>
										<button type="button" class="btn spinner-down btn-xs blue"> <i class="fa fa-angle-down"></i></button>
									</div>
								</div>
							</div>
							<div class=" margin-right-10" style="display:inline-block;">.</div>
							<div class="spinner1 margin-right-10" style="display:inline-block;vertical-align:middle;">
								<div class="input-group input-small">
									<input type="text" onChange="bindtext('widthmax');" class="spinner-input form-control" name="widthmax" id="widthmax" value="0" maxlength="3">
		
									<div class="spinner-buttons input-group-btn btn-group-vertical">
										<button type="button" class="btn spinner-up btn-xs blue"> <i class="fa fa-angle-up"></i></button>
										<button type="button" class="btn spinner-down btn-xs blue"> <i class="fa fa-angle-down"></i></button>
									</div>
								</div>
							</div>
							<div style="display:inline-block;">cm</div>
						</div>
						<div class="form-group">
							<label>Depth</label><br>
							<div class="spinner1 margin-right-10" style="display:inline-block;vertical-align:middle;">
								<div class="input-group input-small">
									<input type="text" onChange="bindtext('depthmin');" class="spinner-input form-control" name="depthmin" id="depthmin" value="0" maxlength="3">
		
									<div class="spinner-buttons input-group-btn btn-group-vertical">
										<button type="button" class="btn spinner-up btn-xs blue"> <i class="fa fa-angle-up"></i></button>
										<button type="button" class="btn spinner-down btn-xs blue"> <i class="fa fa-angle-down"></i></button>
									</div>
								</div>
							</div>
							<div class=" margin-right-10" style="display:inline-block;">.</div>
							<div class="spinner1 margin-right-10" style="display:inline-block;vertical-align:middle;">
								<div class="input-group input-small">
									<input type="text" onChange="bindtext('depthmax');" class="spinner-input form-control" name="depthmax" id="depthmax" value="0" maxlength="3">
		
									<div class="spinner-buttons input-group-btn btn-group-vertical">
										<button type="button" class="btn spinner-up btn-xs blue"> <i class="fa fa-angle-up"></i></button>
										<button type="button" class="btn spinner-down btn-xs blue"> <i class="fa fa-angle-down"></i></button>
									</div>
								</div>
							</div>
							<div style="display:inline-block;">cm</div>
						</div>
					</div>
					<div class="col-md-6">
						<div class="form-group">
							<div id="Wnd_Surr_TissColor" class="label-stable">
								<label>Surrounding Tissues</label>
								<div class="checkbox-list">
									<label>
									<input  type="checkbox" name="Wnd_Surr_Tiss" Value="clean"> clean</label>
									<label>
									<input  type="checkbox" name="Wnd_Surr_Tiss" Value="scabbed"> scabbed</label>
									<label>
									<input  type="checkbox" name="Wnd_Surr_Tiss" Value="crusted"> crusted</label>
									<label>
									<input  type="checkbox" name="Wnd_Surr_Tiss" Value="indurated"> indurated</label>
									<label>
									<input  type="checkbox" name="Wnd_Surr_Tiss" Value="gaping"> gaping</label>
									<label>
									<input  type="checkbox" name="Wnd_Surr_Tiss" Value="blistered"> blistered</label>
									<label>
									<input  type="checkbox" name="Wnd_Surr_Tiss" Value="separated"> separated</label>
									<label>
									<input  type="checkbox" name="Wnd_Surr_Tiss" Value="bruised"> bruised</label>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="form-group">
					<div id="Wnd_CharaColor" class="label-stable" style="width:100%;">
						<label>Characteriscts</label>
						<div class="row">
							<div class="col-md-4">
								<div class="checkbox-list">
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="clean"> clean</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="crusted"> crusted</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="gaping"> gaping</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="separated"> separated</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="scabbed"> scabbed</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="indurated"> indurated</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="blistered"> blistered</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="bruised"> bruised</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="cynanotic"> cynanotic</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="eschar"> eschar</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="excoriated"> excoriated</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="Flaking"> Flaking</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="hard"> hard</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="necrotic"> necrotic</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="reddened"> reddened</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="rough"> rough</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="weeping"> weeping</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="sloughing"> sloughing</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="green"> green</label>
								</div>
							</div>
							<div class="col-md-4">
								<div class="checkbox-list">
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="dry"> dry</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="cracked"> cracked</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="muschy"> muschy</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="soft"> soft</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="loose"> loose</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="SHAPE"> --SHAPE--</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="straight"> straight</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="circular"> circular</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="irregular"> irregular</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="oblong"> oblong</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="rectangle"> rectangle</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="square"> square</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="drainage"> drainage</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="no drainage"> no drainage</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="block"> block</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="brown"> brown</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="clear"> clear</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="gray"> gray</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="moist"> moist</label>
								</div>
							</div>
							<div class="col-md-4">
								<div class="checkbox-list">
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="pink"> pink</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="red"> red</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="reddish purple"> reddish purple</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="serosanguineos"> serosanguineos</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="serous"> serous</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="tan"> tan</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="yellow"> yellow</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="white"> white</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="haemoserous"> haemoserous</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="AMOUNT"> --AMOUNT--</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="scant"> scant</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="minimal"> minimal</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="moderate"> moderate</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="copious"> copious</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="ODOR"> --ODOR--</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="foul odor"> foul odor</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="no odor"> no odor</label>
									<label>
									<input  type="checkbox" name="Wnd_Chara" Value="Other"> Other..</label>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-6">
						<div class="form-group">
							<label>Location</label>
							<textarea class="form-control" name="txtmap" id="txtmap"></textarea>
						</div>
					</div>
					<div class="col-md-6">
						<div class="form-group">
							<label>Notes</label>
							<textarea class="form-control" name="txtNotes" id="txtNotes"></textarea>
						</div>
					</div>
				</div>
				<div class="form-group">
					<input class="btn blue" type="button" onClick="setwound();" value="Add Wound" />
					<input class="btn btn-default" type="button" value="Cancel" id="btncancel" name="btncancel" />
					<input type="hidden" id="hdnwoundid" name="hdnwoundid" value=""/>
				</div>
			</div>
		</div>
	</cfform>
</cfwindow>


