-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for modifier-only rows. Add tests for requiring estimated allowed amount when payer-specific percentage or algorithm, but not dollar amount, are present. Add tests for requiring drug information when NDC code type is used.
- Loading branch information
1 parent
4385f78
commit 265f882
Showing
6 changed files
with
228 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { CsvValidationError } from "./CsvValidationError"; | ||
|
||
export class DrugInformationRequiredError extends CsvValidationError { | ||
constructor(row: number, column: number) { | ||
super( | ||
row, | ||
column, | ||
"If code type is NDC, then the corresponding drug unit of measure and drug type of measure data element must be encoded." | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { CsvValidationError } from "./CsvValidationError"; | ||
|
||
export class ModifierMissingInfoError extends CsvValidationError { | ||
constructor(row: number, column: number) { | ||
super( | ||
row, | ||
column, | ||
"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." | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { CsvValidationError } from "./CsvValidationError"; | ||
|
||
export class PercentageAlgorithmEstimateError extends CsvValidationError { | ||
constructor(row: number, column: number) { | ||
super( | ||
row, | ||
column, | ||
'If a "payer specific negotiated charge" can only be expressed as a percentage or algorithm, then a corresponding "Estimated Allowed Amount" must also be encoded.' | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.