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
It is possible to create resource with decimal element that has leading plus sign using XML encoding.
However, this resource couldn't be modified/retrieved/deleted to fix the leading plus sign.
Start an instance of HAPI-FHIR server with disabled request validation for the FHIR endpoint.
POST an xml bundle with a resource that has a leading plus sign in a decimal element:
Actual result:
Observation couldn't be retrieved, error is returned.
<OperationOutcome
xmlns="http://hl7.org/fhir">
<issue>
<severityvalue="error"/>
<codevalue="processing"/>
<diagnosticsvalue="HAPI-2223: HAPI-0928: Failed to parse database resource[Observation/3002 (pid 3002, version R4): HAPI-1861: Failed to parse JSON encoded FHIR content: Unexpected character ('+' (code 43)) in numeric value: JSON spec does not allow numbers to have plus signs: enable `JsonReadFeature.ALLOW_LEADING_PLUS_SIGN_FOR_NUMBERS` to allow
 at [line: 1, column: 472]"/>
</issue>
</OperationOutcome>
The text was updated successfully, but these errors were encountered:
It is possible to create resource with decimal element that has leading plus sign using XML encoding.
However, this resource couldn't be modified/retrieved/deleted to fix the leading plus sign.
Bundle with Observation
POST: http://localhost:8000/
Content-Type : application/xml
GET: http://localhost:8000/Observation/3002
Expected behaviour:
Observation successfully retrieved and decimal element
referenceRange.high.value
has correct value (3.0
instead of+3.0
):Actual result:
Observation couldn't be retrieved, error is returned.
The text was updated successfully, but these errors were encountered: