You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FHIR elements with primitive datatypes are represented in two parts:
A JSON property with the name of the element, which has a JSON type of number, boolean, or string
a JSON property with _ prepended to the name of the element, which, if present, contains the value's id and/or extensions
The data I handled comes from the French government health public data API. I have asked them about this and they say their data is valid.
I have cleaned up the data so the following snippet is readable. You can copy/paste this in a REPL to reproduce the exception:
Hi @azmeuk,
Firstly thanks a lot for this extraordinary issue!
According to our current implementation, the member line value (list of strings) cannot be None or empty string! But you can provide an empty list or None (not None inside the list). In your example, if you remove None from the list, it will not give you a validation error. Or instead of None, you can use any fixed string to prevent validation error.
I tried to Create an Organization at http://hapi.fhir.org/create with your data and it is working. So I think None is allowed inside a list.
It will be breaking business logic changes if we want to support (None as a member of the list), but I think we should. It will take a little bit more time as I am currently busy with professional work. I will try to manage time as soon as possible but in the meanwhile any PR is welcome.
* some helper functions are created to handled primitive types inside Union or Optional type.
* in response to issue #97 xml serializer has been updated to work with Optional/Union types. [nazrulworld]
Hello,
Using fhir-kindling on production data, I encountered a validation error with an
Organization
resource which address line is split betweenline
andline_
. The HL7 specification on JSON representation of primitive elements seems to indicate that the data I try to read is valid:The data I handled comes from the French government health public data API. I have asked them about this and they say their data is valid.
I have cleaned up the data so the following snippet is readable. You can copy/paste this in a REPL to reproduce the exception:
Is my data wrong in the end, or is this something fhir.resources does not support yet?
Thank you for your help
The text was updated successfully, but these errors were encountered: