Skip to content

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

Open
@naveen0585

Description

@naveen0585

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugBug bug bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions