Shrihari:Added code to export the chart as a pdf and email it to the physician