Ejemplo n.º 1
0
        /// <inheritdoc/>
        public string ToDelimitedString()
        {
            CultureInfo culture = CultureInfo.CurrentCulture;

            return(string.Format(
                       culture,
                       StringHelper.StringFormatSequence(0, 34, Configuration.FieldSeparator),
                       Id,
                       DiagnosticRelatedGroup?.ToDelimitedString(),
                       DrgAssignedDateTime.HasValue ? DrgAssignedDateTime.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null,
                       DrgApprovalIndicator,
                       DrgGrouperReviewCode?.ToDelimitedString(),
                       OutlierType?.ToDelimitedString(),
                       OutlierDays.HasValue ? OutlierDays.Value.ToString(Consts.NumericFormat, culture) : null,
                       OutlierCost?.ToDelimitedString(),
                       DrgPayor?.ToDelimitedString(),
                       OutlierReimbursement?.ToDelimitedString(),
                       ConfidentialIndicator,
                       DrgTransferType?.ToDelimitedString(),
                       NameOfCoder?.ToDelimitedString(),
                       GrouperStatus?.ToDelimitedString(),
                       PcclValueCode?.ToDelimitedString(),
                       EffectiveWeight.HasValue ? EffectiveWeight.Value.ToString(Consts.NumericFormat, culture) : null,
                       MonetaryAmount?.ToDelimitedString(),
                       StatusPatient?.ToDelimitedString(),
                       GrouperSoftwareName,
                       GrouperSoftwareVersion,
                       StatusFinancialCalculation?.ToDelimitedString(),
                       RelativeDiscountSurcharge?.ToDelimitedString(),
                       BasicCharge?.ToDelimitedString(),
                       TotalCharge?.ToDelimitedString(),
                       DiscountSurcharge?.ToDelimitedString(),
                       CalculatedDays.HasValue ? CalculatedDays.Value.ToString(Consts.NumericFormat, culture) : null,
                       StatusGender?.ToDelimitedString(),
                       StatusAge?.ToDelimitedString(),
                       StatusLengthOfStay?.ToDelimitedString(),
                       StatusSameDayFlag?.ToDelimitedString(),
                       StatusSeparationMode?.ToDelimitedString(),
                       StatusWeightAtBirth?.ToDelimitedString(),
                       StatusRespirationMinutes?.ToDelimitedString(),
                       StatusAdmission?.ToDelimitedString()
                       ).TrimEnd(Configuration.FieldSeparator.ToCharArray()));
        }
Ejemplo n.º 2
0
        /// <inheritdoc/>
        public string ToDelimitedString()
        {
            CultureInfo culture = CultureInfo.CurrentCulture;

            return(string.Format(
                       culture,
                       StringHelper.StringFormatSequence(0, 27, Configuration.FieldSeparator),
                       Id,
                       SetIdDg1.HasValue ? SetIdDg1.Value.ToString(culture) : null,
                       DiagnosisCodingMethod,
                       DiagnosisCodeDg1?.ToDelimitedString(),
                       DiagnosisDescription,
                       DiagnosisDateTime.HasValue ? DiagnosisDateTime.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null,
                       DiagnosisType?.ToDelimitedString(),
                       MajorDiagnosticCategory?.ToDelimitedString(),
                       DiagnosticRelatedGroup?.ToDelimitedString(),
                       DrgApprovalIndicator,
                       DrgGrouperReviewCode?.ToDelimitedString(),
                       OutlierType?.ToDelimitedString(),
                       OutlierDays.HasValue ? OutlierDays.Value.ToString(Consts.NumericFormat, culture) : null,
                       OutlierCost?.ToDelimitedString(),
                       GrouperVersionAndType,
                       DiagnosisPriority.HasValue ? DiagnosisPriority.Value.ToString(Consts.NumericFormat, culture) : null,
                       DiagnosingClinician != null ? string.Join(Configuration.FieldRepeatSeparator, DiagnosingClinician.Select(x => x.ToDelimitedString())) : null,
                       DiagnosisClassification?.ToDelimitedString(),
                       ConfidentialIndicator,
                       AttestationDateTime.HasValue ? AttestationDateTime.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null,
                       DiagnosisIdentifier?.ToDelimitedString(),
                       DiagnosisActionCode,
                       ParentDiagnosis?.ToDelimitedString(),
                       DrgCclValueCode?.ToDelimitedString(),
                       DrgGroupingUsage,
                       DrgDiagnosisDeterminationStatus?.ToDelimitedString(),
                       PresentOnAdmissionPoaIndicator?.ToDelimitedString()
                       ).TrimEnd(Configuration.FieldSeparator.ToCharArray()));
        }