Skip to main content

Inappropriate service duration warning for users

When Service Duration does not meet maximum requirements

If there are maximum time requirements (for billing or for appropriate care), a warning can be configured to alert the user if the identified duration is over the appropriate amount of time.

To configure a warning:

  1. Locate the option,‘On Change Script,’ on the Duration field in Form Designer.
     

Setup > User Tools > Form Designer > Form Designer

clipboard_efcc345cafcb22dd94c67e6e05d71aff9

  1. Enter the following:

var duration = GetMinutes(getFormElement('duration'));

if (duration > 90){ alert2('Service exceeds maximum duration requirement.'); setFormElement('duration', 30); Chk4Change(this);}

NOTE: Do not copy and paste directly from this document into myEvolv. If choosing to copy and paste from above, please use ‘Notepad’ or a similar program as an intermediary to avoid errors.

In this case, the service is meant to only last up to 90 minutes. If the rule for your agency is that the service must only last up to a different amount of time, then the ‘90’ should be modified to the appropriate number of minutes. Also, the notification text itself can be changed by modifying the words ‘Service exceeds maximum duration requirement’ in the above script.

The user will receive the following message if the entered duration is more than 90 minutes. Note that this is a ‘soft stop,’ meaning that the user will be able to select ‘OK’ and still save the event, to maintain an accurate clinical record.

clipboard_e4e2842478a7580678cd6b042e5df1640

When Service Duration does not meet minimum requirements.

If there are minimum time requirements (for billing or for appropriate care), a warning can be configured to alert the user if the identified duration is not of sufficient length.

To configure a warning:

  1. Locate the option, ‘On Change Script,’ on the Duration field in Form Designer.
     

Setup > User Tools > Form Designer > Form Designer

clipboard_e1af5e15d4bfa21b7b92f65a8ea98bf0c

  1. Enter the following:

var duration = GetMinutes(getFormElement('duration'));

if (duration < 90){ alert2('Service does not meet minimum duration requirement.'); setFormElement('duration', 30); Chk4Change(this);}

NOTE: Do not copy and paste directly from this document into myEvolv. If choosing to copy and paste from above, please use ‘Notepad’ or a similar program as an intermediary to avoid errors.

In this case, the service is meant to be provided for at least 90 minutes. If the rule for your agency is that the service must be at least a different amount of time, then the ‘90’ should be modified to the appropriate number of minutes. Also, the notification text itself can be changed by modifying the words ‘Service does not meet minimum duration requirement’ in the above script.

The user will receive the following message if the entered duration is more than 90 minutes. Note that this is a ‘soft stop,’ meaning that the user will be able to select ‘OK’ and still save the event, to maintain an accurate clinical record.

clipboard_ee2da0cd59157846e28f932a30a27f85b

 

Combination of minimum and maximum durations

If there are requirements for a service to be at least x amount of time, as well as no more than y amount of time, a warning can be configured to alert the user if the identified duration does not meet the requirements.

To configure a warning:

  1. Locate the option, ‘On Change Script,’ on the Duration field, in Form Designer.
     

Setup > User Tools > Form Designer > Form Designer

clipboard_ec8f9d3f965c3aa480ddbf176674e7299

  1. Enter the following:

var duration = GetMinutes(getFormElement('duration'));

if (duration < 30){ alert2('Service does not meet minimum duration requirement.'); setFormElement('duration', 30); Chk4Change(this);} if (duration > 90){ alert2('Service exceeds maximum duration requirement.'); setFormElement('duration', 30); Chk4Change(this);}

NOTE: Do not copy and paste directly from this document into myEvolv. If choosing to copy and paste from above, please use ‘Notepad’ or a similar program as an intermediary to avoid errors.

In this case, the service is meant to be provided for at least 30 minutes and no more than 90 minutes. If the rule for your agency is that the service must be at least a different amount of time, then the ‘30’ and ‘90’, respectively, should be modified to the appropriate number of minutes. Also, the notification text itself can be changed by modifying the words, ‘Service does not meet minimum duration requirement’ or ‘service exceeds maximum duration requirement’ in the above script.

The user will receive the messages identified in the two above sections, dependent upon which rule is being violated.  

 

 

 

 


 

  • Was this article helpful?