app/helpers/hbvs_helper.rb
#if monitoring is needed but not get it, return alert
if monitoring is needed but not get it, return alert
if monitoring is needed but not get it return alert
def determine_hbv_monitoring_alert(hbv, test_status)
    if(hbv.eqtests == nil || hbv.eqtests.length == 0)  
      if(test_status == TEST_STATUS_INFECTED_CHRONIC )  
         return "You should start monitoring for liver cancer and liver damage!"
      end
    end
  end
def determine_hbv_monitoring_alert ( hbv , test_status ) if ( hbv . eqtests == nil || hbv . eqtests . length == 0 ) if ( test_status == TEST_STATUS_INFECTED_CHRONIC ) return "You should start monitoring for liver cancer and liver damage!" end end end
if monitoring is needed but not get it, return alert
if monitoring is needed but not get it return alert
#no test done #need monitoring
hbv
<not_specific>
test_status
<not_specific>