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