Welcome to SynapseDirect Sign in | Join | Help
in Search

SynapseDirect

Chickenscript

  • Chickenscripts

    This blog will be used to add some scripts that you can use with Synapse EMR.

    Here's a script that you can use on the http://127.0.0.1:8001/cgi-bin/searchprovider.html page that appears when you click on the Firefox icon on the provider screen ( 193 beta-14 )

    It takes the provider address and brings up the Yahoo map for Canada. Change the pick("Canada"); to pick("United States"); if you want to search in the USA.  You can then print out the map and hand it to the patient.

     

    // This chickenscript grabs the address details
    // and brings up the appropriate map

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

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

    Share this post: email it! | digg it!

This Blog

Syndication

Recent Posts

Tags

No tags have been created or used yet.

Archives

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