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

ExplanationOfBenefit #61

Closed
nishank974 opened this issue Mar 3, 2021 · 1 comment
Closed

ExplanationOfBenefit #61

nishank974 opened this issue Mar 3, 2021 · 1 comment

Comments

@nishank974
Copy link

  • fhir.resources version: 6.1.0
  • Python version: 3.8.3
  • Operating System: MacOS Catalina

Description

Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.

I have a record of ExplanationOfBenefit in json format.
When I pass it to fhir.resources.ExplanationOfBenefit it get the following error.

ValidationError: 2 validation errors for ExplanationOfBenefit __root__ -> created field required (type=value_error.missing) __root__ -> outcome field required (type=value_error.missing)

What I Did

record = records[5945] from fhir.resources.explanationofbenefit import ExplanationOfBenefit Eob = ExplanationOfBenefit(**record)

How can I know what values are missing and is there a way to print the missing values

@nazrulworld
Copy link
Owner

I see from your error message that
ExplanationOfBenefit. created and ExplanationOfBenefit. outcome values are missing, those are required http://www.hl7.org/fhir/explanationofbenefit.html
as per specification.

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