ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Issue while accessing HL7 fields

Post new topic  Reply to topic
 Issue while accessing HL7 fields « View previous topic :: View next topic » 
Author Message
CrashJohn
PostPosted: Wed Dec 05, 2007 7:24 am    Post subject: Issue while accessing HL7 fields Reply with quote

Novice

Joined: 04 Jun 2006
Posts: 21

Hi,

I am using the sample HL7 message set provided in IA9N to model an HL7 message using MRM in TDS format. My requirement is only concerned with the MSH segment to inspect a certain field.

When I use a sample Input message, I can see the logical tree definition in the Debugger as given below:

InputRoot
MRM
MSH
MSH.1.FieldSeparator = |
MSH.2.ServiceString=^~\\&
…
…
…
MSH.9.MessageType
MSG.1=xxx
MSG.2=xxx

My problem is that I am not able to store the values of MessageType values in variables.

Could any of you let me know if I am missing out something? I have used the following code to assign the values but both doesn’t seem to work.

SET sMessageType1 = InputRoot.MRM.MSH."MSH.9.MessageType"."MSG.1";
SET sMessageType1 = InputRoot.MRM.MSH[0]."MSH.9.MessageType"."MSG.1";
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Dec 05, 2007 7:42 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
Could any of you let me know if I am missing out something?
Yes. You are missing out details and namepaces
- 'doesn’t seem to work' is not a great problem description. Always describe the symptoms ( I suspect you are getting NULL instead of the field value ).
- Your ESQL path does not specify namespaces

Your first mistake was to try and do this yourself. You should reference the HL7 message set project from your message flow project - then you will get auto-completion in the ESQL editor, making this mistake much less likely.
Back to top
View user's profile Send private message
CrashJohn
PostPosted: Wed Dec 05, 2007 2:27 pm    Post subject: Reply with quote

Novice

Joined: 04 Jun 2006
Posts: 21

Thanks Kimbert for your response.

I am sorry for not giving an eloborate desciption but as you mentioned the problem was because I had not specified the namespaces.

And it also taught me the benefits of using a trace node(${Root}) than using a debugger all the time
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Issue while accessing HL7 fields
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.