logo


58.2.14 Query Store: Wizard


The query Wizard gives you the ability to quickly define a series of commands for a single Table. Only those tables that have been found to benefit from this ability to define a complex series of commands are supported within this area. More can be added on request.

Click on the Wizard drop down list and select the Table for which you want to define a series of commands:

 

Query: Wizard

There are two different types of tables within STATIC: Normal and Data Driven tables.

Normal Tables

These are tables that store information within named stable fields. The Wizard will allow you to create a series of Query Command lines and the Set Maths at the end in order to derive a final Set of records that reflect the criteria set within the Query:

 

Query: Wizard: Normal Query: ICURecord

Note: Each area of the Wizard is associated with a checkbox, unless this is selected, the area is not included within the generated Query. Where possible the relevant related drop down options are available. If the field is populated from a Table, then the normal Type Ahead feature exists. Date Time fields are converted to a DTStamp format that is used instead of the individual Date and Time fields.

When the above Wizard is accepted the following will result:

 

Query: Wizard: Normal Query: ICURecord Query

This series of query commands can of course now be further edited to suit.

Another example this time from the HospitalRecord Table:

 

Query: Wizard: Normal Query: HospitalRecord

When the above Wizard is accepted the following will result:

 

Query: Wizard: Normal Query: HospitalRecord Query

Data Driven Tables

Data Driven tables contain records that are composed of multipurpose fields. The data that these fields contain is determined by a definition record that documents the purpose of each field. The power of this arrangement is that instead of a Table that may contain hundreds of fields we now have a Table composed of just a few fields because each field is used for many different purposes. The trade off is that instead of a single record that contains all the different fields we now have many records that contain a few fields to store the same information. The biggest advantage is that instead of adding even more fields to table we would now only add a new definition record and continue to use the already existing fields for storage.

We will use Procedures to illustrate the concept.

Previously in STATIC we used a single table to store all the associated fields required to define all the procedure events possible during ICU. This caused many problems. The number of fields was over 500 - very difficult to find what was required when defining a query. Every time we needed to add another procedure, we had to add more fields to this already bloated table. Worse we could see that eventually we would exceed the maximum number of fields possible for a single table. This became reality when we added the Paediatric requirements.

To convert STATIC to using the Data driven arrangement for Procedures, we defined a Table called DD_Proc_Define that contains definitions for all the different Procedures that are in use. More can be added at any time. During an admission to ICU, each Procedure Event will create a new DD_Proc_Event record. The fields within this record are populated with the information required for that particular Procedure. For instance, a record may contain data pertaining to Respiratory Support another record may contain data for Tracheostomy. A field named Data1 may contain the Respiratory Route and the Tracheostomy Type respectively.

Creating a Query could become a bit of a challenge using this arrangement because not only would you need to remember the different Procedures by name but also the use of each field and the type of entries for a particular field. We have taken the guesswork out of all of this by providing a Wizard that configures itself to the particular Procedure you are interested in. Selecting the Name of the Procedure automatically shows or hides the fields in use and renames them to what you would expect. In addition if there are standard drop down menus associated with a field these become available.

Here is an example. This is what the Wizard will look like on first entry:

 

Query: Wizard: Normal Query: Procedures

Note that all the fields for the DD_Proc_Event Table are available here.You may want to enter data directly here if you do not need to look at particular Procedures. For instance, this may be so if you need all Procedures performed between two dates without regard to the nature of the Procedure. Selecting a particular Procedure from the drop down menu circled in red will present you with all the Procedures available within your database:

 

Query: Wizard: Normal Query: Procedures

We will select the Respiratory Support Procedure:

 

Query: Wizard: Normal Query: Procedures: Respiratory Support

Note that the Data 1 and Data 2 fields have changed to Route and Type and are now linked to their respective drop down lists. Also since this Procedure is an Interval type procedure, the Date Time fields allow for a From/To entry and the Calculated Interval allows for the different types of calculated Intervals maintained within STATIC. When the above specification is accepted, the following Query will result:

 

Query: Wizard: Normal Query: Procedures: Respiratory Support query

Next we will select the Epidural Catheter Procedure:

 

Query: Wizard: Normal Query: Procedures: Epidural Catheter

Note that the Data 1 has changed to Type and is now linked to its drop down list. This Procedure is a defined as a Discrete type procedure, thus only a Date time area of when this Procedure was performed is available. However some Hospitals would want to record the date and time of catheterization and the removal for quality control and infection control purposes. With our new arrangement, all you would need to do is redefine this procedure in DD_Proc_Define as being of type Interval and the appropriate fields would be available to you. When the above specification is accepted, the following Query will result:

 

Query: Wizard: Normal Query: Procedures: Epidural Catheter: Query

The above list of Query commands can be further edited to suit your requirements.



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