web stats
message templates and xsd schema - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 05-12-2009, 10:06 AM
hurric hurric is offline
What's HL7?
 
Join Date: May 2009
Posts: 1
hurric is on a distinguished road
Default message templates and xsd schema

hi I'm very new to mirth and have a couple general questions. Thanks in advance.

I want to receive a HL7 v3 message (xml with a known .xsd schema) and extract some info out of it and send it to a different channel.

Can I use the .xsd schema file to aid me extract information out of it? It seems like I can only put in an actual example .xml file in the message template section. Only this way can I access the fields and forward them to a different channel.

cannot get values when putting this in tempalte

<xs:element name="note">
<xs:complexType>
<xs:sequence>
<xs:element name="to" type="xs:string"/>
<xs:element name="from" type="xs:string"/>
<xs:element name="body" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>

I can get the fields when I put this in message template (with or without values between tags)
<note>
<to>Tove</to>
<from>Jani</from>
<body>Don't forget me this weekend!</body>
</note>
Reply With Quote
  #2  
Old 05-18-2018, 04:53 AM
eliancitomix eliancitomix is offline
Mirth Newb
 
Join Date: Apr 2018
Posts: 8
eliancitomix is on a distinguished road
Default

Same problem, any news???
Reply With Quote
  #3  
Old 05-21-2018, 05:51 AM
siddharth siddharth is offline
Mirth Guru
 
Join Date: Feb 2013
Posts: 824
siddharth is on a distinguished road
Default

I don't think you could use .xsd files in template. From what I know it won't make sense as it is a definition file that talks about the said xml.

What's wrong with using the XML file?
__________________
HL7v2.7 Certified Control Specialist!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 04:24 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Mirth Corporation