Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

EncodingNotSupportedException

Help
2011-02-16
2013-05-13
  • I'm trying to parse an A04 message using the PipeParser.  The message should be valid (I've tried several sent from a functioning HL7 interface, and I've managed to parse them previously).  However I get an EncodingNotSupportedException now.  There isn't really a lot of other information to help me diagnose what might be wrong with the messages - I've included a sample message below (test data, not a real person of course). 

    MSH|^~\&|STAR|U|EPIC|U|20110105091511||ADT^A04|5225404|D|2.2|5225404||AL|||||||2.2b
    EVN|A04|20110105091511|||ETE
    PID|1||0006204679^^^U^MR~06005886^^^^PI||WALKER^ERIC^""^JR||19870110|M||2|340 PRESTON ST^^BALTIMORE^MD^21215^US^P^MD510||(410)345-1098|(410)716-3862|E^ENGLISH^HL70296^E^ENGLISH^99CLAN|X|CAT|1620003218^^^U|219-23-9876||||MD|N|||N|AME^AMERICAN^99NAT||N|N|||||||||||||||||||N
    PD1||||906266^WALKER^DAVID^""^^^^HL70010||||||||||
    NK1|1|TAYLOR^DEMERTRIA^""|M^MOTHER^HL70063^M^MOTHER^99REL|340 PRESTON ST^^BALTIMORE^MD^21215^US^P^MD510~NO EMPLOYER/UNKNOWN EMP^^UNKNOWN^XX^00000^^O^99|(410)345-1098||REL1||||^9||35^* UNKNOWN EMPLOYER^99H66^35^* UNKNOWN EMPLOYER^99EMP||F|19540909||||||||||||||||||9^UNKNOWN^HL70066^9^UNKNOWN^99ESC|||
    PV1|1|O|""|3|||3375^FAIRCHILD^EMILY^S^^^^HL70010|906266^WALKER^DAVID^""^^^^HL70010|""|LAB||||1|||3375^FAIRCHILD^EMILY^S^^^^HL70010|UAC||01|||||||||||||||||||U||1|||201101050915||||||0000064583^^^U^TN
    PV2|||||||||20110110|5|||||||||||""|N|LABORATORY^D^LAB^^^U^XX||||||||||||||||||||||||||Y
    AL1|""|""|""|""|""|""
    DG1|1|I9|724.5|BACKACHE NOS||A|||||||||0|||||||||||
    DG1|2|I9|724.5|BACKACHE NOS||W|||||||||1|||||||||||
    GT1|1|0006204679^^^U^MR|WALKER^ERIC^""^JR||340 PRESTON ST^^BALTIMORE^MD^21215^US^P^MD510|(410)345-1098|(410)716-3862|19870110|M||S|219-23-9876|||1|34^BLACK AND DECKER^99H66^34^BLACK AND DECKER^99EMP|701 E JOPPA RD^^BALTIMORE^MD^21286^US^O^MD005|(410)716-3862||1|||||N|||||X||||||E^ENGLISH^HL70296^E^ENGLISH^99CLAN|||||||AME^AMERICAN^99NAT|||||||10^1^ADMIN/MANAGERIAL|34^BLACK AND DECKER^99H66^34^BLACK AND DECKER^99EMP||||2|MD|
    IN1|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""|""
    ACC|""|""|""|""|""|||""
    ZPI|1|N|||906266^WALKER^DAVID^""^^^^HL70010|||||||1^EMP FULL TIME^HL70066^1^EMP FULL TIME^99ESC
    ||10^1^ADMIN/MANAGERIAL|34^BLACK AND DECKER^99H66^34^BLACK AND DECKER^99EMP|701 E JOPPA RD^^BALTIMORE^MD^21286^US^O^MD005|||100000|20110105
    ZPV|1|CAR^CAR^99ARR||N||||||||||||||||Y||0|0||||
    ZOA|||||||||||906266^WALKER^DAVID|||||||||||1285683409|1285683409|1992721948|||1992721948|

     
  • ChadC
    ChadC
    2011-02-16

    It looks like there is an extra segment delimiter between the ZPI and ZPV segments.  The '||10^1^ADMIN/MANAGERIAL|34^…' data is being seen as a segment, and the parser is breaking because it doesn't like it.  When I removed that extra line break, I was able to parse the msg. 

     
  • Thanks, that was it.  Now I just have to hope live data doesn't look like that.