# visualizing AQL result

**URL:** https://discourse.openehr.org/t/visualizing-aql-result/15162
**Category:** Technical (archive)
**Created:** [1 March 2012 22:31 UTC](https://discourse.openehr.org/t/visualizing-aql-result/15162 "2012-03-01T22:31:09Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Leykun\_Melkamu](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@Leykun\_Melkamu](https://discourse.openehr.org/u/Leykun_Melkamu)
#### Post date: [1 March 2012 22:31 UTC](https://discourse.openehr.org/t/visualizing-aql-result/15162/1 "2012-03-01T22:31:09Z")

</div>

Hello!

I am a student and working my thesis on openEHR application can I get help on how to visualize the result of my AQL queries. How can I use the operational template and the c # code generated from oceans template designer? Thanks in advance for your help.

Best regards,

Leykun

---

<div class="post-metadata">

### Author: ![Seref](https://discourse.openehr.org/user_avatar/discourse.openehr.org/seref/32/13_2.png) [@Seref](https://discourse.openehr.org/u/Seref)
#### Post date: [2 March 2012 11:06 UTC](https://discourse.openehr.org/t/visualizing-aql-result/15162/2 "2012-03-02T11:06:17Z")

</div>

Hi Leykun.

The C# code generated from the ocean template designer is a TDO, a template data object. The source code of that class has references Ocean’s RM implementation. If you want to use that TDO in C#, you need to use Ocean’s RM layer. That is not the layer that exists in [openEHR.NET](http://openEHR.NET) in codeplex.

What do you mean by visualizing the AQL query results exactly. Could you please describe your requirements in more detail ?

Kind regards  
Seref

---

<div class="post-metadata">

### Author: ![Leykun\_Melkamu](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@Leykun\_Melkamu](https://discourse.openehr.org/u/Leykun_Melkamu)
#### Post date: [2 March 2012 11:45 UTC](https://discourse.openehr.org/t/visualizing-aql-result/15162/3 "2012-03-02T11:45:47Z")

</div>

Dear Seref,

Thanks for your reply. What I wanted to ask is that, I am required to enable end users of the system to view and navigate the data that I put in the Ocean test server using a GUI. To generate the GUI do you think using the operational template or the template data object can help. Thanks again for your helpful reply.

Kind regards,  
Leykun

---

<div class="post-metadata">

### Author: ![ian.mcnicoll](https://discourse.openehr.org/user_avatar/discourse.openehr.org/ian.mcnicoll/32/4430_2.png) [@ian.mcnicoll](https://discourse.openehr.org/u/ian.mcnicoll)
#### Post date: [2 March 2012 11:53 UTC](https://discourse.openehr.org/t/visualizing-aql-result/15162/4 "2012-03-02T11:53:58Z")

</div>

Hi Leykun,

Can you give an example of the kind of data you are expecting back? Or just post the AQL? This would help us understand your requirements.

Ian

---

<div class="post-metadata">

### Author: ![Leykun\_Melkamu](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@Leykun\_Melkamu](https://discourse.openehr.org/u/Leykun_Melkamu)
#### Post date: [2 March 2012 13:33 UTC](https://discourse.openehr.org/t/visualizing-aql-result/15162/5 "2012-03-02T13:33:43Z")

</div>

Dear Ian,

Now I don’t exactly know how my AQL look like but I am expecting to have archetypes or elements as a return.

Best regards,  
Leykun

---

<div class="post-metadata">

### Author: ![ian.mcnicoll](https://discourse.openehr.org/user_avatar/discourse.openehr.org/ian.mcnicoll/32/4430_2.png) [@ian.mcnicoll](https://discourse.openehr.org/u/ian.mcnicoll)
#### Post date: [2 March 2012 13:58 UTC](https://discourse.openehr.org/t/visualizing-aql-result/15162/6 "2012-03-02T13:58:19Z")

</div>

In that case, what you will get back from the OceanEHR server is a ResultSet - essentially a serialised set of objects, which can range from a full archetype to just a single element depending on how you define the query.

See here - [http://www.openehr.org/wiki/display/spec/Ocean+Informatics+EHR+Service+Interface](http://www.openehr.org/wiki/display/spec/Ocean+Informatics+EHR+Service+Interface)

It would still help to see a concrete example of exactly what you are trying to do.

Ian

---

<div class="post-metadata">

### Author: ![Leykun\_Melkamu](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@Leykun\_Melkamu](https://discourse.openehr.org/u/Leykun_Melkamu)
#### Post date: [2 March 2012 17:39 UTC](https://discourse.openehr.org/t/visualizing-aql-result/15162/7 "2012-03-02T17:39:12Z")

</div>

Dear Ian,

Thanks I am looking at the examples.

Kind regards,  
Leykun

---

<div class="post-metadata">

### Author: ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)
#### Post date: [18 March 2012 22:30 UTC](https://discourse.openehr.org/t/visualizing-aql-result/15162/8 "2012-03-18T22:30:59Z")

</div>

Leykun

The result of the query might be a table or some objects (as XML). The display of these needs to use a script – which I believe is available in the public domain. I will copy to Heath to ask about this.

Cheers, Sam
