Skip to content

Split('a,b', '-') should return a list, but returns a valueString #878

@bryantaustin13

Description

@bryantaustin13

cql-tests CqlStringOperatorsTest.xml:: SplitABDash demonstrates the error.

https://cql.hl7.org/09-b-cqlreference.html#split states:
"If the stringToSplit argument does not contain any appearances of the separator, the result is a list of strings containing one element that is the value of the stringToSplit argument."

Split('a,b', '-') returns
"parameter": [
{
"name": "return",
"valueString": "a,b"
}
]
It should return
"parameter": [
{
"name": "return",
"valueString": "{a,b}"
}
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions