How to create HL7 Template from HL7 xsd scheme

How to create HL7 Template from HL7 xsd scheme

Hi all,

Please help me to create a Saddle template from HL7 xsd schema.

I tried to created ADT_A02 template from ADT_A02.xsd file by Saddle Nightly 20121016 but it has two node with the same name: ADT_A02 (please find information in attached image).



If possible could you describe for me how you create ADT_A01 template ?

Thanks and best regards,
Dzung

Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to create HL7 Template from HL7 xsd scheme

Hi Dzung,

not having the XSD you are referring to at hand, I can only guess that the Rapid Prototyper is not yet perfect. We will have a look at that later on.

But that's no real problem as you can easily change the generated template by moving all child nodes of the second ADT_A02 one level up (drag&drop) and deleting the second ADT_A02 node (press delete-key).

The most convenient method, however, is to use a predefined template from our template library. You will find a template library for every HL7 version in the download section:

/images/agorapro/attachments/68/mini_TemplateLibs.jpg

Download the corresponding zip file, extract it into a folder and import the template you need into your project:

/images/agorapro/attachments/68/mini_ImportTemplate.jpg

I hope that helps,
Ortwin

Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to create HL7 Template from HL7 xsd scheme

Dear Ortwin,

I would like to thank for your reply. Tomorrow I will attach here the .xsd I used to generate the Saddle template. I use the HL7 xsd version 2.6. I hope it can help you if it is really a bug of RapidPrototyper.

Best Regards,
Dzung

Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to create HL7 Template from HL7 xsd scheme

Dear Ortwin,

Please find xsd file I used to generate ADT_A02 Saddle template in attached file.

Best Regards,
Dzung

Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to create HL7 Template from HL7 xsd scheme

Thanks Dzung but I can't find the attachment.

It's probably because we changed the way you add attachments. After you uploaded it, it appears underneath your post and you have to click "insert" to insert it into your post.

regards,
Ortwin

Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to create HL7 Template from HL7 xsd scheme

Dear Ortwin,

Please find xsd file as attachment file.
test.zip

Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to create HL7 Template from HL7 xsd scheme

Hi Dzung,

I just saw, I still owe you an answer regarding this issue:

We checked our xsd analyzer and it works correctly. The reason for the additional level of ADT_A02 is because an xml schema always describes an xml-structure. For an xml-structure the main tag - in this case ADT_A02 is part of the actual message. Thus this is correct as the root node is always the template name and not part of the actual message.

However, in this case HL7 "abuses" the xml-schema for describing a message format, which is not xml but in delimited format and therefore the second instance of ADT_A02 is not needed. This means either manual refinement after the template has been generated or using a template from our HL7 template libraries (as you did already).

regards,
Ortwin

Administrator has disabled public posting. Please login or register in order to proceed.

Board Info

Board Stats
 
Total Topics:
109
Total Polls:
0
Total Posts:
762
Posts today:
3
User Info
 
Total Users:
769
Newest User:
ashishgupta
Members Online:
0
Guests Online:
59

Online: 
There are no members online