test_class.declarator: p = new PipeParser()
test_class.modifier: private
test_class.original_string: private PipeParser p = new PipeParser();
test_class.type: PipeParser
test_class.var_name: p
test_class.declarator: loc1
test_class.modifier: private
test_class.original_string: private ErrorLocation loc1;
test_class.type: ErrorLocation
test_class.var_name: loc1
test_class.declarator: loc2
test_class.modifier: private
test_class.original_string: private ErrorLocation loc2;
test_class.type: ErrorLocation
test_class.var_name: loc2
test_class.declarator: loc3
test_class.modifier: private
test_class.original_string: private ErrorLocation loc3;
test_class.type: ErrorLocation
test_class.var_name: loc3
test_class.declarator: ex1
test_class.original_string: HL7v2Exception ex1;
test_class.type: HL7v2Exception
test_class.var_name: ex1
test_class.declarator: ex2
test_class.original_string: HL7v2Exception ex2;
test_class.type: HL7v2Exception
test_class.var_name: ex2
test_class.declarator: ex3
test_class.original_string: HL7v2Exception ex3;
test_class.type: HL7v2Exception
test_class.var_name: ex3
test_class.file: modules/hl7/src/test/java/org/openehealth/ipf/modules/hl7/CompositeHL7v2ExceptionTest.java
test_class.identifier: CompositeHL7v2ExceptionTest
test_case.body: @Test
  	public void testMultipleSegments_Version23() throws Exception {
  
  		ca.uhn.hl7v2.model.v23.message.ACK response = new ca.uhn.hl7v2.model.v23.message.ACK();
  
  		Terser t = new Terser(response);
  		t.set("MSH-1", "|");
  		t.set("MSH-2", "^~\\&");
  		t.set("MSH-3", "X");
  		t.set("MSH-4", "Y");
  		t.set("MSH-9-1", "ACK");
  		t.set("MSH-9-2", "A08");
  		t.set("MSH-10", "1");
  		t.set("MSH-12", "2.3");
  
  		CompositeHL7v2Exception ex0 = new CompositeHL7v2Exception("Bluh",
  				new HL7v2Exception[] { ex1, ex2, ex3 });
  		ex0.populateMessage(response, AckTypeCode.AE);
  
  		String result = p.encode(response);
  		//  System.out.println(result);
  		assertTrue(result
  				.contains("ERR|MSH^1^2^200&Unsupported message type&HL70357&&Blah~PID^5^4^201&Unsupported event code&HL70357&&Bleh~PV1^0^0^203&Unsupported version id&HL70357&&Blih"));
  	}
test_case.class_method_signature: CompositeHL7v2ExceptionTest.testMultipleSegments_Version23()
test_case.full_signature: @Test public void testMultipleSegments_Version23()
test_case.identifier: testMultipleSegments_Version23
test_case.invocations: set set set set set set set set populateMessage encode assertTrue contains
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMultipleSegments_Version23()
focal_class.declarator: wrapped
focal_class.modifier: private final
focal_class.original_string: private final List<AbstractHL7v2Exception> wrapped;
focal_class.type: List<AbstractHL7v2Exception>
focal_class.var_name: wrapped
focal_class.file: modules/hl7/src/main/java/org/openehealth/ipf/modules/hl7/CompositeHL7v2Exception.java
focal_class.identifier: CompositeHL7v2Exception
focal_class.interfaces: implements
  		Iterable<AbstractHL7v2Exception>
focal_class.class_method_signature: CompositeHL7v2Exception.CompositeHL7v2Exception()
focal_class.full_signature: public  CompositeHL7v2Exception()
focal_class.identifier: CompositeHL7v2Exception
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  CompositeHL7v2Exception()
focal_class.class_method_signature: CompositeHL7v2Exception.CompositeHL7v2Exception(List<AbstractHL7v2Exception> wrapped)
focal_class.full_signature: public  CompositeHL7v2Exception(List<AbstractHL7v2Exception> wrapped)
focal_class.identifier: CompositeHL7v2Exception
focal_class.modifiers: public
focal_class.parameters: (List<AbstractHL7v2Exception> wrapped)
focal_class.signature:  CompositeHL7v2Exception(List<AbstractHL7v2Exception> wrapped)
focal_class.class_method_signature: CompositeHL7v2Exception.CompositeHL7v2Exception(AbstractHL7v2Exception[] wrapped)
focal_class.full_signature: public  CompositeHL7v2Exception(AbstractHL7v2Exception[] wrapped)
focal_class.identifier: CompositeHL7v2Exception
focal_class.modifiers: public
focal_class.parameters: (AbstractHL7v2Exception[] wrapped)
focal_class.signature:  CompositeHL7v2Exception(AbstractHL7v2Exception[] wrapped)
focal_class.class_method_signature: CompositeHL7v2Exception.CompositeHL7v2Exception(String message,
  			AbstractHL7v2Exception[] wrapped)
focal_class.full_signature: public  CompositeHL7v2Exception(String message,
  			AbstractHL7v2Exception[] wrapped)
focal_class.identifier: CompositeHL7v2Exception
focal_class.modifiers: public
focal_class.parameters: (String message,
  			AbstractHL7v2Exception[] wrapped)
focal_class.signature:  CompositeHL7v2Exception(String message,
  			AbstractHL7v2Exception[] wrapped)
focal_class.class_method_signature: CompositeHL7v2Exception.CompositeHL7v2Exception(String message)
focal_class.full_signature: public  CompositeHL7v2Exception(String message)
focal_class.identifier: CompositeHL7v2Exception
focal_class.modifiers: public
focal_class.parameters: (String message)
focal_class.signature:  CompositeHL7v2Exception(String message)
focal_class.class_method_signature: CompositeHL7v2Exception.CompositeHL7v2Exception(String message,
  			List<AbstractHL7v2Exception> wrapped)
focal_class.full_signature: public  CompositeHL7v2Exception(String message,
  			List<AbstractHL7v2Exception> wrapped)
focal_class.identifier: CompositeHL7v2Exception
focal_class.modifiers: public
focal_class.parameters: (String message,
  			List<AbstractHL7v2Exception> wrapped)
focal_class.signature:  CompositeHL7v2Exception(String message,
  			List<AbstractHL7v2Exception> wrapped)
focal_class.class_method_signature: CompositeHL7v2Exception.add(AbstractHL7v2Exception exception)
focal_class.full_signature: public boolean add(AbstractHL7v2Exception exception)
focal_class.identifier: add
focal_class.modifiers: public
focal_class.parameters: (AbstractHL7v2Exception exception)
focal_class.return: boolean
focal_class.signature: boolean add(AbstractHL7v2Exception exception)
focal_class.class_method_signature: CompositeHL7v2Exception.populateMessage(Message m, AckTypeCode code)
focal_class.full_signature: @Override public Message populateMessage(Message m, AckTypeCode code)
focal_class.identifier: populateMessage
focal_class.modifiers: @Override public
focal_class.parameters: (Message m, AckTypeCode code)
focal_class.return: Message
focal_class.signature: Message populateMessage(Message m, AckTypeCode code)
focal_class.class_method_signature: CompositeHL7v2Exception.iterator()
focal_class.full_signature: @Override public Iterator<AbstractHL7v2Exception> iterator()
focal_class.identifier: iterator
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Iterator<AbstractHL7v2Exception>
focal_class.signature: Iterator<AbstractHL7v2Exception> iterator()
focal_class.superclass: extends AbstractHL7v2Exception
focal_method.body: @Override
  	public Message populateMessage(Message m, AckTypeCode code) {
  		try {
              if (MessageUtils.atLeastVersion(m, "2.5")) {
                  Segment errorSegment = (Segment) m.get("ERR");
                  fillErr347(errorSegment);
              } else {
                  Segment msaSegment = (Segment) m.get("MSA");
                  Terser.set(msaSegment, 3, 0, 1, 1, getMessage());
              }
              
              for (AbstractHL7v2Exception exception : wrapped) {
                  exception.populateMessage(m, code);
              }
  
  			return m;
  		} catch (HL7Exception e) {
  			// TODO Auto-generated catch block
  			throw new RuntimeException(e);
  		}
  	}
focal_method.class_method_signature: CompositeHL7v2Exception.populateMessage(Message m, AckTypeCode code)
focal_method.full_signature: @Override public Message populateMessage(Message m, AckTypeCode code)
focal_method.identifier: populateMessage
focal_method.invocations: atLeastVersion get fillErr347 get set getMessage populateMessage
focal_method.modifiers: @Override public
focal_method.parameters: (Message m, AckTypeCode code)
focal_method.return: Message
focal_method.signature: Message populateMessage(Message m, AckTypeCode code)