From: Tripp, B. <Bry...@uh...> - 2003-08-12 14:08:15
|
Hi Phill, > construct.. I have an object of type > RDE_O11_ORCRXONTERXRRXCNTERXERXRRXCOBXNTECTI... crazy. Yes, the brute-force method of avoiding name collisions. This is how group names were originally defined in the XML encoding. For example the corresponding DTD element for this group was: <!ENTITY % RDE_O01.ORCRXONTERXRRXCNTERXERXRRXCOBXNTECTI.CONTENT (ORC,RDE_O01.RXONTERXRRXCNTE?,RXE,RXR+,RXC*,RDE_O01.OBXNTE+,CTI*)"> More recently HL7 has been coming up with nice, short group names, so this won't last forever. > what's my mechanism for iterating them? I would do this: (RXC[]) group.getAll("RXC"); ... but come to think of it this doesn't test your assumptions about message structure at compile time. Maybe there should also be: RXC[] getAllRXC(); ... or: int getNumRXC(); What does everyone think? Thanks, Bryan This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this e-mail in error, please contact the sender and delete all copies. Opinions, conclusions or other information contained in this e-mail may not be that of the organization. |