Welcome to SynapseDirect Sign in | Join | Help
in Search

SynapseDirect

http://127.0.0.1:8001/cgi-bin/searchprovider.html

Last post 11-23-2007, 2:06 PM by Graham. 3 replies.
Sort Posts: Previous Next
  •  11-03-2006, 1:59 PM 1141

    http://127.0.0.1:8001/cgi-bin/searchprovider.html

    Here's a script that brings up the New Zealand zip code and map for a provider ( Firefox icon on the providers page ) on new tabs.

    try { number = find(/Number: ([\w\s]+)/).groups[1]; }
    catch(e) {
    number = '';
    }
    try { street = find(/Street: (.*)/).groups[1]; }
    catch(e) {
    street = '';
    }
    try { suburb = find(/Suburb: (.*)/).groups[1]; }
    catch(e) {
    suburb = '';
    }
    try { city = find(/City: (.*)/).groups[1]; }
    catch(e) {
    city = '';
    }

    try { street2 = find(/Number&Street: (.*)/).groups[1]; }
    catch(e) {
    street2 = ''; // this is two single quotes
    }
    try { city2 = find(/City&State: (.*)/).groups[1]; }
    catch(e) {
    city2 = '';
    }

    with(openTab('http://www.nzpost.co.nz/Cultures/en-NZ/OnlineTools/PostCodeFinder/', true)) {
    enter("Number",number)
    enter("Street Name",street)
    enter("Suburb",suburb)
    enter("City",city)
    click("SubmitAddressSearchImageButton")
    }

    with(openTab('http://www.wises.co.nz/Default.aspx/', true)) {
    enter("Street",street2);
    enter("Auckland",city2);
    click("Search");
    }







    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
    Filed under:
  •  11-03-2006, 2:03 PM 1142 in reply to 1141

    Re: http://127.0.0.1:8001/cgi-bin/searchprovider.html

    Here's a previously published script that searches for a USA provider's map on yahoo.com.  Note that you should test this first manually on yahoo.com first as it may rely on some cookies sent by yahoo.

    // This chickenscript grabs the address details
    // and brings up the appropriate map in the USA. Change "United States" to "Canada" if you need this.

    try
    { street = find(/Number&Street: (.*)/).groups[1]; }
    catch(e) {
    street = ''; // this is two single quotes
    }
    try { city = find(/City&State: (.*)/).groups[1]; }
    catch(e) {
    city = '';
    }

    with(openTab('http://maps.yahoo.com/', true)) {
    enter("Address",street);
    enter("City",city);
    pick("United States");
    click("Get Map");
    }

     


    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
    Filed under:
  •  11-23-2007, 3:28 AM 4800 in reply to 1142

    Re: http://127.0.0.1:8001/cgi-bin/searchprovider.html

    Can you do one for Google Maps ?

     


    I'm working at half mast today, I think my ESR is higher than Grahams :( Dx: URTI vs. Flu.
    Developer
  •  11-23-2007, 2:06 PM 4802 in reply to 4800

    Re: http://127.0.0.1:8001/cgi-bin/searchprovider.html

    Never used google maps.

     


    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
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