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
Describe the bug
The JSON parser in any HAPI FHIR version does not properly parse extensions on primitives that are absent.
As per the FHIR spec, when an extension is added to a primitive value, a field starting with _ is added to which the extension is added. While this is properly parsed in most scenario's, the field with (for instance) the name _line is currently omitted if there is no line field.
To Reproduce
This issue can be found in any HAPI FHIR version. Steps to illustrate this behavior on the HAPI FHIR test server are included below.
Expected behavior
The expected output would contain the _line field exactly as it was sent in the first place. It could be argued that the _line field should be omitted as the field it is extending is also omitted. However, according to the FHIR specs it is valid to only have a _line field without the line field itself.
Describe the bug
The JSON parser in any HAPI FHIR version does not properly parse extensions on primitives that are absent.
As per the FHIR spec, when an extension is added to a primitive value, a field starting with
_
is added to which the extension is added. While this is properly parsed in most scenario's, the field with (for instance) the name_line
is currently omitted if there is noline
field.To Reproduce
This issue can be found in any HAPI FHIR version. Steps to illustrate this behavior on the HAPI FHIR test server are included below.
Steps to reproduce the behavior:
_line
field which should be present:Expected behavior
The expected output would contain the
_line
field exactly as it was sent in the first place. It could be argued that the_line
field should be omitted as the field it is extending is also omitted. However, according to the FHIR specs it is valid to only have a_line
field without theline
field itself.This issue applies to any primitive extension,
Patient.line
has been used as example to make it easier to write this out.Environment
The text was updated successfully, but these errors were encountered: