Example #1
0
        /// <param name="theRoot">root of depth first iteration, which starts with the first child
        /// </param>
        /// <returns> an iterator that skips groups and empty segments, returning only populated
        /// segments
        /// </returns>
        public static System.Collections.IEnumerator createPopulatedSegmentIterator(Group theRoot)
        {
            System.Collections.IEnumerator allIterator = new NuGenReadOnlyMessageIterator(theRoot);

            NuGenFilterIterator.Predicate segmentsOnly    = new AnonymousClassPredicate();
            NuGenFilterIterator           segmentIterator = new NuGenFilterIterator(allIterator, segmentsOnly);

            EncodingCharacters ec = new EncodingCharacters('|', "^~\\&");

            NuGenFilterIterator.Predicate populatedOnly = new AnonymousClassPredicate1(ec);
            return(new NuGenFilterIterator(segmentIterator, populatedOnly));
        }
Example #2
0
 private void  InitBlock(Genetibase.NuGenHL7.parser.NuGenEncodingCharacters ec)
 {
     this.ec = ec;
 }
Example #3
0
 public AnonymousClassPredicate1(Genetibase.NuGenHL7.parser.NuGenEncodingCharacters ec)
 {
     InitBlock(ec);
 }
		/// <param name="theRoot">root of depth first iteration, which starts with the first child
		/// </param>
		/// <returns> an iterator that skips groups and empty segments, returning only populated 
		/// segments  
		/// </returns>
		public static System.Collections.IEnumerator createPopulatedSegmentIterator(Group theRoot)
		{
			System.Collections.IEnumerator allIterator = new NuGenReadOnlyMessageIterator(theRoot);
			
			NuGenFilterIterator.Predicate segmentsOnly = new AnonymousClassPredicate();
			NuGenFilterIterator segmentIterator = new NuGenFilterIterator(allIterator, segmentsOnly);
			
			EncodingCharacters ec = new EncodingCharacters('|', "^~\\&");
			NuGenFilterIterator.Predicate populatedOnly = new AnonymousClassPredicate1(ec);
			return new NuGenFilterIterator(segmentIterator, populatedOnly);
		}