<cfparam name="url.redirect_from" default="">
<cfset Redirect_to = #url.redirect_from# />
<cfset session.cs.patientid = #url.ID# />
<cfset Assessment_ID = #url.AID# />
<cfset REVIEW = '' />
<!---SELECT Textfield_13 FROM agency_1035.Coding_Results where Patient_ID = 933 and Message_ID = 78--->
<cfquery  name="Get_OASIS" datasource="#Application.DataSrc#">
  select *
  from #Request.prefix_db_agency#.Assessment_New
  where Assessment_ID = #url.AID#
</cfquery>
<cfquery  name="Get_Patient" datasource="#Application.DataSrc#">
  select *
  from #Request.prefix_db_agency#.patient
  where Patient_ID = #url.ID#
</cfquery>
<cfquery  name="Get_CR_1" datasource="#Application.DataSrc#">
  select *
  from #Request.prefix_db_agency#.Coding_Results
  where Assessment_ID = #url.AID#
  and M0_Item_Medication = '(M1021)'
 </cfquery>
<cfquery  name="Get_CR_2" datasource="#Application.DataSrc#">
  select *
  from #Request.prefix_db_agency#.Coding_Results
  where Assessment_ID = #url.AID#
  and M0_Item_Medication = '(M1023)'
    Order by Dx_Order
 </cfquery>
<cfquery  name="Get_CR_3" datasource="#Application.DataSrc#">
  select *
  from #Request.prefix_db_agency#.Coding_Results
  where Assessment_ID = #url.AID#
  and (M0_Item_Medication = 'OASIS')
    Order by Results_ID
 </cfquery>
<!---<cfset REVIEW = '#Get_Patient.First_Name_M0040#' & ' ' & '#Get_Patient.Last_Name_M0040#' & ' ' & '#Get_OASIS.Assessment_Reason_M0100#'  & ' ' & '#DateFormat(Get_OASIS.Start_of_Care_M0030,"mm/dd/yyyy")#'>--->
<cfif Get_CR_1.Message_ID eq 13 or Get_CR_1.Message_ID eq 15 >
  <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       'PRIMARY DIAGNOSIS admission notes: ' & '<br>' & 
       'F2F: ' & '#Get_CR_1.Diagnosis#' & '<br>' & '#Get_CR_1.OASIS#' & '<br>comments:'>
  <cfelse>
  <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       'PRIMARY DIAGNOSIS admission notes: ' & '<br>' & 
       'F2F: ' & '#Get_CR_1.Diagnosis#' & '<br>comments:'>
</cfif>
<cfloop query="Get_CR_2" >
  <cfif Get_CR_2.Message_ID eq 13 or Get_CR_2.Message_ID eq 15 >
    <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       '#Get_CR_2.Dx_Order#' & ' Diagnosis admission notes: ' & '<br>' & 
       'H&P: ' & '#Get_CR_2.Diagnosis#' & '<br>' & '#Get_CR_2.OASIS#' & '<br>comments:'>
    <cfelse>
    <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       '#Get_CR_2.Dx_Order#' & ' Diagnosis admission notes: ' & '<br>' & 
       'H&P: ' & '#Get_CR_2.Diagnosis#' & '<br>comments:'>
  </cfif>
</cfloop>
<cfloop query="Get_CR_3" >
  <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       'OASIS ORPHAN: ' & '#Get_CR_3.Diagnosis#' & '<br>' & '#Get_CR_3.OASIS#' & '<br>comments:'>
</cfloop>
<cfif (Get_OASIS.Assessment_Reason_M0100 contains "4") and Get_OASIS.M0110 contains "1">
    <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       'OASIS INCONSISTENCY: ' & 'M0110 Episode timing is reported as an 1-Early. As a 4-Recertification it should be reported as 2-Later'  & '<br>comments:'>
  </cfif>
<cfif Get_OASIS.Assessment_Reason_M0100 contains "3" and Get_OASIS.M0110 contains "1">
    <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       'OASIS INCONSISTENCY: ' & 'M0110 Episode timing is reported as an 1-Early. If this resumption is after the first recertification it should be reported as 2-Later'  & '<br>comments:'>
  </cfif>
<cfif (Get_OASIS.Assessment_Reason_M0100 contains "1" or Get_OASIS.Assessment_Reason_M0100 contains "3") and Get_OASIS.M1032_Frailty contains "5 -" and Get_OASIS.Cog_Function_M0560 contains "0 -">
    <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       'OASIS INCONSISTENCY: ' & 'M1033 contains 5 - Decline in mental/emotional/behavioral but M1700 Cognition reports Alert and Oriented' & '<br>comments:'>
  </cfif>
<cfif (Get_OASIS.Assessment_Reason_M0100 contains "1" or Get_OASIS.Assessment_Reason_M0100 contains "3") and Get_OASIS.M1032_Frailty contains "5 -" and Get_OASIS.When_Confused_M0570 contains "0 -">
    <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       'OASIS INCONSISTENCY: ' & 'M1033 contains 5 - Decline in mental/emotional/behavioral but M1710 Confusion reports Never Confused' & '<br>comments:'>
  </cfif>
 <cfif (Get_OASIS.Assessment_Reason_M0100 contains "1" or Get_OASIS.Assessment_Reason_M0100 contains "3") and Get_OASIS.M1032_Frailty contains "5 -" and Get_OASIS.Patient_Behav_Weekly_M0610 contains "7">
    <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       'OASIS INCONSISTENCY: ' & 'M1033 contains 5 - Decline in mental/emotional/behavioral but M01740 reports No Problems Demonstrated' & '<br>comments:'>
  </cfif>
<cfif (Get_OASIS.Assessment_Reason_M0100 contains "1" or Get_OASIS.Assessment_Reason_M0100 contains "3") and Get_OASIS.M1032_Frailty contains "6 -" and Get_OASIS.Cog_Function_M0560 contains "0 -">
    <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       'OASIS INCONSISTENCY: ' & 'M1033 contains 6 - Difficulty complying with medical instructions... but M1700 Cognition reports Alert and Oriented' & '<br>comments:'>
  </cfif>
<cfif (Get_OASIS.Assessment_Reason_M0100 contains "1" or Get_OASIS.Assessment_Reason_M0100 contains "3") and Get_OASIS.M1032_Frailty contains "6 -" and Get_OASIS.When_Confused_M0570 contains "0 -">
    <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       'OASIS INCONSISTENCY: ' & 'M1033 contains 6 - Difficulty complying with medical instructions... but M1710 Confusion reports Never Confused' & '<br>comments:'>
  </cfif>
<cfif (Get_OASIS.Assessment_Reason_M0100 contains "1" or Get_OASIS.Assessment_Reason_M0100 contains "3") and Get_OASIS.M1032_Frailty contains "6 -" and Get_OASIS.Patient_Behav_Weekly_M0610 contains "7">
    <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       'OASIS INCONSISTENCY: ' & 'M1033 contains 6 - Difficulty complying with medical instructions... but M01740 reports No Problems Demonstrated' & '<br>comments:'>
  </cfif>
<cfif Get_OASIS.Vision_M0390 contains "2" and (Get_OASIS.Grooming_M0640 contains "0 -" or Get_OASIS.Dress_Upper_M0650 contains "0 -" or Get_OASIS.Dress_Lower_M0660 contains "0 -" or Get_OASIS.Bathing_M0670 contains "0 -" or Get_OASIS.M1840_Toilet contains "0 -"  or Get_OASIS.M1845_Toilet contains "0 -"   or Get_OASIS.Transferring_M0690 contains "0 -" or Get_OASIS.Ambulation_M0700 contains "0 -" or Get_OASIS.Eating_M0710 contains "0 -"  or Get_OASIS.Oral_Meds_M0780 contains "0 -"   or Get_OASIS.Inject_Meds_M0800 contains "0 -")>
    <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       'OASIS INCONSISTENCY: ' & 'M1200 reports severe vision deficit but patient is independent in one or more ADLs: M1800-M1870, M2020, M2030' & '<br>comments:'>
  </cfif>
<cfif (Get_OASIS.Freq_of_Pain_M0420 contains "4") and (Get_OASIS.Grooming_M0640 contains "0 -" or Get_OASIS.Dress_Upper_M0650 contains "0 -" or Get_OASIS.Dress_Lower_M0660 contains "0 -" or Get_OASIS.Bathing_M0670 contains "0 -" or Get_OASIS.M1840_Toilet contains "0 -"  or Get_OASIS.M1845_Toilet contains "0 -"   or Get_OASIS.Transferring_M0690 contains "0 -" or Get_OASIS.Ambulation_M0700 contains "0 -" or Get_OASIS.Eating_M0710 contains "0 -")>
    <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       'OASIS INCONSISTENCY: ' & 'M1242 reports severe pain but patient is independent in one or more ADLs: M1800-M1870' & '<br>comments:'>
  </cfif>
<cfif (Get_OASIS.Breathing_M0490 contains "4") and (Get_OASIS.Grooming_M0640 contains "0 -" or Get_OASIS.Dress_Upper_M0650 contains "0 -" or Get_OASIS.Dress_Lower_M0660 contains "0 -" or Get_OASIS.Bathing_M0670 contains "0 -" or Get_OASIS.M1840_Toilet contains "0 -"  or Get_OASIS.M1845_Toilet contains "0 -"   or Get_OASIS.Transferring_M0690 contains "0 -" or Get_OASIS.Ambulation_M0700 contains "0 -" or Get_OASIS.Eating_M0710 contains "0 -")>
    <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       'OASIS INCONSISTENCY: ' & 'M1400 reports severe shortness of breath but patient is independent in one or more ADLs: M1800-M1870' & '<br>comments:'>
  </cfif>
 <cfif (Get_OASIS.Assessment_Reason_M0100 contains "1" or Get_OASIS.Assessment_Reason_M0100 contains "3") and (Get_OASIS.Cog_Function_M0560 contains "3" or Get_OASIS.Cog_Function_M0560 contains "4") and (Get_OASIS.Grooming_M0640 contains "0 -" or Get_OASIS.Dress_Upper_M0650 contains "0 -" or Get_OASIS.Dress_Lower_M0660 contains "0 -" or Get_OASIS.Bathing_M0670 contains "0 -" or Get_OASIS.M1840_Toilet contains "0 -"  or Get_OASIS.M1845_Toilet contains "0 -"   or Get_OASIS.Transferring_M0690 contains "0 -" or Get_OASIS.Ambulation_M0700 contains "0 -" or Get_OASIS.Eating_M0710 contains "0 -"  or Get_OASIS.Oral_Meds_M0780 contains "0 -"   or Get_OASIS.Inject_Meds_M0800 contains "0 -")>
    <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       'OASIS INCONSISTENCY: ' & 'M1700 reports severe cognitive deficit but patient is independent in one or more ADLs: M1800-M1870, M2020, M2030' & '<br>comments:'>
  </cfif>
 <cfif (Get_OASIS.Assessment_Reason_M0100 contains "1" or Get_OASIS.Assessment_Reason_M0100 contains "3") and (Get_OASIS.When_Confused_M0570 contains "3" or Get_OASIS.When_Confused_M0570 contains "4") and (Get_OASIS.Grooming_M0640 contains "0 -" or Get_OASIS.Dress_Upper_M0650 contains "0 -" or Get_OASIS.Dress_Lower_M0660 contains "0 -" or Get_OASIS.Bathing_M0670 contains "0 -" or Get_OASIS.M1840_Toilet contains "0 -"  or Get_OASIS.M1845_Toilet contains "0 -"   or Get_OASIS.Transferring_M0690 contains "0 -" or Get_OASIS.Ambulation_M0700 contains "0 -" or Get_OASIS.Eating_M0710 contains "0 -"  or Get_OASIS.Oral_Meds_M0780 contains "0 -"   or Get_OASIS.Inject_Meds_M0800 contains "0 -")>
    <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       'OASIS INCONSISTENCY: ' & 'M1710 reports severe confusion but patient is independent in one or more ADLs: M1800-M1870, M2020, M2030' & '<br>comments:'>
  </cfif>
  <cfif (Get_OASIS.Assessment_Reason_M0100 contains "1" or Get_OASIS.Assessment_Reason_M0100 contains "3") and (Get_OASIS.Patient_Behav_Weekly_M0610 does not contain "7") and (Get_OASIS.Grooming_M0640 contains "0 -" or Get_OASIS.Dress_Upper_M0650 contains "0 -" or Get_OASIS.Dress_Lower_M0660 contains "0 -" or Get_OASIS.Bathing_M0670 contains "0 -" or Get_OASIS.M1840_Toilet contains "0 -"  or Get_OASIS.M1845_Toilet contains "0 -"   or Get_OASIS.Transferring_M0690 contains "0 -" or Get_OASIS.Ambulation_M0700 contains "0 -" or Get_OASIS.Eating_M0710 contains "0 -"  or Get_OASIS.Oral_Meds_M0780 contains "0 -"   or Get_OASIS.Inject_Meds_M0800 contains "0 -")>
    <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       'OASIS INCONSISTENCY: ' & 'M1740 reports cognitive, behavioral and/or psych issues but patient is independent in one or more ADLs: M1800-M1870, M2020, M2030' & '<br>comments:'>
  </cfif>
 <cfif (Get_OASIS.Assessment_Reason_M0100 contains "1" or Get_OASIS.Assessment_Reason_M0100 contains "3") and (Get_OASIS.Patient_Behav_Weekly_M0610 does not contain "7" and Get_OASIS.Patient_Behav_Weekly_M0610 does not contain "1") and (Get_OASIS.Patient_Behav_freq_M0620 contains '0' or Get_OASIS.Patient_Behav_freq_M0620 contains '1' or Get_OASIS.Patient_Behav_freq_M0620 contains '2')>
    <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       'OASIS INCONSISTENCY: ' & 'M1740 reports weekly cognitive, behavioral and/or psych issues but M1745 Frequency of Behavior Problems is less than weekly' & '<br>comments:'>
  </cfif>
 <cfif (Get_OASIS.Assessment_Reason_M0100 contains "1" or Get_OASIS.Assessment_Reason_M0100 contains "3") and (Get_OASIS.M1910_Fall_Risk contains "0 -")>
    <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       'OASIS INCONSISTENCY: ' & 'M1910 - no Fall Risk Assessment performed' & '<br>comments:'>
  </cfif>
<cfif (Get_OASIS.Assessment_Reason_M0100 contains "1" or Get_OASIS.Assessment_Reason_M0100 contains "3") and  Get_OASIS.M2100f_Equip contains "0 -" and 
      (Get_OASIS.Vision_M0390 contains "2" or (Get_OASIS.Freq_of_Pain_M0420 contains "4") or (Get_OASIS.Breathing_M0490 contains "4") or (Get_OASIS.Cog_Function_M0560 contains "3" or Get_OASIS.Cog_Function_M0560 contains "4") or (Get_OASIS.When_Confused_M0570 contains "3" or Get_OASIS.When_Confused_M0570 contains "4") or (Get_OASIS.Patient_Behav_Weekly_M0610 does not contain "7"))>
    <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       'OASIS INCONSISTENCY: ' & 'M2102f reports no supervision or assistance needed but patient has M1200 severe vision deficit OR M1242 severe pain OR M1400 severe SOB OR M17XX significant cognitive/behavioral deficits ' & '<br>comments:'>
  </cfif>
<cfif (Get_OASIS.Assessment_Reason_M0100 contains "1" or Get_OASIS.Assessment_Reason_M0100 contains "3") and  (Get_OASIS.M2100f_Equip contains "3 -" or Get_OASIS.M2100f_Equip contains "4 -") and Get_Patient.M1100_Living_Situation does not contain "05" and Get_Patient.M1100_Living_Situation does not contain "10" and Get_Patient.M1100_Living_Situation does not contain "15">
    <cfset REVIEW = REVIEW & '<br>-------------<br>' & 
       'OASIS INCONSISTENCY: ' & 'M2102f reports no supervision or assistance available but M1100 reports assistance available' & '<br>comments:'>
  </cfif>
      
<cfset REVIEW = REVIEW & '<br>-------------<br>'>
<cfif Get_OASIS.Grooming_M0640 contains '0 - '>
  <cfset REVIEW = REVIEW & 'OT Evaluation Grooming: ' & '<br>' & 'M1800 GROOMING: INDEPENDENT (' & '#Get_OASIS.Grooming_M0640#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Dress_Upper_M0650p,2) neq '06'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130B1: CHANGE TO 06'>
  </cfif>
  <cfelseif Get_OASIS.Grooming_M0640 contains '1 - '>
  <cfset REVIEW = REVIEW & 'OT Evaluation Grooming: ' & '<br>' & 'M1800 GROOMING: MODIFIED INDEPENDENT (' & '#Get_OASIS.Grooming_M0640#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Dress_Upper_M0650p,2) neq '05'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130B1: CHANGE TO 05'>
  </cfif>
  <cfelseif Get_OASIS.Grooming_M0640 contains '2 - '>
  <cfset REVIEW = REVIEW & 'OT Evaluation Grooming: ' & '<br>' & 'M1800 GROOMING: SUPERVISION OR standby assist OR contact guard OR minimum OR mod OR max assist (' & '#Get_OASIS.Grooming_M0640#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Dress_Upper_M0650p,2) neq '02' and Left(Get_OASIS.Dress_Upper_M0650p,2) neq '03' and Left(Get_OASIS.Dress_Upper_M0650p,2) neq '04'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130B1: CHANGE TO 02, 03 OR 04'>
  </cfif>
  <cfelse>
  <cfset REVIEW = REVIEW & 'OT Evaluation Grooming: ' & '<br>' & 'M1800 GROOMING: DEPENDENT (' & '#Get_OASIS.Grooming_M0640#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Dress_Upper_M0650p,2) neq '01'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130B1: CHANGE TO 01'>
  </cfif>
</cfif>
<cfif Get_OASIS.Dress_Upper_M0650 contains '0 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Upper Body Dressing: ' & '<br>' & 'M1810 UPPER BODY DRESSING: INDEPENDENT (' & '#Get_OASIS.Dress_Upper_M0650#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Ambulation_M0700p,2) neq '06'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130F1: CHANGE TO 06'>
  </cfif>
  <cfelseif Get_OASIS.Dress_Upper_M0650 contains '1 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Upper Body Dressing: ' & '<br>' & 'M1810 UPPER BODY DRESSING: MODIFIED INDEPENDENT OR supervision OR standby assist OR contact guard (' & '#Get_OASIS.Dress_Upper_M0650#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Ambulation_M0700p,2) neq '05'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130F1: CHANGE TO 05'>
  </cfif>
  <cfelseif Get_OASIS.Dress_Upper_M0650 contains '2 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Upper Body Dressing: ' & '<br>' & 'M1810 UPPER BODY DRESSING: MINIMUM OR mod OR max assist (' & '#Get_OASIS.Dress_Upper_M0650#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Ambulation_M0700p,2) neq '02' and Left(Get_OASIS.Ambulation_M0700p,2) neq '03' and Left(Get_OASIS.Ambulation_M0700p,2) neq '04'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130F1: CHANGE TO 02, 03 OR 04'>
  </cfif>
  <cfelse>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Upper Body Dressing: ' & '<br>' & 'M1810 UPPER BODY DRESSING: DEPENDENT (' & '#Get_OASIS.Dress_Upper_M0650#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Ambulation_M0700p,2) neq '01'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130F1: CHANGE TO 01'>
  </cfif>
</cfif>
<cfif Get_OASIS.Dress_Lower_M0660 contains '0 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Lower Body Dressing: ' & '<br>' & 'M1820 LOWER BODY DRESSING: INDEPENDENT (' & '#Get_OASIS.Dress_Lower_M0660#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Meal_Prep_M0720,2) neq '06'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130G1: CHANGE TO 06'>
  </cfif>
  <cfif Left(Get_OASIS.Transport_M0730,2) neq '06'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130H1: CHANGE TO 06'>
  </cfif>
  <cfelseif Get_OASIS.Dress_Lower_M0660 contains '1 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Lower Body Dressing: ' & '<br>' & 'M1820 LOWER BODY DRESSING: MODIFIED INDEPENDENT OR supervision OR standby assist OR contact guard (' & '#Get_OASIS.Dress_Lower_M0660#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Meal_Prep_M0720,2) neq '05'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130G1: CHANGE TO 05'>
  </cfif>
  <cfif Left(Get_OASIS.Transport_M0730,2) neq '05'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130H1: CHANGE TO 05'>
  </cfif>
  <cfelseif Get_OASIS.Dress_Lower_M0660 contains '2 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Lower Body Dressing: ' & '<br>' & 'M1820 LOWER BODY DRESSING: MINIMUM OR mod OR max assist (' & '#Get_OASIS.Dress_Lower_M0660#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Transport_M0730,2) neq '02' and Left(Get_OASIS.Transport_M0730,2) neq '03' and Left(Get_OASIS.Transport_M0730,2) neq '04'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130G1: CHANGE TO 02, 03 OR 04'>
  </cfif>
  <cfif Left(Get_OASIS.Transport_M0730,2) neq '02' and Left(Get_OASIS.Transport_M0730,2) neq '03' and Left(Get_OASIS.Transport_M0730,2) neq '04'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130H1: CHANGE TO 02, 03 OR 04'>
  </cfif>
  <cfelse>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Lower Body Dressing: ' & '<br>' & 'M1820 LOWER BODY DRESSING: DEPENDENT (' & '#Get_OASIS.Dress_Lower_M0660#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Meal_Prep_M0720,2) neq '01'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130G1: CHANGE TO 01'>
  </cfif>
  <cfif Left(Get_OASIS.Transport_M0730,2) neq '01'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130H1: CHANGE TO 01'>
  </cfif>
</cfif>
<cfif Get_OASIS.Bathing_M0670 contains '0 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Bathing: ' & '<br>' & 'M1830 BATHING: INDEPENDENT (' & '#Get_OASIS.Bathing_M0670#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Toileting_M0680p,2) neq '06'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130E1: CHANGE TO 06'>
  </cfif>
  <cfelseif Get_OASIS.Bathing_M0670 contains '1 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Bathing: ' & '<br>' & 'M1830 BATHING NOT CHAIR/BEDBOUND: MODIFIED INDEPENDENT (' & '#Get_OASIS.Bathing_M0670#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Toileting_M0680p,2) neq '05'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130E1: CHANGE TO 05'>
  </cfif>
  <cfelseif Get_OASIS.Bathing_M0670 contains '2 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Bathing: ' & '<br>' & 'M1830 BATHING NOT CHAIR/BEDBOUND: SUPERVISION OR standby assist OR contact guard or min assist OR mod assist OR max assist (' & '#Get_OASIS.Bathing_M0670#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Toileting_M0680p,2) neq '04' and Left(Get_OASIS.Toileting_M0680p,2) neq '03' and Left(Get_OASIS.Toileting_M0680p,2) neq '02'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130E1: CHANGE TO 02, 03 OR 04'>
  </cfif>
  <cfelseif Get_OASIS.Bathing_M0670 contains '3 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Bathing: ' & '<br>' & 'M1830 BATHING NOT CHAIR/BEDBOUND: SUPERVISION OR standby assist OR contact guard or min assist OR mod assist OR max assist (' & '#Get_OASIS.Bathing_M0670#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Toileting_M0680p,2) neq '04' and Left(Get_OASIS.Toileting_M0680p,2) neq '03' and Left(Get_OASIS.Toileting_M0680p,2) neq '02'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130E1: CHANGE TO 02, 03 OR 04'>
  </cfif>
  <cfelseif Get_OASIS.Bathing_M0670 contains '4 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Bathing: ' & '<br>' & 'M1830 BATHING NOT CHAIR/BEDBOUND: MODIFIED INDEPENDENT (' & '#Get_OASIS.Bathing_M0670#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Toileting_M0680p,2) neq '04' and Left(Get_OASIS.Toileting_M0680p,2) neq '03' and Left(Get_OASIS.Toileting_M0680p,2) neq '02'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130E1: CHANGE TO 02, 03 OR 04'>
  </cfif>
  <cfelseif Get_OASIS.Bathing_M0670 contains '5 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Bathing: ' & '<br>' & 'M1830 BATHING CHAIR/BEDBOUND: SUPERVISION OR standby assist OR contact guard or min assist OR mod assist OR max assist (' & '#Get_OASIS.Bathing_M0670#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Toileting_M0680p,2) neq '04' and Left(Get_OASIS.Toileting_M0680p,2) neq '03' and Left(Get_OASIS.Toileting_M0680p,2) neq '02'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130E1: CHANGE TO 02, 03 OR 04'>
  </cfif>
  <cfelse>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Bathing: ' & '<br>' & 'M1830 BATHING: DEPENDENT (' & '#Get_OASIS.Bathing_M0670#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Toileting_M0680p,2) neq '01'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130E1: CHANGE TO 01'>
  </cfif>
</cfif>
<cfif Get_OASIS.M1845_Toilet contains '0 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Toileting: ' & '<br>' & 'M1845 TOILETING HYGIENE: INDEPENDENT (' & '#Get_OASIS.M1845_Toilet#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Bathing_M0670p,2) neq '06'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130C1: CHANGE TO 06'>
  </cfif>
  <cfelseif Get_OASIS.M1845_Toilet contains '1 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Toileting: ' & '<br>' & 'M1845 TOILETING HYGIENE: MODIFIED INDEPENDENT OR supervision OR standby assist OR contact guard (' & '#Get_OASIS.M1845_Toilet#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Bathing_M0670p,2) neq '05'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130C1: CHANGE TO 05'>
  </cfif>
  <cfelseif Get_OASIS.M1845_Toilet contains '2 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Toileting: ' & '<br>' & 'M1845 TOILETING HYGIENE: MINIMUM OR mod OR max assist (' & '#Get_OASIS.M1845_Toilet#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Bathing_M0670p,2) neq '02' and Left(Get_OASIS.Bathing_M0670p,2) neq '03' and Left(Get_OASIS.Bathing_M0670p,2) neq '04'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130C1: CHANGE TO 02, 03 OR 04'>
  </cfif>
  <cfelse>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Toileting: ' & '<br>' & 'M1845 TOILETING HYGIENE: DEPENDENT (' & '#Get_OASIS.M1845_Toilet#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Bathing_M0670p,2) neq '01'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130C1: CHANGE TO 01'>
  </cfif>
</cfif>
<cfif Get_OASIS.Eating_M0710 contains '0 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Feeding/Eating: ' & '<br>' & 'M1870 FEEDING/EATING: INDEPENDENT (' & '#Get_OASIS.Eating_M0710#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Psy_Nursing_M0630,2) neq '06'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130A1: CHANGE TO 06'>
  </cfif>
  <cfelseif Get_OASIS.Eating_M0710 contains '1 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Feeding/Eating: ' & '<br>' & 'M1870 FEEDING/EATING: MODIFIED INDEPENDENT OR supervision OR standby assist OR contact guard OR min assist OR mod assist (' & '#Get_OASIS.Eating_M0710#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Psy_Nursing_M0630,2) neq '03' and Left(Get_OASIS.Psy_Nursing_M0630,2) neq '04' and Left(Get_OASIS.Psy_Nursing_M0630,2) neq '05'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130A1: CHANGE TO 03, 04 OR 05'>
  </cfif>
  <cfelseif Get_OASIS.Eating_M0710 contains '2 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Feeding/Eating: ' & '<br>' & 'M1870 FEEDING/EATING: MAX ASSIST OR dependent (' & '#Get_OASIS.Eating_M0710#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Psy_Nursing_M0630,2) neq '01' and Left(Get_OASIS.Psy_Nursing_M0630,2) neq '02'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130A1: CHANGE TO 01 or 02'>
  </cfif>
  <cfelse>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Feeding/Eating: ' & '<br>' & 'M1870 FEEDING/EATING: NG OR GASTROSTOMY (' & '#Get_OASIS.Eating_M0710#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Psy_Nursing_M0630,2) neq '09' and Left(Get_OASIS.Psy_Nursing_M0630,2) neq '88'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0130A1: CHANGE TO 09 or 88'>
  </cfif>
</cfif>
<cfif Get_OASIS.Oral_Meds_M0780 contains '0 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Oral Med Mgmt: ' & '<br>' & 'M2020 ORAL MED MGMT: INDEPENDENT (' & '#Get_OASIS.Oral_Meds_M0780#' & ')' & '<br>comments:'>
  <cfelseif Get_OASIS.Oral_Meds_M0780 contains '1 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Oral Med Mgmt: ' & '<br>' & 'M2020 ORAL MED MGMT: MODIFIED INDEPENDENT (' & '#Get_OASIS.Oral_Meds_M0780#' & ')' & '<br>comments:'>
  <cfelseif Get_OASIS.Oral_Meds_M0780 contains '2 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Oral Med Mgmt: ' & '<br>' & 'M2020 ORAL MED MGMT: SUPERVISION OR standby assist OR contact guard or min assist OR mod assist (' & '#Get_OASIS.Oral_Meds_M0780#' & ')' & '<br>comments:'>
  <cfelseif Get_OASIS.Oral_Meds_M0780 contains '3 - '>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Oral Med Mgmt: ' & '<br>' & 'M2020 ORAL MED MGMT: MAX ASSIST OR dependent (' & '#Get_OASIS.Oral_Meds_M0780#' & ')' & '<br>comments:'>
  <cfelse>
  <cfset REVIEW = REVIEW & '<br><br>OT Evaluation Oral Med Mgmt: ' & '<br>' & 'M2020 ORAL MED MGMT: NO MEDS (' & '#Get_OASIS.Oral_Meds_M0780#' & ')' & '<br>comments:'>
</cfif>
<!---<cfif Get_OASIS.Conditions_Prior_M0220 contains '3'>
  <cfset REVIEW = REVIEW & '<br><br>OT REHABILITATION POTENTIAL: Patient was INDEPENDENT in self-care PRIOR to this illness/acerbation/injury'>
  <cfelseif Get_OASIS.Conditions_Prior_M0220 contains '2'>
  <cfset REVIEW = REVIEW & '<br><br>OT REHABILITATION POTENTIAL: Patient REQUIRED ASSISTANCE with self-care PRIOR to this illness/acerbation/injury'>
  <cfelseif Get_OASIS.Conditions_Prior_M0220 contains '1'>
  <cfset REVIEW = REVIEW & '<br><br>OT REHABILITATION POTENTIAL: Patient was DEPENDENT for assistance in self-care PRIOR to this illness/acerbation/injury'>
  <cfelse>
  <cfset REVIEW = REVIEW & '<br><br>OT REHABILITATION POTENTIAL: self-care PRIOR to this illness/acerbation/injury IS UNKNOWN'>
</cfif>--->
<cfset REVIEW = REVIEW & '<br>-------------'>
<cfif Get_OASIS.M1840_Toilet contains '0 - '>
  <cfset REVIEW = REVIEW & '<br><br>PT Evaluation Toilet Transferring: ' & '<br>' & 'M1840 TOILET TRANSFERRING: INDEPENDENT (' & '#Get_OASIS.M1840_Toilet#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Patient_Manage_Equip_M0810,2) neq '06'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0170F1: CHANGE TO 06'>
  </cfif>
  <cfelseif Get_OASIS.M1840_Toilet contains '1 - '>
  <cfset REVIEW = REVIEW & '<br><br>PT Evaluation Toilet Transferring: ' & '<br>' & 'M1840 TOILET TRANSFERRING: MODIFIED INDEPENDENT OR supervision OR standby assist OR contact guard or min or mod assist  (' & '#Get_OASIS.M1840_Toilet#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Patient_Manage_Equip_M0810,2) neq '04' and Left(Get_OASIS.Patient_Manage_Equip_M0810,2) neq '05'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0170F1: CHANGE TO 04 OR 05'>
  </cfif>
  <cfelseif Get_OASIS.M1840_Toilet contains '2 - '>
  <cfset REVIEW = REVIEW & '<br><br>PT Evaluation Toilet Transferring: ' & '<br>' & 'M1840 TOILET TRANSFERRING: MODIFIED INDEPENDENT OR supervision OR standby assist OR contact guard or min or mod assist   (' & '#Get_OASIS.M1840_Toilet#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Patient_Manage_Equip_M0810,2) neq '02' and Left(Get_OASIS.Patient_Manage_Equip_M0810,2) neq '03'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0170F1: CHANGE TO 02 or 03'>
  </cfif>
  <cfelse>
  <cfset REVIEW = REVIEW & '<br><br>PT Evaluation Toilet Transferring: ' & '<br>' & 'M1840 TOILET TRANSFERRING: MAX ASSIST OR dependent  (' & '#Get_OASIS.M1840_Toilet#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Patient_Manage_Equip_M0810,2) neq '01'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0170F1: CHANGE TO 01'>
  </cfif>
</cfif>
<cfif Get_OASIS.Transferring_M0690 contains '0 - '>
  <cfset REVIEW = REVIEW & '<br><br>PT Evaluation Transferring: ' & '<br>' & 'M1850 TRANSFERRING: INDEPENDENT (' & '#Get_OASIS.Transferring_M0690#' & ')' & '<br>comments:'>
  <cfif Left(Get_OASIS.Laundry_M0740,2) neq '06'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0170A1: CHANGE TO 06'>
  </cfif>
  <cfif Left(Get_OASIS.Housekeeping_M0750,2) neq '06'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0170B1: CHANGE TO 06'>
  </cfif>
  <cfif Left(Get_OASIS.Shopping_M0760,2) neq '06'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0170C1: CHANGE TO 06'>
  </cfif>
  <cfif Left(Get_OASIS.Use_Phone_M0770,2) neq '06'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0170D1: CHANGE TO 06'>
  </cfif>
  <cfif Left(Get_OASIS.Inhalant_Meds_M0790,2) neq '06'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0170E1: CHANGE TO 06'>
  </cfif>
  <cfif Left(Get_OASIS.M1900a_SelfCare,2) neq '06'>
    <cfset REVIEW = REVIEW & '<br>&nbsp;&nbsp;&nbsp;!!GG0170G1: CHANGE TO 06'>
  </cfif>
  <cfelseif Get_OASIS.Transferring_M0690 contains '1 - '>
  <cfset REVIEW = REVIEW & '<br><br>PT Evaluation Transferring: ' & '<br>' & 'M1850 TRANSFERRING: MODIFIED INDEPENDENT or supervision OR standby assist OR contact guard or min assist (' & '#Get_OASIS.Transferring_M0690#' & ')' & '<br>comments:'>
  <cfelseif Get_OASIS.Transferring_M0690 contains '2 - '>
  <cfset REVIEW = REVIEW & '<br><br>PT Evaluation Transferring: ' & '<br>' & 'M1850 TRANSFERRING: MOD ASSIST OR max assist (' & '#Get_OASIS.Transferring_M0690#' & ')' & '<br>comments:'>
  <cfelseif Get_OASIS.Transferring_M0690 contains '3 - '>
  <cfset REVIEW = REVIEW & '<br><br>PT Evaluation Transferring: ' & '<br>' & 'M1850 TRANSFERRING: DEPENDENT (' & '#Get_OASIS.Transferring_M0690#' & ')' & '<br>comments:'>
  <cfelseif Get_OASIS.Transferring_M0690 contains '4 - '>
  <cfset REVIEW = REVIEW & '<br><br>PT Evaluation Transferring: ' & '<br>' & 'M1850 BED MOBILITY TRANSFERRING: INDEPENDENT (' & '#Get_OASIS.Transferring_M0690#' & ')' & '<br>comments:'>
  <cfelse>
  <cfset REVIEW = REVIEW & '<br><br>PT Evaluation Transferring: ' & '<br>' & 'M1850 BED MOBILITY TRANSFERRING: DEPENDENT (' & '#Get_OASIS.Transferring_M0690#' & ')' & '<br>comments:'>
</cfif>
<cfif Get_OASIS.Ambulation_M0700 contains '0 - '>
  <cfset REVIEW = REVIEW & '<br><br>PT Evaluation Ambulation/Locomotion: ' & '<br>' & 'M1860 AMBULATION/LOCOMOTION: INDEPENDENT (' & '#Get_OASIS.Ambulation_M0700#' & ')' & '<br>comments:'>
  <cfelseif Get_OASIS.Ambulation_M0700 contains '1 - '>
  <cfset REVIEW = REVIEW & '<br><br>PT Evaluation Ambulation/Locomotion: ' & '<br>' & 'M1860 AMBULATION/LOCOMOTION: MODIFIED INDEPENDENT (' & '#Get_OASIS.Ambulation_M0700#' & ')' & '<br>comments:'>
  <cfelseif Get_OASIS.Ambulation_M0700 contains '2 - '>
  <cfset REVIEW = REVIEW & '<br><br>PT Evaluation Ambulation/Locomotion: ' & '<br>' & 'M1860 AMBULATION/LOCOMOTION: MODIFIED INDEPENDENT OR supervision OR standby assist OR contact guard or min assist  (' & '#Get_OASIS.Ambulation_M0700#' & ')' & '<br>comments:'>
  <cfelseif Get_OASIS.Ambulation_M0700 contains '3 - '>
  <cfset REVIEW = REVIEW & '<br><br>PT Evaluation Ambulation/Locomotion: ' & '<br>' & 'M1860 AMBULATION/LOCOMOTION: MAX ASSIST OR dependent (' & '#Get_OASIS.Ambulation_M0700#' & ')' & '<br>comments:'>
  <cfelseif Get_OASIS.Ambulation_M0700 contains '4 - '>
  <cfset REVIEW = REVIEW & '<br><br>PT Evaluation Ambulation/Locomotion: ' & '<br>' & 'M1860 WHEELECHAIR LOCOMOTION: INDEPENDENT (' & '#Get_OASIS.Ambulation_M0700#' & ')' & '<br>comments:'>
  <cfelseif Get_OASIS.Ambulation_M0700 contains '5 - '>
  <cfset REVIEW = REVIEW & '<br><br>PT Evaluation Ambulation/Locomotion: ' & '<br>' & 'M1860 WHEELECHAIR LOCOMOTION: INDEPENDENT (' & '#Get_OASIS.Ambulation_M0700#' & ')' & '<br>comments:'>
  <cfelse>
  <cfset REVIEW = REVIEW & '<br><br>PT Evaluation Ambulation/Locomotion: ' & '<br>' & 'M1860 WHEELECHAIR LOCOMOTION: DEPENDENT (' & '#Get_OASIS.Ambulation_M0700#' & ')' & '<br>comments:'>
</cfif>
<!---<cfif Get_OASIS.Overall_Prognosis_M0260 contains '3'>
  <cfset REVIEW = REVIEW & '<br><br>PT REHABILITATION POTENTIAL: Patient was INDEPENDENT in self-care PRIOR to this illness/acerbation/injury'>
  <cfelseif Get_OASIS.Overall_Prognosis_M0260 contains '2'>
  <cfset REVIEW = REVIEW & '<br><br>PT REHABILITATION POTENTIAL: Patient REQUIRED ASSISTANCE with self-care PRIOR to this illness/acerbation/injury'>
  <cfelseif Get_OASIS.Overall_Prognosis_M0260 contains '1'>
  <cfset REVIEW = REVIEW & '<br><br>PT REHABILITATION POTENTIAL: Patient was DEPENDENT for assistance in self-care PRIOR to this illness/acerbation/injury'>
  <cfelse>
  <cfset REVIEW = REVIEW & '<br><br>PT REHABILITATION POTENTIAL: self-care PRIOR to this illness/acerbation/injury IS UNKNOWN'>
</cfif>--->
'<br>
' &
<cfif Get_CR_1.Message_ID eq 13>
  '#Get_CR_1.OASIS#'
</cfif>
<!---<cfif Get_Patient.M1100_Living_Situation contains '01' or Get_Patient.M1100_Living_Situation contains '02' or Get_Patient.M1100_Living_Situation contains '06' or Get_Patient.M1100_Living_Situation contains '07' or Get_Patient.M1100_Living_Situation contains '11' or Get_Patient.M1100_Living_Situation contains '12' >
  <cfset REVIEW = REVIEW & '<br>' & 'CAREGIVER TEACHABILITY: Patient has teachable caregiver during the day: M1100 ' & '#Get_Patient.M1100_Living_Situation#'>
  <cfif Get_OASIS.M2100f_Equip contains '3 -'>
    <cfset REVIEW = REVIEW & '<br>' & 
      'ALERT: SUPERVISION & SAFETY: supervision/safety by caregiver unlikely or unknown: M2102f ' & '#Get_OASIS.M2100f_Equip#'>
    <cfelseif Get_OASIS.M2100f_Equip contains '4 -'>
    <cfset REVIEW = REVIEW & '<br>' & 
      'ERROR: SUPERVISION & SAFETY: no caregiver to provide supervision/safety: M2102f ' & '#Get_OASIS.M2100f_Equip#'>
  </cfif>
  <cfelse>
  <cfset REVIEW = REVIEW & '<br>' & 'CAREGIVER TEACHABILITY: Patient has NO teachable caregiver during the day: M1100 ' & '#Get_Patient.M1100_Living_Situation#'>
</cfif>--->
<!---<cfif Get_OASIS.Cog_Function_M0560 contains '3 -' or  Get_OASIS.Cog_Function_M0560 contains '4 -' or Get_OASIS.Patient_Behav_Weekly_M0610 contains '1 -'  or Get_OASIS.Patient_Behav_Weekly_M0610 contains '2 -' >
  <cfset REVIEW = REVIEW & '<br>' & 'PATIENT TEACHABILITY: Patient is NOT teachable: (M1700 ' & '#Get_OASIS.Cog_Function_M0560#' & ', M1740 ' & '#Get_OASIS.Patient_Behav_Weekly_M0610#' & ')'>
  <cfelse>
  <cfset REVIEW = REVIEW & '<br>' & 'PATIENT TEACHABILITY: Patient IS teachable: (M1700 ' & '#Get_OASIS.Cog_Function_M0560#' & ', M1740 ' & '#Get_OASIS.Patient_Behav_Weekly_M0610#' & ')'>
</cfif>--->
<cfquery  name="update" datasource="#Application.DataSrc#">
  Update #Request.prefix_db_agency#.Coding_Results
  set Textfield_13 = '#REVIEW#'
  where Assessment_ID = #url.AID#
  and Patient_ID = #url.ID#
    and Message_ID = 78
</cfquery>
<cfinclude template="cron_coding_CAREPLAN.cfm" />
