Beispiel #1
0
 internal Segment(Container parent, X12DelimiterSet delimiters, string segment)
     : base(delimiters, segment)
 {
     Parent      = parent;
     _delimiters = delimiters;
     Initialize(segment);
 }
Beispiel #2
0
 internal override void Initialize(Container parent, X12DelimiterSet delimiters, Specification.LoopSpecification loopSpecification)
 {
     if (null == Loop)
     {
         string segmentString = GetSegmentString(delimiters);
         Loop = new Loop(parent, delimiters, segmentString, loopSpecification);
     }
 }
        internal Interchange(ISpecificationFinder specFinder, DateTime date, int controlNumber, bool production, X12DelimiterSet delimiters)
            : base(null, delimiters, String.Format("ISA{1}00{1}          {1}00{1}          {1}01{1}SENDERID HERE  {1}01{1}RECIEVERID HERE{1}{3:yyMMdd}{1}{3:HHmm}{1}U{1}00401{1}{4:000000000}{1}1{1}{5}{1}{2}{0}",
                delimiters.SegmentTerminator, delimiters.ElementSeparator, delimiters.SubElementSeparator, date, controlNumber, production ? "P" : "T"))
        {
            _specFinder = specFinder;
            if (controlNumber > 999999999 || controlNumber < 1)
                throw new ElementValidationException("{0} Interchange Control Number must be a positive number between 1 and 999999999.", "ISA00", controlNumber.ToString());

            _functionGroups = new List<FunctionGroup>();

            SetTerminatingTrailerSegment(String.Format("IEA{0}0{0}{2:000000000}{1}", delimiters.ElementSeparator, delimiters.SegmentTerminator, controlNumber));
        }
Beispiel #4
0
 internal override void Initialize(Container parent, X12DelimiterSet delimiters)
 {
     base.Initialize(parent, delimiters);
     _HI01 = new TypedElementHealthCareCodeInformation(_segment, 1);
     _HI02 = new TypedElementHealthCareCodeInformation(_segment, 2);
     _HI03 = new TypedElementHealthCareCodeInformation(_segment, 3);
     _HI04 = new TypedElementHealthCareCodeInformation(_segment, 4);
     _HI05 = new TypedElementHealthCareCodeInformation(_segment, 5);
     _HI06 = new TypedElementHealthCareCodeInformation(_segment, 6);
     _HI07 = new TypedElementHealthCareCodeInformation(_segment, 7);
     _HI08 = new TypedElementHealthCareCodeInformation(_segment, 8);
     _HI09 = new TypedElementHealthCareCodeInformation(_segment, 9);
     _HI10 = new TypedElementHealthCareCodeInformation(_segment, 10);
     _HI11 = new TypedElementHealthCareCodeInformation(_segment, 11);
     _HI12 = new TypedElementHealthCareCodeInformation(_segment, 12);
 }
Beispiel #5
0
 internal FunctionGroup(ISpecificationFinder specFinder, Container parent, X12DelimiterSet delimiters, string segment)
     : base(parent, delimiters, segment)
 {
     _specFinder   = specFinder;
     _transactions = new List <Transaction>();
 }
 internal HierarchicalLoopContainer(Container parent, X12DelimiterSet delimiters, string startingSegment)
     : base(parent, delimiters, startingSegment)
 {
 }
Beispiel #7
0
 internal HierarchicalLoopContainer(Container parent, X12DelimiterSet delimiters, string startingSegment)
     : base(parent, delimiters, startingSegment)
 {
     _allHLoops = new Dictionary <string, HierarchicalLoop>();
 }
Beispiel #8
0
 internal Container(Container parent, X12DelimiterSet delimiters, string segment)
     : base(parent, delimiters, segment)
 {
 }
        internal override void Initialize(Container parent, X12DelimiterSet delimiters, LoopSpecification loopSpecification)
        {
            string segmentString = this.GetSegmentString(delimiters);

            this.Loop = new Loop(parent, delimiters, segmentString, loopSpecification);
        }
Beispiel #10
0
 internal HierarchicalLoop(Container parent, X12DelimiterSet delimiters, string segment)
     : base(parent, delimiters, segment)
 {
 }
Beispiel #11
0
 internal virtual string GetSegmentString(X12DelimiterSet delimiters)
 {
     return(String.Format("{0}{1}", _segmentId, delimiters.ElementSeparator));
 }
 internal override void Initialize(Container parent, X12DelimiterSet delimiters, Specification.LoopSpecification loopSpecification)
 {
     base.Initialize(parent, delimiters, loopSpecification);
     _clm05 = new TypedElementServiceLocationInfo(_loop, 5);
     _clm11 = new TypedElementRelatedCausesInfo(_loop, 11);
 }
Beispiel #13
0
 internal override void Initialize(Container parent, X12DelimiterSet delimiters)
 {
     base.Initialize(parent, delimiters);
     _REF04 = new TypedElementReferenceIdentifier(_segment, 4);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="X12TransactionSet" /> class.
 /// </summary>
 /// <param name="segment">The segment.</param>
 /// <param name="delimiterSet">The delimiter set.</param>
 /// <param name="parentTransactionSet">The parent transaction set.</param>
 public X12TransactionSetTrailer(string segment, X12DelimiterSet delimiterSet, X12TransactionSet parentTransactionSet)
     : base(segment, delimiterSet)
 {
     ParentTransactionSet = parentTransactionSet;
 }
 internal void Initialize(Container parent, X12DelimiterSet delimiters)
 {
     OnInitializing(new EventArgs());
     _segment = new Segment(parent, delimiters, _segmentId);
     OnInitialized(new EventArgs());
 }
 internal override void Initialize(Container parent, X12DelimiterSet delimiters, Specification.LoopSpecification loopSpecification)
 {
     base.Initialize(parent, delimiters, loopSpecification);
     _ik401 = new TypedElementPositionInSegment(_loop, 1);
 }
Beispiel #17
0
 internal Transaction(Container parent, X12DelimiterSet delimiters, string segment, TransactionSpecification spec)
     : base(parent, delimiters, segment)
 {
     Specification = spec;
 }
Beispiel #18
0
 internal virtual void Initialize(Container parent, X12DelimiterSet delimiters, LoopSpecification loopSpecification)
 {
     Loop = new Loop(parent, delimiters, _segmentId, loopSpecification);
 }
 internal FunctionGroup(ISpecificationFinder specFinder, Container parent, X12DelimiterSet delimiters, string segment)
     : base(parent, delimiters, segment)
 {
     _specFinder = specFinder;
     _transactions = new List<Transaction>();
 }
Beispiel #20
0
 internal override void Initialize(Container parent, X12DelimiterSet delimiters)
 {
     base.Initialize(parent, delimiters);
     _K303 = new TypedElementCompositeUnitOfMeasure(_segment, 3);
 }
Beispiel #21
0
 internal LoopContainer(Container parent, X12DelimiterSet delimiters, string startingSegment)
     : base(parent, delimiters, startingSegment)
 {
 }
Beispiel #22
0
 internal Loop(Container parent, X12DelimiterSet delimiters, string startingSegment, LoopSpecification loopSpecification)
     : base(parent, delimiters, startingSegment)
 {
     Specification = loopSpecification;
 }
Beispiel #23
0
 public DetachedSegment(X12DelimiterSet delimiters, string segment)
 {
     _delimiters = delimiters;
     Initialize(segment);
 }
Beispiel #24
0
 internal Loop(Container parent, X12DelimiterSet delimiters, string startingSegment, LoopSpecification loopSpecification)
     : base(parent, delimiters, startingSegment)
 {
     Specification = loopSpecification;
 }
Beispiel #25
0
 internal override void  Initialize(Container parent, X12DelimiterSet delimiters, Specification.LoopSpecification loopSpecification)
 {
     base.Initialize(parent, delimiters, loopSpecification);
     _SVD03 = new TypedElementCompositeMedicalProcedureIdentifier(_loop, 3);
 }
Beispiel #26
0
 internal override void Initialize(Container parent, X12DelimiterSet delimiters, Specification.LoopSpecification loopSpecification)
 {
     base.Initialize(parent, delimiters, loopSpecification);
     _ik401 = new TypedElementPositionInSegment(_loop, 1);
 }
Beispiel #27
0
 internal override string GetSegmentString(X12DelimiterSet delimiters)
 {
     return(String.Format("{0}{1}{2}", _segmentId, delimiters.ElementSeparator, _entityIdentifer));
 }
Beispiel #28
0
 internal override void Initialize(Container parent, X12DelimiterSet delimiters)
 {
     base.Initialize(parent, delimiters);
     _AK401 = new TypedElementPositionInSegment(_segment, 1);
 }
Beispiel #29
0
 internal override void Initialize(Container parent, X12DelimiterSet delimiters)
 {
     base.Initialize(parent, delimiters);
     _SVD03 = new TypedElementCompositeMedicalProcedureIdentifier(_segment, 3);
 }
 internal override string GetSegmentString(X12DelimiterSet delimiters)
 {
     return String.Format("{0}{1}{2}", _segmentId, delimiters.ElementSeparator, _entityIdentifer);
 }
Beispiel #31
0
 internal Segment(Container parent, X12DelimiterSet delimiters, string segment)
 {
     Parent = parent;
     _delimiters = delimiters;
     Initialize(segment);
 }
        internal override void Initialize(Container parent, X12DelimiterSet delimiters, Specification.LoopSpecification loopSpecification)
        {
            string segmentString = GetSegmentString(delimiters);

            _loop = new Loop(parent, delimiters, segmentString, loopSpecification);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="X12InterchangeTrailer" /> class.
 /// </summary>
 /// <param name="isaSegment">The isa segment.</param>
 /// <param name="delimiterSet">The delimiter set.</param>
 /// <param name="parentInterchange">The parent interchange.</param>
 public X12InterchangeTrailer(string isaSegment, X12DelimiterSet delimiterSet, X12Interchange parentInterchange)
     : base(isaSegment, delimiterSet)
 {
     ParentInterchange = parentInterchange;
 }
 public RepoTransactionSet(char segmentTerminator, char elementSeparator, char componentSeparator)
 {
     Delimiters = new X12DelimiterSet(segmentTerminator, elementSeparator, componentSeparator);
 }
Beispiel #35
0
 internal override void  Initialize(Container parent, X12DelimiterSet delimiters, Specification.LoopSpecification loopSpecification)
 {
     base.Initialize(parent, delimiters, loopSpecification);
     _clm05 = new TypedElementServiceLocationInfo(_loop, 5);
     _clm11 = new TypedElementRelatedCausesInfo(_loop, 11);
 }
Beispiel #36
0
 internal void Initialize(Container parent, X12DelimiterSet delimiters)
 {
     OnInitializing(new EventArgs());
     _segment = new Segment(parent, delimiters, _segmentId);
     OnInitialized(new EventArgs());
 }
Beispiel #37
0
        public Interchange(ISpecificationFinder specFinder, DateTime date, int controlNumber, bool production, X12DelimiterSet delimiters)
            : base(null, delimiters, String.Format("ISA{1}00{1}          {1}00{1}          {1}01{1}SENDERID HERE  {1}01{1}RECIEVERID HERE{1}{3:yyMMdd}{1}{3:HHmm}{1}U{1}00401{1}{4:000000000}{1}1{1}{5}{1}{2}{0}",
                                                   delimiters.SegmentTerminator, delimiters.ElementSeparator, delimiters.SubElementSeparator, date, controlNumber, production ? "P" : "T"))
        {
            _specFinder = specFinder;
            if (controlNumber > 999999999 || controlNumber < 1)
            {
                throw new ElementValidationException("{0} Interchange Control Number must be a positive number between 1 and 999999999.", "ISA00", controlNumber.ToString());
            }

            _functionGroups = new List <FunctionGroup>();

            SetTerminatingTrailerSegment(String.Format("IEA{0}0{0}{2:000000000}{1}", delimiters.ElementSeparator, delimiters.SegmentTerminator, controlNumber));
        }
Beispiel #38
0
 internal override void Initialize(Container parent, X12DelimiterSet delimiters)
 {
     base.Initialize(parent, delimiters);
     _sv101 = new TypedElementCompositeMedicalProcedureIdentifier(_segment, 1);
     _sv107 = new TypedElementCompositDiagnosisCodePointer(_segment, 7);
 }
 internal Transaction(Container parent, X12DelimiterSet delimiters, string segment, TransactionSpecification spec)
     : base(parent, delimiters, segment)
 {
     Specification = spec;
 }
 internal override string GetSegmentString(X12DelimiterSet delimiters)
 {
     return($"{this.SegmentId}{delimiters.ElementSeparator}{this.entityIdentifier}");
 }