|
@@ -1201,11 +1201,11 @@ if(!function_exists('getSurveyData')) {
|
|
|
if(!function_exists('determineTier')) {
|
|
|
function determineTier($careMonth) {
|
|
|
$tier = null;
|
|
|
- if($careMonth->number_of_days_with_remote_measurements >= 7 && $careMonth->rm_total_time_in_seconds_by_mcp >= 10*60 ){
|
|
|
+ if($careMonth->number_of_days_with_remote_measurements >= 7 && $careMonth->rm_total_time_in_seconds_by_mcp >= 10*60 && $careMonth->has_mcp_interacted_with_client_about_rm ){
|
|
|
$tier = 'TIER_1';
|
|
|
}
|
|
|
|
|
|
- if($careMonth->number_of_days_with_remote_measurements >= 16 && $careMonth->rm_total_time_in_seconds >= 20*60) {
|
|
|
+ if($careMonth->number_of_days_with_remote_measurements >= 16 && $careMonth->rm_total_time_in_seconds >= 20*60 && $careMonth->has_mcp_interacted_with_client_about_rm) {
|
|
|
$tier = 'TIER_2';
|
|
|
}
|
|
|
return $tier;
|