We have a form that is using the Mel_Add_Problem function for one of our specialties and they have expressed a concern that it lets them add a problem even if it already is in the patient's problem list. We added a data display of the existing problems, but they said that with some of their patients, it would be a pain to have to scroll down to make sure that it isn't already there. So, is it possible to program it to prompt the user if the diagnosis they clicked on is already on the problems list????
For my problem page I placed these in the enable expression box in the advanced section of each button -
match(PROB_AFTER(),"951.4")<1
This keeps the button from being available, you could also do something like -
This in the white space -
{fn CHECK_ADD_PROB(icd, description){
if match(PROB_AFTER(),code)>1 then
if USERYESNO("Prompt to add probelm anyway here") == "Yes" then
MEL_ADD_PROBLEM(‘DX OF’,description,icd,str(._todaysdate),’’,’’,’N’,’’)
else return "" endif
else
MEL_ADD_PROBLEM(‘DX OF’,description,icd,str(._todaysdate),’’,’’,’N’,’’)
endif
}}
In each button just add {CHECK_ADD_PROB(icd code here, description here)}
Mike
Thanks so much...will give it a try!