web stats
General HL7 query concerning escape sequences - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 09-18-2015, 07:20 AM
seaston seaston is offline
OBX.3 Kenobi
 
Join Date: Feb 2010
Location: London, UK
Posts: 168
seaston is on a distinguished road
Default General HL7 query concerning escape sequences

Dear Forum members,

I am working on an interface which involves receiving encapsulated data format base64 encoded PDFs.

This are coming from a system whose supplier tells me that they will be sending the following escape sequences for carriage return (\r) and line feed (\n) in the encoded data: \X13\\X10\

Before engaging in an email exchange with them, I want to check the following:

I am pretty sure that this notation should contain the Hex values and not decimal, so should be \X0D\ and \X0A\.

Please would you respond with your thoughts?

Simon
Reply With Quote
  #2  
Old 09-18-2015, 01:26 PM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,124
narupley is on a distinguished road
Default

Yes that's right. It's defined in section 2.7.5 of the HL7 specs:

Quote:
2.7.5 Hexadecimal
When the hexadecimal escape sequence (\Xdddd...\) is used the X should be followed by 1 or more pairs of hexadecimal digits (0, 1, . . . , 9, A, . . . , F). Consecutive pairs of the hexadecimal digits represent 8-bit binary values. The interpretation of the data is entirely left to an agreement between the sending and receiving applications that is beyond the scope of this Standard.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
Reply

Tags
escape characters

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 02:29 PM.


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