Skip to content

C32 parser fix + internal dependabot updates 08-11-2026 - #54

Merged
dapperdandev merged 3 commits into
masterfrom
internal-typo-fix
Aug 11, 2026
Merged

dapperdandev merged 3 commits into
masterfrom
internal-typo-fix

Conversation

@dapperdandev

Copy link
Copy Markdown

Fix

  • C32 parser crash: data.vitals read self.vitals but the property is self.vitalsParser, throwing TypeError: Cannot read properties of undefined (reading 'parse') for every C32 document (broken since the 2017 webpack refactor). Also restores documentParser, which the DocumentParser assignment was clobbering demographicsParser with, matching the CCDA parser's naming.

Lockfile-only (transitive / security)

Excluded (major npm version — handle separately)

package-lock.json was reconciled with npm and verified stable: a fresh npm install produces no further changes.

🤖 Generated with Claude Code

dapperdandev and others added 2 commits August 11, 2026 12:43
data.vitals read self.vitals but the property is self.vitalsParser,
throwing TypeError for every C32 document. Also restore documentParser,
which the DocumentParser assignment was clobbering demographicsParser
with, matching the CCDA parser's naming.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 11, 2026 18:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Fixes the C32 top-level parser wiring so it no longer crashes when parsing vitals and so the document section is parsed by the intended DocumentParser, and includes a lockfile-only transitive security update.

Changes:

  • Restore documentParser on the C32 parser and route data.document through it (instead of clobbering demographicsParser).
  • Fix C32 vitals parsing by calling self.vitalsParser.parse(...) (matching the instantiated parser).
  • Update fast-uri from 3.1.43.1.5 in package-lock.json.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
package-lock.json Bumps fast-uri to 3.1.5 (lockfile-only).
lib/parsers/c32.js Fixes parser member assignments and corrects document/vitals parsing calls.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@dapperdandev
dapperdandev merged commit 0bcc1b0 into master Aug 11, 2026
3 checks passed
dapperdandev added a commit to Kno2/ccdaview that referenced this pull request Aug 12, 2026
…ates (#139)

* PAC-40355: Update @kno2/bluebutton to 0.7.0

Picks up the C32 parser fix (Kno2/bluebutton.js#54) so C32 documents
no longer crash the intake CDA preview.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* chore: internal dependabot updates 08-11-2026

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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.

3 participants