logo


56.1.6 Summary: Grid Area page: Getting started


Grid Envelopes and Grid Items

A Report contains Grid Envelopes. These Grid Envelopes are not displayed on the Grid, they are containers for Grid Items - which can be displayed on the Grid. In other words a single Grid Envelope is a container for one or many Grid Items.

In order to define a Grid Item, you MUST define a Grid Envelope first. You can add more Grid Items to an already defined Grid Envelope later.

We have arranged things in this way in order to keep logical groups of Grid Items together. For instance, if you have defined a Frequency Distribution, there will almost certainly be many Grid Items. All these Grid Items are held within a single Grid Envelope. This makes it easy to delete the Frequency Distribution later - just delete the Grid Envelope and all the Grid Items belonging to the Grid Envelope will be deleted also.

Remember, the Grid is just a display area, so if you want to delete, say an element of a Frequency Distribution, then it is better to just hide it (by setting the coordinates on the Grid to 0;0) rather than actually deleting the Grid Item, you may change your mind later and still want to display it!

Note: Creation of Stat Grid Envelopes and Text Grid Envelopes and their Grid Items can be done either manually as outlined below or by use of the Wizard described in.“Summary: Input Form: Wizard” on page 412.

Order of operations

You would start to use this area as follows:

1 Define a Stat Grid Envelope for a Field that you want to do statistics on.

See “Summary: Grid Area page: Grid Envelope: Add” on page 387

The field you select will determine the statistic you will be able to generate from this Grid Envelope. e.g. If we choose [ICURecord]Adm_AgeInYears as the field - we can generate most types of statistic but if we choose [ICURecord]Adm_Source then we can clearly not expect to derive statistics such as Mean, SD etc. because this field holds data of type String and these statistics expect data of type Numeric.

Define a Slave Query for this Stat Grid Envelope.

See “Summary: Grid Area page: Slave Query” on page 389

This will create the selection of records you will use to create your statistics with. The Slave Query MUST return a selection of records for the Table that the Field belongs to - otherwise there is nothing that STATIC can work on to create the statistics you require. STATIC expects you to use at least one USE SET command at or near the end of the Slave Query definition that uses the same Table as the Field selected for the Grid Envelope. If this is not done, you will see an error message on leaving the Slave Query and in the Slave Query display on the Grid Area page.

Define a 100% Set for this Stat Grid Envelope.

See “Summary: Grid Area page: 100% Reference Set” on page 390

100% Sets are used for comparison. The Set used must be created in the Master Query. Click on the area to select the Set to use as the 100% Set.

This is used for some comparative statistics. e.g. You may want to compare the number of Central Lines to the number of Admissions as a percentage. Here you would define the 100% Set as the set of records that returns the number of Admissions (from the [ICURecord] Table) and this set will be compared to the selection of [ICURecord]records that had a Central Line event (derived by another Query involving the [DD_Proc_Event] Table).

Define one or more Statistical Grid Items for the Stat Grid Envelope.

See “Summary: Grid Area page: Statistic Grid Item: Add” on page 391

This creates the actual contents that will be seen on the Grid. You can move these items anywhere on the Grid by either Cut and Paste (use Cut and Paste from the Edit drop down menu on the Form - NOT the Menu Bar!) or by using the Arrow buttons.

2 Define a Text Grid Envelope

See “Summary: Grid Area page: Grid Envelope: Add” on page 387

These are containers for Text Grid Items.

Define one or more Text Grid Items for the Text Grid Envelope.

See “Summary: Grid Area page: Text Grid Item: Add” on page 394

These will hold the Headings or labels or both you want to display on the Grid. Text Grid Items can contain conditional text defined by Place Holders that are replaced when the Grid is calculated by the required Text.

3 Repeat adding Grid Envelopes and Grid Items to the Report

You can add as many of these as you require. They do not need to have any relationship with each other. You can place the Grid Items from different Grid Envelopes anywhere you like with respect to each other. Each Grid Envelope is independently calculated and the results of the calculation placed on the Grid in their respective Grid Items.

4 Define a Frame for the Grid Items displayed on the Grid.

See “Summary: Input Form: Frames page” on page 423

Only Grid Items contained within a Frame are displayed on final output documents. (Sometimes you may not want some Text or Statistics Grid Items to display on final output - e.g. private notes to yourself as a reminder of function, quality check of source data by running statistics.)

Frames are powerful, they determine where and how blocks of Grid Items are placed, repeated and formatted. In conjunction with Place Holders, Frames make it easy to create a Grid that repeats a single block of Grid Items many times. e.g. a repeating block of Grid Items for yearly statistics repeated for 1, 2 or 5 years. This removes the need for you to create a block of Grid Items for every year that you want to display.

5 Apply any formatting to the displayed Grid Items.

See “Summary: Input Form: Format Table page” on page 427

You can now apply formatting to the individual cells. Formatting can also be applied using Style sheets to give consistent predetermined look and feel to all your output. Here you can also set the Column width and the Pagination for printing.

6 Execute the Report form the Grid area

See “Summary: Grid Area page: Grid Envelope: Add” on page 387

Click the Execute button on the Grid Area page.

7 Display the calculated views

See “Summary: Grid Area page: Grid Envelope: Add” on page 387

Select View 1 to View n or Composite view. The Grid will display your Report. View 1 is the first Report calculated. If there are Place Holders defined, View 2 to n are all subsequent calculations for every column of Place Holders values. The Composite view is View 1 and all View 2 to n sheets concatenated as per definition in the Frames page.

8 Export or Print the Report

See “Summary: Grid Area page: Grid Envelope: Add” on page 387

Click the Print or Export buttons and Export or Print the Report.



Harrowex Pty Ltd
http://www.hxmedical.com
Voice:+ 61 4 27 344 279
Fax: +61 3 52 439 019
static@hxmedical.com