/// <inheritdoc/> public string ToDelimitedString() { CultureInfo culture = CultureInfo.CurrentCulture; return(string.Format( culture, StringHelper.StringFormatSequence(0, 11, Configuration.FieldSeparator), Id, AuthorizingPayorPlanId?.ToDelimitedString(), AuthorizingPayorCompanyId?.ToDelimitedString(), AuthorizingPayorCompanyName, AuthorizationEffectiveDate.HasValue ? AuthorizationEffectiveDate.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null, AuthorizationExpirationDate.HasValue ? AuthorizationExpirationDate.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null, AuthorizationIdentifier?.ToDelimitedString(), ReimbursementLimit?.ToDelimitedString(), RequestedNumberOfTreatments.HasValue ? RequestedNumberOfTreatments.Value.ToString(Consts.NumericFormat) : null, AuthorizedNumberOfTreatments.HasValue ? AuthorizedNumberOfTreatments.Value.ToString(Consts.NumericFormat) : null, ProcessDate.HasValue ? ProcessDate.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null ).TrimEnd(Configuration.FieldSeparator.ToCharArray())); }
/// <inheritdoc/> public string ToDelimitedString() { CultureInfo culture = CultureInfo.CurrentCulture; return(string.Format( culture, StringHelper.StringFormatSequence(0, 30, Configuration.FieldSeparator), Id, AuthorizingPayorPlanId?.ToDelimitedString(), AuthorizingPayorCompanyId?.ToDelimitedString(), AuthorizingPayorCompanyName, AuthorizationEffectiveDate.HasValue ? AuthorizationEffectiveDate.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null, AuthorizationExpirationDate.HasValue ? AuthorizationExpirationDate.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null, AuthorizationIdentifier?.ToDelimitedString(), ReimbursementLimit?.ToDelimitedString(), RequestedNumberOfTreatments?.ToDelimitedString(), AuthorizedNumberOfTreatments?.ToDelimitedString(), ProcessDate.HasValue ? ProcessDate.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null, RequestedDisciplines != null ? string.Join(Configuration.FieldRepeatSeparator, RequestedDisciplines.Select(x => x.ToDelimitedString())) : null, AuthorizedDisciplines != null ? string.Join(Configuration.FieldRepeatSeparator, AuthorizedDisciplines.Select(x => x.ToDelimitedString())) : null, AuthorizationReferralType?.ToDelimitedString(), ApprovalStatus?.ToDelimitedString(), PlannedTreatmentStopDate.HasValue ? PlannedTreatmentStopDate.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null, ClinicalService?.ToDelimitedString(), ReasonText, NumberOfAuthorizedTreatmentsUnits?.ToDelimitedString(), NumberOfUsedTreatmentsUnits?.ToDelimitedString(), NumberOfScheduleTreatmentsUnits?.ToDelimitedString(), EncounterType?.ToDelimitedString(), RemainingBenefitAmount?.ToDelimitedString(), AuthorizedProvider?.ToDelimitedString(), AuthorizedHealthProfessional?.ToDelimitedString(), SourceText, SourceDate.HasValue ? SourceDate.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null, SourcePhone?.ToDelimitedString(), Comment, ActionCode ).TrimEnd(Configuration.FieldSeparator.ToCharArray())); }