Skip to content

Conversation

@mint-thompson
Copy link
Collaborator

CSV headers definitions include placeholders: numbers for code and code type columns, and payer and plan names for CSV wide columns. Detect these placeholders when validating columns. When detected, return a PlaceholderError.

I decided to go with a simpler implementation that detected the placeholders in separate functions, rather than trying to integrate the placeholder detection into getPayersPlans and getCodeCount. The result is a little bit of repeated iteration, but it is a small cost compared to the overall validation process.

CSV headers definitions include placeholders: numbers for code and code
type columns, and payer and plan names for CSV wide columns. Detect
these placeholders when validating columns. When detected, return a
PlaceholderError.
Copy link
Collaborator

@shaselton-usds shaselton-usds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests pass, looks good!

@shaselton-usds shaselton-usds merged commit 8802e4e into main Jan 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants