Hi all
It is possible to parse a message who arrive with this error inside:
...
OBR| |............... a space inside the OBR-1
I tried to override the Pipe Parser in this way:
// parser that replace 'OBR|_' with 'OBR|'
Parser parser = new PipeParser() {
// We override the parse method to correct issues
public Message parse(String theMessage) throws
HL7Exception, EncodingNotSupportedException {
theMessage = theMessage.replace("OBR| ", "OBR|");
return super.parse(theMessage);
}};
but:
Unexpected Message Received:
MSH|^&~\|||||20100505154105.494-0100||ACK|85|P|2.4^MMSA|AE|8813|Failed
validation rule for value " ": Matches the regular expres
sion ~T~d*: Segme^MERR|^^^207\Application Internal Error\HL70357
Do you have a suggest?
Thanks in advance
Alessandro Del Prete
------------------------------------------------------------------------------
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel