Hi all,
We are having some issues with carriage returns (CR) on a text that is later sent via HL7 through an integration engine. The issue is that the HL7 understands the CR as something that breaks the segment and then the message fails.
So, we want to get rid of those CRs replacing them with something more appropriate that can be managed by HL7.
The problem we are having is how to identify those CR?
We already have some code that replaces some 'dangerous' characters with other more appropriate ones, for example, (&, ^, \\, |,….) are replaced with (\\T\\, \\S\\, \\E\\, \\F\\,….). For that, we go through the text using the function 'scan' to find the character to replace, but we don't know how finding these CRs.
The application we have is built on Uniface 9.7.05
The field where the CRs are is a Text type field with:
Widget type --> MessageBox,
DataType --> String,
Interface --> C500
Syntax --> MUL
Any ideas will be welcome!
Thanks and regards!
------------------------------
Pedro Morales
Dedalus Spa
Malaga ES
------------------------------