diff --git a/src/versions/2.0/csv.ts b/src/versions/2.0/csv.ts index 95a1136..6060dac 100644 --- a/src/versions/2.0/csv.ts +++ b/src/versions/2.0/csv.ts @@ -502,14 +502,15 @@ function validateModifierRow( " for wide format when a modifier is encoded without an item or service" ).length > 0 ) { - errors.push( - csvErr( + errors.push({ + ...csvErr( index, columns.indexOf(modifierRequiredFields[0]), modifierRequiredFields[0], ERRORS.MODIFIER_EXTRA_INFO() - ) - ) + ), + warning: !enforce2025, + }) } } else { const modifierRequiredFields = [ @@ -527,14 +528,15 @@ function validateModifierRow( " for tall format when a modifier is encoded without an item or service" ).length > 0 ) { - errors.push( - csvErr( + errors.push({ + ...csvErr( index, columns.indexOf(modifierRequiredFields[0]), modifierRequiredFields[0], ERRORS.MODIFIER_EXTRA_INFO() - ) - ) + ), + warning: !enforce2025, + }) } } diff --git a/test/2.0/csv.spec.ts b/test/2.0/csv.spec.ts index 3affff9..87847cb 100644 --- a/test/2.0/csv.spec.ts +++ b/test/2.0/csv.spec.ts @@ -942,6 +942,7 @@ test("validateRow tall conditionals", (t) => { invalidModifierErrors[0].message, "If a modifier is encoded without an item or service, then a description and one of the following is the minimum information required: additional_payer_notes, standard_charge | negotiated_dollar, standard_charge | negotiated_percentage, or standard_charge | negotiated_algorithm." ) + t.is(invalidModifierErrors[0].warning, !enforceConditionals) const modifierWithNotesRow = { ...basicRow, "code | 1": "", @@ -1642,6 +1643,7 @@ test("validateRow wide conditionals", (t) => { invalidModifierErrors[0].message, "If a modifier is encoded without an item or service, then a description and one of the following is the minimum information required: additional_payer_notes, standard_charge | negotiated_dollar, standard_charge | negotiated_percentage, or standard_charge | negotiated_algorithm." ) + t.is(invalidModifierErrors[0].warning, !enforceConditionals) const modifierWithGenericNotesRow = { ...basicRow, "code | 1": "",