Welcome to SynapseDirect Sign in | Join | Help

SynapseDirect

http://127.0.0.1:8001/searchzip.html

  •  11-03-2006, 1:49 PM

    http://127.0.0.1:8001/searchzip.html

    This is a script that searches for the New Zealand postcode using the above link that is created by the Firefox icon on the patient details

    try { number = find(/Number: ([\w\s]+)/).groups[1]; }
    catch(e) {
    number = ''; // a pair of single quotes here
    }
    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 = '';
    }

    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")
    }



    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
    Filed under:
View Complete Thread
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