My clinic wants to have a pop -up come up in female patients charts that are 15yrs - 20yrs with diagnosis of high risk sexual activity no chlamydia testing on record please review. I set it up in protocols but the provider have to hit the protocol button for it to show.
Please help.
Tonya Racine
Tonya,
the setup for this will depend on where and when you want the pop up to present itself. If you want it to popup when the chart opens you'll to plop a bunch of mel in the banner code or in the usrlib.txt. If you want it to open on specific forms then you'll need to insert the code on those forms or in text components associated with those particular encounters.
When you return protocols due you'll get all of them that are due, so you'll need to decide if you want you popup to include other protocols that may be due in addition to your chlamydia testing reminder. For parsing a particular protocol from all that may be due, I ususally insert a character into the name of the protocol (~, for example) so that I can match on that while looping through any protocols that are due, find the one(s) with the special character (you could also match on the name, or some distinct part of name, of the protocol as well in order to capture the single one from a list that may be due.
Tonya,
the setup for this will depend on where and when you want the pop up to present itself. If you want it to popup when the chart opens you'll to plop a bunch of mel in the banner code or in the usrlib.txt. If you want it to open on specific forms then you'll need to insert the code on those forms or in text components associated with those particular encounters.
When you return protocols due you'll get all of them that are due, so you'll need to decide if you want you popup to include other protocols that may be due in addition to your chlamydia testing reminder. For parsing a particular protocol from all that may be due, I ususally insert a character into the name of the protocol (~, for example) so that I can match on that while looping through any protocols that are due, find the one(s) with the special character (you could also match on the name, or some distinct part of name, of the protocol as well in order to capture the single one from a list that may be due.
Tonya,
the setup for this will depend on where and when you want the pop up to present itself. If you want it to popup when the chart opens you'll to plop a bunch of mel in the banner code or in the usrlib.txt. If you want it to open on specific forms then you'll need to insert the code on those forms or in text components associated with those particular encounters.
When you return protocols due you'll get all of them that are due, so you'll need to decide if you want you popup to include other protocols that may be due in addition to your chlamydia testing reminder. For parsing a particular protocol from all that may be due, I ususally insert a character into the name of the protocol (~, for example) so that I can match on that while looping through any protocols that are due, find the one(s) with the special character (you could also match on the name, or some distinct part of name, of the protocol as well in order to capture the single one from a list that may be due.
Sorry - I seem to have accidentally hit "save"twice or something. You could also just have simple code in you banner: if listprotocolshort<> "" then userok("check protocols") else "" endif, but this will likely popup more than you want, so you could just translate "check protocols" into the banner text as an alternative.
Here's an example of banner code that pops once for an "AIMS" protocol
{global ghave_I_popped_yet}
{fn pa_parse_protocolsdue(protocols){if ghave_I_popped_yet == patient.medrecno or listprotocoldue() == "" then return "" else "" endif local arrProt=getfield(protocols, ":","")local n, pos, result=""for n=1, n<=size(arrProt), n=n+1 do if match(arrProt[n], "AIMS") > 0 then pos=n result = "Protocol 'AIMS':" + hret + arrProt[pos+1] + arrProt[pos+2] + arrProt[pos+3] userok(result) ghave_I_popped_yet=patient.medrecno break else "" endif endfor return ""}}
//call
{pa_parse_protocolsdue(listprotocoldue())}