How to create a new query?

From MedITEX - Wiki

(Difference between revisions)
Jump to: navigation, search
Line 141: Line 141:
 
<p>You can also decide if the list of results should automatically grouped by certain fields. To do so, simply tick the box "and the result should be grouped by this field" when adding a condition. The order of your definition is decisive for the graphical representation of the result table.</p>
 
<p>You can also decide if the list of results should automatically grouped by certain fields. To do so, simply tick the box "and the result should be grouped by this field" when adding a condition. The order of your definition is decisive for the graphical representation of the result table.</p>
 
<p>&nbsp;</p>
 
<p>&nbsp;</p>
<p>&nbsp;</p>
+
<p>Read&nbsp; further <a href="/index.php?title=How_to_execute_a_query%3F">"How to execute a query</a>".</p>
<p>&nbsp;</p>
+
 
<p>&nbsp;</p>
 
<p>&nbsp;</p>
 
<table style="float: right;" border="0">
 
<table style="float: right;" border="0">

Revision as of 12:24, 17 December 2012

Assume you need to create a discharge letter after a follicle aspiration. You may need to document for a given couple the date of follicle aspiration, how many MII oocytes were collected, how many oocytes were inseminated or frozen and so on.

Selecting the needed fields

To select the fields in order to build a query you need to browse the content of the subgroups.

If you double-click on a group  you will see all available sub-groups . Double-click on a sub-group and you will see all fields that are available in this group.

<tbody> </tbody>

The symbols before the field name are defined by the corresponding type of data.

Different symbols are:

<img src="/images/F1.png" alt="" width="51" height="33" /> Number fields. <img src="/images/F6.png" alt="" width="43" height="36" /> Date fields.
<img src="/images/F2.png" alt="" width="48" height="41" /> Text fields. <img src="/images/F7.png" alt="" width="44" height="35" /> Telephone fields.
<img src="/images/F3.png" alt="" width="46" height="40" />

Note fields (text fields of different sizes).

<img src="/images/F8.png" alt="" width="42" height="34" /> QM staff fields.
<img src="/images/F4.png" alt="" width="52" height="40" /> Yes / No fields. <img src="/images/F9.png" alt="" width="44" height="34" /> QM material fields.
<img src="/images/F5.png" alt="" /> Key fields. <img src="/images/F10.png" alt="" /> QM free fields.

 

Alternatively you can search the field you need with a keyword search.

Assume you need to search a field related to the person’s name:

<tbody> </tbody>
<img src="/images/RE1.png" alt="" width="373" height="395" />

Just type the keyword “name” in the Search field and press "Enter". You will provided with a list of  fields that contain that keyword along with their group and sub group. Choose the field you need and click on it.

The group containing the field will open.

Once you have found the sub-group containing the field(s) you need, drag the subgroup from the Group list into the Area for queries.

<tbody> </tbody>
<img src="/images/RE2.png" alt="" />

To select a field (i.e. the “First name” field) for the query, check the empty box. In order to build our Follicle aspiration discharge letter you may need to select other fields of this sub group such as “Surname”. “Partner: surname” and “Partner: name”.

<tbody> </tbody>
<img src="/images/RE3.png" alt="" width="421" height="213" />

Let’s go on building our discharge letter. Since in the subgroup person you won’t find fields related to the therapy you’ll need to link to the subgroup “Persons” the subgroup “Cycle of women” dragging this subgroup from the Group list into the Area for queries as previously described. Now the desired fields from the subgroup “Cycle of women” can be selected as seen above for the other fields. When all the needed fields from the subgroup “Cycle of women” have been selected another sub-group, if necessary, shall be dragged and dropped and so on until the query it is done.

<tbody> </tbody>
<img src="/images/Person11RE.png" alt="" width="439" height="156" /> Hint: Keep in mind that the order of the sub-groups added to a query has an effect on the way the results are displayed ("logical cascade"). In the example (picture) patients which have received cycles would be displayed after the query and not cycles that have been assigned to certain patients.

Attention! If a QM Field is created but it is not previously filled in, it won’t be available in the related Report Editor’s subgroup.

 

Defining fields' conditions

In some cases it could be useful to restrict the values of the selected fields to some condition. For example you may want to select only cycles where the # of collected oocytes is > than 8.

Simply double-click on the desired field name and the following window will open:

<tbody> </tbody>
<img src="/images/RE4.png" alt="" width="390" height="404" />

Press the plus symbol to add a new filter or condition.

 

Now you can add condition and value accordingly

 

In the example, all the cycle with more that 8 oocyte collected will be selected.

 

To add another condition press to plus symbol again and enter your information. If you wish to delete a condition or filter again, select the condition in the list and press the minus symbol

<img src="/images/RE5.png" alt="" width="390" height="551" /> The following conditions can be defined:

Condition:

Is equal

Is not equal

Is greater

Is smaller

Is not empty

Is empty

Is like

Is not like

Example:

Gender: F

ZIP code: 12345

No. of children: 0

BMI: 25

previous PG

Chrom. anomaly

Surname: Miller

Surname: Miller

If the selected field is a QM field, you can also enable or disable certain QM criteria (function, value, note, data, start and end) for the result table.

You can add and combine different conditions for any field. Two or more conditions may be linked logically with "AND" or “OR” when pre-filtering. If you untick the box "and should appear in the results list", your query will be filtered but the field itself will not be displayed in the list. This can help to create clearly arranged lists and statistics. Example: You wish to analyze only the male patients and limit the list to men.

You can also decide if the list of results should automatically grouped by certain fields. To do so, simply tick the box "and the result should be grouped by this field" when adding a condition. The order of your definition is decisive for the graphical representation of the result table.

 

Read  further <a href="/index.php?title=How_to_execute_a_query%3F">"How to execute a query</a>".

 

<tbody> </tbody>
<a href="/index.php?title=MedITEX_IVF_how_to">Back to How to</a> <a href="#top">Back to top</a>