An encounter collection (or set) may be dragged from the Previous Query view. The namespace for the schema that defines the Encounter Collection XML content is http://www.i2b2.org/xsd/cell/crc/psm/1.1/
The plugin_drag_drop XML message for an encounter collection is as follows:
<ns5:plugin_drag_drop
xmlns:ns5="http://www.i2b2.org/xsd/hive/plugin/"
xmlns:ns2="http://www.i2b2.org/xsd/hive/msg/1.1/"
xmlns:ns3="http://www.i2b2.org/xsd/cell/work/1.1/"
xmlns:ns4="http://www.i2b2.org/xsd/cell/pm/1.1/"
xmlns:tns="http://ws.workplace.i2b2.harvard.edu">
<ns4:query_result_instance
xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/1.1/">
<result_instance_id>322</result_instance_id>
<query_instance_id>322</query_instance_id>
<description>Encounter Set - 295 encounters</description>
<query_result_type>
<result_type_id>2</result_type_id>
<name>PATIENT_ENCOUNTER_SET</name>
<display_type>LIST</display_type>
<visual_attribute_type>LA</visual_attribute_type>
<description>Event list</description>
</query_result_type>
<set_size>295</set_size>
<obfuscate_method />
<start_date>2010-11-29T10:16:09.003-05:00</start_date>
<end_date>2010-11-29T10:16:12.030-05:00</end_date>
<message />
<query_status_type>
<status_type_id>3</status_type_id>
<name>FINISHED</name>
<description>FINISHED</description>
</query_status_type>
</ns4:query_result_instance>
</ns5:plugin_drag_drop>