Hi,

The trimming is defined in the validation rules - see package 
ca.uhn.hl7v2.validation.impl.

Both the DefaultValidationRule and NoValidationRule implementations 
contain the trimming rules.

If you don't want the trimming to occur, I'm afraid that you'll have 
to create your own validation implementation that doesn't contain these lines:

         Rule trim = new TrimLeadingWhitespace();
         getPrimitiveRuleBindings().add(new RuleBinding("*", "FT", trim));
         getPrimitiveRuleBindings().add(new RuleBinding("*", "ST", trim));
         getPrimitiveRuleBindings().add(new RuleBinding("*", "TX", 
trim));


I will suggest to remove the trimming for FT and TX datatypes in a 
future release.


Hope this helps.

Best Regards

Nico


At 13/01/2009, Cameron Freiner wrote:
>I have an inbound feed to create text documents from ORU_R01 messages.
>
>All is working properly except when an obx segment Is sent like this:
>
>OBX|118|ST|07||2. Aortic valve disease with previous aortic valve 
>replacement with a #21||||||P|
>OBX|119|ST|07||      bovine aortic valve.||||||P|
>
>when hapi gets the inbound message it displays as
>
>OBX|118|ST|07||2. Aortic valve disease with previous aortic valve 
>replacement with a #21||||||P
>OBX|119|ST|07||bovine aortic valve.||||||P
>
>Since they are using that as formatting, this causes us some 
>problems?  Any Ideas or suggestions..
>
>
>
>------------------------------------------------------------------------------
>This SF.net email is sponsored by:
>SourcForge Community
>SourceForge wants to tell your story.
>http://p.sf.net/sfu/sf-spreadtheword
>_______________________________________________
>Hl7api-devel mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/hl7api-devel



------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to