```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
    <query_name>Psychotherapeut@08:42:57</query_name>
    <query_timing>ANY</query_timing>
    <specificity_scale>0</specificity_scale>
    <panel>
        <panel_number>1</panel_number>
        <panel_timing>ANY</panel_timing>
        <panel_accuracy_scale>100</panel_accuracy_scale>
        <invert>0</invert>
        <total_item_occurrences>1</total_item_occurrences>
        <item>
            <hlevel>2</hlevel>
            <item_name>Psychotherapeutic agents</item_name>
            <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME203) psychotherapeutic agents\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>medications \ psychotherapeutic agents</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
    </panel>
</ns4:query_definition>

```

I want to find all patients who have ever been prescribed psychotherapeutic agents (medications used for psychological treatment) in their medical history, regardless of when the medication was prescribed. The specificity scale is set to 0, meaning the query is not specific to any particular time frame, and the accuracy scale is set to 100, indicating a high level of accuracy. This query is part of a panel with a panel number of 1, and the panel timing is also set to ANY. The invert option is set to 0, indicating that the query is not inverted, and there is only one item in this panel. The hierarchical level is set to 2, and the icon is set to FA. The class is set to ENC, and the item is not a synonym.