Skip to content

Implement String concatenation with + operator incorrect #2154

@piotrszul

Description

@piotrszul

String concatenation with + operator produces incorrect result (the value of the first argument).

(Math 6 exlusions)

Details

Expected: null but got: c ==> expected: <null> but was: <c>

  • 'c' + Patient.name.given[0] [** Null in concatenation is treated as an empty collection (2)]

Expected: onetwo but got: one ==> expected: <onetwo> but was: <one>

  • s5 + s6 [** Can concatenate two strings with +]

(FHIR R4 Exlclusions)
Details

Expected: true but got: false ==> expected: <true> but was: <false>

  • 'a'+'b' = 'ab' [** testPlus4]

Metadata

Metadata

Assignees

No one assigned

    Labels

    fhirpathRelated to fhirpath reference implementationnew featureNew feature or request

    Projects

    Status

    Planned

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions