/// <inheritdoc/> public string ToDelimitedString() { CultureInfo culture = CultureInfo.CurrentCulture; return(string.Format( culture, StringHelper.StringFormatSequence(0, 48, Configuration.FieldSeparator), Id, SequenceNumberTestObservationMasterFile.HasValue ? SequenceNumberTestObservationMasterFile.Value.ToString(Consts.NumericFormat, culture) : null, ProducersServiceTestObservationId?.ToDelimitedString(), PermittedDataTypes != null ? string.Join(Configuration.FieldRepeatSeparator, PermittedDataTypes) : null, SpecimenRequired, ProducerId?.ToDelimitedString(), ObservationDescription?.ToDelimitedString(), OtherServiceTestObservationIdsForTheObservation?.ToDelimitedString(), OtherNames != null ? string.Join(Configuration.FieldRepeatSeparator, OtherNames) : null, PreferredReportNameForTheObservation, PreferredShortNameOrMnemonicForTheObservation, PreferredLongNameForTheObservation, Orderability, IdentityOfInstrumentUsedToPerformThisStudy != null ? string.Join(Configuration.FieldRepeatSeparator, IdentityOfInstrumentUsedToPerformThisStudy.Select(x => x.ToDelimitedString())) : null, CodedRepresentationOfMethod != null ? string.Join(Configuration.FieldRepeatSeparator, CodedRepresentationOfMethod.Select(x => x.ToDelimitedString())) : null, PortableDeviceIndicator, ObservationProducingDepartmentSection != null ? string.Join(Configuration.FieldRepeatSeparator, ObservationProducingDepartmentSection.Select(x => x.ToDelimitedString())) : null, TelephoneNumberOfSection?.ToDelimitedString(), NatureOfServiceTestObservation, ReportSubheader?.ToDelimitedString(), ReportDisplayOrder, DateTimeStampForAnyChangeInDefinitionForTheObservation.HasValue ? DateTimeStampForAnyChangeInDefinitionForTheObservation.Value.ToString(Consts.DateTimeFormatPrecisionSecond) : null, EffectiveDateTimeOfChange.HasValue ? EffectiveDateTimeOfChange.Value.ToString(Consts.DateTimeFormatPrecisionSecond) : null, TypicalTurnAroundTime.HasValue ? TypicalTurnAroundTime.Value.ToString(Consts.NumericFormat) : null, ProcessingTime.HasValue ? ProcessingTime.Value.ToString(Consts.NumericFormat) : null, ProcessingPriority != null ? string.Join(Configuration.FieldRepeatSeparator, ProcessingPriority) : null, ReportingPriority, OutsideSitesWhereObservationMayBePerformed != null ? string.Join(Configuration.FieldRepeatSeparator, OutsideSitesWhereObservationMayBePerformed.Select(x => x.ToDelimitedString())) : null, AddressOfOutsideSites != null ? string.Join(Configuration.FieldRepeatSeparator, AddressOfOutsideSites.Select(x => x.ToDelimitedString())) : null, PhoneNumberOfOutsideSite?.ToDelimitedString(), ConfidentialityCode?.ToDelimitedString(), ObservationsRequiredToInterpretThisObservation?.ToDelimitedString(), InterpretationOfObservations?.ToDelimitedString(), ContraindicationsToObservations?.ToDelimitedString(), ReflexTestsObservations != null ? string.Join(Configuration.FieldRepeatSeparator, ReflexTestsObservations.Select(x => x.ToDelimitedString())) : null, RulesThatTriggerReflexTesting?.ToDelimitedString(), FixedCannedMessage?.ToDelimitedString(), PatientPreparation?.ToDelimitedString(), ProcedureMedication?.ToDelimitedString(), FactorsThatMayAffectTheObservation?.ToDelimitedString(), ServiceTestObservationPerformanceSchedule != null ? string.Join(Configuration.FieldRepeatSeparator, ServiceTestObservationPerformanceSchedule) : null, DescriptionOfTestMethods?.ToDelimitedString(), KindOfQuantityObserved?.ToDelimitedString(), PointVersusInterval?.ToDelimitedString(), ChallengeInformation?.ToDelimitedString(), RelationshipModifier?.ToDelimitedString(), TargetAnatomicSiteOfTest?.ToDelimitedString(), ModalityOfImagingMeasurement?.ToDelimitedString() ).TrimEnd(Configuration.FieldSeparator.ToCharArray())); }
/// <inheritdoc/> public string ToDelimitedString() { CultureInfo culture = CultureInfo.CurrentCulture; return(string.Format( culture, StringHelper.StringFormatSequence(0, 6, Configuration.FieldSeparator), Id, SetIdMcp.HasValue ? SetIdMcp.Value.ToString(culture) : null, ProducersServiceTestObservationId?.ToDelimitedString(), UniversalServicePriceRangeLowValue?.ToDelimitedString(), UniversalServicePriceRangeHighValue?.ToDelimitedString(), ReasonForUniversalServiceCostRange ).TrimEnd(Configuration.FieldSeparator.ToCharArray())); }