/// <inheritdoc/> public string ToDelimitedString() { CultureInfo culture = CultureInfo.CurrentCulture; return(string.Format( culture, StringHelper.StringFormatSequence(0, 28, Configuration.FieldSeparator), Id, PlacerAppointmentId?.ToDelimitedString(), FillerAppointmentId?.ToDelimitedString(), OccurrenceNumber.HasValue ? OccurrenceNumber.Value.ToString(Consts.NumericFormat, culture) : null, PlacerGroupNumber?.ToDelimitedString(), ScheduleId?.ToDelimitedString(), EventReason?.ToDelimitedString(), AppointmentReason?.ToDelimitedString(), AppointmentType?.ToDelimitedString(), AppointmentDuration.HasValue ? AppointmentDuration.Value.ToString(Consts.NumericFormat, culture) : null, AppointmentDurationUnits?.ToDelimitedString(), AppointmentTimingQuantity, PlacerContactPerson != null ? string.Join(Configuration.FieldRepeatSeparator, PlacerContactPerson.Select(x => x.ToDelimitedString())) : null, PlacerContactPhoneNumber?.ToDelimitedString(), PlacerContactAddress != null ? string.Join(Configuration.FieldRepeatSeparator, PlacerContactAddress.Select(x => x.ToDelimitedString())) : null, PlacerContactLocation?.ToDelimitedString(), FillerContactPerson != null ? string.Join(Configuration.FieldRepeatSeparator, FillerContactPerson.Select(x => x.ToDelimitedString())) : null, FillerContactPhoneNumber?.ToDelimitedString(), FillerContactAddress != null ? string.Join(Configuration.FieldRepeatSeparator, FillerContactAddress.Select(x => x.ToDelimitedString())) : null, FillerContactLocation?.ToDelimitedString(), EnteredByPerson != null ? string.Join(Configuration.FieldRepeatSeparator, EnteredByPerson.Select(x => x.ToDelimitedString())) : null, EnteredByPhoneNumber != null ? string.Join(Configuration.FieldRepeatSeparator, EnteredByPhoneNumber.Select(x => x.ToDelimitedString())) : null, EnteredByLocation?.ToDelimitedString(), ParentPlacerAppointmentId?.ToDelimitedString(), ParentFillerAppointmentId?.ToDelimitedString(), FillerStatusCode?.ToDelimitedString(), PlacerOrderNumber != null ? string.Join(Configuration.FieldRepeatSeparator, PlacerOrderNumber.Select(x => x.ToDelimitedString())) : null, FillerOrderNumber != null ? string.Join(Configuration.FieldRepeatSeparator, FillerOrderNumber.Select(x => x.ToDelimitedString())) : null ).TrimEnd(Configuration.FieldSeparator.ToCharArray())); }
/// <inheritdoc/> public string ToDelimitedString() { CultureInfo culture = CultureInfo.CurrentCulture; return(string.Format( culture, StringHelper.StringFormatSequence(0, 24, Configuration.FieldSeparator), Id, PlacerAppointmentId?.ToDelimitedString(), FillerAppointmentId?.ToDelimitedString(), OccurrenceNumber.HasValue ? OccurrenceNumber.Value.ToString(Consts.NumericFormat, culture) : null, PlacerGroupNumber?.ToDelimitedString(), ScheduleId?.ToDelimitedString(), RequestEventReason?.ToDelimitedString(), AppointmentReason?.ToDelimitedString(), AppointmentType?.ToDelimitedString(), AppointmentDuration.HasValue ? AppointmentDuration.Value.ToString(Consts.NumericFormat, culture) : null, AppointmentDurationUnits?.ToDelimitedString(), RequestedStartDateTimeRange != null ? string.Join(Configuration.FieldRepeatSeparator, RequestedStartDateTimeRange.Select(x => x.ToDelimitedString())) : null, PriorityArq, RepeatingInterval?.ToDelimitedString(), RepeatingIntervalDuration, PlacerContactPerson?.ToDelimitedString(), PlacerContactPhoneNumber != null ? string.Join(Configuration.FieldRepeatSeparator, PlacerContactPhoneNumber.Select(x => x.ToDelimitedString())) : null, PlacerContactAddress?.ToDelimitedString(), PlacerContactLocation?.ToDelimitedString(), EnteredByPerson?.ToDelimitedString(), EnteredByPhoneNumber != null ? string.Join(Configuration.FieldRepeatSeparator, EnteredByPhoneNumber.Select(x => x.ToDelimitedString())) : null, EnteredByLocation?.ToDelimitedString(), ParentPlacerAppointmentId?.ToDelimitedString(), ParentFillerAppointmentId?.ToDelimitedString() ).TrimEnd(Configuration.FieldSeparator.ToCharArray())); }