Skip to content

feat(eligibility): read and emit EB-13 procedure identifier on the 271 - #161

Merged
NSchatz merged 2 commits into
cosyte:mainfrom
matthewshober:eb13-c003-271
Oct 7, 2026
Merged

NSchatz merged 2 commits into
cosyte:mainfrom
matthewshober:eb13-c003-271

Conversation

@matthewshober

Copy link
Copy Markdown
Contributor

Closes #160. A 271 benefit line can apply to a single procedure through EB-13 (C003), which dental payers use for per-CDT-code coinsurance, frequency, age and maximum limits, and which the CAQH CORE eligibility data content rule calls for. The 271 model stopped at EB-12, so those lines read back with no procedure and could not be built without hand-editing the output.

The reader now publishes EB-13 as procedure on each benefit, split into qualifier, code, up to four modifiers and description using the component separator the interchange declares. The 270 reader already decoded the same composite for EQ-02, so that decoder moved to a shared module and both readers use it.

The builder takes a qualifier, code and modifiers and writes them as one composite. It refuses an empty qualifier or code, an empty modifier, and more than four modifiers, because a fifth would land in the description position and an empty one would shift later modifiers on read. It does not emit the description: the CAQH rule and the CMS HETS companion guide only use the qualifier, code and modifier on the 271, and leaving it out of the builder spec keeps it addable later as an optional field.

@matthewshober
matthewshober marked this pull request as ready for review October 7, 2026 14:39
@matthewshober
matthewshober requested a review from NSchatz as a code owner October 7, 2026 14:39
NSchatz
NSchatz previously approved these changes Oct 7, 2026

@NSchatz NSchatz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey Matthew! Looks good!

@matthewshober

Copy link
Copy Markdown
Contributor Author

Thanks for the quick review! I had to fix some formatting errors so I'll need another look.

@matthewshober
matthewshober requested a review from NSchatz October 7, 2026 15:32

@NSchatz NSchatz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@NSchatz

NSchatz commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

I'll cut a release to npm after this is merged!

@NSchatz
NSchatz merged commit ce2d53c into cosyte:main Oct 7, 2026
12 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.

Support EB-13 / C003 in 271 benefit models

2 participants