Useful emr scripts