﻿<cfparam name="url.rtn" default="assessment_form" />
<cfparam name='url.na' default='' />
 <cfif isdefined('url.na') and url.na eq 'y'>
  <cfset session.cs.AssessmentId = 0 />
 </cfif>
 <cfif isdefined('url.AID') and url.AID neq ''>
<cfset session.cs.AssessmentId   = decrypt(#url.AID#,"54kczhzgHTj4a8n+SRZPyg==","AES","Hex") />
</cfif>

 <cfquery name="Form" datasource="#Application.DataSrc#">
 SELECT patient.Last_Name_M0040 AS Last_Name, patient.First_Name_M0040 AS First_Name, patient.Middle_Initial_M0040 AS Middle,
Assessment_New.Assessment_Completed_M0090,
Assessment_New.Surgical_ICD_485_Description,
Assessment_New.Vision_M0390,
Assessment_New.Hearing_M0400,
Assessment_New.Speech_M0410,
Assessment_New.Open_Wounds_M0440,
Assessment_New.Pressure_Ulcer_M0445,
Assessment_New.Pressure_Ulcer_a_M0450,
Assessment_New.Pressure_Ulcer_b_M0450,
Assessment_New.Pressure_Ulcer_c_M0450,
Assessment_New.Pressure_Ulcer_d_M0450,
Assessment_New.Pressure_Ulcer_Stage_M0460,
Assessment_New.Stasis_Ulcer_Num_M0470,
Assessment_New.Stasis_Ulcer_Hidden_M0474,
Assessment_New.Stasis_Ulcer_Status_M0476,
Assessment_New.Surgical_Wound_M0482,
Assessment_New.Surgical_Wound_OB_M0484,
Assessment_New.Surgical_Wound_Status_M0488,
Assessment_New.Breathing_M0490,
Assessment_New.Resp_Treatments_M0500,
Assessment_New.Urinary_INcont_M0520,
Assessment_New.Urinary_INcont_when_M0530,
Assessment_New.UTI_M0510,
Assessment_New.Cog_Function_M0560,
Assessment_New.Assessment_note,
Assessment_New.Freq_of_Pain_M0420,
Assessment_New.Record_Created_By
FROM #Request.prefix_db_agency#.Assessment_New
INNER JOIN #Request.prefix_db_agency#.patient ON (Assessment_New.Patient_ID=patient.Patient_ID) 
WHERE Assessment_New.Assessment_ID='#session.cs.AssessmentId#'
 </cfquery>
 
<cfset M0230='#session.cs.AssessmentId#'&' M0230' />
<cfquery name="M0230diagnasis" datasource="#Application.DataSrc#">
select Diagnosis_ID,Diagnosis,Short_Diagnosis,Text_ICD,Severity,CONVERT(Diagnosis.Dx_Order, CHAR(10)) as Dx_Order,Primary_Diagnosis,Secondary_Diagnosis,DG_Type from #Request.prefix_db_agency#.Diagnosis where Assessment_ID='#session.cs.AssessmentId#' and M0230_Link like '%M0230%' and M0230_Link is not null order by Dx_Order asc
</cfquery>



   <!--- 
     optional 
   // isBase64 = "yes|no" 
    overwrite = "yes|no" 
    password = "user or owner password for the PDF source file" 
    showonprint = "yes|no"
   align = "left|right|center" 
    leftmargin = "value of the header left marign" 
    rightmargin = "value of the header right margin" 
    numberformat = "LOWERCASEROMAN|NUMERIC|UPPERCASEROMAN" <!---used with either 
    _PAGENUMBER or _LASTPAGENUMBER---> 
    opacity = "header opacity" 
    topmargin = "value of the top margin of the header" 
    \\one of the following: 
    destination = "PDF output file pathname" 
    name = "PDF document variable name" 
    text = _PAGELABEL: add current page label|_LASTPAGELABEL: add last page label|      
            _PAGENUMBER: add current page number|_LASTPAGENUMBER: add last page 
            number \\text for the header. You can also add a normal text string. 
    image = "image file name to be used as the header"  
--->





<cfdocument format="pdf" orientation = "portrait" overwrite = "yes">

<cfdocumentsection margintop="1" >

<cfdocumentitem type="header" evalprint="true">
    <table border="0" width="100%" height="70%" cellpadding="0" cellspacing="0" align="center">
		<tr>
			<td height="5px" colspan="2" >
			</td>
		</tr>
    	<tr>
			<td style="font-family: Arial; font-size: 16px; font-weight: 600; font-style: italic; padding-left:5px" width="65%">
				<cfoutput>#session.agencyname#</cfoutput> 
			</td>
			<td style="font-family: Arial; font-size: 16px;font-weight: 600;" width="35%">
				Date Completed <cfoutput>#DateFormat(Form.Assessment_Completed_M0090,"mm/dd/yyyy")#</cfoutput>
			</td>
		</tr>
		<tr>
			<td height="3px" colspan="2" >
			</td>
		</tr>
		<tr>
			<td style="font-family: Arial; font-size: 16px; font-weight:600; padding-left:5px">
				Pediatric Evaluation
			</td>
			<td style="font-family: Arial; font-size: 16px; font-weight: 600;" >
				By <cfoutput>#Form.Record_Created_By#</cfoutput>
			</td>
	    </tr>
		<tr>
			<td height="3px" colspan="2" >
			</td>
		</tr>
      	<tr>
			<td style="font-family: Arial; font-size: 16px; font-weight:600; padding-left:5px">
				<cfoutput>#Form.First_Name#</cfoutput> <cfoutput> #Form.Last_Name#</cfoutput></strong> 
			</td>
      	</tr>
		<tr>
			<td height="3px" colspan="2" >
			</td>
		</tr>
      	<tr>
			<td height="1px" colspan="2" style="background-color:#000000">
			</td>
      	</tr>
    </table>
</cfdocumentitem>
	  

<table border="0" height="100%" width="100%" cellpadding="0" cellspacing="0">
            <tr valign="top">
                <td>
                  <!---<table border="0" width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                            <td align="right" style=" padding-top: 20px; font-family: Arial;
                                font-size: 18px; font-weight: bold;">
                                Date Completed 
                            </td>
                            <td align="left" style="font-family: Arial; padding-top: 20px; font-size: 18px; font-weight: bold;">
                                <cfoutput>#DateFormat(Form.Assessment_Completed_M0090,"mm/dd/yyyy")#</cfoutput>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 5px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="padding-left: 20px; font-family: Arial; font-size: 18px;
                                font-weight: bold; font-style: italic">
                                Pediatric Evaluation
                            </td>
                        </tr>
                        <tr>
                            <td style="padding-left: 20px; font-family: Arial; font-size: 18px; font-weight: bold;
                                font-style: italic; width:70%">
                               <cfoutput>#Form.First_Name# #Form.Last_Name#</cfoutput>
                            </td>
                            <td align="left" style=" font-family: Arial; font-size: 16px;
                                font-weight: bold;width:30%">
                                <cfif trim(Form.Record_Created_By) neq ''>By <cfoutput>#Form.Record_Created_By#</cfoutput></cfif>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 5px">
                            </td>
                        </tr>
                       
						</table>--->
						
				<table cellpadding="0" cellspacing="0" border="0" width="100%">
						 <tr>
                            <td colspan="2" align="left" style="font-family: Arial; font-size: 14px; font-weight: bold;
                                padding-top: 5px; padding-left: 60px;">
                                Diagnoses
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 5px">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="left" style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;">
								
                                <cfoutput query="M0230diagnasis">
								#Diagnosis#<br/>
								</cfoutput>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 5px">
                            </td>
                        </tr>
                        <tr>
                            <td style="" colspan="2">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px;
                                padding-left: 60px;">
                                Procedures
                            </td>
						</tr>
						 <tr>
                            <td style="height: 5px">
                            </td>
                        </tr>
						<tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; padding-top: 5px; padding-left: 80px;">
							<cfif Form.Surgical_ICD_485_Description contains ','>
							<cfoutput>#replace('#Form.Surgical_ICD_485_Description#',',','<br />',"ALL")#</cfoutput>
							<cfelse>
							<cfoutput>#replace('#Form.Surgical_ICD_485_Description#','!','<br />',"ALL")#</cfoutput>
							</cfif>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 5px">
                            </td>
                        </tr>
                        <tr>
                            <td style="" colspan="2">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px; padding-left: 60px;">
                                Length at birth
                            </td>
						</tr>
						<tr>
                            <td style="height: 5px">
                            </td>
                        </tr>
						<tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; padding-top: 5px; padding-left: 80px;">
                                <cfoutput>#Form.Vision_M0390#</cfoutput>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 5px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px; padding-left: 60px;">
                                Weight at birth
                            </td>
						</tr>
						<tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; padding-top: 5px; padding-left: 80px;">
                                <cfoutput>#Form.Hearing_M0400#</cfoutput>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 5px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px; padding-left: 90px;">
                                APGARS
                            </td>
                            <td align="left" style="font-family: Arial; font-size: 14px; padding-top: 5px; padding-left: 110px;">
                                <cfoutput>#Form.Speech_M0410#</cfoutput>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 5px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px;
                                padding-left: 60px;">
                                Skin
                            </td>
                        </tr>
                        <tr>
                            <td style=" padding-right: 30px" colspan="2">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="left" style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;">  
								<cfif Form.Open_Wounds_M0440 contains ','>
								<cfoutput>#replace('#Form.Open_Wounds_M0440#',',','<br />',"ALL")#</cfoutput>
								<cfelse>
								<cfoutput>#replace('#Form.Open_Wounds_M0440#','!','<br />',"ALL")#</cfoutput>
								</cfif>  
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 5px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px;
                                padding-left: 60px;">
                                Head and Neck
                            </td>
                        </tr>
                        <tr>
                            <td style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;" colspan="2">
								<cfif Form.Pressure_Ulcer_M0445 contains ','>
								<cfoutput>#replace('#Form.Pressure_Ulcer_M0445#',',','<br />',"ALL")#</cfoutput> 
								<cfelse>
								<cfoutput>#replace('#Form.Pressure_Ulcer_M0445#','!','<br />',"ALL")#</cfoutput> 
								</cfif>							
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 5px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px;
                                padding-left: 60px;">
                                Eyes
                            </td>
                        </tr>
                        <tr>
                            <td style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;" colspan="2">
								<cfif Form.Pressure_Ulcer_a_M0450 contains ','>
								<cfoutput>#replace('#Form.Pressure_Ulcer_a_M0450#',',','<br />',"ALL")#</cfoutput> 
								<cfelse>
								<cfoutput>#replace('#Form.Pressure_Ulcer_a_M0450#','!','<br />',"ALL")#</cfoutput>
								</cfif> 
							</td>
                        </tr>
                        <tr>
                            <td style="height: 5px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px;
                                padding-left: 60px;">
                                Ears
                            </td>
                        </tr>
                        <tr>
                            <td style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;" colspan="2">
								<cfif Form.Pressure_Ulcer_b_M0450 contains ','>
								<cfoutput>#replace('#Form.Pressure_Ulcer_b_M0450#',',','<br />',"ALL")#</cfoutput> 
								<cfelse>
								<cfoutput>#replace('#Form.Pressure_Ulcer_b_M0450#','!','<br />',"ALL")#</cfoutput> 	
								</cfif>							
								
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 5px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px;
                                padding-left: 60px;">
                                Mouth and Throat
                            </td>
                        </tr>
                        <tr>
                            <td style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;" colspan="2">
								<cfif Form.Pressure_Ulcer_c_M0450 contains ','>
								<cfoutput>#replace('#Form.Pressure_Ulcer_c_M0450#',',','<br />',"ALL")#</cfoutput> 
								<cfelse>
								<cfoutput>#replace('#Form.Pressure_Ulcer_c_M0450#','!','<br />',"ALL")#</cfoutput> 	
								</cfif>	
								
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px;
                                padding-left: 60px;">
                                Nose
                            </td>
                        </tr>
                        <tr>
                            <td style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;" colspan="2">
								<cfif Form.Pressure_Ulcer_d_M0450 contains ','>
								<cfoutput>#replace('#Form.Pressure_Ulcer_d_M0450#',',','<br />',"ALL")#</cfoutput> 
								<cfelse>
								<cfoutput>#replace('#Form.Pressure_Ulcer_d_M0450#','!','<br />',"ALL")#</cfoutput> 	
								</cfif>	
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px;
                                padding-left: 60px;">
                                Gastrointestinal
                            </td>
                        </tr>
                        <tr>
                            <td style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;" colspan="2">
								<cfif Form.Pressure_Ulcer_Stage_M0460 contains ','>
								<cfoutput>#replace('#Form.Pressure_Ulcer_Stage_M0460#',',','<br />',"ALL")#</cfoutput> 
								<cfelse>
								<cfoutput>#replace('#Form.Pressure_Ulcer_Stage_M0460#','!','<br />',"ALL")#</cfoutput> 	
								</cfif>	
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px;
                                padding-left: 60px;">
                                Genitourinary
                            </td>
                        </tr>
                        <tr>
                            <td style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;" colspan="2">
								<cfif Form.Stasis_Ulcer_Num_M0470 contains ','>
								<cfoutput>#replace('#Form.Stasis_Ulcer_Num_M0470#',',','<br />',"ALL")#</cfoutput> 
								<cfelse>
								<cfoutput>#replace('#Form.Stasis_Ulcer_Num_M0470#','!','<br />',"ALL")#</cfoutput> 	
								</cfif>	
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px;
                                padding-left: 60px;">
                                Female
                            </td>
                        </tr>
                        <tr>
                            <td style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;" colspan="2">
								<cfif Form.Stasis_Ulcer_Hidden_M0474 contains ','>
								<cfoutput>#replace('#Form.Stasis_Ulcer_Hidden_M0474#',',','<br />',"ALL")#</cfoutput> 
								<cfelse>
								<cfoutput>#replace('#Form.Stasis_Ulcer_Hidden_M0474#','!','<br />',"ALL")#</cfoutput> 	
								</cfif>	
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px;
                                padding-left: 60px;">
                                Male
                            </td>
                        </tr>
                        <tr>
                            <td style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;" colspan="2">
								<cfif Form.Stasis_Ulcer_Status_M0476 contains ','>
								<cfoutput>#replace('#Form.Stasis_Ulcer_Status_M0476#',',','<br />',"ALL")#</cfoutput> 
								<cfelse>
								<cfoutput>#replace('#Form.Stasis_Ulcer_Status_M0476#','!','<br />',"ALL")#</cfoutput> 	
								</cfif>	
								
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px;
                                padding-left: 60px;">
                                Nutrition
                            </td>
                        </tr>
                        <tr>
                            <td style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;" colspan="2">
								<cfif Form.Surgical_Wound_M0482 contains ','>
								<cfoutput>#replace('#Form.Surgical_Wound_M0482#',',','<br />',"ALL")#</cfoutput> 
								<cfelse>
								<cfoutput>#replace('#Form.Surgical_Wound_M0482#','!','<br />',"ALL")#</cfoutput> 	
								</cfif>	
							
                            </td>
                        </tr>
						<tr>
                            <td style="height: 20px">
                            </td>
                        </tr>
				
                    </table>
					
      			<table border="0"  height="100%" width="100%" cellpadding="0" cellspacing="0">
            <tr valign="top">
                <td>
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px;
                                padding-left: 60px;">
                                Endocrine
                            </td>
                        </tr>
                        <tr>
                            <td style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;" colspan="2">
								<cfif Form.Surgical_Wound_OB_M0484 contains ','>
								<cfoutput>#replace('#Form.Surgical_Wound_OB_M0484#',',','<br />',"ALL")#</cfoutput> 
								<cfelse>
								<cfoutput>#replace('#Form.Surgical_Wound_OB_M0484#','!','<br />',"ALL")#</cfoutput> 	
								</cfif>	
								
                            </td>
                        </tr>
                        <!---<tr>
                            <td colspan="2" align="left" style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;">
                                Flexion-PROM-Right<br />
                                Flexion-PROM-Left<br />
                                Flexion-AROM-Right<br />
                                Flexion-AROM-Left
                            </td>
                        </tr>--->
                       
                        <!---<tr>
                            <td colspan="2" align="left" style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;">
                                Hyperextension-PROM-Right<br />
                                Hyperextension-PROM-Left<br />
                                Hyperextension-AROM-Right<br />
                                Hyperextension-AROM-Left
                            </td>
                        </tr>--->
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px;
                                padding-left: 60px;">
                                Musculo-Skeletal
                            </td>
                        </tr>
                        <tr>
                            <td style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;" colspan="2">
								<cfif Form.Surgical_Wound_Status_M0488 contains ','>
								<cfoutput>#replace('#Form.Surgical_Wound_Status_M0488#',',','<br />',"ALL")#</cfoutput> 
								<cfelse>
								<cfoutput>#replace('#Form.Surgical_Wound_Status_M0488#','!','<br />',"ALL")#</cfoutput> 	
								</cfif>	
								
                            </td>
                        </tr>
                        <!---<tr>
                            <td colspan="2" align="left" style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;">
                                Pronation-PROM-Right<br />
                                Pronation-PROM-Left<br />
                                Pronation-AROM-Right<br />
                                Pronation-AROM-Left
                            </td>
                        </tr>--->
                       
                        <!---<tr>
                            <td colspan="2" align="left" style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;">
                                Supination-PROM-Right<br />
                                Supination-PROM-Left<br />
                                Supination-AROM-Right<br />
                                Supination-AROM-Left
                            </td>
                        </tr>--->
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px;
                                padding-left: 60px;">
                                Cardiovascular
                            </td>
                        </tr>
                        <tr>
                            <td style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;" colspan="2">
								<cfif Form.Breathing_M0490 contains ','>
								<cfoutput>#replace('#Form.Breathing_M0490#',',','<br />',"ALL")#</cfoutput> 
								<cfelse>
								<cfoutput>#replace('#Form.Breathing_M0490#','!','<br />',"ALL")#</cfoutput> 	
								</cfif>	
								
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px;
                                padding-left: 60px;">
                                Neurological
                            </td>
                        </tr>
                        <tr>
                            <td style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;" colspan="2">
								<cfif Form.Resp_Treatments_M0500 contains ','>
								<cfset Form.Resp_Treatments_M0500 = replace('#Form.Resp_Treatments_M0500#','!','<br />',"ALL")>
								<cfoutput>#replace('#Form.Resp_Treatments_M0500#',',','<br />',"ALL")#</cfoutput> 
								<cfelse>
								<cfset Form.Resp_Treatments_M0500 = replace('#Form.Resp_Treatments_M0500#',',','<br />',"ALL")>
								<cfoutput>#replace('#Form.Resp_Treatments_M0500#','!','<br />',"ALL")#</cfoutput> 	
								</cfif>	
								
								
                            </td>
                        </tr>
                        <!---<tr>
                            <td colspan="2" align="left" style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;">
                                Flexion-PROM-Right<br />
                                Flexion-PROM-Left<br />
                                Flexion-AROM-Right<br />
                                Flexion-AROM-Left
                            </td>
                        </tr>--->
                       
                       <!--- <tr>
                            <td colspan="2" align="left" style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;">
                                Hyperextension-PROM-Right<br />
                                Hyperextension-PROM-Left<br />
                                Hyperextension-AROM-Right<br />
                                Hyperextension-AROM-Left
                            </td>
                        </tr>--->
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px;
                                padding-left: 60px;">
                                Respiratory
                            </td>
                        </tr>
                        <tr>
                            <td style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;" colspan="2">
								<cfif Form.Urinary_INcont_M0520 contains ','>
								<cfset Form.Urinary_INcont_M0520 = replace('#Form.Urinary_INcont_M0520#','!','<br />',"ALL")>
								<cfoutput>#replace('#Form.Urinary_INcont_M0520#',',','<br />',"ALL")#</cfoutput> 
								<cfelse>
								<cfset Form.Urinary_INcont_M0520 = replace('#Form.Urinary_INcont_M0520#',',','<br />',"ALL")>
								<cfoutput>#replace('#Form.Urinary_INcont_M0520#','!','<br />',"ALL")#</cfoutput> 	
								</cfif>	
							
                            </td>
                        </tr>
                       <!--- <tr>
                            <td colspan="2" align="left" style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;">
                                Pronation-PROM-Right<br />
                                Pronation-PROM-Left<br />
                            </td>
                        </tr>--->
                       <!--- <tr>
                            <td colspan="2" align="left" style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;">
                                Supination-PROM-Right<br />
                                Supination-PROM-Left<br />
                              
                            </td>
                        </tr>--->
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px;
                                padding-left: 60px;">
                                Pain
                            </td>
                        </tr>
                        <tr>
                            <td style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;" colspan="2">
								<cfif Form.Freq_of_Pain_M0420 contains ','>
								<cfset Form.Freq_of_Pain_M0420 = replace('#Form.Freq_of_Pain_M0420#','!','<br />',"ALL")>								
								<cfoutput>#replace('#Form.Freq_of_Pain_M0420#',',','<br />',"ALL")#</cfoutput> 
								<cfelse>
								<cfset Form.Freq_of_Pain_M0420 = replace('#Form.Freq_of_Pain_M0420#',',','<br />',"ALL")	>															
								<cfoutput>#replace('#Form.Freq_of_Pain_M0420#','!','<br />',"ALL")#</cfoutput> 	
								</cfif>	
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px;
                                padding-left: 60px;">
                                Infusion
                            </td>
                        </tr>
                        <tr>
                            <td style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;" colspan="2">
								<cfif Form.UTI_M0510 contains ','>
								<cfset Form.UTI_M0510 = replace('#Form.UTI_M0510#','!','<br />',"ALL")>																
								<cfoutput>#replace('#Form.UTI_M0510#',',','<br />',"ALL")#</cfoutput> 
								<cfelse>
								<cfset Form.UTI_M0510 = replace('#Form.UTI_M0510#',',','<br />',"ALL")		>																						
								<cfoutput>#replace('#Form.UTI_M0510#','!','<br />',"ALL")#</cfoutput> 	
								</cfif>	
							
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px;
                                padding-left: 60px;">
                                Infusion Notes
                            </td>
                        </tr>
						<tr>
                            <td style="font-family: Arial; font-size: 14px; padding-top: 5px;
                                padding-left: 80px;" colspan="2">
								<cfif Form.Cog_Function_M0560 contains ','>
								<cfset Form.Cog_Function_M0560 = replace('#Form.Cog_Function_M0560#','!','<br />',"ALL")	>																							
								<cfoutput>#replace('#Form.Cog_Function_M0560#',',','<br />',"ALL")#</cfoutput> 
								<cfelse>
								<cfset Form.Cog_Function_M0560 = replace('#Form.Cog_Function_M0560#',',','<br />',"ALL")	>																															
								<cfoutput>#replace('#Form.Cog_Function_M0560#','!','<br />',"ALL")#</cfoutput> 	
								</cfif>	
							
                            </td>
                        </tr>
						<tr>
								<td style="height: 5px">
								</td>
						</tr>
						<!---<tr>
							 <td colspan="2" align="left" style="font-family: Arial; font-size: 14px; padding-top: 5px;padding-left: 80px;">
									Flexion-PROM-Right<br />
									Flexion-PROM-Left<br />
									Flexion-AROM-Right<br />
									Flexion-AROM-Left
								</td>
						</tr>
						
						<tr>
								<td colspan="2" align="left" style="font-family: Arial; font-size: 14px; padding-top: 5px;
									padding-left: 80px;">
									Extension-PROM-Right<br />
									Extension-PROM-Left<br />
									Extension-AROM-Right<br />
									Extension-AROM-Left
								</td>
							</tr>
							<tr>
								<td style="height: 5px">
								</td>
							</tr>--->
                        <tr>
                            <td align="left" style="font-family: Arial; font-size: 14px; font-weight: bold; padding-top: 5px;padding-left: 60px;">
							  General Assessment
                            </td>
                        </tr>
                        <tr>
                            <td style="font-family: Arial; font-size: 14px; padding-top: 5px;padding-left: 80px;" colspan="2">
							<cfoutput>#Form.Assessment_note#</cfoutput>
                            </td>
                        </tr>
						
						<cfif #session.AgencyId# eq '613'>
								 <tr>
									   <td style="height: 10px">
										</td>
								  </tr>
								 <tr>
									<td style="font-family: Arial; font-size: 12px; padding-top: 5px; width: 50%; padding-left: 20px;">
								<!---Physician Name: <cfoutput><b>#Form.LastName# ,#Form.FirstName#</b></cfoutput>--->       Physician Signature: ____________________________________________________
									</td>
								 </tr>
					</cfif>
			 
                    </table>
					
                </td>
            </tr>
        </table>
		
	  </td>
      </tr>
</table>

  <cfdocumentitem type="footer">
		<!---<cfoutput>Page #cfdocument.currentpagenumber# of #cfdocument.totalpagecount#</cfoutput>--->
		<table width="100%" cellpadding="0" cellpadding="0" border="0" align="center">
		<tr>
		<td align="center" style="font-family: Arial; font-size: 13px;">
		<cfoutput>Page #cfdocument.currentpagenumber# Pediatric Evaluation for <cfoutput>#Form.First_Name# #Form.Last_Name#</cfoutput></cfoutput>
		</td>
		</tr>
		</table>
		
	</cfdocumentitem>
	</cfdocumentsection>
</cfdocument>
	
