Exemple #1
0
public Loop2200D(X12Doc owningDoc, LoopEntity prev, LoopCollection parent):base(owningDoc, prev, parent){
ClaimStatusTrackingNumber = new TrnCollection(this, nameof(ClaimStatusTrackingNumber));
SegmentCollections.Add(ClaimStatusTrackingNumber);
ClaimLevelStatusInformation = new StcCollection(this, nameof(ClaimLevelStatusInformation));
SegmentCollections.Add(ClaimLevelStatusInformation);
PayerClaimControlNumber = new RefCollection(this, nameof(PayerClaimControlNumber));
SegmentCollections.Add(PayerClaimControlNumber);
InstitutionalBillTypeIdentification = new RefCollection(this, nameof(InstitutionalBillTypeIdentification));
SegmentCollections.Add(InstitutionalBillTypeIdentification);
PatientControlNumber = new RefCollection(this, nameof(PatientControlNumber));
SegmentCollections.Add(PatientControlNumber);
PharmacyPrescriptionNumber = new RefCollection(this, nameof(PharmacyPrescriptionNumber));
SegmentCollections.Add(PharmacyPrescriptionNumber);
VoucherIdentifier = new RefCollection(this, nameof(VoucherIdentifier));
SegmentCollections.Add(VoucherIdentifier);
ClaimIdentificationNumberForClearinghousesAnd = new RefCollection(this, nameof(ClaimIdentificationNumberForClearinghousesAnd));
SegmentCollections.Add(ClaimIdentificationNumberForClearinghousesAnd);
ClaimServiceDate = new DtpCollection(this, nameof(ClaimServiceDate));
SegmentCollections.Add(ClaimServiceDate);
 
ServiceLineInformationLoop = new Loop2220DCollection("Loop2220D", nameof(ServiceLineInformationLoop), OwningDoc, parent, parent);
ChildLoopCollections.Add(ServiceLineInformationLoop);
DependentLevelLoop = new Loop2000ECollection("Loop2000E", nameof(DependentLevelLoop), OwningDoc, parent, parent);
ChildLoopCollections.Add(DependentLevelLoop);
DependentNameLoop = new Loop2100ECollection("Loop2100E", nameof(DependentNameLoop), OwningDoc, parent, parent);
ChildLoopCollections.Add(DependentNameLoop);
ClaimStatusTrackingNumberLoop = new Loop2200ECollection("Loop2200E", nameof(ClaimStatusTrackingNumberLoop), OwningDoc, parent, parent);
ChildLoopCollections.Add(ClaimStatusTrackingNumberLoop);
}
Exemple #2
0
        /// <summary>
        /// Gets called from the Tags property getter for lazy loading
        /// </summary>
        private void LoadTags()
        {
            string[] tags = Directory.GetFiles(Path.Combine(GitDir.FullName, @"refs\tags"));

            _tags = new RefCollection <Tag>(tags.Length);
            try
            {
                if (_packedRefs == null)
                {
                    LoadPackedRefs();
                }

                foreach (string file in tags)
                {
                    string sha = File.ReadAllText(file).Trim();

                    _tags.Add(Tag.Load(this, sha, Path.Combine(@"refs\tags", Path.GetFileName(file))));
                }

                string[] paths = _packedRefs.Keys.Where(path => path.StartsWith("refs/tags")).ToArray();
                foreach (string path in paths)
                {
                    _tags.Add(Tag.Load(this, _packedRefs[path], path));
                }
            }
            catch (Exception)
            {
                // Reset _tags field, otherwise the object would be in an invalid state
                _tags = null;

                throw;
            }
        }
Exemple #3
0
        public Loop2200E(LoopCollectionBase parent) : base(parent)
        {
            ClaimStatusTrackingNumber = new TrnCollection(this, nameof(ClaimStatusTrackingNumber));
            SegmentCollections.Add(ClaimStatusTrackingNumber);
            ClaimLevelStatusInformation = new StcCollection(this, nameof(ClaimLevelStatusInformation));
            SegmentCollections.Add(ClaimLevelStatusInformation);
            PayerClaimControlNumber = new RefCollection(this, nameof(PayerClaimControlNumber));
            SegmentCollections.Add(PayerClaimControlNumber);
            InstitutionalBillTypeIdentification = new RefCollection(this, nameof(InstitutionalBillTypeIdentification));
            SegmentCollections.Add(InstitutionalBillTypeIdentification);
            PatientControlNumber = new RefCollection(this, nameof(PatientControlNumber));
            SegmentCollections.Add(PatientControlNumber);
            PharmacyPrescriptionNumber = new RefCollection(this, nameof(PharmacyPrescriptionNumber));
            SegmentCollections.Add(PharmacyPrescriptionNumber);
            VoucherIdentifier = new RefCollection(this, nameof(VoucherIdentifier));
            SegmentCollections.Add(VoucherIdentifier);
            ClaimIdentificationNumberForClearinghousesAnd =
                new RefCollection(this, nameof(ClaimIdentificationNumberForClearinghousesAnd));
            SegmentCollections.Add(ClaimIdentificationNumberForClearinghousesAnd);
            ClaimServiceDate = new DtpCollection(this, nameof(ClaimServiceDate));
            SegmentCollections.Add(ClaimServiceDate);

            ServiceLineInformationLoop = new Loop2220ECollection("Loop2220E", nameof(ServiceLineInformationLoop), parent.OwningX12Doc, parent);
            ChildLoopCollections.Add(ServiceLineInformationLoop);
        }
Exemple #4
0
        /// <summary>
        /// Gets called from the Branches property getter for lazy loading
        /// </summary>
        private void LoadBranches()
        {
            string[] branches = Directory.GetFiles(Path.Combine(GitDir.FullName, @"refs\heads"));

            _branches = new RefCollection <Branch>(branches.Length);

            try
            {
                if (_packedRefs == null)
                {
                    LoadPackedRefs();
                }

                foreach (string file in branches)
                {
                    string sha = File.ReadAllText(file).Trim();

                    _branches.Add(new Branch(this, Path.Combine(@"refs\heads", Path.GetFileName(file)), sha));
                }

                string[] paths = _packedRefs.Keys.Where(path => path.StartsWith("refs/heads")).ToArray();
                foreach (string path in paths)
                {
                    _branches.Add(new Branch(this, path, _packedRefs[path]));
                }
            }
            catch (Exception)
            {
                // Reset _branches field, otherwise the object would be in an invalid state
                _branches = null;

                throw;
            }
        }
    public Loop2200E(X12Doc owningDoc, LoopEntity prev, LoopCollection parent) : base(owningDoc, prev, parent)
    {
        ClaimStatusTrackingNumber = new TrnCollection(this, nameof(ClaimStatusTrackingNumber));
        SegmentCollections.Add(ClaimStatusTrackingNumber);
        PayerClaimControlNumber = new RefCollection(this, nameof(PayerClaimControlNumber));
        SegmentCollections.Add(PayerClaimControlNumber);
        InstitutionalBillTypeIdentification = new RefCollection(this, nameof(InstitutionalBillTypeIdentification));
        SegmentCollections.Add(InstitutionalBillTypeIdentification);
        ApplicationOrLocationSystemIdentifier = new RefCollection(this, nameof(ApplicationOrLocationSystemIdentifier));
        SegmentCollections.Add(ApplicationOrLocationSystemIdentifier);
        GroupNumber = new RefCollection(this, nameof(GroupNumber));
        SegmentCollections.Add(GroupNumber);
        PatientControlNumber = new RefCollection(this, nameof(PatientControlNumber));
        SegmentCollections.Add(PatientControlNumber);
        PharmacyPrescriptionNumber = new RefCollection(this, nameof(PharmacyPrescriptionNumber));
        SegmentCollections.Add(PharmacyPrescriptionNumber);
        ClaimIdentificationNumberForClearinghousesAnd = new RefCollection(this, nameof(ClaimIdentificationNumberForClearinghousesAnd));
        SegmentCollections.Add(ClaimIdentificationNumberForClearinghousesAnd);
        ClaimSubmittedCharges = new AmtCollection(this, nameof(ClaimSubmittedCharges));
        SegmentCollections.Add(ClaimSubmittedCharges);
        ClaimServiceDate = new DtpCollection(this, nameof(ClaimServiceDate));
        SegmentCollections.Add(ClaimServiceDate);

        ServiceLineInformationLoop = new Loop2210ECollection("Loop2210E", nameof(ServiceLineInformationLoop), OwningDoc, parent, parent);
        ChildLoopCollections.Add(ServiceLineInformationLoop);
    }
 public Loop2210D(X12Doc owningDoc, LoopEntity prev, LoopCollection parent) : base(owningDoc, prev, parent)
 {
     ServiceLineInformation = new SvcCollection(this, nameof(ServiceLineInformation));
     SegmentCollections.Add(ServiceLineInformation);
     ServiceLineItemIdentification = new RefCollection(this, nameof(ServiceLineItemIdentification));
     SegmentCollections.Add(ServiceLineItemIdentification);
     ServiceLineDate = new DtpCollection(this, nameof(ServiceLineDate));
     SegmentCollections.Add(ServiceLineDate);
 }
Exemple #7
0
        static void Main(string[] args)
        {
            StrucCollection <int>    intCollection    = new StrucCollection <int>();
            StrucCollection <string> stringCollection = new StrucCollection <string>();

            RefCollection <int>    intCollection1    = new RefCollection <int>();
            RefCollection <string> stringCollection1 = new RefCollection <string>();

            Console.ReadKey();
        }
Exemple #8
0
 public Loop2220D(LoopCollectionBase parent) : base(parent)
 {
     ServiceLineInformation = new SvcCollection(this, nameof(ServiceLineInformation));
     SegmentCollections.Add(ServiceLineInformation);
     ServiceLineStatusInformation = new StcCollection(this, nameof(ServiceLineStatusInformation));
     SegmentCollections.Add(ServiceLineStatusInformation);
     ServiceLineItemIdentification = new RefCollection(this, nameof(ServiceLineItemIdentification));
     SegmentCollections.Add(ServiceLineItemIdentification);
     ServiceLineDate = new DtpCollection(this, nameof(ServiceLineDate));
     SegmentCollections.Add(ServiceLineDate);
 }
Exemple #9
0
public Loop2220E(X12Doc owningDoc, LoopEntity prev, LoopCollection parent):base(owningDoc, prev, parent){
ServiceLineInformation = new SvcCollection(this, nameof(ServiceLineInformation));
SegmentCollections.Add(ServiceLineInformation);
ServiceLineStatusInformation = new StcCollection(this, nameof(ServiceLineStatusInformation));
SegmentCollections.Add(ServiceLineStatusInformation);
ServiceLineItemIdentification = new RefCollection(this, nameof(ServiceLineItemIdentification));
SegmentCollections.Add(ServiceLineItemIdentification);
ServiceLineDate = new DtpCollection(this, nameof(ServiceLineDate));
SegmentCollections.Add(ServiceLineDate);
TransactionSetTrailer = new SeCollection(this, nameof(TransactionSetTrailer));
SegmentCollections.Add(TransactionSetTrailer);
 
}
Exemple #10
0
        /// <summary>
        /// Gets called from the Tags property getter for lazy loading
        /// </summary>
        private void LoadTags()
        {
            string[] tags = Directory.GetFiles(Path.Combine(GitDir.FullName, @"refs\tags"));

            _tags = new RefCollection<Tag>(tags.Length);
            try
            {
                if (_packedRefs == null)
                    LoadPackedRefs();

                foreach (string file in tags)
                {
                    string sha = File.ReadAllText(file).Trim();

                    _tags.Add(Tag.Load(this, sha, Path.Combine(@"refs\tags", Path.GetFileName(file))));
                }

                string[] paths = _packedRefs.Keys.Where(path => path.StartsWith("refs/tags")).ToArray();
                foreach (string path in paths)
                {
                    _tags.Add(Tag.Load(this, _packedRefs[path], path));
                }

            }
            catch (Exception)
            {
                // Reset _tags field, otherwise the object would be in an invalid state
                _tags = null;

                throw;
            }
        }
Exemple #11
0
        /// <summary>
        /// Gets called from the Branches property getter for lazy loading
        /// </summary>
        private void LoadBranches()
        {
            string[] branches = Directory.GetFiles(Path.Combine(GitDir.FullName, @"refs\heads"));

            _branches = new RefCollection<Branch>(branches.Length);

            try
            {
                if (_packedRefs == null)
                    LoadPackedRefs();

                foreach (string file in branches)
                {
                    string sha = File.ReadAllText(file).Trim();

                    _branches.Add(new Branch(this, Path.Combine(@"refs\heads", Path.GetFileName(file)), sha));
                }

                string[] paths = _packedRefs.Keys.Where(path => path.StartsWith("refs/heads")).ToArray();
                foreach (string path in paths)
                {
                    _branches.Add(new Branch(this, path, _packedRefs[path]));
                }
            }
            catch (Exception)
            {
                // Reset _branches field, otherwise the object would be in an invalid state
                _branches = null;

                throw;
            }
        }