> Hi 
> 
> When am parsing the following result hl7 message using hapi Parser the NTE 
> segment comment (NTE.03 field) data's beginning spaces are suppressed. Am 
> using 2.5 version parser
> 
> e.g. NTE|1|L|      ** S = Susceptible; I = Intermediate; R = Resistant **
> 
> becomes 
> 
> NTE|1|L|** S = Susceptible; I = Intermediate; R = Resistant **
> 
> after parsing. Notice NTE.03 field beginning spaces are trimmed.
> 
> Is there any way by which i can keep these spaces after parsing also. When 
> the spaces are automatically suppressed the user can't see the data properly 
> aligned. Have attached the complete hl7 message below.
> 
> 
> If you have any questions please don't hesitate to ask.
> 
> Can you please help. 
> 
> Thanks
> 
> Regards
> Satish
> 
> 
> MSH|^~\&|abcde|ab|abcdefghij|abcdefa|201602151222||ORU^R01|6497|P|2.5
> PID|1|123-45-6789|04699445010|123456789|HISTO^LABCORP^T||19500301|M|||abcdef^^NEW
>  YORK^NY^12345||(123)123-1234|||||123123123^^^04^^F|123456789
> ORC|RE|R-20160226002^LAB|04699445010^LAB||||||201602150000|||170^PROVIDER^J^^^^^N
> OBR|1|R-20160226002^LAB|04699445010^LAB|997871^Result^L|||201602130517||1500||G|||201602151157||||R-201602130||R-20160226002||201602151222|||F|008722|||008144
> OBX|1|ST|997141^Result 1^L^6463-4^Bacteria identified^LN||Salmonella 
> typhi|||A||N|F|||201602151205|01
> NTE|1|L|Heavy growth
> OBX|2|ST|997142^Result 2^L^6463-4^Bacteria identified^LN||Shigella 
> dysenteriae|||A||N|F|||201602151205|01
> OBX|3|TX|997145^Antimicrobial Susceptibility^L^23658-8^Antibiotic 
> XXX^LN||Comment|||||N|F|||201602151205|01
> NTE|1|L|      ** S = Susceptible; I = Intermediate; R = Resistant **
> NTE|2|L|                   P = Positive; N = Negative
> NTE|3|L|            MICS are expressed in micrograms per mL
> NTE|4|L|   Antibiotic                 RSLT#1    RSLT#2    RSLT#3    RSLT#4
> NTE|5|L|Amikacin                                   =S
> NTE|6|L|Ampicillin                                 =S
> NTE|7|L|Ampicillin/Sulbactam                       =S
> NTE|8|L|Cefazolin                                  =R
> NTE|9|L|Cefepime                                   =R
> NTE|10|L|Cefoxitin                                  =S
> NTE|11|L|Ceftazidime                                =S
> NTE|12|L|Ceftriaxone                                =S
> NTE|13|L|Ciprofloxacin                              =S
> NTE|14|L|ESBL                                       =I
> NTE|15|L|Gentamicin                                 =R
> NTE|16|L|Imipenem                                   =R
> NTE|17|L|Levofloxacin                               =R
> NTE|18|L|Meropenem                                  =S
> NTE|19|L|Nitrofurantoin                             =S
> NTE|20|L|Piperacillin/Tazobactam                    =S
> NTE|21|L|Tobramycin                                 =I
> NTE|22|L|Trimethoprim/Sulfa                         =S
> 

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to