Overstay Predictor Project Algorithm: Difference between revisions

mNo edit summary
mNo edit summary
Line 129: Line 129:
     ' Julie wrote: OutsideWpg=(fromhosp in ('X','Y'));
     ' Julie wrote: OutsideWpg=(fromhosp in ('X','Y'));
     'OutsideWpg = -1 * (Mid(Form_View.R_AdmitFrom, 1, 1) = "x" Or Mid(Form_View.R_AdmitFrom, 1, 1) = "y")
     'OutsideWpg = -1 * (Mid(Form_View.R_AdmitFrom, 1, 1) = "x" Or Mid(Form_View.R_AdmitFrom, 1, 1) = "y")
     OutsideWpg = -1 * (Not IsNull(DLookup("Pat_ID", "check_from_out_of_town", "Pat_ID = " & Form_View.Pat_ID)))
     OutsideWpg = -1 * (Not IsNull(DLookup("Pat_ID", "[[query check_from_out_of_town|check_from_out_of_town]]", "Pat_ID = " & Form_View.Pat_ID)))
              
              
     If IsNull(Form_View.R_Province) Then
     If IsNull(Form_View.R_Province) Then