I would like to make this modification to the patient search window that comes up after you hit the “create new patient” button in new/search patient.
The primary reason for this is because I am writing automated test cases (code here: https://github.com/yehster/oemrwatir and details about them later). However, it is very difficult to dismiss the javascript confirm popup with watir when creating a new patient.
The secondary reason is that I think the interface is actually better this way as it is more consistent appearance if you just interact with the “Confirm Create Button” regardless of the “search results”, and it seems more intuitive.
Rod, I think this was all your code originally, so I’d like to hear what you think of this change. Maybe I’m missing something as to why the extra popup window is appropriate when there aren’t any “similar patients” when creating a new patient. Obviously the opinions of others is appreciated too.
I assure you guys that this change will be well worth it. Watir does have the capability to handle javascript popups in general, but this is a special case as the popup/confirm window comes up before the parent window is fully rendered, so the mechanism watir uses is unable to intervene in time.
Just read up a bit on Watir. Would be very nice to have an automated testing mechanism. Just as a FYI, note a previous user set something up awhile back, but has not been supported for a year or so (typical story of another developer setting it up and then moving on): http://www.open-emr.org/wiki/index.php/Automated_Testing
I’m all for this change, especially if needed to support your automated testing stuff.
Rod,
Just curious, did they want more explicit ok/cancel as with the javascript confirm? Or did they want explicit notification that no matching results were found? both?