http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/PopulateOBXSegmen t.html
That's close to what you want to do. You have to get or create the Group then you can create your segments. -----Original Message----- From: Abhijit Muthiyan [mailto:[email protected]] Sent: Wednesday, October 20, 2010 9:30 PM To: [email protected] Subject: [HAPI-devel] Creating repeating segments (HL7 2.5.1) Hi, I am creating a HL7 2.5.1 message. The message must have repeated segements For example the message below, with multiple ORC segments: MSH|^~\&|EHR Application|EHR Facility|PH Application|PH Facility|20100929111444||VXU^V04^VXU_V04|NIST-100929111444875|P|2.5.1 PID|||97833566^^^MPI&2.16.840.1.113883.19.3.2.1&ISO^MR||Brown^Mark||198806 17|M||2054-5^African American^HL70005|799 Newton Street^^Augusta^ME^04330^^M||^PRN^^^^207^9592228|||||||||N^Not Hispanic or Latino^HL70189 ORC|RE RXA|0|1|201004051600|201004051600|33^Pneumococcal Polysaccharide^CVX|0.5|ml^milliliter^ISO+||||||||1039A||MSD^Merck^HL70227| |||A ORC|RE RXA|0|1|201005261100|201005261100|15^"Influenza, split virus"^CVX|0.5|ml^milliliter^ISO+||||||||U6007||NOV^Novartis^HL70227||||A I can create a message with one ORDER (ORC+RXA) segment. How do I add multiple of these? According to the documentation VXU_V04_ORDER Group can be repeated. Looking for sample how to do this. Thanks in advance Abhi -------------------------------------------------------------------------- ---- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Hl7api-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/hl7api-devel ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Hl7api-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/hl7api-devel

