web stats
Changing HL7 version 2.3 to 2.5 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 01-05-2007, 12:10 PM
Bobbit Bobbit is offline
Mirth Newb
 
Join Date: Jan 2007
Posts: 9
Bobbit
Default Changing HL7 version 2.3 to 2.5

I need to convert HL7 version 2.3 to 2.5. I was trying to do this in the Pre Processing Script but it's not working or maybe I don't know how to make it work. I already have one script in my pre processing block which is;

message = message.replace("|ORU|", "|ORU^R01|");
return message;

How can I add another pre process script in converting MSH 12 2.3 to 2.5?



Thanks!
Reply With Quote
  #2  
Old 01-05-2007, 12:19 PM
albertosaez albertosaez is offline
 
Join Date: Sep 2006
Location: Valladolid, Spain
Posts: 842
albertosaez is an unknown quantity at this point
Default Re: Changing HL7 version 2.3 to 2.5

Try:
Code:
message=message.replace("|ORU|", "|ORU^R01|");
message=message.replace(/\|2\.3/i,'|2.5|');
return message;
Reply With Quote
  #3  
Old 01-05-2007, 12:25 PM
Bobbit Bobbit is offline
Mirth Newb
 
Join Date: Jan 2007
Posts: 9
Bobbit
Default Re: Changing HL7 version 2.3 to 2.5

Sir,

Oh, it changed. I'm having a status of REJECTED.

Thanks!
Reply With Quote
  #4  
Old 01-05-2007, 12:29 PM
chrisl chrisl is offline
Mirth Employee
 
Join Date: Aug 2006
Posts: 967
chrisl is an unknown quantity at this point
Default Re: Changing HL7 version 2.3 to 2.5

Code:
message=message.replace("|ORU|", "|ORU^R01|");
message=message.replace(/\|2\.3\|/i,'|2.5|');
return message;
Try that - is REJECTED expected?
__________________
Chris Lang
Reply With Quote
  #5  
Old 01-05-2007, 12:35 PM
Bobbit Bobbit is offline
Mirth Newb
 
Join Date: Jan 2007
Posts: 9
Bobbit
Default Re: Changing HL7 version 2.3 to 2.5

Chris,

the code you gave did not convert 2.3 to 2.5. The REJECTED status awhile ago was due to the previous code given. When REJECTED, it is not displaying the Encoded Message.

Thanks!
Reply With Quote
  #6  
Old 01-05-2007, 01:18 PM
chrisl chrisl is offline
Mirth Employee
 
Join Date: Aug 2006
Posts: 967
chrisl is an unknown quantity at this point
Default Re: Changing HL7 version 2.3 to 2.5

Did the original code (Alberto's) work ok for you?
__________________
Chris Lang
Reply With Quote
  #7  
Old 01-05-2007, 01:31 PM
Bobbit Bobbit is offline
Mirth Newb
 
Join Date: Jan 2007
Posts: 9
Bobbit
Default Re: Changing HL7 version 2.3 to 2.5

No, sir. It resulted in a REJECTED status.


Thanks
Reply With Quote
  #8  
Old 01-05-2007, 01:51 PM
chrisl chrisl is offline
Mirth Employee
 
Join Date: Aug 2006
Posts: 967
chrisl is an unknown quantity at this point
Default Re: Changing HL7 version 2.3 to 2.5

What does your filter look like? Is it checking a message type/version?
__________________
Chris Lang
Reply With Quote
  #9  
Old 01-05-2007, 03:46 PM
albertosaez albertosaez is offline
 
Join Date: Sep 2006
Location: Valladolid, Spain
Posts: 842
albertosaez is an unknown quantity at this point
Default Re: Changing HL7 version 2.3 to 2.5

Please, could you post your Channel definition, and an message input example ?
Reply With Quote
  #10  
Old 01-05-2007, 06:52 PM
Bobbit Bobbit is offline
Mirth Newb
 
Join Date: Jan 2007
Posts: 9
Bobbit
Default Re: Changing HL7 version 2.3 to 2.5

Here's my sample message being inputed;

MSH|^~\&|1100|HD|ORC|HD000158|200605190839||ORU^R0 1|0964|P|2.3
PID|1|461288875|10804311310|461288875|SURNAME^GIVE NNAME||19250623|M||||||||||42101465^^^03^^F|551231 233
ORC|RE|604170348^LAB|10804311310^LAB||||||20060418 0000|||^NORTHWEST^T
OBR|1|604170348^LAB|10804311310^LAB|188243^Fungus Culture With Stain^L|||200604171432|||||||200604180000||||60417 0348||604170348||200605190839||BN|F
OBX|1|ST|188244^Fungus Stain^L||Final report|||||N|F|||200604221513|BN
ORC|RE|604170348^LAB|10804311310^LAB||||||20060418 0000|||^NORTHWEST^T
OBR|2|604170348^LAB|10804311310^LAB|080564^Result^ L|||200604171432||||G|||200604180000||||604170348| |604170348||200605190839||BN|F|080564|||188243
OBX|1|TX|080565^Result 1^L||Comment|||||N|F|||200604221513|BN
NTE|1|L|KOH/Calcofluor preparation: no fungus observed.
ORC|RE|604170348^LAB|10804311310^LAB||||||20060418 0000|||^NORTHWEST^T
OBR|3|604170348^LAB|10804311310^LAB|188243^Fungus Culture With Stain^L|||200604171432|||||||200604180000||||60417 0348||604170348||200605190839||BN|F
OBX|1|ST|008482^Fungus (Mycology) Culture^L||Final report|||||N|F|||200605190721|BN
ORC|RE|604170348^LAB|10804311310^LAB||||||20060418 0000|||^NORTHWEST^T
OBR|4|604170348^LAB|10804311310^LAB|080092^Result^ L|||200604171432||||G|||200604180000||||604170348| |604170348||200605190839||BN|F|080092|||188243
OBX|1|TX|080094^Result 1^L||Comment|||||N|F|||200605190721|BN
NTE|1|L|NO YEAST OR MOLD ISOLATED AFTER 4 WEEKS.
ORC|RE|604170348^LAB|10804311310^LAB||||||20060418 0000|||^NORTHWEST^T
OBR|5|604170348^LAB|10804311310^LAB|182402^AFB Culture and Smear,Broth^L|||200604171432|||||||200604180000||| |604170348||604170348||200605190839||BN|X
OBX|1|TX|182402^AFB Culture and Smear,Broth^L||Test Not Performed.|||||N|X|||200605111525|BN
NTE|1|L|Test Not Performed. Specimen deterioration or loss has
NTE|2|L|occurred such that testing is no longer possible.
ORC|RE|604170348^LAB|10804311310^LAB||||||20060418 0000|||^NORTHWEST^T
OBR|6|604170348^LAB|10804311310^LAB|977032^Referen ce Micro Problem Test^L|||200604171432|||||||200604180000||||604170 348||604170348||200605190839||BN|X
OBX|1|ST|977032^Reference Micro Problem Test^L||Comment:|||||N|X|||200605111525|BN
NTE|1|L|Test Not Performed. Specimen deterioration or loss has
NTE|2|L|occurred such that testing is no longer possible.
NTE|3|L| TEST: 182402 AFB Culture and Smear,Broth
NTE|4|L| CLIENT CONTACTED 5/11/06 @3:10PM (JACOB N.).
ZPS|1|BN|LabCorp Burlington|1447 York Court^^Burlington^NC^272152230|8882005439||MD^Hanc ock^Frank^^^^MD
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
changing length of OBX segments cgbullock Support 0 01-26-2009 05:48 PM
Changing internal Database boesboes Support 6 11-12-2008 06:16 AM
Changing HL7 Messages dajos7 Support 1 12-14-2007 05:51 AM
version 1.5 channel not working in version 1.6 anna Support 6 09-09-2007 11:36 PM
Changing the RMI (1099) port albertosaez Development 0 10-30-2006 12:13 AM


All times are GMT -8. The time now is 01:50 PM.


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