Have you ever thought about a baseclass for MSH that is independent of
structure?

This would make creating AppRoutingData much easier.

So in  ca.uhn.hl7v2.protocol.impl.ApplicationRouterImpl#findApplication
where a terser is used to extract msh fields, you could replace this with a
get("MSH") where it would be safe to cast the returned Structure to the
baseclass MSH and get the fields directly.

-Mike
------------------------------------------------------------------------------
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to