# Example messages

**URL:** https://discourse.openehr.org/t/example-messages/14752
**Category:** Technical (archive)
**Created:** [25 April 2008 10:20 UTC](https://discourse.openehr.org/t/example-messages/14752 "2008-04-25T10:20:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Adam\_Flinton](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@Adam\_Flinton](https://discourse.openehr.org/u/Adam_Flinton)
#### Post date: [25 April 2008 10:20 UTC](https://discourse.openehr.org/t/example-messages/14752/1 "2008-04-25T10:20:20Z")

</div>

Dear All,

Is there an easy way to create or does anyone have any messages in XML?

i.e. if one has a template or archetype is there any way to create an  
example of the message which would be sent using that archetype/template?

Our message checking s/w in our Integration Center uses XPath, XSLT etc  
to run rules against incoming HL7 messages & I'd like to get an initial  
feeling wrt how/if this system could be used wrt OpenEHR messages.

Forget about any external layers of the onion as they're already dealt  
with (i.e. http header info\> good xml \> good soap \> good ebxml \> good  
HL7) but then.... \> ??? Open EHR.

Right now if someone has a simple archetype or template containing a  
simple archetype (in XML) & an example message.....that would be of help  
as I simply need to look at the 2 next to each other to work out what  
the conformance checking people would need to look for/ how difficult it  
would be.

TIA

Adam

---

<div class="post-metadata">

### Author: ![erik.sundvall](https://discourse.openehr.org/user_avatar/discourse.openehr.org/erik.sundvall/32/1961_2.png) [@erik.sundvall](https://discourse.openehr.org/u/erik.sundvall)
#### Post date: [25 April 2008 11:02 UTC](https://discourse.openehr.org/t/example-messages/14752/2 "2008-04-25T11:02:57Z")

</div>

Hi!

> Is there an easy way to create or does anyone have any messages in XML?

Not sure what the difference between EHR-data and messages would be  
for openEHR if you (as it sounds) already have an envelope specified  
to put it in. Please specify if you want something else than pure EHR  
content.

When we need testdata in XML-form for student projects we usually  
(with permission) "steal" some data in XML form from Oceans EHRView  
(via web interface, [http://demo.oceanehr.com/EhrView](http://demo.oceanehr.com/EhrView)) or EHRBank (via  
SOAP, [http://demo.oceanehr.com/EhrBank13/EhrService.asmx](http://demo.oceanehr.com/EhrBank13/EhrService.asmx)). You'd need  
to ask Ocean for permission and a a password to do this.

I think there is a need for more realistic and completely freely  
available openEHR testdata of various kinds from many sources (perhaps  
as simple XML files or zipped XML file collections attached to openEHR  
wiki-pages?). We could for example probably generate a fake diabetes  
patient record within a week or two if somebody would like to give us  
access to an environment for archetype based data entry we can access  
via the web, we can send the needed templates from Oceans Template  
Designer tool or the list of archetypes we need to use for data entry.  
Any advice regarding possible systems available to enter test data?  
Does the NHS XML/XForms tools contain everything needed to do this?  
How is the Python implementation going? Other alternatives available  
now?

Best regards,  
Erik Sundvall  
erisu@imt.liu.se [http://www.imt.liu.se/~erisu/](http://www.imt.liu.se/~erisu/) Tel: +46-13-227579

P.s. To help students play around with EQL through the web service I  
did a quick Flash/Flex hack available at  
[http://www.imt.liu.se/~erisu/2008/ehrbank/](http://www.imt.liu.se/~erisu/2008/ehrbank/) but it can't be run from  
there due to security sandbox regulations of flash/flex unless the  
application or a crossdomain.xml file is uploaded to the same server  
ad the SOAP service.

---

<div class="post-metadata">

### Author: ![Adam\_Flinton](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@Adam\_Flinton](https://discourse.openehr.org/u/Adam_Flinton)
#### Post date: [25 April 2008 15:06 UTC](https://discourse.openehr.org/t/example-messages/14752/3 "2008-04-25T15:06:40Z")

</div>

Erik Sundvall wrote:

> Hi!
> 
> > Is there an easy way to create or does anyone have any messages in XML?  
> > &nbsp;&nbsp;&nbsp;&nbsp;  
> > Not sure what the difference between EHR-data and messages would be  
> > for openEHR if you (as it sounds) already have an envelope specified  
> > to put it in. Please specify if you want something else than pure EHR  
> > content.

Looking at the examples from the sites below it is more to do with if  
datatypes/lists of values are defined etc.

e.g. I found an OWL statement/file

[http://trajano.us.es/~isabel/EHR/Data\_Types\_RM.owl](http://trajano.us.es/~isabel/EHR/Data_Types_RM.owl)

Which does some of what we want but we'd be using Xpath/XSLT.

e.g.

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<language\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<terminology\_id /\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<code\_string\>string\</code\_string\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</language\>

where code string is actually defined in the archetype as:

\<code\_string\>en\</code\_string\>

Is pretty easy.

whereas :

\<rm\_type\_name\>DV\_CODED\_TEXT\</rm\_type\_name\>

less so.

e.g. :

"A text item whose value must be the rubric from a controlled  
terminology, the key (i.e. the ‘code’) of which is the defining\_code  
attribute. In other words: a DV\_CODED\_TEXT is a combination of a  
CODE\_PHRASE (effectively a code) and the rubric of that term, from a  
terminology service, in the language in which the data was authored."

....in XPATH/XSLT....

It's a QA / "test the implementation" thing.

For instance is there/ would it be possible for me to write an XSLT  
which could generate a test file in our required format (or even as a  
complete XSLT file which simply returns nothing if OK or structure  
containing the errors & where they occurred if any errors found).

> When we need testdata in XML-form for student projects we usually  
> (with permission) "steal" some data in XML form from Oceans EHRView  
> (via web interface, [http://demo.oceanehr.com/EhrView](http://demo.oceanehr.com/EhrView)) or EHRBank (via  
> SOAP, [http://demo.oceanehr.com/EhrBank13/EhrService.asmx](http://demo.oceanehr.com/EhrBank13/EhrService.asmx)). You'd need  
> to ask Ocean for permission and a a password to do this.

The SOAP one is exactly what I was looking for (with the exception of  
datatypes).

> I think there is a need for more realistic and completely freely  
> available openEHR testdata of various kinds from many sources (perhaps  
> as simple XML files or zipped XML file collections attached to openEHR  
> wiki-pages?). We could for example probably generate a fake diabetes  
> patient record within a week or two if somebody would like to give us  
> access to an environment for archetype based data entry we can access  
> via the web, we can send the needed templates from Oceans Template  
> Designer tool or the list of archetypes we need to use for data entry.  
> &nbsp;&nbsp;  
> This is more of a heads up for me as at present we are in any early  
> adopter/trial stage with a trail site etc. If though these messages  
> start being transmitted over the central system then they will need to  
> be QA'es etc & then at that stage I would like to "be prepared" \<G\>.

> Any advice regarding possible systems available to enter test data?  
> Does the NHS XML/XForms tools contain everything needed to do this?  
> How is the Python implementation going? Other alternatives available  
> now?

The NHS XML tools are just getting started wrt OpenEHR stuff. Other than  
publishing, this is the next thing (i.e. QA'ing the  
implementations/messages on the wire).

Sort the QA first & then look at std'ized GUI's

Adam

---

<div class="post-metadata">

### Author: ![Hugh\_Leslie1](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/h/2acd7d/32.png) [@Hugh\_Leslie1](https://discourse.openehr.org/u/Hugh_Leslie1)
#### Post date: [26 April 2008 00:37 UTC](https://discourse.openehr.org/t/example-messages/14752/4 "2008-04-26T00:37:38Z")

</div>

Hi Erik

Not sure if its what you need, but if you provided the Templates, then we can host the data entry screens based on those templates in EhrView and you can create your Diabetic record. I also have some sample compositions that we should post somewhere on the openEHR site so that people can use them for testing etc.

regards Hugh

Erik Sundvall wrote:

---

<div class="post-metadata">

### Author: ![Heath\_Frankel3](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/h/e19b73/32.png) [@Heath\_Frankel3](https://discourse.openehr.org/u/Heath_Frankel3)
#### Post date: [28 April 2008 01:18 UTC](https://discourse.openehr.org/t/example-messages/14752/5 "2008-04-28T01:18:09Z")

</div>

Hi Erik and Adam,  
Please note that the version of EhrView that you quoted is using data stored  
using a pre-release 1.0.1 schema. I will take this site down immediately so  
that it cannot be used by mistake again.

The best URL to use is [http://demo.oceanehr.com/EhrView14](http://demo.oceanehr.com/EhrView14)

I would certainly appreciate anyone using either Ocean's EhrView or the  
EhrBank EHR Repository Service for more than a quick look to please contact  
me. These are hosted on multi-purpose development, test and demonstration  
servers which often get new versions of software and database upgrades and  
knowing who this might affect would be useful.

Regards

Heath

Heath Frankel  
Product Development Manager  
Ocean Informatics

> From: openehr-technical-bounces@openehr.org [mailto:openehr-technical-  
> bounces@openehr.org] On Behalf Of Erik Sundvall  
> Sent: Friday, 25 April 2008 8:33 PM  
> To: adam.flinton@nhs.net; For openEHR technical discussions  
> Subject: Re: Example messages
> 
> Hi!
> 
> \> Is there an easy way to create or does anyone have any messages in XML?
> 
> Not sure what the difference between EHR-data and messages would be  
> for openEHR if you (as it sounds) already have an envelope specified  
> to put it in. Please specify if you want something else than pure EHR  
> content.
> 
> When we need testdata in XML-form for student projects we usually  
> (with permission) "steal" some data in XML form from Oceans EHRView  
> (via web interface, [http://demo.oceanehr.com/EhrView](http://demo.oceanehr.com/EhrView)) or EHRBank (via  
> SOAP, [http://demo.oceanehr.com/EhrBank13/EhrService.asmx](http://demo.oceanehr.com/EhrBank13/EhrService.asmx)). You'd need  
> to ask Ocean for permission and a a password to do this.
> 
> I think there is a need for more realistic and completely freely  
> available openEHR testdata of various kinds from many sources (perhaps  
> as simple XML files or zipped XML file collections attached to openEHR  
> wiki-pages?). We could for example probably generate a fake diabetes  
> patient record within a week or two if somebody would like to give us  
> access to an environment for archetype based data entry we can access  
> via the web, we can send the needed templates from Oceans Template  
> Designer tool or the list of archetypes we need to use for data entry.  
> Any advice regarding possible systems available to enter test data?  
> Does the NHS XML/XForms tools contain everything needed to do this?  
> How is the Python implementation going? Other alternatives available  
> now?
> 
> Best regards,  
> Erik Sundvall  
> erisu@imt.liu.se [http://www.imt.liu.se/~erisu/](http://www.imt.liu.se/~erisu/) Tel: +46-13-227579
> 
> P.s. To help students play around with EQL through the web service I  
> did a quick Flash/Flex hack available at  
> [http://www.imt.liu.se/~erisu/2008/ehrbank/](http://www.imt.liu.se/~erisu/2008/ehrbank/) but it can't be run from  
> there due to security sandbox regulations of flash/flex unless the  
> application or a crossdomain.xml file is uploaded to the same server  
> ad the SOAP service.
> 
> \> Dear All,  
> \>  
> \> Is there an easy way to create or does anyone have any messages in XML?  
> \>  
> \> i.e. if one has a template or archetype is there any way to create an  
> \> example of the message which would be sent using that

archetype/template?

> \>  
> \> Our message checking s/w in our Integration Center uses XPath, XSLT etc  
> \> to run rules against incoming HL7 messages & I'd like to get an initial  
> \> feeling wrt how/if this system could be used wrt OpenEHR messages.  
> \>  
> \> Forget about any external layers of the onion as they're already dealt  
> \> with (i.e. http header info\> good xml \> good soap \> good ebxml \> good  
> \> HL7) but then.... \> ??? Open EHR.  
> \>  
> \>  
> \> Right now if someone has a simple archetype or template containing a  
> \> simple archetype (in XML) & an example message.....that would be of

help

> \> as I simply need to look at the 2 next to each other to work out what  
> \> the conformance checking people would need to look for/ how difficult

it
