Has anyone wrote a function that will add pregnancy problems to the patients problem list with a click of a button? If so would you be willing to share?
I spent a good amount of time working on a button to do just that. It factored in the patients age, gravid and wks gestation to determine which trimester and weeks gestation problems to add. Unfortunately I have limited experience/knowledge with MEL language so I know I took the long way around to make this button "work". And I get the following error in VFE:
"WARNING: Action Button labeled Add Pregnancy Problems has created a line in the EFM file that is > 3000 characters before substitutions. Lines > 4096 characters may cause problems after import. Review item label, connection and visibility conditions."
You probably need to move your code that is in your button to the Function View window (right side of the form) and make it a function. Then call that function from the button. Code from the Function View ends up in a different file in the clinical kit instead of of an EFM file.