How to create a new query?

From MedITEX - Wiki

(Difference between revisions)
Jump to: navigation, search
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<p>To open the <strong>Report editor</strong>, go to <strong>Report -&gt; Report editor </strong>in the menu bar.</p>
+
<p>To open <strong>Report editor</strong>, go to <strong>Reports -&gt; Report editor </strong>in the menu bar.</p>
<table style="margin-left: auto; margin-right: auto;" border="0" width="10" height="24">
+
<table style="margin-left: auto; margin-right: auto;" border="0">
 
<tbody>
 
<tbody>
 
<tr>
 
<tr>
<td><img src="/images/ReportEd.png" alt="" width="519" height="293" /></td>
+
<td colspan="2"><img style="display: block; margin-left: auto; margin-right: auto;" src="/images/ReportEd.png" alt="" /></td>
 +
</tr>
 +
<tr>
 +
<td><img style="display: block; margin-left: auto; margin-right: auto;" src="/images/plus48.png" alt="" width="48" height="48" /></td>
 +
<td><a href="/index.php?title=Queries_of_Report_editor">Read here</a> more about the queries of the report editor.</td>
 
</tr>
 
</tr>
 
</tbody>
 
</tbody>
 
</table>
 
</table>
 
<p>&nbsp;</p>
 
<p>&nbsp;</p>
<p>Report editor will open.</p>
+
<p><strong>Report editor</strong> will open.</p>
<p><a href="/index.php?title=Queries_of_Report_editor">Read here</a> more about the queries of the report editor.</p>
+
 
<table style="margin-left: auto; margin-right: auto;" border="0">
 
<table style="margin-left: auto; margin-right: auto;" border="0">
 
<tbody>
 
<tbody>
Line 131: Line 134:
 
</table>
 
</table>
 
<ul>
 
<ul>
<li>You can <strong>add </strong>and <strong>combine different conditions</strong> for any field. Two or more conditions may be linked logically with<strong> AND</strong> or <strong>OR </strong>when pre-filtering. </li>
+
<li>You can <strong>add </strong>and <strong>combine different conditions</strong> for any field. Two or more conditions may be linked logically with<strong> AND</strong> or <strong>OR </strong>when pre-filtering.</li>
</ul>
+
<ul>
+
 
<li>If you <strong>uncheck </strong>the box <strong>"and should appear in the results list"</strong>, your query will be filtered but the field itself will not be displayed in the list. This can help you to create arranged lists and statistics more clearly. <strong>Example:</strong> you wish to analyze only the male patients and limit the list to men.</li>
 
<li>If you <strong>uncheck </strong>the box <strong>"and should appear in the results list"</strong>, your query will be filtered but the field itself will not be displayed in the list. This can help you to create arranged lists and statistics more clearly. <strong>Example:</strong> you wish to analyze only the male patients and limit the list to men.</li>
</ul>
 
<ul>
 
 
<li>You can also <strong>decide </strong>if the list of results should be <strong>automatically grouped by certain fields</strong>. To do so, simply check the box <strong>"and the result should be grouped by this field"</strong> when adding a condition. The order of your definition is decisive for the <strong>graphical representation</strong> of the resulting table.</li>
 
<li>You can also <strong>decide </strong>if the list of results should be <strong>automatically grouped by certain fields</strong>. To do so, simply check the box <strong>"and the result should be grouped by this field"</strong> when adding a condition. The order of your definition is decisive for the <strong>graphical representation</strong> of the resulting table.</li>
 +
<li>If you select <strong>Query the field value before execution</strong>, you will be asked what value to use before running the query. This window is displayed below and you can change de value by clicking on the corresponding field.</li>
 
</ul>
 
</ul>
 +
<table style="margin-left: auto; margin-right: auto;" border="0">
 +
<tbody>
 +
<tr>
 +
<td><img src="/images/ReportEditorQueryBeforeRunning.png" alt="" width="634" height="230" /></td>
 +
</tr>
 +
</tbody>
 +
</table>
 
<p>&nbsp;</p>
 
<p>&nbsp;</p>
 
<h2><span id="result_box" class="short_text" lang="en"><span class="hps">Next</span> <span class="hps">possible steps</span></span></h2>
 
<h2><span id="result_box" class="short_text" lang="en"><span class="hps">Next</span> <span class="hps">possible steps</span></span></h2>
 +
<p>Buttons with a blue dotted frame have special functionalities. Click on it to have more information.</p>
 
<table border="0">
 
<table border="0">
 
<tbody>
 
<tbody>

Latest revision as of 15:35, 18 July 2013

To open Report editor, go to Reports -> Report editor in the menu bar.

<tbody> </tbody>
<img style="display: block; margin-left: auto; margin-right: auto;" src="/images/ReportEd.png" alt="" />
<img style="display: block; margin-left: auto; margin-right: auto;" src="/images/plus48.png" alt="" width="48" height="48" /> <a href="/index.php?title=Queries_of_Report_editor">Read here</a> more about the queries of the report editor.

 

Report editor will open.

<tbody> </tbody>
REWindowShort.png

Contents

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 a sub-group and you will see all fields that are available in this sub-group.

<tbody> </tbody>
REGroups.png

 

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

For this example, we are going to create a Follicle Aspiration letter.

Assume you need to search a field related to the person 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 be provided with a list of fields that contain that keyword along with their groups and sub-groups. Choose the field you need and click on it.

The group containing that field will open.

Once you have found the sub-group containing the field(s) you need, drag the sub-group 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="" />

 

Let’s go on building our discharge letter.

Since in the sub-group Person, you will not find fields related to the therapy, you will need to link to the sub-group Persons, the subgroup Cycle of women by dragging it from the Group list into the Area for queries as previously described.

Now the desired fields from the sub-group Cycle of women can be selected as seen above for the other fields. When all the needed fields from the sub-group Cycle of women have been selected, another sub-group, if necessary, shall be dragged and dropped. This process is repeated until the query is done.

<tbody> </tbody>
<img style="display: block; margin-left: auto; margin-right: auto;" src="/images/Person11RE.png" alt="" width="439" height="156" />
  • 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 patients which have received cycles would be displayed after the query and not cycles that have been assigned to certain patients.
  • If a QM Field is created but it is not previously filled in, it won’t be available in the related Report Editor sub-group.

 

Defining fields conditions

In some cases it could be useful to restrict values of the selected fields to some conditions.

For example, you may want to select only cycles where the number of collected oocytes is greater 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 "+" button to add a new filter or condition.

Now you can add conditions and values accordingly.

For this example, only cycles with more than 8 oocytes collected will be displayed.

To add another condition press the "+" button again and enter the information. If you wish to delete a condition or filter, select the condition in the list and press the "-" button.

<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 criterias (function, value, note, data, start and end) for the resulting 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 uncheck 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 you to create arranged lists and statistics more clearly. 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 be automatically grouped by certain fields. To do so, simply check 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 resulting table.
  • If you select Query the field value before execution, you will be asked what value to use before running the query. This window is displayed below and you can change de value by clicking on the corresponding field.
<tbody> </tbody>
<img src="/images/ReportEditorQueryBeforeRunning.png" alt="" width="634" height="230" />

 

Next possible steps

Buttons with a blue dotted frame have special functionalities. Click on it to have more information.

<tbody> </tbody>
<a href="/index.php?title=Result_management"><img style="display: block; margin-left: auto; margin-right: auto; border: 2px dotted blue;" src="/images/ExecuteRE.png" alt="" width="89" height="38" /></a>

Execute:

As soon as you have selected all needed fields you can launch the query by clicking the Execute. The <a href="/index.php?title=Result_management">Results</a> window will open.
<img style="display: block; margin-left: auto; margin-right: auto;" src="/images/NewRE.png" alt="" width="88" height="36" />

New:

Clears the content of the selection window. A new selection can be made.

<a href="/index.php?title=How_to_load_a_query%3F"><img style="display: block; margin-left: auto; margin-right: auto; border: 2px dotted blue;" src="/images/OpenRE.png" alt="" width="92" height="37" /></a>

Open:

A previously saved query can be loaded by clicking the <a href="/index.php?title=How_to_load_a_query%3F">Open</a> button.

<a href="/index.php?title=How_to_save_a_query%3F"><img style="display: block; margin-left: auto; margin-right: auto; border: 2px dotted blue;" src="/images/SaveRE.png" alt="" width="89" height="83" /></a>

Save:

A query can be saved for future use by clicking Save. If the query was created from an existing query it can be saved using <a href="/index.php?title=How_to_save_a_query%3F">Save as</a>. This way, the user can assign a different name to this new query.

<img style="display: block; margin-left: auto; margin-right: auto;" src="/images/ResultRE.png" alt="" width="208" height="91" />

Result data records:

Here you can select the number of displayed results.

 

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