Hi,

I've parsed following message:

public void testParsingSIUS13() throws Exception
  {
    final String siuMessage =
      
"MSH|^~\\&|RIS|RISORG|HIS|HISORG|20110516151812.345+0100||SIU^S13^SIU_S13|123456789|P|2.4||||||UTF-8|SL\r"
 +
      
"SCH||123432^RIS||56435418^HIS||APT|||||1|||||TEST^PATIENT||||||||||12345679^HIS|54654781^RIS\r"
 +
      "RGS|1|U|23^RTG\r" +
      "AIS|1|U|RTG0023^RTG RAME  AKSIALNO^KIR|20110603154000|||10|min\r";

    Message m = new PipeParser().parse(siuMessage);
  }

Problem is that object m is instance of GenericMessage instead of SIU_S13. If I 
erase message structure component in MSH-9 then parse method returns SIU_S12 
instance. I've noticed there is no SIU_S13 or SIU_S15 in 2.4 structures.

Is it possible to add definition for SIU_S13 and SIU_S15?

Maybe it would be better if PipeParser doesn’t find appropriate message 
structure from MSH-9-3, should try parsing as MSH-9-3 is not valued. Then the 
result would be SIU_S12 instead of GenericMessage.

Regards,
Jure Grom
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to