Welcome! If this is your first time here, check out the Announcements.

Send e-mail notifications automatically about new teaching file cases


  • administrators

    If you want to send colleagues e-mail notifications automatically about new cases you've added to your teaching file, it's easy. Here are the steps:

    In OsiriX: Web Server Preferences, check the box shown below left.

    0_1470277590209_UseTemplatesFolder.png


    Then, click Copy Header/Footer files. That will put new items in the following folder (which may be displayed automatically):

    /Users/howardm/Library/Application Support/OsiriX/WebServicesHTML — in my case.

    In this folder you will see a emailTemplate.html file. Edit a duplicate copy of this file, putting the following in it in place of the existent content:


    NSLocalizedString(@"Dear %X:Destination.name%",nil),<br/>
    <br/>

    %[IF:customText.length%

    %X:customText%<br/><br/>
    </b>
    %]IF:customText.length%

    %[IF:Studies.count>1%
    NSLocalizedString(@"New teaching cases are available to view and download. Click on the following URLs to log in and review them:",nil)
    %ELSE:Studies.count>1%
    NSLocalizedString(@"A new teaching case is available to view and download. Click on the following URL to log in and review it: ",nil)
    %]IF:Studies.count>1%
    <ul>
    %[FOREACH:Studies:Study%
    <li>
    <a href="%WebServerURL%/study?xid=%Study.XID%">%X:Study.name%</a> -
    NSLocalizedString(@"Link: ",nil)<a href="%WebServerURL%/study?xid=%Study.XID%">%WebServerURL%/study?xid=%Study.XID%</a>
    </li>
    %]FOREACH:Studies:Study%
    </ul>

    <br/>
    NSLocalizedString(@"Cheers.",nil)
    <br/>
    <br/>
    NSLocalizedString(@"Howard",nil)


    The recipient will receive an e-mail like this:

    0_1470279378168_Emailmessage.jpg


    The recipient can just click on the link to the case(s).

    Of course, substitute your greeting and name for mine at the bottom of the emailTemplate.html file.

    And remember to rename the existent file to something like "...backup" so this new one is used by OsiriX.


    Specify the use of the Mail app for the e-mail messages and a frequency of, say, once every 24 hours:

    0_1470278518399_Emailnotification.jpg

    The recipient will get an e-mail only when new a new case is added (or an existent case modified).

    For each recipient of your notification e-mail, create a User (if not already there).

    Specify the sending of e-mail messages to that user as shown here.

    0_1470278435933_Automaticemail.png


    Because I add cases from colleagues to my Teaching File, I personally want to notify people about only the cases I have added. This way, they're not notified about cases they already have. Because all my cases have HM as the Accession Number, I can use the Syntax Filter to accomplish this as shown below:

    0_1470279058832_FilterTable.jpg


    Depending on the purpose of your notifications, you can use the Filter to accomplish customized notifications for different users for different purposes.


    Cheers.


Log in to reply
 

Looks like your connection to Chest Radiologists Collaborative was lost, please wait while we try to reconnect.