Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idiomatic way of dealing with unknown fields? [golang] #309

Closed
joshchangNIH opened this issue Nov 15, 2023 · 3 comments
Closed

Idiomatic way of dealing with unknown fields? [golang] #309

joshchangNIH opened this issue Nov 15, 2023 · 3 comments

Comments

@joshchangNIH
Copy link

When parsing the CMS DPC synthetic test files ExplanationOfBenefit and Coverage do not parse cleanly.

err: error at "Coverage": unknown field

error at "ExplanationOfBenefit.extension[0].valueMoney": unknown field
error at "ExplanationOfBenefit.item[0].adjudication[0].amount": unknown field

How are y'all dealing with this? Thanks

@nikklassen
Copy link
Member

Are the test files publicly accessible? Do you have a link?

@nikklassen
Copy link
Member

It looks like the test files you supplied are STU3 files. The errors you're getting are from trying to parse the resources as R4 resources (Patient has minor (maybe no) changes between versions)

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

No branches or pull requests

2 participants