microsoft / fhir-server

A service that implements the FHIR standard
MIT License
1.15k stars 492 forks source link

CodeableConcept.coding.display and extension.valueString is trimming leading and trailing spaces #3815

Open naveen0585 opened 3 months ago

naveen0585 commented 3 months ago

Describe the bug Save a fhir resource having codeableConcept: coding and extension objects with leading and trailing spaces as shown below:

"code": { "coding": [ { "extension": [ { "url": "http://test.com/AVALUE" , "valueString": " SOME VALUE " } ], "system": "http://test.com/DR/Code" , "code": "SOMECODE", "display": " SOME DESCRIPTION " } }

Retrieve the fhir resource having this codeableConcept, the values are trimmed for extension.valueString and Coding.display "coding": [ { "extension": [ { "url": "http://test.com/AVALUE" , "valueString": "SOME VALUE" } ], "system": "http://test.com/DR/Code" , "code": "SOMECODE", "display": "SOME DESCRIPTION" } }

FHIR Version? R4

To Reproduce Steps to reproduce the behavior:

  1. Create a resource with Codeable concept.
  2. Add some leading and trailing spaces for coding.display and coding.extension.valueString field.
  3. Save fhir resource.
  4. retrieve the fhir resource back.

Expected behavior The Coding.display and extension.valueString should retain trailing and leading spaces.

Actual behavior coding.extension.valueString and coding.display values are trimmed.

AB#119105

EXPEkesheth commented 3 months ago

Thanks for reporting the issue ! We have investigated the issue and requires updating the Firely library version. There is no ETA determined at this time at to update the library version.