Exemplo n.º 1
0
        // is this called only because the datatype specific methods are not implemented?
        // probably performance to be gained by not passing object back?
        public object GetValue(int i)
        {
            switch (i)
            {
            case 0:
                return(_offset.GetId(_enumerator.Current.PersonId, _enumerator.Current.Id));

            case 1:
                return(_enumerator.Current.PersonId);

            case 2:
                return(_enumerator.Current.ConceptId);

            case 3:
                return(_enumerator.Current.StartDate);

            case 4:
                return(_enumerator.Current.EndDate);

            case 5:
                return(_enumerator.Current.TypeConceptId);

            case 6:
                return(_enumerator.Current.StopReason);

            case 7:
                return(_enumerator.Current.ProviderId == 0 ? null : _enumerator.Current.ProviderId);

            case 8:
            {
                if (_enumerator.Current.VisitOccurrenceId.HasValue)
                {
                    if (_offset.GetKeyOffset(_enumerator.Current.PersonId).VisitOccurrenceIdChanged)
                    {
                        return(_offset.GetId(_enumerator.Current.PersonId,
                                             _enumerator.Current.VisitOccurrenceId.Value));
                    }

                    return(_enumerator.Current.VisitOccurrenceId.Value);
                }

                return(null);
            }

            case 9:
                return(_enumerator.Current.StatusConceptId);

            case 10:
                return(_enumerator.Current.SourceValue);

            case 11:
                return(_enumerator.Current.SourceConceptId);

            case 12:
                return(_enumerator.Current.StatusSourceValue);

            default:
                throw new NotImplementedException();
            }
        }
Exemplo n.º 2
0
        public object GetValue(int i)
        {
            if (_enumerator.Current == null)
            {
                return(null);
            }

            switch (i)
            {
            case 0:

                return(_offset.GetId(_enumerator.Current.PersonId, _enumerator.Current.Id));

            case 1:

                return(_offset.GetId(_enumerator.Current.PersonId, _enumerator.Current.Id));

            case 2:
                return(_enumerator.Current.CurrencyConceptId);

            case 3:
                return(_enumerator.Current.PaidCopay.Round());

            case 4:
                return(_enumerator.Current.PaidCoinsurance.Round());

            case 5:
                return(_enumerator.Current.PaidTowardDeductible.Round());

            case 6:
                return(_enumerator.Current.PaidByPayer.Round());

            case 7:
                return(_enumerator.Current.PaidByCoordinationBenefits.Round());

            case 8:
                return(_enumerator.Current.TotalOutOfPocket.Round());

            case 9:
                return(_enumerator.Current.TotalPaid.Round());

            case 10:
                return(_enumerator.Current.IngredientCost.Round());

            case 11:
                return(_enumerator.Current.DispensingFee.Round());

            case 12:
                return(_enumerator.Current.AverageWholesalePrice.Round());

            case 13:
                return(_enumerator.Current.PayerPlanPeriodId.HasValue
                        ? _offset.GetId(_enumerator.Current.PersonId, _enumerator.Current.PayerPlanPeriodId.Value)
                        : _enumerator.Current.PayerPlanPeriodId);

            default:
                throw new NotImplementedException();
            }
        }
Exemplo n.º 3
0
        // is this called only because the datatype specific methods are not implemented?
        // probably performance to be gained by not passing object back?
        public object GetValue(int i)
        {
            switch (i)
            {
            case 0:
                return(_offset.GetId(_enumerator.Current.PersonId, _enumerator.Current.Id));

            case 1:
                return(_enumerator.Current.PersonId);

            case 2:
                return(_enumerator.Current.StartDate);

            case 3:
                return(_enumerator.Current.StartDate.TimeOfDay);

            case 4:
                return(_enumerator.Current.TypeConceptId);

            case 5:
                return(_enumerator.Current.Text);

            case 6:
                return(_enumerator.Current.ProviderId);

            case 7:
                if (_enumerator.Current.VisitOccurrenceId.HasValue)
                {
                    if (_offset.GetKeyOffset(_enumerator.Current.PersonId).VisitOccurrenceIdChanged)
                    {
                        return(_offset.GetId(_enumerator.Current.PersonId,
                                             _enumerator.Current.VisitOccurrenceId.Value));
                    }

                    return(_enumerator.Current.VisitOccurrenceId.Value);
                }

                return(null);

            case 8:
                return(_enumerator.Current.SourceValue);

            case 9:
                return(_enumerator.Current.ConceptId);

            case 10:
                return(_enumerator.Current.Title);

            case 11:
                return(_enumerator.Current.EncodingConceptId);

            case 12:
                return(_enumerator.Current.LanguageConceptId);

            default:
                throw new NotImplementedException();
            }
        }
Exemplo n.º 4
0
        public object GetValue(int i)
        {
            if (_enumerator.Current == null)
            {
                return(null);
            }

            switch (i)
            {
            case 0:
                return(KeyMasterOffsetManager.GetId(_enumerator.Current.PersonId, _enumerator.Current.Id));

            case 1:
                return(_enumerator.Current.PersonId);

            case 2:
                return(_enumerator.Current.ConceptId);

            case 3:
                return(_enumerator.Current.StartDate);

            case 4:
                return(_enumerator.Current.TypeConceptId);

            case 5:
                return(_enumerator.Current.ModifierConceptId);

            case 6:
                return(_enumerator.Current.Quantity);

            case 7:
                return(_enumerator.Current.ProviderId == 0 ? null : _enumerator.Current.ProviderId);

            case 8:
                if (_enumerator.Current.VisitOccurrenceId.HasValue)
                {
                    if (KeyMasterOffsetManager.GetKeyOffset(_enumerator.Current.PersonId).VisitOccurrenceIdChanged)
                    {
                        return(KeyMasterOffsetManager.GetId(_enumerator.Current.PersonId,
                                                            _enumerator.Current.VisitOccurrenceId.Value));
                    }

                    return(_enumerator.Current.VisitOccurrenceId.Value);
                }

                return(null);

            case 9:
                return(_enumerator.Current.SourceValue);

            case 10:
                return(_enumerator.Current.SourceConceptId);

            case 11:
                return(_enumerator.Current.QualifierSourceValue);

            default:
                throw new NotImplementedException();
            }
        }
Exemplo n.º 5
0
        // is this called only because the datatype specific methods are not implemented?
        // probably performance to be gained by not passing object back?
        public object GetValue(int i)
        {
            switch (i)
            {
            case 0:
                return(_offset.GetId(_conditionEnumerator.Current.PersonId, _conditionEnumerator.Current.Id));

            case 1:
                return(_conditionEnumerator.Current.PersonId);

            case 2:
                return(_conditionEnumerator.Current.ConceptId);

            case 3:
                return(_conditionEnumerator.Current.StartDate);

            case 4:
                return(_conditionEnumerator.Current.EndDate);

            case 5:
                return(_conditionEnumerator.Current.OccurrenceCount);

            default:
                throw new NotImplementedException();
            }
        }
Exemplo n.º 6
0
        public object GetValue(int i)
        {
            if (_enumerator.Current == null)
            {
                return(null);
            }

            switch (i)
            {
            case 0:
                return(_offset.GetId(_enumerator.Current.PersonId, _enumerator.Current.Id));

            case 1:
                return(_enumerator.Current.PersonId);

            case 2:
                return(_enumerator.Current.ConceptId);

            case 3:
                return(_enumerator.Current.StartDate);

            case 4:
                return(_enumerator.Current.EndDate);

            case 5:
                return(_enumerator.Current.OccurrenceCount);

            case 6:
                return(_enumerator.Current.GapDays);

            default:
                throw new NotImplementedException();
            }
        }
        // is this called only because the datatype specific methods are not implemented?
        // probably performance to be gained by not passing object back?
        public object GetValue(int i)
        {
            switch (i)
            {
            case 0:
                return(KeyMasterOffsetManager.GetId(_enumerator.Current.PersonId, _enumerator.Current.Id));

            case 1:
                return(_enumerator.Current.PersonId);

            case 2:
                return(_enumerator.Current.StartDate);

            case 3:
                return(_enumerator.Current.StartTime ??
                       _enumerator.Current.StartDate.ToString("HH:mm:ss", CultureInfo.InvariantCulture));

            case 4:
                return(_enumerator.Current.EndDate);

            case 5:
                return(_enumerator.Current.EndTime ??
                       _enumerator.Current.EndDate.Value.ToString("HH:mm:ss", CultureInfo.InvariantCulture));

            case 6:
                return(_enumerator.Current.TypeConceptId);

            default:
                throw new NotImplementedException();
            }
        }
        public object GetValue(int i)
        {
            if (_enumerator.Current == null)
            {
                return(null);
            }

            switch (i)
            {
            case 0:
                return(KeyMasterOffsetManager.GetId(_enumerator.Current.PersonId, _enumerator.Current.Id));

            case 1:
                return(_enumerator.Current.PersonId);

            case 2:
                return(_enumerator.Current.StartDate);

            case 3:
                return(_enumerator.Current.EndDate);

            case 4:
                return(_enumerator.Current.PayerSourceValue);

            case 5:
                return(_enumerator.Current.PlanSourceValue);

            case 6:
                return(_enumerator.Current.FamilySourceValue);

            default:
                throw new NotImplementedException();
            }
        }
        // is this called only because the datatype specific methods are not implemented?
        // probably performance to be gained by not passing object back?
        public object GetValue(int i)
        {
            switch (i)
            {
            case 0:
                return(_offset.GetId(_enumerator.Current.PersonId, _enumerator.Current.Id));

            case 1:
                return(_enumerator.Current.PersonId);

            case 2:
                return(_enumerator.Current.StartDate);

            case 3:
                return(_enumerator.Current.StartDate.TimeOfDay);

            case 4:
                return(_enumerator.Current.EndDate);

            case 5:
                return(_enumerator.Current.EndDate?.TimeOfDay);

            case 6:
                return(_enumerator.Current.TypeConceptId);

            default:
                throw new NotImplementedException();
            }
        }
Exemplo n.º 10
0
        public object GetValue(int i)
        {
            if (_enumerator.Current == null)
            {
                return(null);
            }

            switch (i)
            {
            case 0:
                return(KeyMasterOffsetManager.GetId(_enumerator.Current.PersonId, _enumerator.Current.ProcedureCostId));

            case 1:
                return(KeyMasterOffsetManager.GetId(_enumerator.Current.PersonId, _enumerator.Current.Id));

            case 2:
                return(_enumerator.Current.CurrencyConceptId);

            case 3:
                return(_enumerator.Current.PaidCopay.Round());

            case 4:
                return(_enumerator.Current.PaidCoinsurance.Round());

            case 5:
                return(_enumerator.Current.PaidTowardDeductible.Round());

            case 6:
                return(_enumerator.Current.PaidByPayer.Round());

            case 7:
                return(_enumerator.Current.PaidByCoordinationBenefits.Round());

            case 8:
                return(_enumerator.Current.TotalOutOfPocket.Round());

            case 9:
                return(_enumerator.Current.TotalPaid.Round());

            case 10:
                return(_enumerator.Current.RevenueCodeConceptId);

            case 11:
                return(_enumerator.Current.PayerPlanPeriodId.HasValue
                        ? KeyMasterOffsetManager.GetId(_enumerator.Current.PersonId,
                                                       _enumerator.Current.PayerPlanPeriodId.Value)
                        : _enumerator.Current.PayerPlanPeriodId);

            case 12:
                return(_enumerator.Current.RevenueCodeSourceValue);

            default:
                throw new NotImplementedException();
            }
        }
Exemplo n.º 11
0
        // is this called only because the datatype specific methods are not implemented?
        // probably performance to be gained by not passing object back?
        public object GetValue(int i)
        {
            switch (i)
            {
            case 0:
            {
                return(KeyMasterOffsetManager.GetKeyOffset(_visitEnumerator.Current.PersonId)
                       .VisitOccurrenceIdChanged
                       ? KeyMasterOffsetManager.GetId(_visitEnumerator.Current.PersonId, _visitEnumerator.Current.Id)
                       : _visitEnumerator.Current.Id);
            }

            case 1:
                return(_visitEnumerator.Current.PersonId);

            case 2:
                return(_visitEnumerator.Current.ConceptId);

            case 3:
                return(_visitEnumerator.Current.StartDate);

            case 4:
                return(_visitEnumerator.Current.StartTime);

            case 5:
                return(_visitEnumerator.Current.EndDate);

            case 6:
                return(_visitEnumerator.Current.EndTime);

            case 7:
                return(_visitEnumerator.Current.TypeConceptId);

            case 8:
                return(_visitEnumerator.Current.ProviderId == 0 ? null : _visitEnumerator.Current.ProviderId);

            case 9:
                return(_visitEnumerator.Current.CareSiteId == 0 ? null : _visitEnumerator.Current.CareSiteId);

            case 10:
                return(_visitEnumerator.Current.SourceValue);

            case 11:
                return(_visitEnumerator.Current.SourceConceptId);

            default:
                throw new NotImplementedException();
            }
        }
        // is this called only because the datatype specific methods are not implemented?
        // probably performance to be gained by not passing object back?
        public object GetValue(int i)
        {
            switch (i)
            {
            case 0:
                return(KeyMasterOffsetManager.GetId(_enumerator.Current.PersonId, _enumerator.Current.Id));

            case 1:
                return(_enumerator.Current.PersonId);

            case 2:
                return(_enumerator.Current.StartDate);

            case 3:
                return(_enumerator.Current.EndDate);

            case 4:
                return(_enumerator.Current.TypeConceptId);

            default:
                throw new NotImplementedException();
            }
        }
Exemplo n.º 13
0
        public object GetValue(int i)
        {
            if (_enumerator.Current == null)
            {
                return(null);
            }

            switch (i)
            {
            case 0:

                return(_offset.GetId(_enumerator.Current.PersonId,
                                     _enumerator.Current.CostId)); //TODO VisitCostOffset -> CostOffset

            case 1:

                if (_enumerator.Current.Domain == "Visit" && !_offset
                    .GetKeyOffset(_enumerator.Current.PersonId).VisitOccurrenceIdChanged)
                {
                    return(_enumerator.Current.EventId);
                }

                return(_offset.GetId(_enumerator.Current.PersonId, _enumerator.Current.EventId));

            case 2:
                return(_enumerator.Current.Domain);

            case 3:
                return(_enumerator.Current.TypeId);

            case 4:
                return(_enumerator.Current.CurrencyConceptId);

            case 5:
                return(_enumerator.Current.TotalCharge.Round());

            case 6:
                return(_enumerator.Current.TotalCost.Round());

            case 7:
                return(_enumerator.Current.TotalPaid.Round());

            case 8:
                return(_enumerator.Current.PaidByPayer.Round());

            case 9:
                return(_enumerator.Current.PaidByPatient.Round());

            case 10:
                return(_enumerator.Current.PaidPatientCopay.Round());

            case 11:
                return(_enumerator.Current.PaidPatientCoinsurance.Round());

            case 12:
                return(_enumerator.Current.PaidPatientDeductible.Round());

            case 13:
                return(_enumerator.Current.PaidByPrimary.Round());

            case 14:
                return(_enumerator.Current.PaidIngredientCost.Round());

            case 15:
                return(_enumerator.Current.PaidDispensingFee.Round());

            case 16:
                return(_enumerator.Current.PayerPlanPeriodId.HasValue
                        ? _offset.GetId(_enumerator.Current.PersonId,
                                        _enumerator.Current.PayerPlanPeriodId.Value)
                        : _enumerator.Current.PayerPlanPeriodId);

            case 17:
                return(_enumerator.Current.AmountAllowed.Round());

            case 18:
                return(_enumerator.Current.RevenueCodeConceptId);

            case 19:
                return(_enumerator.Current.RevenueCodeSourceValue);

            case 20:
                return(_enumerator.Current.DrgConceptId);

            case 21:
                return(_enumerator.Current.DrgSourceValue);


            default:
                throw new NotImplementedException();
            }
        }
Exemplo n.º 14
0
        // is this called only because the datatype specific methods are not implemented?
        // probably performance to be gained by not passing object back?
        public object GetValue(int i)
        {
            switch (i)
            {
            case 0:
            {
                return(_offset.GetKeyOffset(_enumerator.Current.PersonId).VisitOccurrenceIdChanged
                            ? _offset.GetId(_enumerator.Current.PersonId, _enumerator.Current.Id)
                            : _enumerator.Current.Id);
            }

            case 1:
                return(_enumerator.Current.PersonId);

            case 2:
                return(_enumerator.Current.ConceptId);

            case 3:
                return(_enumerator.Current.StartDate);

            case 4:
                return(_enumerator.Current.StartDate);

            case 5:
                return(_enumerator.Current.EndDate);

            case 6:
                return(_enumerator.Current.EndDate);

            case 7:
                return(_enumerator.Current.TypeConceptId);

            case 8:
                return(_enumerator.Current.ProviderId == 0 ? null : _enumerator.Current.ProviderId);

            case 9:
                return(_enumerator.Current.CareSiteId == 0 ? null : _enumerator.Current.CareSiteId);

            case 10:
                return(_enumerator.Current.SourceValue);

            case 11:
                return(_enumerator.Current.SourceConceptId);

            case 12:
                return(_enumerator.Current.AdmittingSourceConceptId);

            case 13:
                return(_enumerator.Current.AdmittingSourceValue);

            case 14:
                return(_enumerator.Current.DischargeToConceptId);

            case 15:
                return(_enumerator.Current.DischargeToSourceValue);

            case 16:
                if (_enumerator.Current.PrecedingVisitOccurrenceId.HasValue)
                {
                    if (_offset.GetKeyOffset(_enumerator.Current.PersonId).VisitOccurrenceIdChanged)
                    {
                        return(_offset.GetId(_enumerator.Current.PersonId,
                                             _enumerator.Current.PrecedingVisitOccurrenceId.Value));
                    }

                    return(_enumerator.Current.PrecedingVisitOccurrenceId);
                }

                return(_enumerator.Current.PrecedingVisitOccurrenceId);

            default:
                throw new NotImplementedException();
            }
        }
Exemplo n.º 15
0
        public object GetValue(int i)
        {
            if (_enumerator.Current == null)
            {
                return(null);
            }

            switch (i)
            {
            case 0:

                return(_offset.GetId(_enumerator.Current.PersonId,
                                     _enumerator.Current.CostId)); //TODO VisitCostOffset -> CostOffset

            case 1:
                return(_enumerator.Current.PersonId);

            case 2:
                if (_enumerator.Current.Domain == "Visit" && !_offset
                    .GetKeyOffset(_enumerator.Current.PersonId).VisitOccurrenceIdChanged)
                {
                    return(_enumerator.Current.EventId);
                }

                return(_offset.GetId(_enumerator.Current.PersonId, _enumerator.Current.EventId));

            case 3:
                return(_enumerator.Current.EventFieldConceptId);

            case 4:
                return(_enumerator.Current.CostConceptId);

            case 5:
                return(_enumerator.Current.TypeId);

            case 6:
                return(_enumerator.Current.CurrencyConceptId);

            case 7:
                return(_enumerator.Current.CostValue.Round());

            case 8:
                return(_enumerator.Current.IncurredDate);

            case 9:
                return(_enumerator.Current.BilledDate);

            case 10:
                return(_enumerator.Current.PaidDate);

            case 11:
                return(_enumerator.Current.RevenueCodeConceptId);

            case 12:
                return(_enumerator.Current.DrgConceptId);

            case 13:
                return(_enumerator.Current.SourceValue);

            case 14:
                return(_enumerator.Current.SourceConceptId);

            case 15:
                return(_enumerator.Current.RevenueCodeSourceValue);

            case 16:
                return(_enumerator.Current.DrgSourceValue);

            case 17:
                return(_enumerator.Current.PayerPlanPeriodId.HasValue
                        ? _offset.GetId(_enumerator.Current.PersonId,
                                        _enumerator.Current.PayerPlanPeriodId.Value)
                        : _enumerator.Current.PayerPlanPeriodId);

            default:
                throw new NotImplementedException();
            }
        }
        public object GetValue(int i)
        {
            if (_enumerator.Current == null)
            {
                return(null);
            }

            switch (i)
            {
            case 0:
                return(KeyMasterOffsetManager.GetId(_enumerator.Current.PersonId, _enumerator.Current.Id));

            case 1:
                return(_enumerator.Current.PersonId);

            case 2:
                return(_enumerator.Current.ConceptId);

            case 3:
                return(_enumerator.Current.StartDate);

            case 4:
                return(_enumerator.Current.EndDate);

            case 5:
                return(_enumerator.Current.TypeConceptId);

            case 6:
                return(_enumerator.Current.StopReason);

            case 7:
                return(_enumerator.Current.Refills);

            case 8:
                return(_enumerator.Current.Quantity);

            case 9:
                return(_enumerator.Current.DaysSupply);

            case 10:
                return(_enumerator.Current.Sig);

            case 11:
                return(_enumerator.Current.RouteConceptId);

            case 12:
                return(_enumerator.Current.EffectiveDrugDose);

            case 13:
                return(_enumerator.Current.DoseUnitConceptId);

            case 14:
                return(_enumerator.Current.LotNumber);

            case 15:
                return(_enumerator.Current.ProviderId == 0 ? null : _enumerator.Current.ProviderId);

            case 16:
                if (_enumerator.Current.VisitOccurrenceId.HasValue)
                {
                    if (KeyMasterOffsetManager.GetKeyOffset(_enumerator.Current.PersonId).VisitOccurrenceIdChanged)
                    {
                        return(KeyMasterOffsetManager.GetId(_enumerator.Current.PersonId,
                                                            _enumerator.Current.VisitOccurrenceId.Value));
                    }

                    return(_enumerator.Current.VisitOccurrenceId.Value);
                }

                return(null);

            case 17:
                return(_enumerator.Current.SourceValue);

            case 18:
                return(_enumerator.Current.SourceConceptId);

            case 19:
                return(_enumerator.Current.RouteSourceValue);

            case 20:
                return(_enumerator.Current.DoseUnitSourceValue);

            default:
                throw new NotImplementedException();
            }
        }
Exemplo n.º 17
0
        // is this called only because the datatype specific methods are not implemented?
        // probably performance to be gained by not passing object back?
        public object GetValue(int i)
        {
            switch (i)
            {
            case 0:
                return(_offset.GetId(_enumerator.Current.PersonId, _enumerator.Current.Id));

            case 1:
                return(_enumerator.Current.PersonId);

            case 2:
                return(_enumerator.Current.ConceptId);

            case 3:
                return(_enumerator.Current.StartDate);

            case 4:
                return(_enumerator.Current.Time);

            case 5:
                return(_enumerator.Current.TypeConceptId);

            case 6:
                return(_enumerator.Current.OperatorConceptId);

            case 7:
                return(_enumerator.Current.ValueAsNumber);

            case 8:
                return(_enumerator.Current.ValueAsConceptId);

            case 9:
                return(_enumerator.Current.UnitConceptId);

            case 10:
                return(_enumerator.Current.RangeLow);

            case 11:
                return(_enumerator.Current.RangeHigh);

            case 12:
                return(_enumerator.Current.ProviderId == 0 ? null : _enumerator.Current.ProviderId);

            case 13:
                if (_enumerator.Current.VisitOccurrenceId.HasValue)
                {
                    if (_offset.GetKeyOffset(_enumerator.Current.PersonId).VisitOccurrenceIdChanged)
                    {
                        return(_offset.GetId(_enumerator.Current.PersonId,
                                             _enumerator.Current.VisitOccurrenceId.Value));
                    }

                    return(_enumerator.Current.VisitOccurrenceId.Value);
                }

                return(null);

            case 14:
                return(_enumerator.Current.SourceValue);

            case 15:
                return(_enumerator.Current.SourceConceptId);

            case 16:
                return(_enumerator.Current.UnitSourceValue);

            case 17:
                return(_enumerator.Current.ValueSourceValue);

            default:
                throw new NotImplementedException();
            }
        }
Exemplo n.º 18
0
        // is this called only because the datatype specific methods are not implemented?
        // probably performance to be gained by not passing object back?
        public object GetValue(int i)
        {
            switch (i)
            {
            case 0:
                return(_offset.GetId(_enumerator.Current.PersonId, _enumerator.Current.Id));

            case 1:
                return(_enumerator.Current.PersonId);

            case 2:
                return(_enumerator.Current.ConceptId);

            case 3:
                return(_enumerator.Current.StartDate);

            case 4:
                return(_enumerator.Current.StartDate.TimeOfDay);

            case 5:
                return(_enumerator.Current.TypeConceptId);

            case 6:
                return(_enumerator.Current.ValueAsNumber);

            case 7:
                return(_enumerator.Current.ValueAsString);

            case 8:
                return(_enumerator.Current.ValueAsConceptId);

            case 9:
                return(_enumerator.Current.QualifierConceptId);

            case 10:
                return(_enumerator.Current.UnitsConceptId);

            case 11:
                return(_enumerator.Current.ProviderId == 0 ? null : _enumerator.Current.ProviderId);

            case 12:
                if (_enumerator.Current.VisitOccurrenceId.HasValue)
                {
                    if (_offset.GetKeyOffset(_enumerator.Current.PersonId).VisitOccurrenceIdChanged)
                    {
                        return(_offset.GetId(_enumerator.Current.PersonId,
                                             _enumerator.Current.VisitOccurrenceId.Value));
                    }

                    return(_enumerator.Current.VisitOccurrenceId.Value);
                }

                return(null);

            case 13:
                if (_enumerator.Current.VisitDetailId.HasValue)
                {
                    if (_offset.GetKeyOffset(_enumerator.Current.PersonId).VisitDetailIdChanged)
                    {
                        return(_offset.GetId(_enumerator.Current.PersonId,
                                             _enumerator.Current.VisitDetailId.Value));
                    }

                    return(_enumerator.Current.VisitDetailId);
                }

                return(null);

            case 14:
                return(_enumerator.Current.SourceValue);

            case 15:
                return(_enumerator.Current.SourceConceptId);

            case 16:
                return(_enumerator.Current.UnitsSourceValue);

            case 17:
                return(_enumerator.Current.QualifierSourceValue);

            case 18:
                return(_enumerator.Current.EventId);

            case 19:
                return(_enumerator.Current.EventFieldConceptId);

            case 20:
                return(_enumerator.Current.ValueAsDatetime);

            default:
                throw new NotImplementedException();
            }
        }
        // is this called only because the datatype specific methods are not implemented?
        // probably performance to be gained by not passing object back?
        public object GetValue(int i)
        {
            switch (i)
            {
            case 0:
                return(KeyMasterOffsetManager.GetId(_enumerator.Current.PersonId, _enumerator.Current.Id));

            case 1:
                return(_enumerator.Current.PersonId);

            case 2:
                return(_enumerator.Current.ConceptId);

            case 3:
                return(_enumerator.Current.StartDate);

            case 4:
                return(_enumerator.Current.StartTime ??
                       _enumerator.Current.StartDate.ToString("HH:mm:ss", CultureInfo.InvariantCulture));

            case 5:
                return(_enumerator.Current.EndDate);

            case 6:
                return(_enumerator.Current.EndTime);

            case 7:
                return(_enumerator.Current.TypeConceptId);

            case 8:
                return(_enumerator.Current.UniqueDeviceId);

            case 9:
                return(_enumerator.Current.Quantity);

            case 10:
                return(_enumerator.Current.ProviderId == 0 ? null : _enumerator.Current.ProviderId);

            case 11:
                if (_enumerator.Current.VisitOccurrenceId.HasValue)
                {
                    if (KeyMasterOffsetManager.GetKeyOffset(_enumerator.Current.PersonId).VisitOccurrenceIdChanged)
                    {
                        return(KeyMasterOffsetManager.GetId(_enumerator.Current.PersonId,
                                                            _enumerator.Current.VisitOccurrenceId.Value));
                    }

                    return(_enumerator.Current.VisitOccurrenceId.Value);
                }

                return(null);

            case 12:
                if (_enumerator.Current.VisitDetailId.HasValue)
                {
                    if (KeyMasterOffsetManager.GetKeyOffset(_enumerator.Current.PersonId).VisitDetailIdChanged)
                    {
                        return(KeyMasterOffsetManager.GetId(_enumerator.Current.PersonId,
                                                            _enumerator.Current.VisitDetailId.Value));
                    }

                    return(_enumerator.Current.VisitDetailId);
                }

                return(null);

            case 13:
                return(_enumerator.Current.SourceValue);

            case 14:
                return(_enumerator.Current.SourceConceptId);

            default:
                throw new NotImplementedException();
            }
        }
Exemplo n.º 20
0
        public object GetValue(int i)
        {
            if (_enumerator.Current == null)
            {
                return(null);
            }

            switch (i)
            {
            case 0:
                return(_offset.GetId(_enumerator.Current.PersonId, _enumerator.Current.Id));

            case 1:
                return(_enumerator.Current.PersonId);

            case 2:
                return(_enumerator.Current.StartDate);

            case 3:
                return(_enumerator.Current.EndDate);

            case 4:
                return(_enumerator.Current.PayerConceptId);

            case 5:
                return(_enumerator.Current.PayerSourceValue);

            case 6:
                return(_enumerator.Current.PayerSourceConceptId);

            case 7:
                return(_enumerator.Current.PlanConceptId);

            case 8:
                return(_enumerator.Current.PlanSourceValue);

            case 9:
                return(_enumerator.Current.PlanSourceConceptId);

            case 10:
                return(_enumerator.Current.SponsorConceptId);

            case 11:
                return(_enumerator.Current.SponsorSourceValue);

            case 12:
                return(_enumerator.Current.SponsorSourceConceptId);

            case 13:
                return(_enumerator.Current.FamilySourceValue);

            case 14:
                return(_enumerator.Current.StopReasonConceptId);

            case 15:
                return(_enumerator.Current.StopReasonSourceValue);

            case 16:
                return(_enumerator.Current.StopReasonSourceConceptId);

            default:
                throw new NotImplementedException();
            }
        }