/** * Sets the next position to a new segment of the given name, within the * given group. */ private void newSegment(Group parent, String name) throws HL7Exception { log.info("MessageIterator creating new segment: {}", name); parent.addNonstandardSegment(name); next = new Position(parent, parent.getNames()[parent.getNames().length-1], 0); }
/** * Sets the next position to a new segment of the given name, within the * given group. */ private void newSegment(Group parent, String name) throws HL7Exception { log.info("MessageIterator creating new segment: {}", name); parent.addNonstandardSegment(name); next = new Position(parent, parent.getNames()[parent.getNames().length-1], 0); }
String segIndexName = groupObject.addNonstandardSegment(segName); parseReps(groupElement, groupObject, messageName, segName, segIndexName);
String segIndexName = groupObject.addNonstandardSegment(segName); parseReps(groupElement, groupObject, messageName, segName, segIndexName);
newIndexName = groupObject.addNonstandardSegment(childName); for (int j = i; j < reps.size(); j++) { parseRep(reps.get(j), groupObject.get(newIndexName, j-i));
newIndexName = groupObject.addNonstandardSegment(childName); for (int j = i; j < reps.size(); j++) { parseRep(reps.get(j), groupObject.get(newIndexName, j-i));
} else { try { newSegmentName = parentStructure.addNonstandardSegment(myDirection, index); } catch (HL7Exception e) { throw new Error("Unable to add nonstandard segment " + myDirection + ": ", e);
} else { try { newSegmentName = parentStructure.addNonstandardSegment(myDirection, index); } catch (HL7Exception e) { throw new Error("Unable to add nonstandard segment " + myDirection + ": ", e);