55.1.6 Summary: Grid Area page: Getting started
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 not display 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!
You would start to use this area as follows:
1 Define a Field Grid Envelope for a Field that you want to do statistics on.
See Summary: Grid Area page: Grid Envelope: Add on page 379
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 Field Grid Envelope.
See Summary: Grid Area page: Slave Query on page 381
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 for the command. 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 Field Grid Envelope.
See Summary: Grid Area page: 100% Reference Set on page 382
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 compared to the number of Admissions as a percentage. Here you would define the 100% Set as the set of records that give you 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 Field Grid Envelope.
See Summary: Grid Area page: Statistic Grid Item: Add on page 383
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.
See Summary: Grid Area page: Grid Envelope: Add on page 379
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 388
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 409
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 413
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 379
Click the Execute button on the Grid Area page.
7 Display the calculated views
See Summary: Grid Area page: Grid Envelope: Add on page 379
Select the Top Sheet, Repeat 1 to Repeat n or Composite view. The Grid will display your Report. The Top Sheet is the first Report calculated. If there are Place Holders defined, Repeat 1 to n are all subsequent calculations for every column of Place Holders values. The Composite view is the Top Sheet and all Repeat 1 to n sheets concatenated as per definition in the Frames page.
See Summary: Grid Area page: Grid Envelope: Add on page 379
Click the Print or Export buttons and Export or Print the Report.
|