コード例 #1
0
        /// <inheritdoc/>
        public string ToDelimitedString()
        {
            CultureInfo culture = CultureInfo.CurrentCulture;

            return(string.Format(
                       culture,
                       StringHelper.StringFormatSequence(0, 20, Configuration.FieldSeparator),
                       Id,
                       SetIdDg1.HasValue ? SetIdDg1.Value.ToString(culture) : null,
                       DiagnosisCodingMethod,
                       DiagnosisCodeDg1?.ToDelimitedString(),
                       DiagnosisDescription,
                       DiagnosisDateTime.HasValue ? DiagnosisDateTime.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null,
                       DiagnosisType,
                       MajorDiagnosticCategory?.ToDelimitedString(),
                       DiagnosticRelatedGroup?.ToDelimitedString(),
                       DrgApprovalIndicator,
                       DrgGrouperReviewCode,
                       OutlierType?.ToDelimitedString(),
                       OutlierDays.HasValue ? OutlierDays.Value.ToString(Consts.NumericFormat, culture) : null,
                       OutlierCost?.ToDelimitedString(),
                       GrouperVersionAndType,
                       DiagnosisPriority,
                       DiagnosingClinician != null ? string.Join(Configuration.FieldRepeatSeparator, DiagnosingClinician.Select(x => x.ToDelimitedString())) : null,
                       DiagnosisClassification,
                       ConfidentialIndicator,
                       AttestationDateTime.HasValue ? AttestationDateTime.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null
                       ).TrimEnd(Configuration.FieldSeparator.ToCharArray()));
        }
コード例 #2
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()));
        }
コード例 #3
0
        /// <inheritdoc/>
        public string ToDelimitedString()
        {
            CultureInfo culture = CultureInfo.CurrentCulture;

            return(string.Format(
                       culture,
                       StringHelper.StringFormatSequence(0, 11, Configuration.FieldSeparator),
                       Id,
                       DiagnosticRelatedGroup?.ToDelimitedString(),
                       DrgAssignedDateTime.HasValue ? DrgAssignedDateTime.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null,
                       DrgApprovalIndicator,
                       DrgGrouperReviewCode,
                       OutlierType?.ToDelimitedString(),
                       OutlierDays.HasValue ? OutlierDays.Value.ToString(Consts.NumericFormat, culture) : null,
                       OutlierCost?.ToDelimitedString(),
                       DrgPayor,
                       OutlierReimbursement?.ToDelimitedString(),
                       ConfidentialIndicator
                       ).TrimEnd(Configuration.FieldSeparator.ToCharArray()));
        }
コード例 #4
0
ファイル: Statistics.cs プロジェクト: badokun/vehicleanalysis
 private void RemoveVehicleAndAddAsOutlier(IVehicle vehicle, double limit, OutlierType outlierType)
 {
     _vehicles.Remove(vehicle);
     _outlierVehicles.Add(new OutlierVehicle(vehicle, outlierType, limit));
 }