How to create a new query?
From MedITEX - Wiki
Line 1: | Line 1: | ||
<p>To open the report editor window go to <strong>Reports -> Report editor</strong>.</p> | <p>To open the report editor window go to <strong>Reports -> Report editor</strong>.</p> | ||
− | <table border="0"> | + | <table style="margin-left: auto; margin-right: auto;" border="0"> |
<tbody> | <tbody> | ||
<tr> | <tr> | ||
Line 10: | Line 10: | ||
<h2>Selecting the needed fields</h2> | <h2>Selecting the needed fields</h2> | ||
<p>To select the fields in order to <strong>build a query</strong> you need to browse the content of the subgroups.</p> | <p>To select the fields in order to <strong>build a query</strong> you need to browse the content of the subgroups.</p> | ||
− | <p>If you <strong>double-click on a group</strong> | + | <p>If you <strong>double-click on a group</strong> you will see <strong>all available sub-groups</strong>.</p> |
− | <table border="0"> | + | <p><strong>Double-click a sub-group</strong> and you will see <strong>all fields that are available</strong> in this sub-group.</p> |
+ | <table style="margin-left: auto; margin-right: auto;" border="0"> | ||
<tbody> | <tbody> | ||
<tr> | <tr> | ||
Line 18: | Line 19: | ||
</tbody> | </tbody> | ||
</table> | </table> | ||
+ | <p> </p> | ||
<p>Alternatively you can <strong>search the field</strong> you need with a keyword search.</p> | <p>Alternatively you can <strong>search the field</strong> you need with a keyword search.</p> | ||
− | <p>Assume you need to search a field related to the person | + | <p>For this example, we are going to create a <strong>Follicle Aspiration</strong> letter.</p> |
− | <table border="0"> | + | <p>Assume you need to search a field related to the person name:</p> |
+ | <table style="margin-left: auto; margin-right: auto;" border="0"> | ||
<tbody> | <tbody> | ||
<tr> | <tr> | ||
Line 27: | Line 30: | ||
</tbody> | </tbody> | ||
</table> | </table> | ||
− | <p>Just type the keyword<strong> “name”</strong> in the Search field and press <strong> | + | <p> </p> |
− | <p>The group containing | + | <p>Just type the keyword<strong> “name”</strong> in the <strong>Search field</strong> and press <strong>Enter</strong>. 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.</p> |
− | <p>Once you have<strong> found the sub-group</strong> containing the field(s) you need, <strong>drag the | + | <p>The group containing that field will open.</p> |
− | <table border="0"> | + | <p>Once you have<strong> found the sub-group</strong> containing the field(s) you need, <strong>drag the sub-group</strong> from the <strong>Group</strong> list into the <strong>Area</strong> for queries.</p> |
+ | <table style="margin-left: auto; margin-right: auto;" border="0"> | ||
<tbody> | <tbody> | ||
<tr> | <tr> | ||
Line 37: | Line 41: | ||
</tbody> | </tbody> | ||
</table> | </table> | ||
− | <p>To <strong>select a field</strong> (i.e. the “First name” field) for the query, <strong>check the empty box</strong>. In order to build our Follicle aspiration discharge letter you may need to <strong>select other fields</strong> of this sub group such as <strong>“Surname”</strong> | + | <p> </p> |
− | <table border="0" width="51" height="24"> | + | <p>To <strong>select a field</strong> (i.e.: the “<strong>First name</strong>” field) for the query, <strong>check the empty box</strong>. In order to build our Follicle aspiration discharge letter you may need to <strong>select other fields</strong> of this sub-group such as: <strong>“Surname”</strong>, <strong>“Partner: surname”</strong> and <strong>“Partner: name”</strong>.</p> |
+ | <table style="margin-left: auto; margin-right: auto;" border="0" width="51" height="24"> | ||
<tbody> | <tbody> | ||
<tr> | <tr> | ||
Line 45: | Line 50: | ||
</tbody> | </tbody> | ||
</table> | </table> | ||
+ | <p> </p> | ||
<p>Let’s go on building our discharge letter.</p> | <p>Let’s go on building our discharge letter.</p> | ||
− | <p>Since in the | + | <p>Since in the sub-group <strong>Person</strong>, you <strong>will not find fields related to the therapy</strong>, you will need to link to the sub-group <strong>Persons</strong>, the subgroup <strong>Cycle of women</strong> by dragging it from the <strong>Group </strong>list into the <strong>Area </strong>for queries as previously described.</p> |
− | <p>Now the desired fields from the | + | <p>Now the desired fields from the sub-group <strong>Cycle of women</strong> can be selected as seen above for the other fields. When all the needed fields from the sub-group <strong>Cycle of women</strong> have been selected, another sub-group, if necessary, shall be <strong>dragged and dropped</strong>. This process is repeated until the query is done.</p> |
− | <table border="0"> | + | <table style="margin-left: auto; margin-right: auto;" border="0"> |
<tbody> | <tbody> | ||
<tr> | <tr> | ||
− | <td><img src="/images/Person11RE.png" alt="" width="439" height="156" /></td> | + | <td><img style="display: block; margin-left: auto; margin-right: auto;" src="/images/Person11RE.png" alt="" width="439" height="156" /></td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
<td> | <td> | ||
<ul> | <ul> | ||
− | <li>Keep in mind that the <strong>order of the sub-groups added</strong> to a query <strong>has an effect</strong> on the way the <strong>results</strong> are displayed ("logical cascade"). In the example | + | <li>Keep in mind that the <strong>order of the sub-groups added</strong> to a query <strong>has an effect</strong> on the way the <strong>results</strong> 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.</li> |
</ul> | </ul> | ||
<ul> | <ul> | ||
− | <li>If a <strong>QM Field</strong> is created but it is not previously filled in, it won’t be available in the related Report Editor | + | <li>If a <strong>QM Field</strong> is created but it is not previously filled in, it won’t be available in the related <strong>Report Editor</strong> sub-group.</li> |
</ul> | </ul> | ||
</td> | </td> | ||
Line 66: | Line 72: | ||
</table> | </table> | ||
<p> </p> | <p> </p> | ||
− | <h2>Defining fields | + | <h2>Defining fields conditions</h2> |
<p>In some cases it could be useful to<strong> restrict the values</strong> of the selected fields to some condition.</p> | <p>In some cases it could be useful to<strong> restrict the values</strong> of the selected fields to some condition.</p> | ||
<p><strong>For example</strong> you may want to select only cycles where the # of collected oocytes is > than 8.</p> | <p><strong>For example</strong> you may want to select only cycles where the # of collected oocytes is > than 8.</p> | ||
<p>Simply <strong>double-click</strong> on the desired field name and the following window will open:</p> | <p>Simply <strong>double-click</strong> on the desired field name and the following window will open:</p> | ||
− | <table border="0"> | + | <table style="margin-left: auto; margin-right: auto;" border="0"> |
<tbody> | <tbody> | ||
<tr> | <tr> | ||
Line 165: | Line 171: | ||
</tbody> | </tbody> | ||
</table> | </table> | ||
− | |||
− | |||
<table style="float: right;" border="0"> | <table style="float: right;" border="0"> | ||
<tbody> | <tbody> |
Revision as of 16:51, 8 January 2013
To open the report editor window go to Reports -> Report editor.
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.
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:
<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.
<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”.
<img src="/images/RE3.png" alt="" width="421" height="213" /> |
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.
<img style="display: block; margin-left: auto; margin-right: auto;" src="/images/Person11RE.png" alt="" width="439" height="156" /> |
|
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:
<img src="/images/RE4.png" alt="" width="390" height="404" /> |
Press the "+" button 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 "+"-button again and enter your information. If you wish to delete a condition or filter again, 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 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.
Next possible steps
<a href="/index.php?title=Result_management"><img style="display: block; margin-left: auto; margin-right: auto;" src="/images/ExecuteRE.png" alt="" width="89" height="38" /></a> |
Execute button: As soon as you have selected all needed fields you can launch the query by clicking the "Execute"- button. The Report editor: <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 contents 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;" src="/images/OpenRE.png" alt="" width="92" height="37" /></a> |
Loading a query: A saved query can be simply by clicking on the <a href="/index.php?title=How_to_load_a_query%3F">"Open"</a>-button. A new window, "Saved queries", will pop up. |
<a href="/index.php?title=How_to_save_a_query%3F"><img style="display: block; margin-left: auto; margin-right: auto;" src="/images/SaveRE.png" alt="" width="89" height="83" /></a> |
Saving a query: A query can be saved for future use by clicking on "Save"-button. If the query was created from an existing query it can be saved choosing <a href="/index.php?title=How_to_save_a_query%3F">“Save as”</a>. In this way the user can assign to the new query a name different from the parent query. |
<img style="display: block; margin-left: auto; margin-right: auto;" src="/images/ResultRE.png" alt="" width="208" height="91" /> |
Result data records: A selection of shown Results can be chosen here.
|
<a href="/index.php?title=MedITEX_IVF_how_to">Back to How to</a> | <a href="#top">Back to top</a> |