Showing posts with label Advanced Features. Show all posts
Showing posts with label Advanced Features. Show all posts

Thursday, January 8, 2009

Ask OSCAR Anything

OSCAR provides an extensible interface that gives you the ability to ask the system anything and it will tell you what it knows. More importantly, this interface allows you to format the answer in a way that can be easily exported to another package.

For example, perhaps you wish to send a newsletter to your active patients.

Wouldn't it be nice if you could ask OSCAR to export the relevant demographic information to a spreadsheet so that you could print labels and form letters for the mailing?

This task is easily accomplished using OSCAR's Report By Template feature.

First, construct your query and save it as a text file on your laptop/desktop computer. (You can cut and paste the following query into a file if you wish to give it a try.)

<report title="Newletter Report"
    description="Reports Patient Addresses -
    Active, Letter Only" active="1">
    <query>
        select last_name, first_name, address,
        city, province, postal
        from demographic
        where provider_no = {provider_no}
        and patient_status = 'AC'
        and newsletter = 'Paper'
        order by last_name, address
    </query>
    <param id="provider_no" type="list"
        description="Provider Number">
       <param-query>select provider_no,
            CONCAT(last_name, ', ', first_name,
            ' (', provider_no, ')')
            from provider
            order by last_name;
        </param-query>
    </param>
</report>

Second, load your query into OSCAR, via the Admin->Report By Template window.

The third and final step is to click on the report to run it.

This particular query asks OSCAR to find all active tagged patients for a specific provider, patients that have had their Newsletter field set to paper, and when it finds them, to output a list of their names and addresses, sorted on their last name and their address.

The results can then be viewed, printed, or easily exported to another format.

Many more examples of report templates can be found on the OSCAR Canada website.

Wednesday, January 7, 2009

Getting Started With Building Your Own E-Forms

One of the significant benefits of OSCAR is your ability to freely extend OSCAR and make it your own.

To extend a proprietary system with a custom form typically costs thousands of dollars and plenty of time. If you do spend the money and pay for a custom form, typically, you won't own the license on the form you paid for, and thus you can't share it with a colleague who might also want use of the same form.

OSCAR contains a number of programatic interfaces and template examples which allows the end user an opportunity to extend the system with additional forms. These extensions can be made using simple web design paradigms which are easy to learn.

For example, if you wish to create a form that has a check box on it, you would use a command such as:


<div style="position: absolute; left:90px; top:30px;">
    <input type="checkbox" name="thischeckbox1">
</div>


If you wish to create a form that has a text input box, then the command is similar to:


<div style="position: absolute; left:90px; top:50px;">
    <textarea class="noborder"
        name="thistextbox2"
        style="height: 83px; width: 289px;"
        tabindex="2"></textarea>
</div>


OSCAR users have created an excellent tutorial to get you started with building your own forms. This tutorial can be found on the OSCAR Canada Users Society website.