Jump to content
Server Maintenance This Week. ×

Run the same script every 5 minutes; automatically?


This topic is 6521 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I would like to refresh a Find every five minutes to show a list of patients who have arrived, but have not been seen. The Find is easy, but how do I script it to run without manually triggering it?

~Dennis

Link to comment
Share on other sites

You could hammer something out along these lines, but it will be clunky and/or require a plugin. Let me suggest a different approach:

Use a portal from a global field with '1' in it to a new field in Patients that we will call 'Waiting.'

Waiting is a stored calc field that has:

case(not isempty(Arrived) and isempty(Seen); 1)

this is assuming you have 2 fields ('Arrived' and 'Seen') that get filled in, say, checkbox style (not the best design, but illustrative for the point at hand). You can tweak the formula to better match your design, but the principle is to relate a global to the field/fields that identify a patient as arrived but not seen. Then, whenever a patient status is changed to this, they will automatically appear in the portal. No find, no scripts, no hassle.

-Raz

Link to comment
Share on other sites

This topic is 6521 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.