-
Notifications
You must be signed in to change notification settings - Fork 109
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
AllergyIntolerance object gives "Extra fields not permitted" error for reaction object. #155
Comments
I'm facing similar issue with fhir.resources version: 7.1.0 for Organization.
same code from example is throwing "Extra fields not permitted" error. |
It seems you chose the wrong FHIR version. In FHIR R5 https://www.hl7.org/fhir/organization.html |
Thank you for your response. I'm actually looking for some assistance here. I'm new in Health Care technologies and not very sure of the latest standards. I went through the documentation and understood that R4 only had "address" in "Organization". |
You can try
|
Thank you again for your help. I'm able to parse my JSONs now! |
Description
I am using fhir.resources to parse the AllergyIntolerance resource object. According to latest version of pydantic v2 and fhir.resources, it should be accepting the reaction.manifestation fields but I keep getting the -
extra fields not permitted (type=value_error.extra)
error.The fhir documentation specifying that this is a valid AllergyIntolerance field and not an Extra -
https://hl7.org/fhir/R4/allergyintolerance.html
I wish to understand if there are some breaking changes when upgrading fhir.resources to version 7.1 and pydantic to version 2.*?
My previous setup had
"fhir.resources==6.4.0", "pydantic==1.10.14"
and I did not face this issue.What I Did
The text was updated successfully, but these errors were encountered: