Welcome to SynapseDirect Sign in | Join | Help
in Search

SynapseDirect

http://127.0.0.1:8001/searchphone.html

Last post 11-03-2006, 3:45 PM by Graham. 1 replies.
Sort Posts: Previous Next
  •  11-03-2006, 2:09 PM 1143

    http://127.0.0.1:8001/searchphone.html

    This searches the New Zealand whitepages to find the telephone number for a patient.  It is called by the Firefox icon on the patient's "Contact & Portal" details.

    nameinit = find(/NameInitial: (.*)/).groups[1];
    town = find(/Town: (.*)/).groups[1];
    city = find(/City: (.*)/).groups[1];

    with(openTab('http://www.whitepages.co.nz/', true)) {

    enter("Name",nameinit)
    enter("Location",town)
    pick(city)
    click("Search")

    }

     


    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
    Filed under:
  •  11-03-2006, 3:45 PM 1145 in reply to 1143

    Re: http://127.0.0.1:8001/searchphone.html

    This script searches the http://www.whitepages.com to find a phone number in USA ( and maybe Canada ).  It requires Build 194 beta-3 as it adds a couple of more fields to display to make the script easier to write.

    try { fname = find(/First Name: (.*)/).groups[1]; }
    catch(e) {
    fname = '';
    }
    try { lname = find(/Name: (.*)/).groups[1]; }
    catch(e) {
    lname = '';
    }
    try { zip = find(/Zip: (.*)/).groups[1]; }
    catch(e) {
    zip = '';
    }

    go('http://www.whitepages.com')
    uncheck("First Name");
    enter("First Name",fname);
    enter("Last Name",lname);
    enter("City or Zip/Area Code",zip);
    click('First Button');



     


    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
    Filed under:
View as RSS news feed in XML
Try-out the Click to try-out Synapse EMR Express Edition Free Synapse EMR Express Edition Click to try-out Synapse EMR Express Edition · ©2006 SynapseDirect · Terms and Conditions · Privacy Policy · help us keep Synapse EMR Express free for all Doctors

managing your electronic medical records · Unique Visits Dell Computer